Skip to content

DOP-C02 Practice Exam 1: E-commerce platform DevOps

AWS Certified DevOps Engineer – Professional. 75 questions, 7 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

    An e-commerce company builds in a tools account and deploys a CloudFormation stack to dev, staging and production accounts. Deployments to staging fail with AccessDenied when the target account reads the build artifact from S3. The bucket uses the default aws/s3 key. What should the DevOps engineer change?

  2. Question 2

    Domain 1: SDLC Automation · Task 1.1

    A storefront team's CodePipeline should start only when files under the services/checkout/ folder change on the main branch, not on every commit to the monorepo. What should the engineer configure?

  3. Question 3

    Domain 1: SDLC Automation · Task 1.1

    A CodeBuild project needs a payment provider's API key to run integration tests. Security forbids storing the key in source control or in plain-text environment variables. What should the engineer do?

  4. Question 4

    Domain 1: SDLC Automation · Task 1.1

    Several teams push to the same pipeline many times an hour. Releases are taking hours because each execution runs to completion even when a newer commit has arrived. Teams want only the latest change to proceed through deployment stages. Which setting fits?

  5. Question 5

    Domain 1: SDLC Automation · Task 1.1

    A company's pipeline uses GitHub as the source. The security team wants the connection managed in AWS without storing a GitHub personal access token in the pipeline. What should the engineer use?

  6. Question 6

    Domain 1: SDLC Automation · Task 1.2

    The checkout team wants unit tests and code coverage to run on every pull request, with results visible as reports and the pull request blocked if tests fail. Which approach fits BEST?

  7. Question 7

    Domain 1: SDLC Automation · Task 1.2

    Before a holiday sale, the team must verify the checkout service handles 5 times normal traffic, in a pre-production environment, as part of the release pipeline. What should the engineer add?

  8. Question 8

    Domain 1: SDLC Automation · Task 1.2

    A CodeBuild action runs integration tests with a script, but the pipeline continues even when tests fail. The script prints FAILED but always ends successfully. What should the engineer fix?

  9. Question 9

    Domain 1: SDLC Automation · Task 1.2

    The security team wants container images scanned for vulnerabilities in the pipeline, and the deployment stopped if critical findings exist. Images are stored in Amazon ECR. Which approach fits BEST?

  10. Question 10

    Domain 1: SDLC Automation · Task 1.3

    Builds in private subnets need npm packages from the public registry, but the subnets have no internet access. The team also wants a cached, approved copy of packages. What should the engineer configure?

  11. Question 11

    Domain 1: SDLC Automation · Task 1.3

    An ECR repository holds thousands of images from every build, and storage costs are growing. The team needs to keep the last 30 tagged release images and delete untagged images after 7 days. What should the engineer configure?

  12. Question 12

    Domain 1: SDLC Automation · Task 1.3

    The platform team must produce a hardened AMI each week that includes the latest OS patches and the company's agents, test it, and share it with 25 workload accounts. Which service fits BEST?

  13. Question 13

    Domain 1: SDLC Automation · Task 1.4

    The checkout service runs on Lambda behind API Gateway. A new version must receive 10% of traffic for 10 minutes, then all traffic, and roll back automatically if the error alarm fires. What should the engineer configure?

  14. Question 14

    Domain 1: SDLC Automation · Task 1.4

    A CodeDeploy deployment to an EC2 Auto Scaling group fails on new instances launched during the deployment, which run the old revision. What should the engineer do?

  15. Question 15

    Domain 1: SDLC Automation · Task 1.4

    A team deploys a containerized product service on Amazon ECS. They need production traffic to shift to the new task set gradually, with the old tasks kept running for fast rollback. Which approach fits BEST?

  16. Question 16

    Domain 1: SDLC Automation · Task 1.4

    An EC2 deployment with CodeDeploy fails in the ValidateService lifecycle event on several instances. Other events succeed. Where should the engineer look FIRST?

  17. Question 17

    Domain 1: SDLC Automation · Task 1.4

    A legacy storefront on Elastic Beanstalk must be updated without reducing capacity during deployment, and a failed deployment must not affect the running instances. Which deployment policy fits?

  18. Question 18

    Domain 2: Configuration Management and IaC · Task 2.1

    A platform team wants every application team to create S3 buckets, queues and alarms that already meet company standards, such as encryption and tagging, using a programming language they know. Which approach fits BEST?

  19. Question 19

    Domain 2: Configuration Management and IaC · Task 2.1

    A CloudFormation update to the orders stack will change a DynamoDB table property. The team must know before running it whether the table will be replaced. What should the engineer do?

  20. Question 20

    Domain 2: Configuration Management and IaC · Task 2.1

    A company runs the same monitoring baseline stack in 60 accounts across 3 Regions, and new accounts are added to the Workloads OU each month. The baseline must reach new accounts automatically. What should the engineer configure?

  21. Question 21

    Domain 2: Configuration Management and IaC · Task 2.1

    The product team wants to turn on a new recommendations widget for 5% of users, increase it over a day, and roll back automatically if the error alarm fires, without redeploying the application. Which service fits BEST?

  22. Question 22

    Domain 2: Configuration Management and IaC · Task 2.1

    Development teams need self-service access to approved environments, such as a standard three-tier stack, but must not be able to change the templates or exceed the permissions of the stack. Which TWO features fit? Select TWO.

    Choose 2.

  23. Question 23

    Domain 2: Configuration Management and IaC · Task 2.2

    A retailer is creating dozens of new accounts for teams. Each account must come with a VPC, logging, security services and baseline roles, defined in Terraform, with no manual steps. Which approach fits BEST?

  24. Question 24

    Domain 2: Configuration Management and IaC · Task 2.2

    The security team must ensure that no account in the Workloads OU can disable CloudTrail or leave the organization, including account administrators. What should the engineer configure?

  25. Question 25

    Domain 2: Configuration Management and IaC · Task 2.2

    An automation in the tools account must tag resources in 40 member accounts. What is the MOST secure way to give it access?

  26. Question 26

    Domain 2: Configuration Management and IaC · Task 2.2

    The platform team wants S3 buckets without encryption blocked before CloudFormation creates them, in every account governed by Control Tower. Which control type fits?

  27. Question 27

    Domain 2: Configuration Management and IaC · Task 2.3

    The team needs a report of every EC2 instance across 40 accounts that runs an outdated version of a logging agent, refreshed daily, and queryable with SQL. What should the engineer set up?

  28. Question 28

    Domain 2: Configuration Management and IaC · Task 2.3

    A cleanup process must find unattached EBS volumes older than 30 days in every account, snapshot them, wait for each snapshot to complete, and then delete the volumes, with retries. Which design fits BEST?

  29. Question 29

    Domain 2: Configuration Management and IaC · Task 2.3

    After the retirement of AWS OpsWorks, the team must keep 300 instances' web server configuration in a desired state and fix drift automatically every 30 minutes. What should the engineer use?

  30. Question 30

    Domain 2: Configuration Management and IaC · Task 2.3

    A company must patch Linux instances in 50 accounts monthly, with critical patches applied within 7 days of release, and report compliance in one place. Which TWO features fit? Select TWO.

    Choose 2.

  31. Question 31

    Domain 3: Resilient Cloud Solutions · Task 3.1

    The checkout service uses Aurora MySQL in us-east-1. The business requires a Regional failover with an RPO of about 1 second and an RTO under a few minutes. What should the engineer implement?

  32. Question 32

    Domain 3: Resilient Cloud Solutions · Task 3.1

    A shopping cart service stores session state on local disk of EC2 instances. During scale-in, customers lose their carts. What should the engineer change?

  33. Question 33

    Domain 3: Resilient Cloud Solutions · Task 3.1

    A review finds that private subnets in three AZs route outbound traffic through a single NAT gateway in one AZ. The team wants egress to survive an AZ failure with minimal route management. What should the engineer do?

  34. Question 34

    Domain 3: Resilient Cloud Solutions · Task 3.1

    The product catalog API must serve customers in North America and Europe from the closest Region and fail over to the other Region if one becomes unhealthy. Which TWO components are needed? Select TWO.

    Choose 2.

  35. Question 35

    Domain 3: Resilient Cloud Solutions · Task 3.2

    Order-processing workers on EC2 consume from an SQS queue. Target tracking on CPU scales them too late during flash sales because work piles up while CPU looks normal. Which metric should the engineer use?

  36. Question 36

    Domain 3: Resilient Cloud Solutions · Task 3.2

    A containerized storefront runs on Amazon EKS. During sales, the Horizontal Pod Autoscaler adds pods, but many stay Pending because nodes are full. What should the engineer configure?

  37. Question 37

    Domain 3: Resilient Cloud Solutions · Task 3.2

    A product image API on Lambda behind API Gateway shows high latency at the start of every sale because of cold starts. Sales are scheduled in advance. What should the engineer do?

  38. Question 38

    Domain 3: Resilient Cloud Solutions · Task 3.2

    A product listing page calls a DynamoDB table thousands of times per second for the same popular items, and read costs are high. Which change reduces cost and latency MOST?

  39. Question 39

    Domain 3: Resilient Cloud Solutions · Task 3.3

    The order database must be recoverable with an RPO of 15 minutes and an RTO of 2 hours after a Regional failure, at the lowest cost. Which approach fits BEST?

  40. Question 40

    Domain 3: Resilient Cloud Solutions · Task 3.3

    Before peak season, leadership wants proof that the checkout service survives the loss of an Availability Zone, without risking a real outage. What should the engineer do?

  41. Question 41

    Domain 3: Resilient Cloud Solutions · Task 3.3

    An ALB fronts instances in two AZs. During an AZ impairment, the instances there respond slowly but pass health checks, and customers see errors. The team wants traffic moved away from that AZ quickly. What should the engineer use?

  42. Question 42

    Domain 4: Monitoring and Logging · Task 4.1

    Application logs from 30 accounts must be delivered in near real time to a central security account for analysis in OpenSearch, with minimal per-account setup. What should the engineer configure?

  43. Question 43

    Domain 4: Monitoring and Logging · Task 4.1

    The checkout service must emit business metrics, such as orders per minute by payment method, without extra API calls from the code. Logs are already structured JSON. What should the engineer use?

  44. Question 44

    Domain 4: Monitoring and Logging · Task 4.1

    Security requires that the order service's log group be encrypted with a customer managed KMS key. After associating the key, log delivery fails. What is the MOST likely cause?

  45. Question 45

    Domain 4: Monitoring and Logging · Task 4.1

    The company uses a third-party observability platform and wants all CloudWatch metrics from its accounts delivered continuously with low latency, without polling the CloudWatch API. What should the engineer configure?

  46. Question 46

    Domain 4: Monitoring and Logging · Task 4.2

    Checkout errors follow a strong daily and weekly pattern. Static alarms either miss real problems at night or page during normal daytime peaks. What should the engineer configure?

  47. Question 47

    Domain 4: Monitoring and Logging · Task 4.2

    A request through the storefront calls 12 microservices on ECS and Lambda. Some requests are slow, and the team can't tell which service causes it. New instrumentation is needed. What should the engineer do?

  48. Question 48

    Domain 4: Monitoring and Logging · Task 4.2

    Auditors want to query 2 years of CloudTrail logs stored in S3 to find every IAM policy change, using SQL, at the lowest cost. What should the engineer use?

  49. Question 49

    Domain 4: Monitoring and Logging · Task 4.2

    The platform team wants each service's availability and latency tracked against service level objectives, with an error budget visible on a dashboard. Which feature fits BEST?

  50. Question 50

    Domain 4: Monitoring and Logging · Task 4.3

    New EC2 instances launched by any team must have the SSM Agent and CloudWatch agent configured within minutes, and instances that drift must be fixed automatically. What should the engineer configure?

  51. Question 51

    Domain 4: Monitoring and Logging · Task 4.3

    Load balancer access logs land in S3 every 5 minutes. The team wants each new file parsed and indexed into OpenSearch automatically. What should the engineer configure?

  52. Question 52

    Domain 4: Monitoring and Logging · Task 4.3

    An EBS-backed RDS instance for the reviews service keeps running low on storage after promotions. The team wants storage to grow automatically. Which TWO actions fit? Select TWO.

    Choose 2.

  53. Question 53

    Domain 5: Incident and Event Response · Task 5.1

    When an order is placed, billing, shipping and analytics systems in three accounts must each receive the event, and new consumers will be added later without changing the order service. Which design fits BEST?

  54. Question 54

    Domain 5: Incident and Event Response · Task 5.1

    The team wants a Slack notification and an OpsItem whenever AWS schedules maintenance that affects instances in any of the organization's accounts. What should the engineer configure?

  55. Question 55

    Domain 5: Incident and Event Response · Task 5.1

    An event consumer had a bug and processed yesterday's EventBridge order events incorrectly. After the fix, the team wants to reprocess those events. What should they have configured?

  56. Question 56

    Domain 5: Incident and Event Response · Task 5.2

    AWS Config detects security groups in any account that allow SSH from 0.0.0.0/0. The security team wants the rule removed automatically and an OpsItem created. Which design fits BEST?

  57. Question 57

    Domain 5: Incident and Event Response · Task 5.2

    A new launch template version with a security fix must replace all instances in a production Auto Scaling group gradually, keeping at least 90% capacity healthy. What should the engineer do?

  58. Question 58

    Domain 5: Incident and Event Response · Task 5.2

    When a new ECR image is pushed with the release tag, the staging environment must be updated automatically through the existing deployment pipeline. What should the engineer configure?

  59. Question 59

    Domain 5: Incident and Event Response · Task 5.3

    A CloudFormation stack update fails, and the console shows 25 events, most of them UPDATE_ROLLBACK_IN_PROGRESS and resource rollbacks. How should the engineer find the root cause?

  60. Question 60

    Domain 5: Incident and Event Response · Task 5.3

    ECS tasks for the search service stop shortly after starting, and the stopped reason shows OutOfMemoryError: Container killed due to memory usage. What should the engineer do?

  61. Question 61

    Domain 5: Incident and Event Response · Task 5.3

    An Auto Scaling group for the storefront fails to launch instances during a sale. The team needs to know why. Where should the engineer look FIRST?

  62. Question 62

    Domain 5: Incident and Event Response · Task 5.3

    During a checkout incident, the on-call engineer wants help correlating CloudWatch telemetry, recent deployments and code changes to identify a probable root cause and mitigations. Which service fits BEST?

  63. Question 63

    Domain 6: Security and Compliance · Task 6.1

    The company's GitHub Actions workflows deploy to AWS using long-term access keys stored as repository secrets. Security wants all long-term keys removed. What should the engineer implement?

  64. Question 64

    Domain 6: Security and Compliance · Task 6.1

    Developers must be allowed to create IAM roles for their Lambda functions, but those roles must never have more permissions than a defined maximum. What should the engineer configure?

  65. Question 65

    Domain 6: Security and Compliance · Task 6.1

    Twenty product teams each need access only to resources tagged with their own team name. The company wants one policy instead of twenty and expects new teams monthly. Which approach fits BEST?

  66. Question 66

    Domain 6: Security and Compliance · Task 6.1

    The order service's database password must rotate every 30 days without application downtime, and applications must always use the current password. What should the engineer implement?

  67. Question 67

    Domain 6: Security and Compliance · Task 6.1

    A cross-account role in the production account can be assumed by a CI role in the tools account. A security review requires that it be assumed only from the organization. What should the engineer add?

  68. Question 68

    Domain 6: Security and Compliance · Task 6.2

    Every ALB and CloudFront distribution in 70 accounts must use the same AWS WAF managed rules, including in new accounts. What should the engineer use?

  69. Question 69

    Domain 6: Security and Compliance · Task 6.2

    Customer data exported to S3 must be checked continuously for credit card numbers in all accounts, with findings sent to the security team's ticketing system. Which TWO components fit? Select TWO.

    Choose 2.

  70. Question 70

    Domain 6: Security and Compliance · Task 6.2

    Security requires that all new EBS volumes in every account and Region be encrypted with a customer managed key, even if teams forget. Which approach fits BEST?

  71. Question 71

    Domain 6: Security and Compliance · Task 6.2

    The checkout API on an ALB must accept only TLS 1.2 or later, and its certificate must renew automatically. Which TWO actions fit? Select TWO.

    Choose 2.

  72. Question 72

    Domain 6: Security and Compliance · Task 6.3

    GuardDuty reports that credentials from an EC2 instance role are being used from an IP outside AWS. The team wants an automatic response that stops the stolen credentials working. What should the engineer implement?

  73. Question 73

    Domain 6: Security and Compliance · Task 6.3

    Auditors need proof that CloudTrail logs for all accounts weren't modified or deleted after delivery. Which TWO features help? Select TWO.

    Choose 2.

  74. Question 74

    Domain 6: Security and Compliance · Task 6.3

    Security wants to know immediately whenever any S3 bucket or IAM role in the organization becomes accessible to an account outside the organization. Which service fits BEST?

  75. Question 75

    Domain 6: Security and Compliance · Task 6.3

    After an incident, investigators need to see whether a compromised role made unusual API calls and what other resources it touched over the past 2 weeks, visualized as relationships. Which service fits BEST?

75 questions unanswered; they count as wrong.

Video walkthrough

Try the exam first, then watch every question worked through.