DOP-C02 Practice Exam 10: Mixed review (all domains)
AWS Certified DevOps Engineer – Professional. 75 questions, 13 with more than one correct answer. Real exam: 75 questions (65 scored, 10 unscored), multiple choice and multiple response, 180 minutes, pass at a scaled 750 / 1,000.
Independent practice questions by Core Concept Learning, written from the public exam guide; not official AWS content. Study the free DOP-C02 course
Study mode: check any answer as you go. Or practise under exam conditions: 180 minutes, answers hidden until you submit.
Question 1
Domain 1: SDLC Automation · Task 1.1A pipeline's source stage uses an S3 bucket. Uploads of new zip files don't start the pipeline anymore after a team disabled polling. What should the engineer configure to trigger runs on upload?
Question 2
Domain 1: SDLC Automation · Task 1.1A CodeBuild project must run inside a VPC to reach a private package mirror, and also push images to ECR. Which TWO settings are needed? Select TWO.
Choose 2.
Question 3
Domain 1: SDLC Automation · Task 1.1An organization wants every pipeline's executions recorded centrally, with alerts when any production stage fails, across 40 accounts. What should the engineer configure?
Question 4
Domain 1: SDLC Automation · Task 1.1A pipeline must deploy a Lambda function, then run a database migration, then deploy the API, in that order, and stop if any step fails. How should the stages be arranged?
Question 5
Domain 1: SDLC Automation · Task 1.1A team wants pipeline-level variables, such as a target environment name, provided when an execution is started manually. Which pipeline type supports this?
Question 6
Domain 1: SDLC Automation · Task 1.2A team's test suite sometimes fails because tests depend on each other's leftover data. The team wants reliable tests in the pipeline. What should the engineer change?
Question 7
Domain 1: SDLC Automation · Task 1.2A release must be blocked if the API's p99 latency in staging exceeds 200 ms during a 10-minute load test. Which TWO pipeline elements fit? Select TWO.
Choose 2.
Question 8
Domain 1: SDLC Automation · Task 1.2Integration tests in CodeBuild call AWS services in a test account. The tests fail with AccessDenied. What should the engineer check FIRST?
Question 9
Domain 1: SDLC Automation · Task 1.2A team wants each pull request build to post its test summary and coverage back to the pull request in GitHub. Which approach fits BEST?
Question 10
Domain 1: SDLC Automation · Task 1.3Build artifacts in S3 must be encrypted, versioned, and readable only by the pipeline and deployment roles. Which TWO settings fit? Select TWO.
Choose 2.
Question 11
Domain 1: SDLC Automation · Task 1.3A team publishes a shared Java library to CodeArtifact. Downstream builds must pick up only released versions, not snapshots. What should the engineer configure?
Question 12
Domain 1: SDLC Automation · Task 1.3An EC2 Image Builder pipeline must rebuild the AMI whenever the base AMI is updated by AWS, not only on a schedule. What should the engineer configure?
Question 13
Domain 1: SDLC Automation · Task 1.4A team deploys to EC2 with CodeDeploy blue/green. After rerouting, a bug is found 20 minutes later. The original instances were kept. What is the FASTEST rollback?
Question 14
Domain 1: SDLC Automation · Task 1.4A Lambda deployment with CodeDeploy fails at the AfterAllowTraffic hook. What does this mean?
Question 15
Domain 1: SDLC Automation · Task 1.4An ECS service uses rolling updates. During deployments, capacity drops and latency rises. The team wants full capacity kept during updates. What should the engineer set?
Question 16
Domain 1: SDLC Automation · Task 1.4An Elastic Beanstalk environment must be upgraded to a new platform version with the option to switch back instantly. Which approach fits BEST?
Question 17
Domain 1: SDLC Automation · Task 1.4A team deploys containers to EKS and wants new pods to receive traffic only after they pass readiness checks during rolling updates. What should the engineer configure?
Question 18
Domain 2: Configuration Management and IaC · Task 2.1A CloudFormation template creates an Auto Scaling group. Updates to the launch template must replace instances in batches while keeping capacity. What should the engineer add to the group?
Question 19
Domain 2: Configuration Management and IaC · Task 2.1A template must look up the latest approved AMI ID at deploy time without code changes. The platform team publishes approved IDs to Parameter Store. What should the template use?
Question 20
Domain 2: Configuration Management and IaC · Task 2.1A CDK app deploys to dev, test and prod with different instance sizes. The team wants environment-specific values without branching the code. What should the engineer do?
Question 21
Domain 2: Configuration Management and IaC · Task 2.1A team needs CloudFormation to create a resource type that has no native support, by calling an internal API during create, update and delete. What should the engineer implement?
Question 22
Domain 2: Configuration Management and IaC · Task 2.1Many teams build serverless apps with the same pattern: API Gateway, Lambda, DynamoDB and alarms. The platform team wants teams to publish and reuse such applications across accounts. Which TWO options fit? Select TWO.
Choose 2.
Question 23
Domain 2: Configuration Management and IaC · Task 2.2An organization's member accounts must use only approved AWS services. Services outside the list must be blocked for everyone, except in a sandbox OU. What should the engineer configure?
Question 24
Domain 2: Configuration Management and IaC · Task 2.2A central automation needs to run commands in every account. Security requires that the automation's role sessions be identifiable by the requesting engineer's name in CloudTrail. What should the engineer use?
Question 25
Domain 2: Configuration Management and IaC · Task 2.2A company enrolls 50 existing accounts into Control Tower. Some accounts already have AWS Config recorders, which blocks enrollment. What should the engineer do?
Question 26
Domain 2: Configuration Management and IaC · Task 2.2Security wants all accounts' IAM Access Analyzer, GuardDuty and Security Hub findings visible to a security team without giving them access to workload accounts. What should the engineer configure?
Question 27
Domain 2: Configuration Management and IaC · Task 2.3A company must apply a new kernel parameter to 5,000 instances across 50 accounts, with no more than 5% changed at once and an automatic stop if 1% fail. What should the engineer use?
Question 28
Domain 2: Configuration Management and IaC · Task 2.3A team's Lambda automation must create resources in 3 services in order, and undo completed steps if a later one fails. Which approach fits BEST?
Question 29
Domain 2: Configuration Management and IaC · Task 2.3An organization wants Systems Manager configured in every account and Region, including the SSM Agent update, Inventory and default host management, with one setup. What should the engineer use?
Question 30
Domain 2: Configuration Management and IaC · Task 2.3EC2 instances must become managed nodes automatically without attaching an instance profile to each one. What should the engineer enable?
Question 31
Domain 3: Resilient Cloud Solutions · Task 3.1An application uses an RDS MySQL database. The team wants failover in under 35 seconds typically, with readable standbys for read traffic. Which deployment fits BEST?
Question 32
Domain 3: Resilient Cloud Solutions · Task 3.1A global app must serve users from the nearest of three Regions and remove a Region from DNS within a minute if it becomes unhealthy. Which TWO components fit? Select TWO.
Choose 2.
Question 33
Domain 3: Resilient Cloud Solutions · Task 3.1A service's dependency on a single third-party API caused an outage. The business accepts degraded features but not a full outage. Which design fits BEST?
Question 34
Domain 3: Resilient Cloud Solutions · Task 3.1An S3-backed website must remain available from another Region if the primary bucket's Region fails, served through the same CloudFront distribution. What should the engineer configure?
Question 35
Domain 3: Resilient Cloud Solutions · Task 3.2A reporting service's Auto Scaling group scales on CPU, but requests are I/O-bound and slow while CPU stays low. Which metric is a BETTER scaling signal?
Question 36
Domain 3: Resilient Cloud Solutions · Task 3.2A Lambda function processes SQS messages and overwhelms a downstream database during spikes. What should the engineer configure?
Question 37
Domain 3: Resilient Cloud Solutions · Task 3.2An ECS on EC2 cluster runs services with very different CPU and memory needs. The team wants cost-efficient bin packing and automatic capacity. Which TWO settings fit? Select TWO.
Choose 2.
Question 38
Domain 3: Resilient Cloud Solutions · Task 3.2A global SaaS API needs low-latency writes and reads in three Regions, with eventual consistency acceptable. Which database fits BEST?
Question 39
Domain 3: Resilient Cloud Solutions · Task 3.3A company's DR plan relies on AWS Backup cross-Region copies, but a restore test shows encrypted copies can't be restored. What is the MOST likely cause?
Question 40
Domain 3: Resilient Cloud Solutions · Task 3.3Leadership wants evidence that each critical application meets its RTO and RPO targets, with recommendations, tracked over time. Which service fits BEST?
Question 41
Domain 3: Resilient Cloud Solutions · Task 3.3An application's recovery runbook must fail over the database, update DNS and scale up compute, in order, with approvals, during a Regional event. Which approach fits BEST?
Question 42
Domain 4: Monitoring and Logging · Task 4.1A team's metric filter on a log group produces no data, though matching log lines appear. The pattern uses a JSON property selector. What should the engineer check FIRST?
Question 43
Domain 4: Monitoring and Logging · Task 4.1A team needs logs from Lambda functions in 20 accounts streamed to a central OpenSearch domain with minimal per-function setup. Which TWO components fit? Select TWO.
Choose 2.
Question 44
Domain 4: Monitoring and Logging · Task 4.1A team wants its CloudWatch metrics exported continuously to S3 for long-term analysis with Athena. What should the engineer configure?
Question 45
Domain 4: Monitoring and Logging · Task 4.1A company must ensure log groups across all accounts get a 30-day retention by default, even when teams forget. Which approach fits BEST?
Question 46
Domain 4: Monitoring and Logging · Task 4.2An alarm on an ALB's HTTPCode_Target_5XX_Count fires too often at night when traffic is low and a few errors are normal. What should the engineer use?
Question 47
Domain 4: Monitoring and Logging · Task 4.2Long-term credentials are discouraged, so the security team wants to be paged the moment anyone in the organization issues one, and to keep a searchable history for audits. Which TWO components fit? Select TWO.
Choose 2.
Question 48
Domain 4: Monitoring and Logging · Task 4.2A team wants to find the root cause of intermittent errors in a microservice by looking at traces that include a specific customer ID. What should the engineer do?
Question 49
Domain 4: Monitoring and Logging · Task 4.2AWS Config shows an S3 bucket's policy changed yesterday. The team needs to know who made the change. Which TWO sources together answer this? Select TWO.
Choose 2.
Question 50
Domain 4: Monitoring and Logging · Task 4.3A team wants an EC2 instance rebooted automatically when its instance status check fails, and recovered on a system status check failure. Which TWO alarm actions fit? Select TWO.
Choose 2.
Question 51
Domain 4: Monitoring and Logging · Task 4.3A DynamoDB table with provisioned capacity throttles during daily peaks. The team wants capacity to follow traffic but keep cost control. What should the engineer configure?
Question 52
Domain 4: Monitoring and Logging · Task 4.3When a Route 53 health check for the primary site fails, the team wants an SNS notification in addition to DNS failover. What should the engineer configure?
Question 53
Domain 5: Incident and Event Response · Task 5.1An event-driven system occasionally processes the same S3 event twice, creating duplicate records. What should the engineer do?
Question 54
Domain 5: Incident and Event Response · Task 5.1A workflow must wait for a third-party system to call back with a result, which can take up to 3 days, before continuing. Which approach fits BEST?
Question 55
Domain 5: Incident and Event Response · Task 5.1Events from 30 accounts must reach a central account's EventBridge bus, but some accounts' events never arrive. Rules target the bus correctly. What should the engineer check?
Question 56
Domain 5: Incident and Event Response · Task 5.2When a critical CloudWatch alarm fires for an Auto Scaling group's high error rate after a deployment, the team wants the previous launch template version restored automatically. Which design fits BEST?
Question 57
Domain 5: Incident and Event Response · Task 5.2Config detects that an EC2 instance is missing required tags. The team wants the tags added from the owning Auto Scaling group automatically. Which approach fits BEST?
Question 58
Domain 5: Incident and Event Response · Task 5.2A fleet of 2,000 instances must have a configuration file corrected within an hour whenever the source of truth in S3 changes. What should the engineer configure?
Question 59
Domain 5: Incident and Event Response · Task 5.3A pipeline's CodeBuild stage fails with 'CLIENT_ERROR: repository not found for primary source'. The source is CodeConnections. What should the engineer check?
Question 60
Domain 5: Incident and Event Response · Task 5.3An Auto Scaling group's activity history shows 'Launching a new EC2 instance. Status Reason: We currently do not have sufficient capacity'. What should the engineer do?
Question 61
Domain 5: Incident and Event Response · Task 5.3A CloudFormation stack is stuck in UPDATE_ROLLBACK_FAILED because a resource it needs to roll back was deleted outside CloudFormation. What should the engineer do?
Question 62
Domain 5: Incident and Event Response · Task 5.3After a release, an ECS service's tasks fail with 'CannotPullContainerError: ... 403 Forbidden'. The image is in ECR in the same account. What is the MOST likely cause?
Question 63
Domain 6: Security and Compliance · Task 6.1A role in account A must read a KMS-encrypted secret in account B's Secrets Manager. Which TWO permissions are needed? Select TWO.
Choose 2.
Question 64
Domain 6: Security and Compliance · Task 6.1An engineer assumes a cross-account role and wants to restrict that session to read-only actions for one task, without changing the role. What should the engineer use?
Question 65
Domain 6: Security and Compliance · Task 6.1Developers must not be able to escalate privileges by attaching managed policies to their own roles. What should the engineer configure?
Question 66
Domain 6: Security and Compliance · Task 6.1A company wants MFA required for console users, but automated roles used by pipelines must keep working without MFA. What should the engineer do?
Question 67
Domain 6: Security and Compliance · Task 6.1A company's Lambda functions need temporary, scoped access to tenant-specific S3 prefixes based on the request's tenant. Which approach fits BEST?
Question 68
Domain 6: Security and Compliance · Task 6.2All traffic from private subnets to the internet must be inspected by stateful rules, including domain filtering. Which service fits BEST?
Question 69
Domain 6: Security and Compliance · Task 6.2A company must rotate its KMS keys every 90 days instead of yearly. What should the engineer configure?
Question 70
Domain 6: Security and Compliance · Task 6.2Every ALB in the organization must use a TLS policy that supports only TLS 1.2 and later, and any noncompliant listener must be reported. Which TWO controls fit? Select TWO.
Choose 2.
Question 71
Domain 6: Security and Compliance · Task 6.2Data classified as confidential must be found automatically in S3 across the organization, and buckets holding it must be tagged for stricter controls. Which design fits BEST?
Question 72
Domain 6: Security and Compliance · Task 6.3Security wants an alert when an S3 bucket policy is changed to allow public access, and wants it reverted within minutes. Which TWO components fit? Select TWO.
Choose 2.
Question 73
Domain 6: Security and Compliance · Task 6.3An auditor needs proof that VPC traffic to a sensitive subnet is logged and reviewed. What should the engineer enable and use?
Question 74
Domain 6: Security and Compliance · Task 6.3GuardDuty reports 'UnauthorizedAccess:IAMUser/InstanceCredentialExfiltration.OutsideAWS'. What does this indicate, and what should the response include?
Question 75
Domain 6: Security and Compliance · Task 6.3Security wants a single, normalized view of findings from GuardDuty, Inspector, Macie, Config and third-party tools, with automated response workflows. Which service fits BEST?
75 questions unanswered; they count as wrong.
Video walkthrough
Try the exam first, then watch every question worked through.