DOP-C02PROFESSIONAL

AWS Certified DevOps Engineer - Professional (DOP-C02) Practice Exam

Boost your readiness for the AWS Certified DevOps Engineer - Professional (DOP-C02) exam with our practice exam simulator. Featuring realistic questions and detailed explanations, it helps you identify knowledge gaps and improve your skills.

Exam at a glance
Questions75
Duration180 min
Passing score75%
Domains6
Question bank1040
Questions updatedOct 30 2026
Start a free practice exam
PRACTICE EXAMDOP-C02 exam simulatorFull-length or custom exams with explanations and a pass probability indicator.Open simulator →COURSEInteractive DOP-C02 course381 lessons built around exercises, no videos. See the course →EXAM GUIDEOfficial DOP-C02 exam guideThe AWS document listing every domain, task and service in scope.Open the guide →

Exam domains

The DOP-C02 questions are grouped into 6 domains divided into 19 tasks.

DOP-C02 example questions

One example question per domain from the DOP-C02 question bank, with the correct answer and its explanation. Sign in to the simulator to answer them with all answer options.

SDLC Automation

A company uses AWS CodeDeploy to deploy a Lambda function through a production alias with a canary configuration that shifts 10% of traffic for 10 minutes before shifting the remaining traffic. The deployment group monitors a CloudWatch alarm and has automatic rollback enabled when the alarm enters ALARM. The alarm calculates 100 × SUM(Errors) / SUM(Invocations) for the production alias and uses a 5% threshold. During a deployment, the candidate version consistently fails 30% of its invocations, but the previous version has no errors. The alarm reports approximately 3%, remains OK, and allows the deployment to continue. Traffic volume is high enough to provide representative measurements for both versions every minute. A DevOps engineer must make the deployment stop and roll back when the candidate version's error rate exceeds 5%, without changing the traffic-shifting schedule or treating a candidate error rate below 5% as a failure. Which solution meets these requirements?

Show answerCORRECT ANSWER

For each deployment, configure an alarm using the Errors and Invocations metric series that identify the candidate ExecutedVersion invoked through the production alias. Calculate 100 × SUM(Errors) / SUM(Invocations) for that version, apply the 5% threshold, and associate the alarm with the deployment group before traffic shifting begins.

Version-specific metric series isolate the candidate's actual error rate instead of combining its results with the previous version. Using candidate-version errors and candidate-version invocations produces approximately 30% in this scenario. Associating the alarm with the deployment group allows the existing alarm-triggered automatic rollback configuration to act on the breach.

Configuration Management and IaC

A company must automate configuration updates for 50,000 independent application environments. An Amazon S3 object contains a 40-MB JSON array that identifies the environments. For each environment, the automation must initiate an infrastructure update, wait for completion, and validate the configuration. Each environment's workflow takes 10–20 minutes and produces at least 2 KB of diagnostic output. The solution must support 100 concurrently running environment workflows while enforcing that concurrency limit. It must retain diagnostic output in S3 and continue processing if no more than 1% of the environment workflows fail. The DevOps engineer wants to minimize custom orchestration code. Which solution meets these requirements?

Show answerCORRECT ANSWER

Create a Standard state machine with a Distributed Map state. Use an S3 ItemReader to read the manifest, run Standard child workflows, set MaxConcurrency to 100 and ToleratedFailurePercentage to 1, and configure ResultWriter to export results to S3.

Distributed Map can read a large dataset directly from S3 without loading the entire manifest into the parent execution's payload. Standard child workflows support the 10–20-minute duration. MaxConcurrency limits concurrent child executions to 100, and ToleratedFailurePercentage allows the Map Run to continue while failures remain within the specified percentage. ResultWriter exports child workflow results to S3 instead of accumulating an oversized result in the parent.

Resilient Cloud Solutions

A company runs a stateless HTTPS service on EC2 instances in two Availability Zones behind one Application Load Balancer (ALB). A listener rule uses a weighted forward action to send 50% of requests to each of two target groups. Each target group contains only the instances in one Availability Zone. Cross-zone load balancing is enabled, and target group stickiness is disabled. During a resilience test, all application processes in one Availability Zone fail. The ALB marks every target in that zone's target group unhealthy, but some new requests continue to fail. The other target group remains healthy and has sufficient capacity to serve the entire workload. The company requires new requests to use the remaining healthy targets after health checks detect this type of failure in either zone. During normal operation, both zones must serve traffic. The solution must retain the existing ALB and DNS configuration and must not require incident-time configuration changes or custom failover automation. Which change meets these requirements?

Show answerCORRECT ANSWER

Register the instances from both Availability Zones in one target group, retain cross-zone load balancing, and update the listener rule to forward all requests to that target group.

A single target group gives the ALB one pool of targets across both zones. With cross-zone load balancing enabled, ALB nodes can route new requests to healthy targets in either zone. When one zone's targets become unhealthy, the surviving healthy targets remain eligible without changing listener weights or DNS.

