DevOps Engineering Foundation Practice Exam, Exams of Technology

A deep technical assessment focused on DevOps engineering practices including CI/CD pipelines, containerization, Infrastructure as Code (IaC), orchestrations, cloud-native deployment, monitoring, and performance tuning. The exam challenges candidates with engineering-specific scenarios requiring practical judgment across tools and automated deployment workflows.

Typology: Exams

2025/2026

Available from 01/09/2026

shilpi-jain-1
shilpi-jain-1 🇮🇳

4.2

(5)

29K documents

1 / 107

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
DevOps Engineering Foundation
Practice Exam
**Question 1. Which of the following best describes the primary role of a DevOps Engineer?**
A) Writing only application code
B) Managing only network hardware
C) Bridging development and operations through crossfunctional expertise
D) Performing only manual testing
**Answer:** C
**Explanation:** A DevOps Engineer combines development skills with operational knowledge
to automate, streamline, and improve the entire delivery pipeline.
**Question 2. In the “Three Ways” framework, which way focuses on creating feedback loops
from production back to development?**
A) The First Way – Flow
B) The Second Way – Feedback
C) The Third Way – Continual Learning
D) The Fourth Way – Automation
**Answer:** B
**Explanation:** The Second Way emphasizes fast, tight feedback loops that allow teams to
detect problems early and improve continuously.
**Question 3. What does “Continuous Everything” NOT typically include?**
A) Continuous Integration
B) Continuous Delivery
C) Continuous Documentation
D) Continuous Monitoring
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download DevOps Engineering Foundation Practice Exam and more Exams Technology in PDF only on Docsity!

Practice Exam

Question 1. Which of the following best describes the primary role of a DevOps Engineer? A) Writing only application code B) Managing only network hardware C) Bridging development and operations through cross‑functional expertise D) Performing only manual testing Answer: C Explanation: A DevOps Engineer combines development skills with operational knowledge to automate, streamline, and improve the entire delivery pipeline. Question 2. In the “Three Ways” framework, which way focuses on creating feedback loops from production back to development? A) The First Way – Flow B) The Second Way – Feedback C) The Third Way – Continual Learning D) The Fourth Way – Automation Answer: B Explanation: The Second Way emphasizes fast, tight feedback loops that allow teams to detect problems early and improve continuously. Question 3. What does “Continuous Everything” NOT typically include? A) Continuous Integration B) Continuous Delivery C) Continuous Documentation D) Continuous Monitoring

Practice Exam

Answer: C Explanation: While documentation can be automated, “Continuous Everything” traditionally refers to integration, delivery, testing, monitoring, and security, not specifically documentation. Question 4. Which stage of the DevOps lifecycle directly follows “Build”? A) Test B) Release C) Deploy D) Operate Answer: A Explanation: After building artifacts, the next logical step is testing them to verify correctness before release. Question 5. According to the Theory of Constraints, what is the most effective first step to improve a CI/CD pipeline? A) Add more servers B) Identify the bottleneck C) Increase developer headcount D) Automate all tests Answer: B Explanation: The Theory of Constraints states that improvement begins by locating the system’s limiting factor (the constraint) and addressing it.

Practice Exam

C) Ant build.xml D) Maven pom.xml Answer: B Explanation: GitLab CI defines pipelines in a .gitlab-ci.yml file, allowing version‑controlled, declarative pipeline definitions. Question 9. Which CI/CD pattern is considered an anti‑pattern? A) Trunk‑Based Development B) Deploying directly to production without testing C) Blue/Green deployments D) Canary releases Answer: B Explanation: Deploying to production without testing bypasses quality gates and increases risk, making it an anti‑pattern. Question 10. Which tool category is primarily responsible for configuration management? A) Build automation B) Container orchestration C) Version control D) CM tools like Ansible, Puppet Answer: D Explanation: Configuration Management tools automate the provisioning and maintenance of system configurations.

Practice Exam

