Skip to content

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.

x
0/75
  1. Question 1

    Domain 1: SDLC Automation · Task 1.1

    A 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?

  2. Question 2

    Domain 1: SDLC Automation · Task 1.1

    A 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.

  3. Question 3

    Domain 1: SDLC Automation · Task 1.1

    An organization wants every pipeline's executions recorded centrally, with alerts when any production stage fails, across 40 accounts. What should the engineer configure?

  4. Question 4

    Domain 1: SDLC Automation · Task 1.1

    A 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?

  5. Question 5

    Domain 1: SDLC Automation · Task 1.1

    A team wants pipeline-level variables, such as a target environment name, provided when an execution is started manually. Which pipeline type supports this?

  6. Question 6

    Domain 1: SDLC Automation · Task 1.2

    A 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?

  7. Question 7

    Domain 1: SDLC Automation · Task 1.2

    A 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.

  8. Question 8

    Domain 1: SDLC Automation · Task 1.2

    Integration tests in CodeBuild call AWS services in a test account. The tests fail with AccessDenied. What should the engineer check FIRST?

  9. Question 9

    Domain 1: SDLC Automation · Task 1.2

    A team wants each pull request build to post its test summary and coverage back to the pull request in GitHub. Which approach fits BEST?

  10. Question 10

    Domain 1: SDLC Automation · Task 1.3

    Build artifacts in S3 must be encrypted, versioned, and readable only by the pipeline and deployment roles. Which TWO settings fit? Select TWO.

    Choose 2.

  11. Question 11

    Domain 1: SDLC Automation · Task 1.3

    A team publishes a shared Java library to CodeArtifact. Downstream builds must pick up only released versions, not snapshots. What should the engineer configure?

  12. Question 12

    Domain 1: SDLC Automation · Task 1.3

    An 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?

  13. Question 13

    Domain 1: SDLC Automation · Task 1.4

    A 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?

  14. Question 14

    Domain 1: SDLC Automation · Task 1.4

    A Lambda deployment with CodeDeploy fails at the AfterAllowTraffic hook. What does this mean?

  15. Question 15

    Domain 1: SDLC Automation · Task 1.4

    An 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?

  16. Question 16

    Domain 1: SDLC Automation · Task 1.4

    An Elastic Beanstalk environment must be upgraded to a new platform version with the option to switch back instantly. Which approach fits BEST?

  17. Question 17

    Domain 1: SDLC Automation · Task 1.4

    A 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?

  18. Question 18

    Domain 2: Configuration Management and IaC · Task 2.1

    A 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?

  19. Question 19

    Domain 2: Configuration Management and IaC · Task 2.1

    A 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?

  20. Question 20

    Domain 2: Configuration Management and IaC · Task 2.1

    A 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?

  21. Question 21

    Domain 2: Configuration Management and IaC · Task 2.1

    A 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?

  22. Question 22

    Domain 2: Configuration Management and IaC · Task 2.1

    Many 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.

  23. Question 23

    Domain 2: Configuration Management and IaC · Task 2.2

    An 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?

  24. Question 24

    Domain 2: Configuration Management and IaC · Task 2.2

    A 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?

  25. Question 25

    Domain 2: Configuration Management and IaC · Task 2.2

    A company enrolls 50 existing accounts into Control Tower. Some accounts already have AWS Config recorders, which blocks enrollment. What should the engineer do?

  26. Question 26

    Domain 2: Configuration Management and IaC · Task 2.2

    Security 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?

  27. Question 27

    Domain 2: Configuration Management and IaC · Task 2.3

    A 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?

  28. Question 28

    Domain 2: Configuration Management and IaC · Task 2.3

    A 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?

  29. Question 29

    Domain 2: Configuration Management and IaC · Task 2.3

    An 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?

  30. Question 30

    Domain 2: Configuration Management and IaC · Task 2.3

    EC2 instances must become managed nodes automatically without attaching an instance profile to each one. What should the engineer enable?

  31. Question 31

    Domain 3: Resilient Cloud Solutions · Task 3.1

    An 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?

  32. Question 32

    Domain 3: Resilient Cloud Solutions · Task 3.1

    A 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.

  33. Question 33

    Domain 3: Resilient Cloud Solutions · Task 3.1

    A 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?

  34. Question 34

    Domain 3: Resilient Cloud Solutions · Task 3.1

    An 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?

  35. Question 35

    Domain 3: Resilient Cloud Solutions · Task 3.2

    A 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?

  36. Question 36

    Domain 3: Resilient Cloud Solutions · Task 3.2

    A Lambda function processes SQS messages and overwhelms a downstream database during spikes. What should the engineer configure?

  37. Question 37

    Domain 3: Resilient Cloud Solutions · Task 3.2

    An 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.

  38. Question 38

    Domain 3: Resilient Cloud Solutions · Task 3.2

    A global SaaS API needs low-latency writes and reads in three Regions, with eventual consistency acceptable. Which database fits BEST?

  39. Question 39

    Domain 3: Resilient Cloud Solutions · Task 3.3

    A 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?

  40. Question 40

    Domain 3: Resilient Cloud Solutions · Task 3.3

    Leadership wants evidence that each critical application meets its RTO and RPO targets, with recommendations, tracked over time. Which service fits BEST?

  41. Question 41

    Domain 3: Resilient Cloud Solutions · Task 3.3

    An 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?

  42. Question 42

    Domain 4: Monitoring and Logging · Task 4.1

    A 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?

  43. Question 43

    Domain 4: Monitoring and Logging · Task 4.1

    A 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.

  44. Question 44

    Domain 4: Monitoring and Logging · Task 4.1

    A team wants its CloudWatch metrics exported continuously to S3 for long-term analysis with Athena. What should the engineer configure?

  45. Question 45

    Domain 4: Monitoring and Logging · Task 4.1

    A company must ensure log groups across all accounts get a 30-day retention by default, even when teams forget. Which approach fits BEST?

  46. Question 46

    Domain 4: Monitoring and Logging · Task 4.2

    An 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?

  47. Question 47

    Domain 4: Monitoring and Logging · Task 4.2

    Long-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.

  48. Question 48

    Domain 4: Monitoring and Logging · Task 4.2

    A 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?

  49. Question 49

    Domain 4: Monitoring and Logging · Task 4.2

    AWS 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.

  50. Question 50

    Domain 4: Monitoring and Logging · Task 4.3

    A 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.

  51. Question 51

    Domain 4: Monitoring and Logging · Task 4.3

    A 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?

  52. Question 52

    Domain 4: Monitoring and Logging · Task 4.3

    When 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?

  53. Question 53

    Domain 5: Incident and Event Response · Task 5.1

    An event-driven system occasionally processes the same S3 event twice, creating duplicate records. What should the engineer do?

  54. Question 54

    Domain 5: Incident and Event Response · Task 5.1

    A 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?

  55. Question 55

    Domain 5: Incident and Event Response · Task 5.1

    Events 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?

  56. Question 56

    Domain 5: Incident and Event Response · Task 5.2

    When 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?

  57. Question 57

    Domain 5: Incident and Event Response · Task 5.2

    Config 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?

  58. Question 58

    Domain 5: Incident and Event Response · Task 5.2

    A 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?

  59. Question 59

    Domain 5: Incident and Event Response · Task 5.3

    A pipeline's CodeBuild stage fails with 'CLIENT_ERROR: repository not found for primary source'. The source is CodeConnections. What should the engineer check?

  60. Question 60

    Domain 5: Incident and Event Response · Task 5.3

    An 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?

  61. Question 61

    Domain 5: Incident and Event Response · Task 5.3

    A 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?

  62. Question 62

    Domain 5: Incident and Event Response · Task 5.3

    After 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?

  63. Question 63

    Domain 6: Security and Compliance · Task 6.1

    A 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.

  64. Question 64

    Domain 6: Security and Compliance · Task 6.1

    An 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?

  65. Question 65

    Domain 6: Security and Compliance · Task 6.1

    Developers must not be able to escalate privileges by attaching managed policies to their own roles. What should the engineer configure?

  66. Question 66

    Domain 6: Security and Compliance · Task 6.1

    A company wants MFA required for console users, but automated roles used by pipelines must keep working without MFA. What should the engineer do?

  67. Question 67

    Domain 6: Security and Compliance · Task 6.1

    A company's Lambda functions need temporary, scoped access to tenant-specific S3 prefixes based on the request's tenant. Which approach fits BEST?

  68. Question 68

    Domain 6: Security and Compliance · Task 6.2

    All traffic from private subnets to the internet must be inspected by stateful rules, including domain filtering. Which service fits BEST?

  69. Question 69

    Domain 6: Security and Compliance · Task 6.2

    A company must rotate its KMS keys every 90 days instead of yearly. What should the engineer configure?

  70. Question 70

    Domain 6: Security and Compliance · Task 6.2

    Every 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.

  71. Question 71

    Domain 6: Security and Compliance · Task 6.2

    Data 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?

  72. Question 72

    Domain 6: Security and Compliance · Task 6.3

    Security 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.

  73. Question 73

    Domain 6: Security and Compliance · Task 6.3

    An auditor needs proof that VPC traffic to a sensitive subnet is logged and reviewed. What should the engineer enable and use?

  74. Question 74

    Domain 6: Security and Compliance · Task 6.3

    GuardDuty reports 'UnauthorizedAccess:IAMUser/InstanceCredentialExfiltration.OutsideAWS'. What does this indicate, and what should the response include?

  75. Question 75

    Domain 6: Security and Compliance · Task 6.3

    Security 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.