Certified DevOps Practitioner (CDP) Exam — Questions and Answers
Question 1: Which metric measures the frequency at which an organization successfully deploys to production?
- Lead Time for Changes
- Deployment Frequency (Correct answer)
- Change Failure Rate
- Mean Time to Recovery (MTTR)
Correct answer: Deployment Frequency
Deployment Frequency is one of the four DORA metrics that measures how often a team deploys working software to production.
Question 2: What does TDD (Test-Driven Development) require developers to do before writing production code?
- Write a failing test first (Correct answer)
- Deploy to a staging environment
- Create a deployment plan
- Review code with a peer
Correct answer: Write a failing test first
TDD follows the Red-Green-Refactor cycle: write a failing test, write the minimum code to pass it, then refactor for quality.
Question 3: What is the primary cultural shift DevOps promotes between development and operations teams?
- Shared responsibility and collaboration across the entire software lifecycle (Correct answer)
- Strict separation of duties between dev and ops
- Operations teams writing all application code
- Development teams taking full ownership of operations tasks
Correct answer: Shared responsibility and collaboration across the entire software lifecycle
DevOps breaks down silos by fostering a culture of shared ownership, where both dev and ops collaborate throughout the software delivery lifecycle.
Question 4: Which type of monitoring focuses on tracking application-specific metrics such as request rates and error counts?
- Compliance auditing
- Network monitoring
- Application monitoring (Correct answer)
- Infrastructure monitoring
Correct answer: Application monitoring
Application monitoring specifically focuses on tracking the performance, availability, and health of software applications themselves. It collects metrics such as request rates, error counts, response times, and transaction throughput. This type of monitoring provides deep insights into how an application is performing from a user's perspective and helps identify application-specific bottlenecks or issues.
Question 5: What is the role of data in performance monitoring & optimization programs for Certified DevOps Practitioner?
- Data complicates the improvement process
- Data is collected but rarely analyzed
- Data is only needed for external reporting
- Data provides objective evidence for decision-making and measuring progress (Correct answer)
Correct answer: Data provides objective evidence for decision-making and measuring progress
Data provides the objective evidence needed to make informed decisions, track progress, and validate the effectiveness of improvements.
Question 6: Which metric type is commonly used to track the frequency of a specific event over time?
- Summary
- Histogram
- Gauge
- Counter (Correct answer)
Correct answer: Counter
A counter is a type of metric that represents a single numerical value that only ever increases or is reset to zero. It is specifically designed to track the frequency of a specific event over time, such as the total number of HTTP requests, errors encountered, or tasks completed. This allows for monitoring cumulative occurrences.
Question 7: What is the PRIMARY objective of implementation & configuration within the Certified DevOps Practitioner profession?
- To limit the scope of professional activities
- To maintain the status quo without change
- To create additional requirements for practitioners
- To ensure quality outcomes through standardized practices and continuous improvement (Correct answer)
Correct answer: To ensure quality outcomes through standardized practices and continuous improvement
The primary objective is ensuring quality outcomes through established standards while continuously improving practices and processes.
Question 8: What is 'psychological safety' in the context of high-performing DevOps teams?
- A testing practice where developers safely simulate production failures
- A team environment where members feel safe to speak up, take risks, and report failures without fear (Correct answer)
- An HR policy governing workplace mental health resources
- A security protocol for protecting developer credentials
Correct answer: A team environment where members feel safe to speak up, take risks, and report failures without fear
Psychological safety, identified by Google's Project Aristotle as the top predictor of team success, enables candid communication and continuous improvement.
Question 9: What is a declarative approach in IaC?
- Specifying exact steps to reach the desired state.
- Using scripts without version control.
- Describing the desired end state of the infrastructure. (Correct answer)
- Manually configuring each server.
Correct answer: Describing the desired end state of the infrastructure.
A declarative approach in Infrastructure as Code (IaC) means that you describe the desired end state of your infrastructure, rather than specifying the exact sequence of steps to achieve it. The IaC tool then intelligently determines the necessary actions to bring the current infrastructure to that specified desired state. This simplifies configuration management and makes infrastructure definitions more readable.
Question 10: Which DevOps practice involves automating the entire software release process from code commit to production?
- Continuous Monitoring
- Continuous Delivery (CD) (Correct answer)
- Continuous Integration (CI)
- Test-Driven Development (TDD)
Correct answer: Continuous Delivery (CD)
Continuous Delivery automates the release pipeline so software can be deployed to production at any time with minimal manual intervention.
Question 11: What is the main benefit of using an artifact repository such as Nexus or Artifactory?
- Replacing source control for code storage
- Managing user access to cloud infrastructure
- Centralizing versioned build artifacts for consistent deployments (Correct answer)
- Monitoring application performance in production
Correct answer: Centralizing versioned build artifacts for consistent deployments
Artifact repositories store and version built artifacts so every deployment uses the exact same tested binary, ensuring consistency.
Question 12: What does 'value stream mapping' help DevOps teams identify?
- Bottlenecks and waste in the software delivery process from idea to production (Correct answer)
- The business value generated by each microservice
- The mapping between user stories and architectural components
- The monetary cost of cloud infrastructure per feature
Correct answer: Bottlenecks and waste in the software delivery process from idea to production
Value stream mapping visualizes every step of the software delivery pipeline to identify delays, handoffs, and waste that reduce flow efficiency.
Question 13: What is the MOST effective way to stay current with developments in security & access control for Certified DevOps Practitioner?
- Relying on experience gained early in career
- Reading only internal communications
- Participating in professional development, industry events, and peer collaboration (Correct answer)
- Following a single expert opinions
Correct answer: Participating in professional development, industry events, and peer collaboration
A multi-faceted approach including formal development, industry events, and peer collaboration provides the broadest perspective on current developments.
Question 14: Which pipeline stage is specifically responsible for publishing built artifacts to a shared repository?
- Deploy
- Publish/Package (Correct answer)
- Test
- Build
Correct answer: Publish/Package
The Publish or Package stage uploads versioned artifacts (e.g., Docker images, JARs) to an artifact repository for downstream stages to consume.
Question 15: Which of these is a best practice when configuring system alerts?
- Configure alerts for every system log entry.
- Set actionable, priority-based alerts to avoid alert fatigue. (Correct answer)
- Ignore minor issues and alert only for system failures.
- Only use email notifications for all alerts.
Correct answer: Set actionable, priority-based alerts to avoid alert fatigue.
A best practice for configuring system alerts is to set actionable, priority-based alerts to avoid alert fatigue. This means focusing on critical issues that require immediate attention and providing sufficient context for resolution, rather than generating alerts for every minor event. Prioritizing alerts ensures that teams are notified only for truly important problems, preventing them from becoming desensitized to constant notifications.
Question 16: Which DevOps DORA metric measures the frequency with which an organization successfully releases software to production?
- Mean time to restore
- Deployment frequency (Correct answer)
- Change failure rate
- Lead time for changes
Correct answer: Deployment frequency
Deployment frequency is one of the four DORA key metrics measuring how often a team successfully deploys to production, indicating delivery throughput.
Question 17: When facing an unfamiliar challenge in security & access control within Certified DevOps Practitioner, what is the BEST approach?
- Attempt to resolve it independently without consultation
- Research established best practices, consult colleagues, and document the approach (Correct answer)
- Apply the most familiar technique regardless of suitability
- Avoid the challenge if possible
Correct answer: Research established best practices, consult colleagues, and document the approach
Researching best practices and consulting colleagues combines established knowledge with practical experience, while documentation supports future reference.
Question 18: What is the primary purpose of implementing monitoring in a DevOps environment?
- To remove legacy code.
- To increase system complexity.
- To delay deployment processes.
- To track system performance and detect anomalies. (Correct answer)
Correct answer: To track system performance and detect anomalies.
The primary purpose of implementing monitoring in a DevOps environment is to track system performance, health, and detect anomalies in real-time. This allows teams to proactively identify issues, understand system behavior, and ensure the reliability and availability of applications, contributing to faster incident response and continuous improvement.
Question 19: Which practice encourages team ownership and transparency in DevOps workflows?
- Silently fixing issues.
- Shared ownership of code and deployments. (Correct answer)
- Avoiding cross-functional meetings.
- Assigning blame for failures.
Correct answer: Shared ownership of code and deployments.
Shared ownership of code and deployments is a key practice that encourages team ownership and transparency in DevOps workflows. When teams collectively own the entire lifecycle of a service, from development to operations, it fosters a sense of responsibility, promotes knowledge sharing, and leads to more robust and maintainable systems.
Question 20: Which practice involves development teams deploying small, frequent code changes to production multiple times per day?
- Trunk-based development
- Continuous Integration
- Feature branching
- Continuous Deployment (Correct answer)
Correct answer: Continuous Deployment
Continuous Deployment automatically releases every code change that passes all pipeline stages directly to production without manual approval.
Question 21: In a DevOps environment, what is the primary goal of daily stand-up meetings?
- To align team members on daily progress and obstacles. (Correct answer)
- To assign tasks for the week.
- To conduct technical code reviews.
- To discuss company-wide announcements.
Correct answer: To align team members on daily progress and obstacles.
In a DevOps environment, daily stand-up meetings are brief, focused sessions designed to align team members on their progress, plans for the day, and any impediments they are facing. This practice fosters transparency, helps identify blockers early, and ensures everyone is aware of the team's collective status and immediate priorities.
Question 22: Which factor BEST indicates mastery of implementation & configuration in Certified DevOps Practitioner?
- Speed of task completion
- Years of experience in a single setting
- The ability to adapt knowledge and skills to varying contexts while maintaining standards (Correct answer)
- Number of certifications held
Correct answer: The ability to adapt knowledge and skills to varying contexts while maintaining standards
True mastery is demonstrated by the ability to apply knowledge flexibly across different contexts while consistently maintaining quality standards.
Question 23: Which of the following is a key benefit of using IaC?
- Increased manual intervention.
- Inconsistent environments.
- Slower deployment processes.
- Automated and consistent infrastructure deployment. (Correct answer)
Correct answer: Automated and consistent infrastructure deployment.
A key benefit of Infrastructure as Code (IaC) is the ability to achieve automated and consistent infrastructure deployment. By defining infrastructure in code, organizations can version control, test, and deploy environments repeatedly with identical configurations. This eliminates configuration drift and human error, leading to more reliable and predictable infrastructure.
Question 24: What is the MOST important skill for effective project planning & deployment in Certified DevOps Practitioner?
- Maintaining strict authority over all decisions
- Clear communication and the ability to align team efforts with objectives (Correct answer)
- Technical expertise alone without people skills
- Avoiding conflict at all costs
Correct answer: Clear communication and the ability to align team efforts with objectives
Clear communication is essential for aligning team efforts, building consensus, and ensuring everyone understands and works toward shared objectives.
Question 25: What is the FOUNDATION of effective performance monitoring & optimization in Certified DevOps Practitioner?
- Clearly defined standards and measurable criteria (Correct answer)
- Customer complaints as the sole quality indicator
- Personal opinion of experienced practitioners
- Industry averages without internal benchmarks
Correct answer: Clearly defined standards and measurable criteria
Clearly defined standards and measurable criteria provide an objective foundation for assessing and improving quality.
Question 26: In automated UI testing, which tool is most commonly integrated into CI/CD pipelines for browser-based end-to-end tests?
- Terraform
- Ansible
- Selenium WebDriver (Correct answer)
- Nagios
Correct answer: Selenium WebDriver
Selenium WebDriver automates browser interactions and is widely used in CI/CD pipelines for end-to-end UI testing across multiple browsers.
Question 27: What is the role of 'modules' in Terraform?
- They store application logs.
- They compile the infrastructure code.
- They enable code reuse and organization. (Correct answer)
- They are used to monitor infrastructure.
Correct answer: They enable code reuse and organization.
In Terraform, 'modules' are self-contained, reusable configurations that encapsulate a set of infrastructure resources. Their primary role is to enable code reuse, allowing developers to define common infrastructure patterns once and apply them across multiple projects or environments. Modules also help organize complex configurations, making them more manageable and readable.
Question 28: What does 'infrastructure immutability' mean in modern DevOps practices?
- Servers are never modified in place; instead, new instances replace old ones (Correct answer)
- Only operations teams are allowed to change infrastructure
- Infrastructure is provisioned once and never scaled
- Infrastructure configurations are stored in read-only files
Correct answer: Servers are never modified in place; instead, new instances replace old ones
Immutable infrastructure means that once a server or container is deployed, it is never patched or modified; any change requires deploying a new instance.
Question 29: What is the primary advantage of version controlling infrastructure code?
- Lack of rollback capabilities.
- Ability to track changes and collaborate effectively. (Correct answer)
- Increased manual errors.
- Difficulty in collaboration.
Correct answer: Ability to track changes and collaborate effectively.
Version controlling infrastructure code, typically using systems like Git, provides a comprehensive history of all changes made to the infrastructure. This enables teams to track who made what changes, when, and why, facilitating effective collaboration among multiple engineers. It also allows for easy rollbacks to previous stable configurations, enhancing reliability and auditability.
Question 30: What does the `kubectl rollout undo` command accomplish?
- It deletes all pods in a deployment
- It pauses an ongoing rolling update
- It rolls back a deployment to the previous revision (Correct answer)
- It reverts a ConfigMap to its original values
Correct answer: It rolls back a deployment to the previous revision
The `kubectl rollout undo` command reverts a deployment to the previously deployed revision, useful for recovering from a bad release.
Question 31: In DevOps, what is the primary benefit of using feature flags (feature toggles)?
- They automatically revert broken deployments to previous versions
- They enforce access control policies on new application features
- They allow features to be enabled or disabled in production without redeploying code (Correct answer)
- They generate automated test cases for new features
Correct answer: They allow features to be enabled or disabled in production without redeploying code
Feature flags decouple feature release from code deployment, allowing teams to gradually roll out, A/B test, or instantly disable features without a new deploy.
Question 32: Which metric measures the percentage of code exercised by automated tests?
- Code coverage (Correct answer)
- Deployment frequency
- Defect escape rate
- Mean time to recovery
Correct answer: Code coverage
Code coverage measures what percentage of the codebase is executed during automated test runs, helping teams identify untested areas.
Question 33: What does 'shift-left' mean in the context of DevOps testing practices?
- Introducing testing earlier in the software development lifecycle (Correct answer)
- Moving test environments closer to production
- Assigning testing responsibilities to operations teams
- Running regression tests after each production deployment
Correct answer: Introducing testing earlier in the software development lifecycle
Shift-left means incorporating testing, security, and quality checks earlier in the development pipeline rather than waiting until the end.
Question 34: What is log aggregation in a monitoring and logging setup?
- Upgrading application frameworks.
- Archiving old system backups.
- Running performance benchmarks.
- Collecting logs from multiple sources into a central system. (Correct answer)
Correct answer: Collecting logs from multiple sources into a central system.
Log aggregation is the process of collecting log data from various sources—such as servers, applications, and network devices—and centralizing them into a single system. This centralization makes it significantly easier to search, analyze, and correlate events across a distributed environment. It is crucial for efficient troubleshooting, security analysis, and monitoring system health.
Question 35: Which type of tests are typically run first in a CI pipeline?
- Acceptance tests
- Integration tests
- Unit tests (Correct answer)
- User Interface tests
Correct answer: Unit tests
Unit tests are typically run first in a Continuous Integration (CI) pipeline because they are fast, isolated, and verify the smallest testable parts of an application. Running them early provides quick feedback on code quality and helps catch basic errors before more time-consuming integration or acceptance tests are executed.
Question 36: What is the key difference between functional testing and non-functional testing?
- Functional testing verifies what the system does; non-functional testing verifies how well it does it (Correct answer)
- Functional testing happens after deployment; non-functional before
- Functional testing is manual; non-functional is automated
- Functional testing covers security; non-functional covers performance
Correct answer: Functional testing verifies what the system does; non-functional testing verifies how well it does it
Functional testing validates features and business logic, while non-functional testing assesses quality attributes like performance, scalability, and reliability.
Question 37: Which metric BEST indicates successful data management & integration in Certified DevOps Practitioner?
- Volume of emails sent
- Number of meetings held per week
- Hours worked by team members
- Achievement of defined key performance indicators and stakeholder satisfaction (Correct answer)
Correct answer: Achievement of defined key performance indicators and stakeholder satisfaction
KPI achievement and stakeholder satisfaction directly measure whether management activities are producing desired outcomes.
Question 38: In CI, what is a 'build artifact'?
- The source code itself.
- A file produced by a successful build process. (Correct answer)
- A screenshot of the build log.
- A leftover file from an old build.
Correct answer: A file produced by a successful build process.
In Continuous Integration, a 'build artifact' refers to the deployable output generated by a successful build process. This can include compiled code, executable files, libraries, archives (like JARs or WARs), or Docker images, which are then used for further testing or deployment to production environments.
Question 39: What is a 'blameless post-mortem' in DevOps culture?
- A disciplinary process after a production failure
- A report generated automatically by monitoring tools after downtime
- A meeting where team members accept responsibility for outages
- An incident review focused on systemic improvements rather than individual fault (Correct answer)
Correct answer: An incident review focused on systemic improvements rather than individual fault
A blameless post-mortem analyzes the root causes of an incident without assigning personal blame, fostering psychological safety and systemic learning.
Question 40: In Certified DevOps Practitioner, which project planning & deployment approach is MOST effective for achieving long-term goals?
- Strategic planning with measurable objectives and regular progress reviews (Correct answer)
- Delegating all decisions without oversight
- Focusing solely on short-term financial targets
- Reactive management that addresses issues as they arise
Correct answer: Strategic planning with measurable objectives and regular progress reviews
Strategic planning with measurable objectives and regular reviews provides direction, accountability, and the ability to adapt strategies based on progress.
Certified DevOps Practitioner (CDP) Exam
The Certified DevOps Practitioner certification validates an individual's understanding and practical application of DevOps principles, practices, and tools.
Exam Rules
- You can skip questions and return to them later
- Flag questions for review before submitting
- No feedback shown until you submit the entire exam
- Unanswered questions count as wrong — answer everything
- 10 pretest questions are mixed in and don't affect your score
- Timer auto-submits when time runs out
- Your progress is auto-saved every 30 seconds