Question 11. What is the main benefit of Value Stream Management (VSM)? A) Automating code compilation B) Visualizing and optimizing flow of value through the pipeline C) Managing user authentication D) Providing IDE integrations Answer: B Explanation: VSM gives end‑to‑end visibility of work items, enabling teams to identify waste and improve delivery speed. Question 12. Which architecture style encourages independent deployment of services? A) Monolithic B) Microservices C) Layered D) Client‑Server Answer: B Explanation: Microservices break functionality into loosely coupled services that can be built, tested, and deployed independently. Question 13. In Service‑Oriented Architecture (SOA), what is a “service contract”? A) The SLA with customers B) The definition of inputs, outputs, and behavior of a service C) The source code repository URL

Practice Exam

Question 16. Which CI strategy helps keep the integration process fast and reliable? A) Merging large feature branches only once a month B) Running a full suite of integration tests on every commit C) Using shallow clones and parallel builds D) Disabling automated tests in favor of manual QA Answer: C Explanation: Shallow clones reduce checkout time and parallel builds speed up execution, supporting rapid feedback. Question 17. In the Test Automation Pyramid, which type of test should be the most numerous? A) End‑to‑End tests B) Integration tests C) Unit tests D) Performance tests Answer: C Explanation: Unit tests are fast, isolated, and inexpensive, so they should form the base of the pyramid. Question 18. Test‑Driven Development (TDD) follows which sequence? A) Write code → Write test → Refactor B) Write test → Write code → Refactor C) Refactor → Write test → Write code D) Write code → Refactor → Write test

Practice Exam

Answer: B Explanation: TDD starts by writing a failing test, then minimal code to pass it, followed by refactoring. Question 19. Which BDD framework is commonly used with Java? A) RSpec B) Cucumber C) Mocha D) PyTest Answer: B Explanation: Cucumber allows writing specifications in Gherkin language and maps them to Java step definitions. Question 20. Which technique can accelerate test execution in a CI pipeline? A) Running tests sequentially on a single node B) Using test data from production databases directly C) Parallelizing test suites across multiple agents D) Disabling test caching Answer: C Explanation: Parallel execution distributes tests across agents, reducing overall runtime. Question 21. What is an “ephemeral test environment”?

Practice Exam

Answer: B Explanation: Idempotent actions ensure that applying the same configuration repeatedly does not alter the desired state after the first successful run. Question 24. Which IaC tool uses a declarative language based on JSON/YAML for AWS resources? A) Ansible B) Terraform C) CloudFormation D) Chef Answer: C Explanation: AWS CloudFormation templates are written in JSON or YAML and declare the desired state of AWS resources. Question 25. Which Kubernetes object represents a set of identical pods and ensures the desired number of replicas? A) Service B) Deployment C) ConfigMap D) Ingress Answer: B Explanation: A Deployment manages replica sets, rolling updates, and rollbacks for a group of identical pods.

Practice Exam

Question 26. What is the primary purpose of a Kubernetes Ingress? A) To store container images B) To provide network routing rules for external traffic into the cluster C) To define persistent volumes D) To schedule pods on nodes Answer: B Explanation: Ingress resources define HTTP(S) routing rules, often backed by an Ingress controller, to expose services outside the cluster. Question 27. In GitOps, where is the single source of truth for both application and infrastructure state stored? A) A private Docker registry B) A CI server’s database C) A Git repository D) An artifact repository Answer: C Explanation: GitOps treats Git repositories as the authoritative source for declarative definitions, enabling automated reconciliation. Question 28. Which deployment strategy minimizes risk by gradually exposing a new version to a small percentage of users? A) Blue/Green B) Rolling C) Canary

Practice Exam

Explanation: Lead Time for Changes captures the elapsed time from code commit through the pipeline to production deployment. Question 31. What does DORA’s “Change Failure Rate” indicate? A) Percentage of deployments that cause an incident or require rollback B) Number of commits per developer per day C) Average time to provision infrastructure D) Frequency of automated tests Answer: A Explanation: Change Failure Rate is the proportion of changes that result in degraded service or need remediation. Question 32. Which of the following is NOT a pillar of observability? A) Logs B) Metrics C) Traces D) Documentation Answer: D Explanation: Observability relies on logs, metrics, and distributed traces to infer system behavior; documentation is supporting material but not a pillar. Question 33. Which tool is primarily used for time‑series metric collection in cloud‑native environments? A) Elasticsearch

