CoStudy

HomeCertifications › AWS Certified DevOps Engineer — Professional (DOP-C02)

AWS Certified DevOps Engineer — Professional (DOP-C02) practice questions and exam guide

150 multiple-choice questions, 120 flashcards and 10 scenario simulations, organised into 6 chapters, written to the AWS Certified DevOps Engineer blueprint. Every question carries a full rationale.

Written and maintained by Nick Burton · last updated 2026-08-22 · how we write and review questions

Study AWS Certified DevOps Engineer — Professional (DOP-C02) in CoStudy →

About the AWS Certified DevOps Engineer — Professional (DOP-C02) exam

AWS Certified DevOps Engineer — Professional (DOP-C02) Exam Guide (public, aws.amazon.com) — 6 content domains: 1) SDLC Automation (22%) — CI/CD, build/test/deploy, source control, 2) Configuration Management and IaC (17%) — CloudFormation, CDK, Systems Manager, 3) Resilient Cloud Solutions (15%) — multi-region, fault tolerance, 4) Monitoring and Logging (15%) — CloudWatch, X-Ray, observability, 5) Incident and Event Response (14%) — automated remediation, escalation, 6) Security and Compliance (17%) — guardrails, secrets, audit. MCQs reference public AWS docs.

CoStudy's AWS Certified DevOps Engineer — Professional (DOP-C02) bank holds 280 items organised into 6 chapters that follow the published blueprint. Every multiple-choice question carries a written rationale explaining why the correct answer is correct and why each distractor is tempting but wrong, and the bank includes 10 scenario-based simulations.

What the AWS Certified DevOps Engineer DOP-C02 bank covers

Each chapter follows a domain of the published exam outline. Practise one on its own:

Free AWS Certified DevOps Engineer — Professional (DOP-C02) practice questions

A sample of 12 multiple-choice questions from the bank, with the full rationale shown.

SDLC Automation

A CodeBuild project compiles a Java app and runs a 12-minute test suite. The team wants to share a 4 GB Gradle dependency cache across builds and concurrent runs to cut build time. Which cache configuration BEST fits?

  1. S3 cache with paths pointing at the Gradle cache directory
  2. It fails closed when any dependent AWS service is degraded
  3. It cannot integrate with AWS Systems Manager runbooks here
  4. It is a container-only feature not supported on serverless

Answer: A — S3 cache with paths pointing at the Gradle cache directory

Local cache is per-host and lost when the host recycles. S3 cache persists and is shared across concurrent builds. DOCKER_LAYER_CACHE is for Docker layers. CUSTOM_CACHE is local-host only.

A CodePipeline deploys CloudFormation. A change to a NAT Gateway subnet inadvertently replaces the NAT and drops production traffic for 4 minutes. The team wants to catch replacements BEFORE they happen. Which change BEST prevents recurrence?

  1. Switch the deploy action to use a change set with replacement detection and require manual approval before execution when a replacement is detected
  2. Enable CloudTrail data events on the NAT Gateway to log the change after it happens
  3. Add an S3 lifecycle rule that prevents accidental object deletion
  4. Configure the pipeline to run entirely on Fargate to avoid EC2-related NAT issues

Answer: A — Switch the deploy action to use a change set with replacement detection and require manual approval before execution when a replacement is detected

Change sets surface resource replacements before execute. Pairing with manual approval blocks the destructive change. B detects post-incident. C prevents stack delete, not resource replacement. D doesn't change replacement semantics.

Configuration Management and Infrastructure as Code

A CDK app needs to generate an IAM policy whose actions depend on a config file processed at synth time. Which construct/pattern is MOST appropriate?

  1. It only functions when all resources are in a single AZ zone
  2. It writes findings to S3 only and cannot notify EventBridge for th
  3. Read the config in TypeScript and pass values into PolicyStatement
  4. It runs exclusively on Fargate and cannot target EC2 fleets for th

Answer: C — Read the config in TypeScript and pass values into PolicyStatement

CDK is code — synth-time config is just programmatic input. B is for cross-cutting concerns (e.g., tag enforcement). A introduces a macro for no reason. D runs at deploy, not synth.

A team's SAM template defines an API Gateway + Lambda. Local testing with 'sam local invoke' works, but deploy fails with 'Transform AWS::Serverless-2016-10-31 not supported'. What is the FIX?

  1. Run 'sam build' then 'sam deploy --guided', which packages the template (resolving the Transform) before invoking CloudFormation
  2. Switch the API Gateway resource to a plain CloudFormation resource instead of SAM
  3. Add a Transform override flag to 'aws cloudformation deploy' to skip packaging
  4. Deploy directly with 'aws cloudformation create-stack' using the unpackaged SAM template

