On this page
The short answer
- The real exam: 75 questions in 180 min, passing at 750 / 1000, for $300.
- 5 sample questions below, from 5 of the exam’s 6 domains, each with its answer and why it’s right.
- They are original questions, written from AWS’s published outline. They aren’t copies of real exam questions, and we don’t publish those.
- For a score by domain, take the free 10-question practice test. Nothing to download: it runs in your browser.
The DOP-C02 exam at a glance
From our AWS DevOps Engineer Professional exam guide, which follows AWS’s own page and is checked every week. AWS hasn’t announced a retirement date for DOP-C02.
| AWS DevOps Engineer Professional (DOP-C02) | |
|---|---|
| Exam code | DOP-C02 |
| Level | Professional |
| Written for | DevOps or Platform Engineer |
| Questions | 75 |
| Time | 180 min |
| Passing score | 750 / 1000 |
| Cost | $300 |
| Recommended experience | 2+ years provisioning and operating AWS |
What the exam covers
The exam has 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%). SDLC Automation is the largest, at 22%, so it deserves the largest share of your study time.
The sample questions below start with one from each domain in turn, so you can see how each is asked.
5 sample questions, with answers
Answer each one before you open its answer. If you get it right for the wrong reason, count it as wrong: the explanation matters more than the letter.
Question 1 · SDLC Automation
A team deploys a new Lambda version and wants 10% of traffic sent to it for 10 minutes, with an automatic rollback if a CloudWatch alarm fires. What should it use?
- AA CloudFormation stack update with no policy
- BAmazon Route 53 weighted records
- CLambda reserved concurrency
- DAWS CodeDeploy with a canary deployment configuration
Show the answer
D. AWS CodeDeploy with a canary deployment configuration
CodeDeploy shifts traffic between Lambda alias versions, for example LambdaCanary10Percent10Minutes, and rolls back on alarms. A plain stack update shifts everything at once, weighted DNS doesn’t apply to Lambda aliases, and reserved concurrency limits scaling.
Question 2 · Configuration Management and IaC
A CloudFormation stack update must never replace or delete the production database. What prevents it?
- AA stack policy, plus DeletionPolicy: Retain
- BRunning drift detection after each update
- CTermination protection on the stack only
- DA production tag on the database
Show the answer
A. A stack policy, plus DeletionPolicy: Retain
A stack policy can deny updates that would replace the database, and DeletionPolicy: Retain keeps it if it’s removed from the template. Drift detection reports changes after the fact, termination protection stops deleting the whole stack, and tags block nothing.
Question 3 · Resilient Cloud Solutions
An Auto Scaling group behind an Application Load Balancer keeps instances that pass EC2 status checks but return HTTP 500 errors. How can the group replace them automatically?
- ATurn on ELB health checks for the group
- BAdd more instances to the group
- CAdd a scheduled scaling action
- DEnable detailed EC2 monitoring
Show the answer
A. Turn on ELB health checks for the group
By default the group uses EC2 status checks only. With Elastic Load Balancing health checks on, it also replaces instances the load balancer marks unhealthy. More instances, schedules and detailed metrics don’t remove the broken ones.
Question 4 · Monitoring and Logging
Application logs in CloudWatch Logs contain the word ERROR. The team wants an alarm when more than 10 appear in five minutes. What should it create?
- AA CloudTrail trail with data events
- BAn AWS Config custom rule
- CA metric filter with a CloudWatch alarm
- DA VPC Flow Log on the subnet
Show the answer
C. A metric filter with a CloudWatch alarm
A metric filter on the log group turns matching lines into a CloudWatch metric, and an alarm watches it. CloudTrail records API calls, Config records resource settings, and flow logs record network traffic.
Question 5 · Incident and Event Response
When an EC2 instance enters the stopped state, a Lambda function must run and notify the team. What should trigger it?
- AAn EventBridge rule for EC2 state changes
- BA CloudWatch Logs subscription filter
- CAn S3 event notification on a bucket
- DAn SQS dead-letter queue
Show the answer
A. An EventBridge rule for EC2 state changes
EC2 sends instance state-change events to EventBridge, and a rule can match stopped and invoke Lambda. Subscription filters stream logs, S3 notifications cover bucket events, and a dead-letter queue holds failed messages.
How to use practice questions
Test before you study. A short test at the start shows which domains you already know, so you don’t spend a week on them.
Read every explanation, including the ones for questions you got right. Most exam questions turn on one detail in the scenario, and the explanation names it.
Then go full length. A few questions check your understanding; they don’t tell you whether you can hold your attention for 180 min. Before you book, sit full, timed practice exams until you pass them comfortably more than once.
Practice exams, downloads and dumps
You don’t need to download anything to practice. Our practice test is free and runs in the browser, on a phone or a computer.
Dumps are a different thing: collections sold or shared as the “real” exam questions. We don’t publish or link to them. They are taken from the exam in breach of the agreement every candidate accepts, they go out of date when AWS refreshes its questions, and nobody stands behind their answers.
There is also a plainer reason. An exam is a sample of what the job needs. If you memorize the sample, you pass without the knowledge, and the first week of work shows it.
What to do next
Take the practice test, note your weakest domain, and build your study time around it.