Cloud & DevOps questions and answers
Service models, containers, CI/CD and Linux. Practise cloud & devops questions from the technical & programming section of placement tests, with a worked explanation after every answer. Practice is free and needs no sign-up.
Sample cloud & devops questions with worked answers
Question 1
In which cloud service model does the consumer get virtual machines, storage and networks, but install and manage the operating system and applications themselves?
- SaaS
- PaaS
- IaaS
- FaaS
Answer: C. IaaS
Explanation: Infrastructure as a Service provides raw compute, storage and networking, and the customer manages everything from the OS upward. PaaS also manages the OS and runtime for you.
Question 2
After running chmod 754 report.sh, what are the permissions of report.sh?
- rwxr--r-x
- rwxr-xr--
- rwxrw-r--
- rw-r-xr--
Answer: B. rwxr-xr--
Explanation: Each digit is read (4) + write (2) + execute (1). 7 = rwx for the owner, 5 = r-x for the group and 4 = r-- for others, which gives rwxr-xr--.
Question 3
In a Dockerfile for a Node.js app, why are package.json and package-lock.json usually copied, and dependencies installed, BEFORE the rest of the source code is copied?
- Docker requires dependency files to be copied first
- It makes the final image run faster at runtime
- It prevents the source code from being included in the image
- The dependency-install layer stays cached and is reused when only the source code changes, which speeds up rebuilds
Answer: D. The dependency-install layer stays cached and is reused when only the source code changes, which speeds up rebuilds
Explanation: Docker caches each instruction's layer and rebuilds from the first changed layer onward. If the dependency manifests are unchanged, the slow install step is reused from cache.
All 30 cloud & devops questions with answers
- In which cloud service model does the consumer get virtual machines, storage…
- A web-based email service that users simply open in a browser, with no…
- Which Linux command lists all files in the current directory, including hidden…
- How do containers differ from virtual machines?
- What does Continuous Integration (CI) mean in DevOps?
- After running chmod 754 report.sh, what are the permissions of report.sh?
- In Docker, what is the relationship between an image and a container?
- Which command shows the last 20 lines of the file app.log?
- Adding two more identical application servers behind a load balancer to handle…
- In Kubernetes, what is a Pod?
- What is the difference between Continuous Delivery and Continuous Deployment?
- What does this shell pipeline print? Ignore any leading spaces.
- The file server.log contains these four lines: ERROR disk full INFO ok ERROR…
- In a Dockerfile for a Node.js app, why are package.json and package-lock.json…
- Under the shared responsibility model for IaaS, who is responsible for…
- A developer uploads application code and the cloud provider runs it, managing…
- A bank keeps sensitive customer data in its own on-premises data centre but…
- Which Linux command prints the full path of the current working directory?
- What does Infrastructure as Code (IaC) mean?
- The ability of a cloud system to add resources automatically when demand rises…
- Which octal mode gives the permissions rw-r----- (owner read and write, group…
- What does this shell pipeline print? Ignore any leading spaces.
- A container is started with docker run -p 8080:80 nginx. What does the -p…
- What is blue-green deployment?
- A Kubernetes Deployment is configured with replicas: 3. One of its Pods…
- A service promises 99.9% availability per 30-day month. What is the maximum…
- A request must pass through a web server and then a database server, and both…
- When does a cron job with the schedule 30 2 * * 1 run?
- What does this shell pipeline print?
- What does this shell command print?
Cloud & DevOps: common questions
What are cloud & devops questions?
Service models, containers, CI/CD and Linux. They appear in the technical & programming section of many placement tests.
Where can I practise cloud & devops questions with answers for free?
Right here on LogicWiz Exams. Every cloud & devops question has a worked explanation after you answer. Practice is free and needs no sign-up.
How should I practise cloud & devops?
Start with easy questions, then move to medium and hard. Read the explanation after each answer, and come back to the ones you missed.
Start practising
On this page you can start a fresh set of cloud & devops questions, choose easy, medium or hard, and time yourself if you want to. Or practise the whole subject: Technical & Programming practice.
More technical & programming topics
- Pseudo-code: Trace loops, recursion and bitwise logic.
- C Programming: Output prediction, pointers and operators.
- Java: OOP, strings, collections and exceptions.
- Python: Data types, comprehensions and mutability.
- Data Structures: Arrays, stacks, queues, trees, graphs and hashing.
- Algorithms: Complexity, sorting, searching, recursion and DP.
- Object-Oriented Programming: Encapsulation, inheritance, polymorphism, abstraction.
- DBMS: Keys, normalisation, transactions and indexing.
- SQL: Joins, grouping, subqueries and query output.
- Operating Systems: Processes, scheduling, memory and deadlocks.
- Computer Networks: OSI/TCP-IP, protocols, addressing and ports.
- Software Engineering: SDLC, testing, agile and version control.
- GenAI Basics: LLMs, tokens, prompting, embeddings and RAG.
Other subjects
- Quantitative Aptitude: Arithmetic, percentages, time and work, speed, probability and data interpretation: the numerical section of every fresher test.
- Logical Reasoning: Series, coding-decoding, arrangements, syllogisms and puzzles: the section that separates prepared candidates from the rest.
- Verbal Ability: Vocabulary, grammar, reading comprehension and sentence order: tested in nearly every IT services hiring exam.
- Python: Python quizzes by topic, from types and strings to classes and generators: output prediction and interview concepts.
- SQL: SQL quizzes by topic, from SELECT and joins to window functions: query output and concepts for analyst and developer roles.
LogicWiz Exams home · All practice topics · Placement mock tests · Daily 10 challenge · Test from a job description · LogicWiz Open: free team quiz · Free interview prep