Answer: A — Run 'sam build' then 'sam deploy --guided', which packages the template (resolving the Transform) before invoking CloudFormation

SAM templates require the Transform header; sam deploy handles it. Direct 'aws cloudformation deploy' on a SAM template without packaging will fail. B/C/D miss the point.

Resilient Cloud Solutions

A team wants RTO of 5 minutes and RPO of 1 minute for a transactional Postgres workload across two regions. Which architecture is BEST?

  1. Standard RDS Multi-AZ within a single region with automated backups
  2. Aurora Global Database with managed cross-region replication (typically sub-second replica lag) and managed failover for fast RTO
  3. Nightly cross-region snapshot copies with manual restore on failure
  4. A read replica in a second region promoted manually after an outage is confirmed

Answer: B — Aurora Global Database with managed cross-region replication (typically sub-second replica lag) and managed failover for fast RTO

Aurora Global Database provides sub-second RPO and managed RTO. B is slower. C misses RPO. D is single-region.

PREDICTIVE SCALING (ASG):

  1. It only functions when all resources are in a single AZ zone
  2. It writes findings to S3 only and cannot notify EventBridge
  3. Uses ML to FORECAST capacity needs based on historical patterns
  4. It runs exclusively on Fargate and cannot target EC2 fleets

Answer: C — Uses ML to FORECAST capacity needs based on historical patterns

Predictive scaling: ML-based proactive scaling. Analyzes 14+ days of metrics. Generates daily forecast. Works alongside dynamic scaling (target tracking) as additional layer. Best for cyclical/predictable workloads (e-commerce, content sites). DOP advanced scaling.

Monitoring and Logging

Which is the BEST observability stack for AWS applications?

  1. It only functions when all resources are in a single AZ zone
  2. CloudWatch Logs/Metrics/Logs Insights/Alarms + X-Ray distributed
  3. It writes findings to S3 only and cannot notify EventBridge for th
  4. It runs exclusively on Fargate and cannot target EC2 fleets for th

Answer: B — CloudWatch Logs/Metrics/Logs Insights/Alarms + X-Ray distributed

AWS observability: CloudWatch (logs, metrics, alarms, dashboards, Logs Insights for queries), X-Ray (traces), Container Insights (EKS/ECS), Application Insights (SQL/.NET). OpenTelemetry integration. SLA monitoring via CloudWatch Synthetics canaries.

A CloudWatch composite alarm should fire only if BOTH 'high error rate' AND 'low traffic' alarms are active. Which BEST describes composite alarm behavior?

  1. It only functions when all resources are in a single AZ zone
  2. It writes findings to S3 only and cannot notify EventBridge
  3. Composite alarms evaluate boolean expressions over child alarm
  4. It runs exclusively on Fargate and cannot target EC2 fleets

Answer: C — Composite alarms evaluate boolean expressions over child alarm

Composite supports AND/OR/NOT over child alarm states. B/C/D wrong.

Incident and Event Response

An on-call escalation should page primary, then secondary after 10 minutes if not acknowledged. Which service BEST implements this?

  1. AWS Systems Manager Incident Manager with engagement plans
  2. It only functions when all resources are in a single AZ zone
  3. It writes findings to S3 only and cannot notify EventBridge
  4. It runs exclusively on Fargate and cannot target EC2 fleets

Answer: A — AWS Systems Manager Incident Manager with engagement plans

Incident Manager engagement plans handle escalation with ack windows. SNS fan-outs to everyone immediately.

An EventBridge rule fires on every CloudTrail RootAccountUsage event but the SSM Automation target receives no events. The rule shows InvokeTargetsFailures > 0. What is the MOST LIKELY cause?

  1. It only functions when all resources are in a single AZ zone
  2. It writes findings to S3 only and cannot notify EventBridge
  3. The EventBridge rule's IAM role lacks ssm:StartAutomationExecutio
  4. It runs exclusively on Fargate and cannot target EC2 fleets

Answer: C — The EventBridge rule's IAM role lacks ssm:StartAutomationExecutio

InvokeTargetsFailures plus 'no events received' is classic missing target IAM. B/C/D wrong.

Security and Compliance

A team needs all CloudTrail logs to be immutable and queryable via SQL for 7 years. Which BEST combination meets the requirement?

  1. It only functions when all resources are in a single AZ zone
  2. It writes findings to S3 only and cannot notify EventBridge for th
  3. CloudTrail Lake event data store with extended retention up to 7
  4. It runs exclusively on Fargate and cannot target EC2 fleets for th

