# AWS DevOps Professional DOP-C02 practice exams

> DOP-C02 practice exams: 365 questions in 5 timed tests covering SDLC Automation. Every answer explained, with a score for each domain.

Page: https://devopscodelab.com/exams/aws-dop-c02/

365 questions in 5 timed practice tests. Each test has about 75 questions and a 180-minute limit. The pass mark is 75%. Results are split across the 6 exam domains.

## Exam at a glance

| Setting | Value |
| --- | --- |
| Practice tests | 5 |
| Questions in total | 365 |
| Questions per test | About 75 |
| Time limit per test | 180 minutes |
| Pass mark | 75% |
| Question types | Single answer and multiple answer (24 multiple-answer questions) |
| Level | Professional |
| Category | DevOps & Cloud Native |

These are the settings of our practice tests. Check the official AWS exam page for the current format before you book.

## Domains and weights

| Domain | Weight | Questions in our bank |
| --- | --- | --- |
| SDLC Automation | 22% | 80 |
| Configuration Management and IaC | 17% | 62 |
| Resilient Cloud Solutions | 15% | 54 |
| Monitoring and Logging | 15% | 55 |
| Incident and Event Response | 14% | 52 |
| Security and Compliance | 17% | 62 |

## Price and access

- DOP-C02 practice exams: $14.99 for 12 months of access.
- Free mini exam: 15 questions with explanations (free account): https://devopscodelab.com/app/exams/aws-dop-c02/mini/
- All-Access subscription includes every exam: https://devopscodelab.com/pricing/
- 10 free questions with answers: https://devopscodelab.com/exams/aws-dop-c02/free-practice-questions/

## Sample questions

### Question 1 of 3

A company wants to roll out a new recommendation feature gradually to 5 percent of users and then increase exposure over two days. The feature must be turned off within seconds without a code deployment if the conversion-rate CloudWatch alarm fires. Which solution meets these requirements?

- A. Use a CodeDeploy linear deployment of a new Lambda version that contains the feature, with the conversion-rate alarm configured for automatic rollback
- B. Create two Elastic Beanstalk environments, one with the feature, and shift 5 percent of DNS traffic to it with Route 53 weighted records
- C. Store the flag in Parameter Store and have the application poll it every 5 minutes, with an alarm action that sets the flag to off
- D. Store a feature flag in AWS AppConfig, roll it out with a linear deployment strategy, and add the alarm as a rollback monitor

**Answer:** D

**Explanation:** AppConfig feature flags separate feature exposure from code deployment, deployment strategies control the rollout rate, and alarm monitors roll back the configuration automatically within seconds. A CodeDeploy linear deployment requires a code deployment and rolls back the whole version rather than one feature. Parameter Store polling every 5 minutes cannot turn the feature off within seconds and offers no gradual rollout, and DNS weighting is coarse and slow to revert due to caching.

### Question 2 of 3

A company runs an AWS Elastic Beanstalk environment with 10 instances. Each deployment must run a database migration command exactly once, and a custom script must run on every instance after the application is deployed to warm local caches. Where should these be defined?

- A. Use a leader_only container_commands entry for the migration and a .platform/hooks/postdeploy script for cache warming
- B. Run both scripts in .platform/hooks/predeploy so that they execute on the instances before the new application version starts
- C. Run the migration from a CodeBuild action before deployment, and place the cache-warming script in .platform/hooks/prebuild
- D. Run both the migration and the cache-warming script as .ebextensions commands entries so that they run on each instance during deployment

**Answer:** A

**Explanation:** container_commands with leader_only run on a single instance per deployment, which suits one-time migrations, and postdeploy platform hooks run on every instance after deployment completes. Commands entries run on every instance before the application is extracted, so the migration would run 10 times. A prebuild hook runs before the application is deployed, so caches would warm against the old version, and predeploy runs on all instances before the app starts.

### Question 3 of 3

A company uses AWS Control Tower and must prevent any account in the Sandbox OU from creating resources outside us-east-1 and eu-west-1, detect S3 buckets without versioning in the Production OU, and block CloudFormation from provisioning unencrypted EBS volumes in the Production OU. Which combination of control types should be enabled?

- A. Detective controls for all three requirements, with AWS Config remediation to correct the noncompliant resources
- B. Proactive controls for all three requirements, so that every check runs before resources are provisioned
- C. Preventive for the Region restriction, detective for S3 versioning, and proactive for EBS encryption
- D. A preventive control for the Region restriction and detective controls for both S3 versioning and EBS encryption

**Answer:** C

**Explanation:** Preventive controls are implemented with SCPs or RCPs and block disallowed actions such as using other Regions, detective controls use AWS Config rules to find noncompliant resources, and proactive controls use CloudFormation Hooks to block noncompliant resources before provisioning. Detective controls alone do not prevent anything. Proactive controls apply only to CloudFormation provisioning and cannot restrict Regions, and a detective control for EBS does not block provisioning.


## Study plans

### Two weeks

1. Day 1: take practice test 1 in exam mode to get a baseline.
2. Days 2 to 5: domain mode on SDLC Automation and Configuration Management and IaC, the two most heavily weighted domains.
3. Day 6: practice test 2 in exam mode, then the mistakes quiz.
4. Days 7 to 12: practice tests 3 to 5, one every other day, each followed by its mistakes quiz.
5. Days 13 and 14: final mode. Book the exam when your readiness stays above the pass mark.

### Four weeks

1. Week 1: one practice test in practice mode, reading every explanation. Note your two lowest domains.
2. Week 2: domain mode on those two domains, then a second practice test in exam mode.
3. Week 3: practice tests 3 and 4 in exam mode, with the mistakes and flagged quizzes after each.
4. Week 4: practice test 5 and final mode until your readiness holds above the pass mark.

## Questions about the DOP-C02 practice exams

**Are these real DOP-C02 exam questions?**

No. We write every question ourselves and map it to the published DOP-C02 exam objectives. We do not use leaked or recalled questions.

**Do the time limit and pass mark match the official exam?**

They match the settings of our practice tests. Exam providers change their format from time to time, so check the official exam page before you book.

**Can I try it before I pay?**

Yes. The free mini exam has 15 questions with full explanations and needs no account.

**How long do I keep access?**

A single-exam purchase gives you 12 months of access. All-Access includes this exam for as long as your subscription runs.

**What happens after I finish a test?**

You get a score, a pass or fail against the pass mark, a score per domain and every answer with its explanation.

Last updated November 2026.

DevOpsCode Lab is not affiliated with AWS. DOP-C02 and related names are trademarks of their owners. We write every question ourselves; these are not real exam questions.
