




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This exam guide delivers specialized preparation in DevOps-aligned testing practices, including continuous testing, test automation, environment management, and test data strategies. The guide emphasizes collaboration, speed, and reliability through real-world DevOps testing workflows and certification-aligned assessments.
Typology: Exams
1 / 102
This page cannot be seen from the preview
Don't miss anything!





























































































Question 1. Which of the following best describes the “First Way” in the CALMS framework for DevOps? A) Emphasizing continuous learning and experimentation B) Optimizing the flow of work from development to operations C) Ensuring feedback loops are short and frequent D) Automating all manual processes Answer: B Explanation: The “First Way” focuses on improving the flow of work, reducing hand‑offs, and delivering value quickly from development through operations. Question 2. In the DevOps testing lifecycle, which phase directly follows “Planning”? A) Designing tests B) Executing tests C) Reporting results D) Monitoring production Answer: A Explanation: After planning what to test, the next logical step is to design the test cases, scripts, and data needed for execution. Question 3. Which metric indicates how quickly a team can restore service after a failure? A) Lead Time B) Deployment Frequency C) Mean Time to Recovery (MTTR) D) Change Failure Rate
Answer: C Explanation: MTTR measures the average time taken to recover from a production incident, reflecting the effectiveness of incident response. Question 4. In GitFlow, which branch is primarily used for preparing a new release? A) feature B) develop C) release D) hotfix Answer: C Explanation: The release branch is created from develop to finalize the version, allowing only bug fixes and release‑specific changes. Question 5. Which CI tool uses a “Jenkinsfile” to define pipeline stages as code? A) GitLab CI B) GitHub Actions C) Travis CI D) Jenkins Answer: D Explanation: Jenkins pipelines are scripted in a Jenkinsfile, enabling pipeline‑as‑code for reproducible builds. Question 6. What is the primary purpose of static code analysis in CI pipelines?
Answer: C Explanation: Selenium automates browsers to test the user interface and client‑side behavior. Question 9. Which tool is best suited for contract testing of REST APIs? A) JMeter B) Postman C) WireMock D) Selenium Answer: C Explanation: WireMock can mock and verify HTTP interactions, facilitating contract‑based API testing. Question 10. When using JMeter for load testing, which element defines the number of virtual users? A) Thread Group B) Test Plan C) Listener D) Sampler Answer: A Explanation: The Thread Group configures the number of concurrent users, ramp‑up time, and loop count. Question 11. In Test‑Driven Development (TDD), what is the correct order of activities? A) Code → Test → Refactor
B) Test → Code → Refactor C) Refactor → Test → Code D) Code → Refactor → Test Answer: B Explanation: TDD follows the “Red‑Green‑Refactor” cycle: write a failing test, make it pass, then improve the code. Question 12. Which Gherkin keyword is used to describe the expected outcome of a scenario? A) Given B) When C) Then D) And Answer: C Explanation: “Then” specifies the observable result that should occur after the actions defined by “When”. Question 13. Terraform state files are primarily used to: A) Store compiled binaries B) Track the current infrastructure configuration C) Hold application logs D) Manage Docker images Answer: B
B) Consistent runtime environment across developers and CI agents C) Direct access to host OS kernel modules D) Elimination of all security vulnerabilities Answer: B Explanation: Docker containers encapsulate dependencies, guaranteeing that tests run in the same environment everywhere. Question 17. In Kubernetes, which object isolates resources for a specific test suite? A) Deployment B) Service C) Namespace D) ConfigMap Answer: C Explanation: Namespaces provide logical separation, allowing isolated test environments within the same cluster. Question 18. Service Mesh technologies (e.g., Istio) primarily help with: A) Container image building B) Service discovery, traffic routing, and observability across microservices C) Database schema migrations D) Front‑end UI rendering Answer: B
Explanation: A service mesh adds a transparent layer for managing communication, security, and telemetry between services. Question 19. Which of the following best defines “Shift‑Left” testing? A) Performing tests after production release B) Moving testing activities earlier in the software lifecycle C) Executing tests only on the left side of a CI pipeline diagram D) Deferring all performance testing to the final stage Answer: B Explanation: “Shift‑Left” emphasizes early detection of defects by integrating testing into development and CI stages. Question 20. Change Failure Rate measures: A) Number of changes per day B) Percentage of deployments that cause a service incident or require rollback C) Time taken to commit code D) Number of unit tests that fail Answer: B Explanation: It quantifies how often changes lead to failures, serving as a quality indicator for release processes. Question 21. Which Git branching model encourages a single long‑living branch for production? A) GitFlow
Answer: B Explanation: While automation engineers collaborate closely with developers, writing production feature code is primarily a developer’s role. Question 24. What does the “Mean Time Between Failures (MTBF)” metric represent? A) Average time to fix a defect after detection B) Average time between successive system failures C) Time taken to deploy a new version D) Number of successful deployments per week Answer: B Explanation: MTBF measures reliability by calculating the average interval between failures. Question 25. Which of the following tools is specifically designed for visual UI regression testing? A) Cypress B) Applitools Eyes C) JUnit D) SonarQube Answer: B Explanation: Applitools Eyes captures screenshots and compares them pixel‑by‑pixel to detect visual regressions. Question 26. In a CI pipeline, which stage should run static code analysis? A) After deployment to production
B) Immediately after code checkout and before compilation C) After unit tests pass D) During post‑deployment monitoring Answer: B Explanation: Running static analysis early catches issues before building or testing, saving resources. Question 27. Which of the following best describes “Canary Deployments”? A) Deploying to 100% of users instantly B) Rolling out a new version to a small subset of users for validation before full rollout C) Deploying only to staging environments D) Using feature flags to hide new code Answer: B Explanation: Canary releases limit exposure, allowing teams to monitor impact and rollback if needed. Question 28. Which of the following is a primary advantage of using Helm charts for Kubernetes testing environments? A) Automatic code generation for APIs B) Versioned, reusable package definitions for deploying complex applications C) Direct integration with Dockerfile creation D) Real‑time log aggregation Answer: B
C) Build, Test, Release D) Monitoring, Alerting, Incident Response Answer: B Explanation: The Three Ways describe the principles of optimizing flow of work, creating fast feedback loops, and fostering a culture of continual learning. Question 32. Which metric would you monitor to assess the efficiency of your CI pipeline itself? A) Deployment Frequency B) Lead Time for Changes C) Build Duration D) Change Failure Rate Answer: C Explanation: Build duration directly reflects how long the CI pipeline takes to compile, test, and package code. Question 33. In a microservices architecture, which testing approach validates contract compliance between services? A) End‑to‑end UI testing B) Contract (Consumer‑Driven) testing C) Load testing D) Unit testing Answer: B
Explanation: Consumer‑Driven Contract testing ensures that providers meet the expectations of their consumers. Question 34. Which of the following statements about “Feature Flags” is FALSE? A) They enable toggling functionality without redeploying code. B) They can be used to gradually roll out new features. C) They eliminate the need for any automated testing. D) They help isolate risky changes in production. Answer: C Explanation: Feature flags aid release control but do not replace the need for automated testing. Question 35. Which of these is a primary goal of “Chaos Engineering” in a DevOps context? A) Increase code coverage to 100% B) Validate system resilience by introducing controlled failures C) Automate UI test generation D) Reduce the size of Docker images Answer: B Explanation: Chaos Engineering deliberately injects faults to verify that the system can recover gracefully. Question 36. When using Maven, which lifecycle phase is responsible for running unit tests? A) compile
Question 39. Which tool is commonly used for secret management in CI/CD pipelines? A) Grafana B) HashiCorp Vault C) Prometheus D) Selenium Answer: B Explanation: Vault provides secure storage, dynamic secrets, and fine‑grained access control for credentials. Question 40. Which of the following is an example of a “non‑functional” test? A) Verifying login button label text B) Checking API response status code C) Measuring application response time under load D) Confirming correct data is written to the database Answer: C Explanation: Non‑functional testing assesses qualities like performance, security, and scalability rather than functional correctness. Question 41. What is the main purpose of a “Test Data Builder” pattern? A) Generate random test data at runtime B) Simplify creation of complex test objects with readable code C) Store test results in a database D) Automate UI interactions
Answer: B Explanation: The builder pattern helps construct test fixtures with default values, improving readability and maintainability. Question 42. Which of the following is a characteristic of “Trunk‑Based Development” that supports continuous delivery? A) Long‑lived feature branches with heavy merge conflicts B. Frequent merges to the main branch, often multiple times per day C. Separate release branches for each environment D. No automated testing Answer: B Explanation: Regular merges keep the main branch in a releasable state, enabling continuous delivery. Question 43. In the context of CI/CD, “Infrastructure as Code” primarily helps to: A) Reduce the size of application binaries B) Provision and configure environments automatically and consistently C. Replace all manual testing activities D. Increase network latency Answer: B Explanation: IaC treats infrastructure definitions as code, allowing versioned, repeatable, and automated provisioning.
Answer: B Explanation: Gates introduce manual checkpoints, ensuring compliance or quality criteria are met before proceeding. Question 47. Which of the following best describes “Service Virtualization”? A. Containerizing microservices for production B. Simulating the behavior of dependent services that are unavailable or costly to use in tests C. Encrypting network traffic between services D. Scaling services automatically based on load Answer: B Explanation: Virtualization provides mock implementations of external APIs, allowing tests to run in isolation. Question 48. Which command is used to build a Docker image from a Dockerfile located in the current directory? A. docker run. B. docker compose up C. docker build - t myimage. D. docker push myimage Answer: C Explanation: docker build - t myimage . reads the Dockerfile in the current directory and creates an image named “myimage”.
Question 49. In the context of test automation, “flaky” tests are problematic because they: A. Always pass, providing no insight B. Produce inconsistent results, undermining confidence in the pipeline C. Run too quickly, causing resource contention D. Require no maintenance Answer: B Explanation: Flaky tests intermittently fail or pass, leading to false alarms and reduced trust in CI results. Question 50. Which of the following is NOT a typical responsibility of a “Release Engineer” in a DevOps organization? A. Designing CI/CD pipelines B. Managing production incidents after release C. Writing unit tests for new features D. Automating artifact versioning Answer: C Explanation: Release engineers focus on pipeline automation and delivery; writing unit tests is primarily a developer task. Question 51. Which of the following is a benefit of using “Canary Releases” combined with automated monitoring? A. Immediate rollback without any data collection B. Ability to assess real‑world impact on a small user segment before full rollout C. Eliminates the need for load testing