Answer: C — CloudTrail Lake event data store with extended retention up to 7

CloudTrail Lake supports up to 7-year retention + SQL. Object Lock for immutability. B is short retention. C lacks immutability. D wrong.

Which is the BEST way to enforce security policies in IaC?

  1. Manually reviewing templates in pull requests with no automated tooling
  2. cfn-lint / cfn-nag (CloudFormation linting) and CDK Aspects for pre-deployment policy checks, backed by AWS Config rules post-deployment
  3. Relying solely on IAM permissions to block insecure resource creation
  4. Running security scans only after resources are already deployed to production

Answer: B — cfn-lint / cfn-nag (CloudFormation linting) and CDK Aspects for pre-deployment policy checks, backed by AWS Config rules post-deployment

Policy-as-code for IaC: pre-deployment linting (cfn-nag, cfn-lint, Checkov, tfsec). CDK Aspects programmatic enforcement. Post-deployment AWS Config rules + remediation. Defense in depth.

AWS Certified DevOps Engineer — Professional (DOP-C02) flashcards

6 sample cards from the 120 in the bank.

ECS rolling update?

MinimumHealthyPercent + MaximumPercent control rate. Default 100/200.

Image Builder?

Automated AMI creation pipeline. Apply patches, run tests, distribute.

Change calendar?

AWS Systems Manager. Block automation during freeze windows.

GitHub integration with CodePipeline?

Source action via GitHub OAuth or CodeStar Connections. Webhook triggers.

CloudWatch RUM?

Real User Monitoring. Browser-side performance metrics.

AWS SAM?

Serverless Application Model. CloudFormation extension for serverless.

Practise the full AWS Certified DevOps Engineer — Professional (DOP-C02) bank

These samples are a small slice. The full bank runs flashcards, multiple choice and timed mock exams with per-chapter progress tracking, on the web and in the iOS app.

Open AWS Certified DevOps Engineer — Professional (DOP-C02) →

AWS Certified DevOps Engineer DOP-C02 — frequently asked

How many AWS Certified DevOps Engineer DOP-C02 practice questions does CoStudy have?

The AWS Certified DevOps Engineer — Professional (DOP-C02) bank holds 280 items: 150 multiple-choice questions, 120 flashcards and 10 scenario-based simulations. 18 of them are on this page to read free, with no signup.

Do the AWS Certified DevOps Engineer DOP-C02 questions come with explanations?

Yes. Every multiple-choice item carries a written rationale that states the controlling principle behind the correct answer and then addresses each wrong option in turn — why it tempts and precisely where it fails. Knowing why the plausible answer was wrong is worth more than knowing which letter was right.

What topics does the AWS Certified DevOps Engineer DOP-C02 bank cover?

It is organised into 6 chapters that follow the published exam blueprint: SDLC Automation; Configuration Management and Infrastructure as Code; Resilient Cloud Solutions; Monitoring and Logging; Incident and Event Response; Security and Compliance. The number of questions in each chapter is proportional to that domain's published weight, so working through the bank exposes you to roughly the mix the real exam uses.

What is on the AWS Certified DevOps Engineer DOP-C02 exam?

AWS Certified DevOps Engineer — Professional (DOP-C02) Exam Guide (public, aws.amazon.com) — 6 content domains: 1) SDLC Automation (22%) — CI/CD, build/test/deploy, source control, 2) Configuration Management and IaC (17%) — CloudFormation, CDK, Systems Manager, 3) Resilient Cloud Solutions (15%) — multi-region, fault tolerance, 4) Monitoring and Logging (15%) — CloudWatch, X-Ray, observability, 5) Incident and Event Response (14%) — automated remediation, escalation, 6) Security and Compliance (17%) — guardrails, secrets, audit. MCQs…

Are the AWS Certified DevOps Engineer DOP-C02 practice questions free?

The samples on this page are free to read in full, rationales included, with no account. The complete 280-item bank, the timed mock exams and per-chapter progress tracking are part of CoStudy on the web and in the iOS app.

How current is the AWS Certified DevOps Engineer DOP-C02 content?

Last reviewed 2026-08-22. Banks are written against the certifying body's published exam outline and re-checked when that outline changes — exams get renumbered, retired and reweighted, and a bank written to a superseded outline teaches the wrong proportions. Figures that are re-indexed annually are deliberately not asserted as rules; the questions test the governing principle instead.

Primary source

This bank is written against AWS's published exam material. Check the AWS Certification exam guides for the current outline, fees and eligibility rules — those change, and the certifying body is the only authority on them. CoStudy is not affiliated with AWS.

Related study guides

Related certifications

Browse all 222 study banks →