Monitoring and Logging

A company must notify its security team whenever an assumed-role session successfully calls StopLogging or DeleteTrail in an AWS account, except when the session belongs to the approved TrailMaintenance role. Failed API calls must not generate notifications. All relevant calls use assumed-role credentials, and failed calls include an errorCode field in their CloudTrail events. A trail is already logging all write management events. An Amazon SNS topic has confirmed email subscriptions and a resource policy that permits EventBridge to publish notifications. The approved role ARN is arn:aws:iam::123456789012:role/TrailMaintenance. A DevOps engineer will create an EventBridge rule on the default event bus and configure the SNS topic as its target. Which event pattern meets the requirements?

Show answerCORRECT ANSWER

Use this event pattern: {"source":["aws.cloudtrail"],"detail-type":["AWS API Call via CloudTrail"],"detail":{"eventSource":["cloudtrail.amazonaws.com"],"eventName":["StopLogging","DeleteTrail"],"errorCode":[{"exists":false}],"userIdentity":{"sessionContext":{"sessionIssuer":{"arn":[{"anything-but":"arn:aws:iam::123456789012:role/TrailMaintenance"}]}}}}}

The pattern matches either specified API operation and requires errorCode to be absent, selecting successful calls. For assumed-role credentials, sessionContext.sessionIssuer.arn identifies the underlying IAM role. The anything-but comparison therefore excludes every session issued by TrailMaintenance. Matching events are routed to the SNS topic.

Incident and Event Response

A company runs an Amazon ECS service on EC2 instances supplied by an Auto Scaling group capacity provider. Managed scaling is enabled with a target capacity of 100%. The service uses only this capacity provider. The Auto Scaling group has a desired capacity of 4 and a maximum capacity of 20. Its mixed instances policy allows m5.large instances (2 vCPUs, 8 GiB of memory) and m5.2xlarge instances (8 vCPUs, 32 GiB of memory), without instance weights. Each task requires 4 vCPUs and 16 GiB of memory. The four existing instances are m5.2xlarge instances and have no remaining capacity for additional tasks. After the service's desired count increases, additional tasks remain in PROVISIONING. The capacity provider's CapacityProviderReservation metric remains at its target, and no scale-out activity occurs. Subnet addresses, service quotas, and instance availability are not limiting factors. The task resource requirements cannot be reduced. A DevOps engineer must correct the configuration so that managed scaling automatically provisions capacity for these tasks. Which change meets this requirement?

Show answerCORRECT ANSWER

Remove m5.large from the Auto Scaling group's allowed instance types, and ensure that every remaining allowed instance type can accommodate at least one task.

ECS managed scaling checks whether provisioning tasks can fit on the smallest instance type allowed by the Auto Scaling group. Tasks that cannot fit are excluded from the scale-out calculation and can remain in PROVISIONING without triggering scaling. The m5.large cannot accommodate this task. Allowing only compatible instance types removes this constraint so that managed scaling can provision the required capacity.

Security and Compliance

A company runs thousands of short-duration data-processing workers on Amazon EC2. The workers authenticate to an internal service by using mutual TLS. An existing workload controller generates certificate signing requests and can install replacement certificates without restarting the workers. A new security standard requires worker certificates to be valid for 12 hours and replaced every 6 hours. The issuing service must reject any request for a worker certificate with a validity period longer than 7 days, even if a defect in the controller requests a longer period. Issuance roles cannot change the issuing CA's configuration. The company wants a managed CA and does not require revocation because the service's security design relies on short certificate lifetimes. Which solution meets these requirements?

Show answerCORRECT ANSWER

Create an AWS Private CA in short-lived certificate mode. Configure the controller to call IssueCertificate with a 12-hour validity period, retrieve the issued certificate, and install a replacement every 6 hours. Monitor issuance and installation failures.

Short-lived certificate mode enforces a maximum issued-certificate validity of 7 days. Direct AWS Private CA API issuance supports the required 12-hour certificates, while the existing controller can automate replacement every 6 hours. Monitoring the workflow is important because certificates issued directly through the private CA API do not receive ACM managed renewal.

All 6 DOP-C02 example questions with answersGrouped by domain. Pick an answer, check it and read the explanation.Browse questions →

Exam mode and practice mode

Exam modePractice mode
Questions count751 - 75
Time limit180 minutesOptional, 10 - 200 minutes
Exam scope6 domains with the official questions ratioSelected domains with the official questions ratio
Correct answersAfter exam submissionAfter exam submission or after each answer
Question typesMix of single and multiple correct answersSingle, multiple or both
Question hintsNeverOptional
Question domainRevealed after exam submissionRevealed after submission or during the exam
Scoring15 of 75 questions do not count towards the resultOfficial AWS method or mathematical mean