Practice Exam

B) Prometheus C) Jenkins D) SonarQube Answer: B Explanation: Prometheus scrapes metrics from instrumented services and stores them as time‑series data. Question 34. What is the purpose of “Policy as Code”? A) To write business policies in plain English only B) To embed governance rules directly into source‑controlled code for automated enforcement C) To replace all security tools with manual reviews D) To store policies in a separate, non‑versioned system Answer: B Explanation: Policy as Code treats compliance rules as executable code, enabling automated checks during CI/CD. Question 35. Which security testing technique analyzes source code without executing it? A) DAST B) SAST C) Penetration testing D) Fuzz testing Answer: B

Practice Exam

C) Competitive incentives D) Individual performance metrics Answer: B Explanation: Psychological safety encourages team members to discuss failures openly without fear of punishment. Question 39. In Team Topologies, which team type focuses on building internal platforms for other teams? A) Stream‑aligned team B) Enabling team C) Platform team D) Complicated Subsystem team Answer: C Explanation: Platform teams create self‑service tools and services that accelerate delivery for stream‑aligned teams. Question 40. Which practice deliberately injects failures into a production system to improve resilience? A) Load testing B) Chaos Engineering C) Regression testing D) Blue‑green deployment Answer: B

Practice Exam

Explanation: Chaos Engineering runs controlled experiments that cause failures, helping teams validate recovery mechanisms. Question 41. What is the primary advantage of serverless computing for DevOps teams? A) Full control over underlying OS B) Eliminates the need for any code C) Automatic scaling and reduced operational overhead D) Guarantees zero cost Answer: C Explanation: Serverless platforms handle scaling, patching, and infrastructure management, allowing teams to focus on code. Question 42. Which AI‑driven practice automates the analysis of operational data to detect anomalies? A) AIOps B) DevSecOps C) GitOps D) Test‑Driven Development Answer: A Explanation: AIOps leverages machine learning to ingest logs, metrics, and traces, automatically identifying abnormal patterns. Question 43. Which of the following is a key difference between Continuous Delivery (CD) and Continuous Deployment (CD)?

Practice Exam

D) Number of feature flags Answer: B Explanation: MTTR measures how quickly a system recovers from incidents, reflecting post‑deployment stability. Question 46. What is the main purpose of a feature flag? A) To permanently remove code from the repository B) To enable or disable functionality at runtime without redeploying C) To secure secrets in environment variables D) To version control database schemas Answer: B Explanation: Feature flags allow dynamic toggling of features, facilitating canary releases and quick rollbacks. Question 47. Which of the following is a common anti‑pattern in container image management? A) Using multi‑stage builds to reduce image size B) Storing secrets directly in Dockerfiles C) Scanning images for vulnerabilities before push D) Tagging images with immutable version numbers Answer: B Explanation: Embedding secrets in Dockerfiles creates security risks; images should be built without sensitive data.

Practice Exam

Question 48. Which CI/CD tool natively supports “pipeline as code” using a Groovy DSL? A) Travis CI B) CircleCI C) Jenkins D) Bamboo Answer: C Explanation: Jenkins pipelines are defined in Jenkinsfile using Groovy DSL, enabling versioned pipeline definitions. Question 49. In the context of monitoring, what does “alert fatigue” refer to? A) Having too few alerts, causing missed incidents B) Overwhelming number of alerts leading to desensitization and ignored warnings C. Alerts that only fire during business hours D. Alerts that automatically resolve themselves Answer: B Explanation: Alert fatigue occurs when excessive noisy alerts cause operators to ignore or miss critical warnings. Question 50. Which of the following best describes “immutable infrastructure”? A) Servers are never patched after deployment. B) Infrastructure components are never changed; updates are performed by replacing them with new instances. C) All configuration is stored in a single monolithic script.