Certified DevOps Practitioner (CDP) Exam — Questions and Answers
Question 1: Which command is used to scale a Kubernetes Deployment to 5 replicas using kubectl?
- kubectl set replicas deployment <name> 5
- kubectl resize deployment <name> --count=5
- kubectl scale deployment <name> --replicas=5 (Correct answer)
- kubectl update deployment <name> --replicas=5
Correct answer: kubectl scale deployment <name> --replicas=5
The `kubectl scale` command adjusts the number of replicas for a deployment, replicaset, or statefulset.
Question 2: Which principle promotes openness and honesty in DevOps culture?
- Penalty-based performance tracking
- Blameless postmortems (Correct answer)
- Isolated teams
- Strict reporting hierarchies
Correct answer: Blameless postmortems
Blameless postmortems are a core principle in DevOps that promotes openness and honesty by focusing on systemic improvements rather than individual blame after an incident. This approach encourages teams to openly discuss failures, learn from them, and implement preventative measures without fear of retribution, fostering a culture of continuous learning and psychological safety.
Question 3: What is the MOST effective way to stay current with developments in implementation & configuration for Certified DevOps Practitioner?
- Relying on experience gained early in career
- Following a single expert opinions
- Participating in professional development, industry events, and peer collaboration (Correct answer)
- Reading only internal communications
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 4: What does 'infrastructure immutability' mean in modern DevOps practices?
- Infrastructure is provisioned once and never scaled
- Servers are never modified in place; instead, new instances replace old ones (Correct answer)
- Infrastructure configurations are stored in read-only files
- Only operations teams are allowed to change infrastructure
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 5: 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
- An incident review focused on systemic improvements rather than individual fault (Correct answer)
- A meeting where team members accept responsibility for outages
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 6: How often should performance monitoring & optimization metrics be reviewed in Certified DevOps Practitioner?
- Regularly at defined intervals with additional reviews triggered by significant events (Correct answer)
- When external audits are scheduled
- Only during annual performance reviews
- When problems are reported
Correct answer: Regularly at defined intervals with additional reviews triggered by significant events
Regular scheduled reviews ensure ongoing monitoring while event-triggered reviews capture the impact of significant changes.
Question 7: 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 8: Which DevOps practice involves automating the entire software release process from code commit to production?
- Continuous Integration (CI)
- Continuous Delivery (CD) (Correct answer)
- Test-Driven Development (TDD)
- Continuous Monitoring
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 9: Which metric measures the frequency at which an organization successfully deploys to production?
- Deployment Frequency (Correct answer)
- Change Failure Rate
- Mean Time to Recovery (MTTR)
- Lead Time for Changes
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 10: Which Kubernetes object is used to ensure a specified number of pod replicas are running at any given time?
- ReplicaSet (Correct answer)
- DaemonSet
- StatefulSet
- Job
Correct answer: ReplicaSet
A ReplicaSet maintains a stable set of replica pods running at any given time to guarantee pod availability.
Question 11: Which of the following is a collaborative practice for managing code changes in DevOps?
- Pull requests (Correct answer)
- Sharing USB drives
- Manual file transfers
- Emailing code snippets
Correct answer: Pull requests
Pull requests (or merge requests) are a collaborative practice for managing code changes in DevOps, typically used with version control systems like Git. They allow developers to propose changes, discuss them with teammates, and get feedback before merging their code into the main branch, ensuring code quality and team alignment.
Question 12: What is the function of a monitoring dashboard in DevOps operations?
- To disable application features.
- To randomly reboot servers.
- To display logs only from the past month.
- To visualize and monitor system metrics in real-time. (Correct answer)
Correct answer: To visualize and monitor system metrics in real-time.
A monitoring dashboard in DevOps operations serves as a centralized interface to visualize and monitor key system metrics, logs, and alerts in real-time. It provides a quick, at-a-glance overview of the health, performance, and status of applications and infrastructure. This enables operations teams to quickly identify trends, detect anomalies, and make informed decisions.
Question 13: Which factor BEST indicates mastery of troubleshooting & problem resolution in Certified DevOps Practitioner?
- Speed of task completion
- Number of certifications held
- Years of experience in a single setting
- The ability to adapt knowledge and skills to varying contexts while maintaining standards (Correct answer)
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 14: What is the PRIMARY objective of security & access control within the Certified DevOps Practitioner profession?
- To create additional requirements for practitioners
- To ensure quality outcomes through standardized practices and continuous improvement (Correct answer)
- To limit the scope of professional activities
- To maintain the status quo without change
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 15: Which DevOps concept involves progressively routing a small percentage of production traffic to a new version before a full rollout?
- Canary deployment (Correct answer)
- Feature flag
- Blue-green deployment
- Rolling update
Correct answer: Canary deployment
A canary deployment sends a small fraction of real traffic to the new version to validate it before gradually increasing the rollout.
Question 16: Which Agile framework organizes work into fixed-length iterations called sprints, typically 1-4 weeks?
- Kanban
- SAFe
- Extreme Programming (XP)
- Scrum (Correct answer)
Correct answer: Scrum
Scrum uses time-boxed sprints with defined ceremonies (planning, daily standup, review, retrospective) to deliver incremental value.
Question 17: Which of the following tools is widely used for instant team messaging in DevOps collaboration?
- Excel
- AutoCAD
- Slack (Correct answer)
- Photoshop
Correct answer: Slack
Slack is a widely used communication platform that facilitates instant messaging, file sharing, and organized conversations within teams, making it invaluable for real-time collaboration in DevOps. Its channels, integrations, and search capabilities help teams communicate efficiently and keep discussions focused on specific projects or issues.
Question 18: Which Agile metric measures the amount of work a team completes during a single sprint?
- Cycle time
- Throughput
- Lead time
- Velocity (Correct answer)
Correct answer: Velocity
Velocity measures the total story points or work units completed in a sprint, helping teams forecast future capacity.
Question 19: Which practice in DevOps involves deliberately injecting failures into a system to test its resilience?
- Disaster recovery testing
- Load testing
- Penetration testing
- Chaos engineering (Correct answer)
Correct answer: Chaos engineering
Chaos engineering, popularized by Netflix's Chaos Monkey, proactively introduces failures to discover weaknesses before they cause real outages.
Question 20: What is the goal of chaos engineering in a DevOps quality assurance strategy?
- To disable monitoring to see if systems self-heal
- To test the chaos of concurrent user sessions
- To proactively inject failures to identify weaknesses in system resilience before they cause outages (Correct answer)
- To randomly deploy broken code to catch bugs
Correct answer: To proactively inject failures to identify weaknesses in system resilience before they cause outages
Chaos engineering deliberately introduces failures (network latency, pod kills, disk failures) in controlled conditions to discover weaknesses before they manifest as real incidents.
Question 21: Which factor MOST impacts the usefulness of documentation & best practices outputs in Certified DevOps Practitioner?
- Volume of data collected
- Timeliness, accuracy, and relevance to the intended audience (Correct answer)
- Complexity of the analysis
- Format and visual presentation only
Correct answer: Timeliness, accuracy, and relevance to the intended audience
Information is most useful when it is timely, accurate, and relevant to the needs of the people who will use it.
Question 22: What is log aggregation in a monitoring and logging setup?
- Upgrading application frameworks.
- Archiving old system backups.
- Collecting logs from multiple sources into a central system. (Correct answer)
- Running performance benchmarks.
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 23: What is the PRIMARY benefit of continuous improvement in data management & integration for Certified DevOps Practitioner?
- Higher operational costs in the short term
- Reduced need for employee input
- Increased complexity in operations
- Enhanced efficiency, quality, and competitive advantage over time (Correct answer)
Correct answer: Enhanced efficiency, quality, and competitive advantage over time
Continuous improvement systematically enhances efficiency and quality, leading to sustained competitive advantage.
Question 24: What is the main benefit of running automated tests in parallel during a CI pipeline?
- Increases code coverage automatically
- Reduces the number of test cases needed
- Eliminates the need for integration tests
- Shortens overall pipeline execution time (Correct answer)
Correct answer: Shortens overall pipeline execution time
Parallel test execution distributes the test suite across multiple runners simultaneously, significantly reducing total pipeline run time and enabling faster feedback.
Question 25: Which practice encourages team ownership and transparency in DevOps workflows?
- Assigning blame for failures.
- Shared ownership of code and deployments. (Correct answer)
- Avoiding cross-functional meetings.
- Silently fixing issues.
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 26: What is the main benefit of using an artifact repository such as Nexus or Artifactory?
- Managing user access to cloud infrastructure
- Replacing source control for code storage
- Monitoring application performance in production
- Centralizing versioned build artifacts for consistent deployments (Correct answer)
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 27: What is the role of data in performance monitoring & optimization programs for Certified DevOps Practitioner?
- Data is only needed for external reporting
- Data complicates the improvement process
- Data is collected but rarely analyzed
- 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 28: What is 'psychological safety' in the context of high-performing DevOps teams?
- A team environment where members feel safe to speak up, take risks, and report failures without fear (Correct answer)
- A testing practice where developers safely simulate production failures
- A security protocol for protecting developer credentials
- An HR policy governing workplace mental health resources
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 29: What is a 'test double' in the context of unit testing?
- Running the same test twice to verify consistency
- A generic term for objects that stand in for real dependencies (mocks, stubs, fakes) during testing (Correct answer)
- A backup test suite used when the primary suite fails
- Doubling the number of assertions per test case
Correct answer: A generic term for objects that stand in for real dependencies (mocks, stubs, fakes) during testing
Test doubles are substitutes for real dependencies—mocks, stubs, spies, and fakes—used to isolate the unit under test from external systems.
Question 30: When facing an unfamiliar challenge in implementation & configuration within Certified DevOps Practitioner, what is the BEST approach?
- Research established best practices, consult colleagues, and document the approach (Correct answer)
- Avoid the challenge if possible
- Attempt to resolve it independently without consultation
- Apply the most familiar technique regardless of suitability
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 31: What is the PRIMARY benefit of standardizing system architecture & design practices in Certified DevOps Practitioner?
- Consistency, easier maintenance, and improved collaboration among team members (Correct answer)
- Increasing dependency on specific vendors
- Limiting innovation and creativity
- Reducing the number of tools available
Correct answer: Consistency, easier maintenance, and improved collaboration among team members
Standardization promotes consistency across the organization, simplifies maintenance, and enables better collaboration between team members.
Question 32: What is a major benefit of integrating CI tools with version control systems like Git?
- It slows down code reviews.
- It deletes old branches.
- It enables automatic builds on code changes. (Correct answer)
- It reduces the need for version control.
Correct answer: It enables automatic builds on code changes.
A major benefit of integrating Continuous Integration (CI) tools with version control systems like Git is that it enables automatic builds on code changes. Whenever a developer commits new code, the CI system automatically detects the change, pulls the latest code, and initiates a build and test process, providing immediate feedback.
Question 33: Which characteristic BEST describes a successful performance monitoring & optimization culture in Certified DevOps Practitioner?
- Focus on compliance over genuine improvement
- Periodic campaigns without sustained effort
- Top-down directives without employee input
- Continuous learning where all team members actively seek improvement (Correct answer)
Correct answer: Continuous learning where all team members actively seek improvement
A culture where all team members actively seek improvement opportunities creates sustainable quality enhancement across the organization.
Question 34: What is the main goal of 'trunk-based development' in a DevOps workflow?
- Each developer maintains a long-lived feature branch until fully complete
- Developers commit small, frequent changes directly to the main branch to reduce merge conflicts (Correct answer)
- All code changes are reviewed in a separate integration branch before merging
- The main branch is reserved exclusively for production-ready releases
Correct answer: Developers commit small, frequent changes directly to the main branch to reduce merge conflicts
Trunk-based development keeps all developers working on a single shared branch with short-lived feature branches, minimizing integration pain and enabling CI.
Question 35: In Certified DevOps Practitioner, which data management & integration approach is MOST effective for achieving long-term goals?
- Focusing solely on short-term financial targets
- Strategic planning with measurable objectives and regular progress reviews (Correct answer)
- Reactive management that addresses issues as they arise
- Delegating all decisions without oversight
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.
Question 36: Which approach to system architecture & design security is MOST effective in Certified DevOps Practitioner?
- A single strong firewall without additional measures
- Addressing security only after a breach occurs
- Defense in depth with multiple layers of protection and regular audits (Correct answer)
- Security through obscurity alone
Correct answer: Defense in depth with multiple layers of protection and regular audits
Defense in depth provides multiple layers of protection, so if one layer is compromised, others continue to provide security.
Question 37: What is the purpose of a 'Definition of Done' (DoD) in Agile DevOps teams?
- A shared checklist of criteria that must be met before a work item is considered complete (Correct answer)
- A deployment checklist for releasing software to production
- A contract between the team and product owner defining deliverables
- A document listing all user stories in the backlog
Correct answer: A shared checklist of criteria that must be met before a work item is considered complete
The Definition of Done is a shared agreement on all conditions — coding, testing, documentation — that must be satisfied before a story is marked complete.
Question 38: Which Kubernetes object should you use to manage stateful applications requiring stable storage and network identity?
- StatefulSet (Correct answer)
- CronJob
- ReplicaSet
- Deployment
Correct answer: StatefulSet
StatefulSets maintain a sticky identity for each pod and are designed for stateful applications that require stable, persistent storage.
Question 39: Which Kubernetes resource allows you to expose a set of pods as a network service with a stable DNS name?
- Endpoint
- Service (Correct answer)
- NetworkPolicy
- Ingress
Correct answer: Service
A Kubernetes Service provides a stable IP address and DNS name that abstracts access to a dynamic set of pods.
Question 40: 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
- Industry averages without internal benchmarks
- Personal opinion of experienced practitioners
Correct answer: Clearly defined standards and measurable criteria
Clearly defined standards and measurable criteria provide an objective foundation for assessing and improving quality.
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
These practice questions were written with AI tools. They are not real exam questions. Exam facts are checked against the official sources listed below. Not reviewed by a subject-matter expert. Editorial policy
Sources & references
Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy
- gsdcouncil.org — Eligibility, fees, exam format, passing score, renewal, retake policy, time limit, score validity, test delivery, score release · verified Oct 2026