See all simulator features on the AWS Exam Simulator page.

About the DOP-C02 exam

The AWS Certified DevOps Engineer - Professional (DOP-C02) certification is designed for individuals with extensive experience in managing AWS environments. It assesses your ability to implement and manage continuous delivery systems and methodologies on AWS. Before attempting this certification, it is recommended to have a solid understanding of modern development and operations processes and methodologies, as well as experience in developing code in at least one high-level programming language and managing automated infrastructures.

 

The exam consists of 75 questions in multiple-choice and multiple-response formats. You have 180 minutes to complete the exam, which can be taken at a Pearson VUE testing center or online with a proctor. The cost of the exam is $300, and it is available in several languages, including English, Japanese, Korean, and Simplified Chinese. To pass, you need a score of 750 out of 1000.

This certification focuses on six main areas: automating the software development lifecycle (SDLC), managing infrastructure as code (IaC), creating resilient cloud solutions, monitoring and logging, incident and event response, and ensuring security and compliance. Key AWS services you need to be familiar with include AWS CodeCommit, AWS CodeBuild, AWS CodeDeploy, AWS CloudFormation, Amazon CloudWatch, AWS Lambda, and AWS IAM.

 

Preparing for this certification involves reviewing the official exam guide, which details the domains covered and their respective weightages. Practical experience is crucial, so setting up a lab environment to practice using AWS services is highly recommended. Additionally, enrolling in relevant training courses, such as those offered by experts like Stephane Maarek and Adrian Cantrill, can provide valuable insights and hands-on experience. Practice exams, like those by Jon Bonso, can help you get accustomed to the exam format and identify areas where you need to focus more.

 

Overall, achieving the AWS Certified DevOps Engineer - Professional certification demonstrates your proficiency in managing and automating AWS environments using DevOps principles, making it a valuable credential for advancing your career in cloud computing and DevOps.

Services on the exam

All 101 AWS services that can appear on the DOP-C02 exam.

Amazon AthenaAmazon EMRAmazon OpenSearch ServiceAmazon RedshiftAmazon QuickSightAmazon AppFlowAmazon EventBridgeAmazon Simple Notification Service (Amazon SNS)Amazon Simple Queue Service (Amazon SQS)AWS Step FunctionsAmazon EC2Amazon EC2 Auto ScalingAWS Elastic BeanstalkAWS Serverless Application RepositoryAmazon EKS DistroAmazon Elastic Container Registry (Amazon ECR)Amazon Elastic Container Service (Amazon ECS)Amazon Elastic Kubernetes Service (Amazon EKS)Amazon AuroraAmazon Aurora ServerlessAmazon DocumentDB (with MongoDB compatibility)Amazon DynamoDBAmazon ElastiCacheAmazon RDSAWS X-RayAmazon API GatewayAWS Auto ScalingAWS CloudFormationAWS CloudTrailAmazon CloudWatchAWS Command Line Interface (AWS CLI)AWS Compute OptimizerAWS ConfigAWS Control TowerAWS Health DashboardAWS License ManagerAmazon Managed GrafanaAmazon Managed Service for PrometheusAWS OrganizationsAWS ProtonAWS Service CatalogAWS Systems ManagerAWS Trusted AdvisorAWS Database Migration Service (AWS DMS)AWS Client VPNAmazon CloudFrontElastic Load Balancing (ELB)AWS PrivateLinkAmazon Route 53AWS Site-to-Site VPNAWS Transit GatewayAmazon VPCAWS Certificate Manager (ACM)AWS CloudHSMAmazon CognitoAmazon DetectiveAWS Directory ServiceAmazon GuardDutyAWS IAM Identity Center (AWS Single Sign-On)AWS Identity and Access Management (IAM)Amazon InspectorAWS Key Management Service (AWS KMS)Amazon MacieAWS Network FirewallAWS Resource Access Manager (AWS RAM)AWS Secrets ManagerAWS Security HubAWS ShieldAWS WAFAWS FargateAWS LambdaAWS BackupAmazon Elastic Block Store (Amazon EBS)Amazon Elastic File System (Amazon EFS)Amazon FSxAmazon S3Amazon S3 GlacierAWS Storage GatewayAWS Cloud Development Kit (AWS CDK)AWS CloudShellAWS CodeArtifactAWS CodeBuildAWS CodeCommitAWS CodeDeployAmazon CodeGuruAWS CodeStarAWS Fault Injection ServiceAWS Tools and SDKsAWS OpsWorksAWS CopilotAmazon MemoryDB for RedisAWS Security Token Service (AWS STS)AWS Elastic Disaster RecoveryAmazon Data FirehoseAmazon Kinesis Data StreamsAWS App RunnerAWS CodePipelineAWS Serverless Application Model (AWS SAM)AWS App2ContainerRed Hat OpenShift Service on AWS (ROSA)AWS Resilience Hub

Other practice exams