DOP-C02 practice exam: AWS Certified DevOps Engineer Professional
Professional certification
DevOps Engineer Professional joins automation to operations: pipelines, infrastructure as code, and incident response. Answers usually turn on what is automatable and what is recoverable.
The DOP-C02 exam at a glance
- Questions
- 75
- 65 scored, 10 unscored
- Time
- 180 min
- about 2.4 minutes a question
- Pass mark
- 750/1000
- scaled score, not a percentage
- Domains
- 6
- heaviest is 22% of the paper
AWS reports a scaled score from 100 to 1000 and you pass at 750. It is not a percentage of questions answered correctly. The scale accounts for question difficulty, so there is no fixed number of right answers that guarantees it.
10 of the 75 questions are unscored trial questions and you cannot tell which. Answer all of them as if they count, and treat any practice percentage as an indicator rather than a prediction.
DOP-C02 exam domains and weightings
SDLC Automation
22% · about 14 questionsPipelines end to end, from source through build and test to deploy, with the artefact promotion and approval gates between them.
Configuration Management and IaC
17% · about 11 questionsDefining and drift-checking infrastructure as code, managing configuration and secrets, and reusing stacks across accounts.
Resilient Cloud Solutions
15% · about 10 questionsDeployment strategies that fail safely, multi-Region patterns, and automated rollback driven by real signals.
Monitoring and Logging
15% · about 10 questionsCollecting metrics, logs and traces across accounts, and turning them into alarms that mean something.
Incident and Event Response
14% · about 9 questionsDetecting an event, routing it, and responding automatically: event buses, runbooks and root-cause analysis after the fact.
Security and Compliance
17% · about 11 questionsSecuring the pipeline itself, enforcing compliance as code, and auditing what changed, when and by whom.
What DOP-C02 questions are like
Joining automation to operations. Answers usually turn on what is automatable, what is observable, and what is recoverable without a human in the loop.
Multi-constraint scenarios across pipelines, IaC and incident response, with a fair number of multiple-response items. Expect to be asked for the MOST automated or LEAST operational-overhead option.
How to tell you are ready
You can design a pipeline with an automated rollback, explain how you would detect the failure that triggers it, and hold above 75% across all six domains.
Free DOP-C02 practice questions
Real questions from the Knowza DOP-C02 bank, in exam format. Pick an answer, then open the explanation.
Question 1 · SDLC Automation
A company uses AWS CodeBuild to compile applications from source code stored in AWS CodeCommit. The build process requires access to proprietary libraries stored in a private Artifactory repository that requires authentication. The authentication credentials must be rotated monthly and securely accessed by CodeBuild without hardcoding them in buildspec files. Which solution meets these requirements?
- AStore the Artifactory credentials in AWS Secrets Manager with automatic rotation enabled. Grant the CodeBuild service role permission to retrieve the secret. Reference the secret in the buildspec file using the secrets-manager parameter in the env section.
- BStore credentials in an S3 bucket encrypted with AWS KMS. Configure the CodeBuild project to download credentials during the install phase of the build. Set up S3 event notifications to trigger a Lambda function that rotates credentials monthly.
- CStore the Artifactory credentials in AWS Systems Manager Parameter Store as SecureString parameters. Create a Lambda function that rotates credentials monthly. Reference the parameters in the buildspec file using parameter-store in the env section.
- DCreate environment variables in the CodeBuild project configuration with the Artifactory credentials marked as sensitive. Set up a monthly schedule in Amazon EventBridge to trigger a Lambda function that updates the environment variables.
Show answer and explanation
Answer: A. AWS Secrets Manager is the recommended service for storing, rotating, and retrieving application secrets like API keys and database credentials. It integrates natively with CodeBuild, provides automatic rotation, and maintains audit trails of secret access through CloudTrail, making it ideal for managing build-time credentials.
- A is correct: This is the correct solution. Secrets Manager provides secure storage, automatic rotation, and fine-grained access control. CodeBuild natively supports retrieving secrets from Secrets Manager using the secrets-manager parameter in buildspec env section, making credentials available as environment variables during build execution without exposing them in logs.
- B is wrong: Storing credentials in S3 is not a best practice even with encryption. S3 is not designed for secrets management and lacks features like automatic rotation, versioning of secrets, and audit logging specific to credential access. This approach is unnecessarily complex and less secure than using purpose-built secrets management services.
- C is wrong: While Parameter Store can store credentials securely and CodeBuild can reference them, Parameter Store does not have built-in automatic rotation capabilities like Secrets Manager. Implementing custom rotation with Lambda adds operational complexity when Secrets Manager provides this functionality natively.
- D is wrong: While CodeBuild environment variables can be marked as sensitive, they are stored in the CodeBuild project configuration and not in a dedicated secrets management service. This approach lacks the security features, audit capabilities, and rotation mechanisms provided by Secrets Manager. Manual updates via Lambda introduce operational overhead.
AWS docs: build-spec-ref, intro
Question 2 · Configuration Management and IaC
A company uses AWS Config to monitor resource compliance across multiple AWS accounts. The compliance team needs to implement custom rules that check for specific organizational security standards not covered by AWS managed rules. The custom rules should evaluate resources in near real-time when configuration changes occur and also perform periodic evaluations. Which approach should be implemented?
- ADeploy AWS Config conformance packs with custom rule templates written in YAML. Use AWS CloudFormation Guard to define the custom compliance logic. Configure the conformance packs to evaluate resources when changes are detected and on a daily schedule.
- BUse AWS Systems Manager State Manager to define custom compliance checks using SSM documents. Configure State Manager associations to run on configuration changes by integrating with AWS Config change notifications. Create scheduled associations for periodic evaluation and use SSM Compliance to report results.
- CCreate AWS Config custom rules using Lambda functions as the rule evaluator. Configure the rule trigger type as configuration changes for real-time evaluation and add a periodic trigger with the maximum frequency. The Lambda function should use the put_evaluations API to report compliance status back to AWS Config.
- DCreate EventBridge rules that capture AWS Config configuration change notifications. Use EventBridge to invoke Lambda functions that evaluate the resources against custom compliance requirements. Store compliance results in DynamoDB and create a separate Lambda function to query DynamoDB periodically and report results to Config using the AWS SDK.
Show answer and explanation
Answer: C. AWS Config custom rules with Lambda functions provide the flexibility to implement any compliance logic while integrating seamlessly with Config's compliance framework. They support both configuration change triggers for near real-time evaluation and periodic triggers for scheduled checks. Lambda functions report results using the put_evaluations API, which integrates with Config's compliance dashboard, aggregation, and remediation features.
- A is wrong: Conformance packs are for deploying collections of Config rules but don't support CloudFormation Guard for custom logic. Guard is used for CloudFormation template validation, not Config rule evaluation. Conformance packs can include custom rules, but those custom rules still need Lambda functions for logic. This solution misunderstands the role of conformance packs and Guard.
- B is wrong: State Manager and SSM Compliance are designed for instance-level compliance (patch compliance, configuration management), not for AWS resource configuration compliance like AWS Config provides. State Manager doesn't integrate directly with Config's compliance framework. This solution uses the wrong service for AWS resource compliance monitoring.
- C is correct: This is the correct approach. AWS Config custom rules using Lambda support both configuration change triggers (for near real-time evaluation) and periodic triggers (for scheduled evaluation). The put_evaluations API is the standard method for Lambda functions to report compliance results back to Config. This provides both trigger types required and allows custom compliance logic.
- D is wrong: This approach adds unnecessary complexity by building custom infrastructure outside of Config's native features. While it would work, it duplicates functionality that Config custom rules already provide. Config custom rules with Lambda are the purpose-built solution for this requirement and don't require external state management or separate periodic execution logic.
AWS docs: evaluate-config_develop-rules, evaluate-config_develop-rules_lambda-functions
Practise DOP-C02 on Knowza
- Timed practice exams. 75 questions in 180 minutes, weighted by domain the way AWS weights them and written from official AWS documentation.
- Untimed practice mode. A full explanation after every question: why the right answer is right and why each wrong one is wrong.
- Design challenges. A real brief with hard constraints. You choose the services and justify each decision, then we run a failure simulation over what you built.
- A study plan. Your weakest domains ranked by how much of the exam they are worth, with what to practise and read next.
DOP-C02 questions people ask
- How many questions are on the DOP-C02 exam?
- 75 questions. 65 are scored and 10 are unscored trial questions that look the same as the rest.
- How long is the DOP-C02 exam?
- 180 minutes, which is about 2.4 minutes a question.
- What is the passing score for DOP-C02?
- AWS reports a scaled score from 100 to 1000 and you pass at 750. It is not a percentage of questions answered correctly. The scale accounts for question difficulty, so there is no fixed number of right answers that guarantees it.
- What are the DOP-C02 exam domains?
- 6 domains: SDLC Automation (22%), Configuration Management and IaC (17%), Resilient Cloud Solutions (15%), Monitoring and Logging (15%), Incident and Event Response (14%), Security and Compliance (17%). The heaviest is SDLC Automation.
- How can I practise for DOP-C02?
- Knowza has timed DOP-C02 practice exams in the real format, weighted by domain the way AWS weights them, plus an untimed practice mode that explains every answer. The first 10 questions are free.
Price, booking and retake rules vary by region. Check the official AWS DOP-C02 page.