Skip to content

DOP-C02 Practice Exam 7: Startup scale-up DevOps

AWS Certified DevOps Engineer – Professional. 75 questions, 5 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 startup deploys by running scripts from a founder's laptop. It wants every merge to main built, tested and deployed to staging automatically, with the least operational overhead. Which approach fits BEST?

  2. Question 2

    Domain 1: SDLC Automation · Task 1.1

    The startup's API keys for third-party services are stored in the repository. They need to be removed and supplied securely to builds and running services. Which TWO steps fit? Select TWO.

    Choose 2.

  3. Question 3

    Domain 1: SDLC Automation · Task 1.1

    The startup now has dev, staging and production accounts. Its pipeline must deploy the same artifact to each, in order, with approval before production. What should the engineer build?

  4. Question 4

    Domain 1: SDLC Automation · Task 1.1

    Builds take 15 minutes because the CodeBuild project reinstalls Node.js dependencies every time. What is the SIMPLEST improvement?

  5. Question 5

    Domain 1: SDLC Automation · Task 1.1

    The startup wants pull requests to automatically deploy a short-lived preview environment and post its URL, removed when the PR closes. Which approach fits BEST?

  6. Question 6

    Domain 1: SDLC Automation · Task 1.2

    The startup's single test suite takes 30 minutes and mixes unit, integration and end-to-end tests. Developers want faster feedback. What should the engineer do?

  7. Question 7

    Domain 1: SDLC Automation · Task 1.2

    After the startup's first outage, the team wants each release checked against real user journeys, such as sign-up and checkout, right after deployment to production. What should the engineer add?

  8. Question 8

    Domain 1: SDLC Automation · Task 1.2

    The startup needs to scan its Python code for security issues, such as hard-coded secrets and injection flaws, on every pull request. Which approach fits BEST?

  9. Question 9

    Domain 1: SDLC Automation · Task 1.2

    A deployment script's smoke test prints errors but the pipeline shows success. What is the MOST likely cause?

  10. Question 10

    Domain 1: SDLC Automation · Task 1.3

    The startup builds Docker images on developer laptops and pushes them to ECR, and production sometimes runs untested images. What should the engineer change?

  11. Question 11

    Domain 1: SDLC Automation · Task 1.3

    ECR storage costs are rising because every build pushes an image and nothing is removed. The startup wants to keep the last 50 images per repository. What should the engineer configure?

  12. Question 12

    Domain 1: SDLC Automation · Task 1.3

    The startup's Lambda functions share a large set of dependencies, making each deployment package slow to upload. Which approach fits BEST?

  13. Question 13

    Domain 1: SDLC Automation · Task 1.4

    The startup's API runs on ECS Fargate behind an ALB. A bad release took the API down for 20 minutes. The team wants new versions tested with a small share of traffic and rolled back automatically. What should the engineer use?

  14. Question 14

    Domain 1: SDLC Automation · Task 1.4

    The startup's Lambda-based webhook handler needs safe deployments: 10% of traffic for 5 minutes, then all, with rollback on errors. The functions are defined with AWS SAM. What should the engineer add?

  15. Question 15

    Domain 1: SDLC Automation · Task 1.4

    A CodeDeploy EC2 deployment fails with 'The overall deployment failed because too many individual instances failed deployment'. What should the engineer do FIRST?

  16. Question 16

    Domain 1: SDLC Automation · Task 1.4

    The startup's web app on EC2 stores user uploads on the instance disk, so the team can't replace instances during deployments. What should the engineer change to enable immutable deployments?

  17. Question 17

    Domain 1: SDLC Automation · Task 1.4

    The startup's single EC2 web server is updated by stopping it, copying files and starting it, causing downtime. With minimal change, how can the team deploy without downtime?

  18. Question 18

    Domain 2: Configuration Management and IaC · Task 2.1

    The startup's infrastructure was built by clicking in the console. It now wants it defined as code without recreating production resources. Which approach fits BEST?

  19. Question 19

    Domain 2: Configuration Management and IaC · Task 2.1

    The startup's developers prefer TypeScript and want infrastructure defined in the same language as the app, with unit tests for infrastructure. Which tool fits BEST?

  20. Question 20

    Domain 2: Configuration Management and IaC · Task 2.1

    The startup's production database was deleted when an engineer removed it from a template by mistake. What should the engineer add to prevent this?

  21. Question 21

    Domain 2: Configuration Management and IaC · Task 2.1

    The startup wants feature flags so it can turn on a new pricing page for 10% of users and roll it back instantly if conversions drop, without redeploying. What should the engineer use?

  22. Question 22

    Domain 2: Configuration Management and IaC · Task 2.1

    Before every production stack update, the CTO wants to see exactly what will change, including any resource replacements. What should the pipeline do?

  23. Question 23

    Domain 2: Configuration Management and IaC · Task 2.2

    The startup has grown from one AWS account to needing separate accounts for production, staging and each team, with central billing and guardrails. What should the engineer set up FIRST?

  24. Question 24

    Domain 2: Configuration Management and IaC · Task 2.2

    Engineers sign in with IAM users in each account and share passwords. The startup wants single sign-on with Google Workspace and MFA for all accounts. What should the engineer configure?

  25. Question 25

    Domain 2: Configuration Management and IaC · Task 2.2

    The startup wants to make sure no one can disable CloudTrail or delete the audit logs in any account, even admins. Which TWO controls fit? Select TWO.

    Choose 2.

  26. Question 26

    Domain 2: Configuration Management and IaC · Task 2.2

    The startup wants new team accounts to come with a VPC, logging and a deploy role already set up, within minutes of a request. Which approach fits BEST?

  27. Question 27

    Domain 2: Configuration Management and IaC · Task 2.3

    The startup's 80 EC2 instances are patched by hand when someone remembers. It wants automatic monthly patching with a compliance report. What should the engineer use?

  28. Question 28

    Domain 2: Configuration Management and IaC · Task 2.3

    The startup's ops engineer restarts a stuck worker service by SSHing into instances several times a week. What should the engineer automate?

  29. Question 29

    Domain 2: Configuration Management and IaC · Task 2.3

    The startup wants to stop all development EC2 and RDS resources every night and weekend to save money. What is the SIMPLEST solution?

  30. Question 30

    Domain 2: Configuration Management and IaC · Task 2.3

    The startup needs a list of all software installed on its servers to answer a customer security questionnaire, and to keep it up to date. What should the engineer use?

  31. Question 31

    Domain 3: Resilient Cloud Solutions · Task 3.1

    The startup's app runs on one EC2 instance with a MySQL database installed on the same instance. Which change MOST improves availability with the least operational overhead?

  32. Question 32

    Domain 3: Resilient Cloud Solutions · Task 3.1

    The startup's Redis cache runs on a single EC2 instance it manages. When it crashed, the app slowed for an hour. What should the engineer do?

  33. Question 33

    Domain 3: Resilient Cloud Solutions · Task 3.1

    An enterprise customer requires the startup's API to survive an AZ outage. The API runs on ECS Fargate in one subnet. What should the engineer change?

  34. Question 34

    Domain 3: Resilient Cloud Solutions · Task 3.1

    The startup's static marketing site runs on an EC2 instance that sometimes goes down. What is the MOST resilient and cost-effective option?

  35. Question 35

    Domain 3: Resilient Cloud Solutions · Task 3.2

    The startup's traffic doubles every month, and engineers resize EC2 instances by hand each week. What should the engineer implement?

  36. Question 36

    Domain 3: Resilient Cloud Solutions · Task 3.2

    The startup sends welcome emails synchronously during sign-up, and when the email provider is slow, sign-ups time out. What should the engineer do?

  37. Question 37

    Domain 3: Resilient Cloud Solutions · Task 3.2

    The startup's PostgreSQL database on RDS is overloaded by read-heavy analytics queries from the product dashboard. Which change helps MOST?

  38. Question 38

    Domain 3: Resilient Cloud Solutions · Task 3.2

    The startup's image resizing runs inside its web servers and slows page loads during spikes. Which serverless design fits BEST?

  39. Question 39

    Domain 3: Resilient Cloud Solutions · Task 3.3

    The startup has no backups for its DynamoDB tables and S3 buckets. It wants daily backups kept for 35 days, managed centrally. What should the engineer use?

  40. Question 40

    Domain 3: Resilient Cloud Solutions · Task 3.3

    The startup's largest customer requires a written RTO of 4 hours and RPO of 1 hour for Regional disasters, at minimal cost. Which strategy fits BEST?

  41. Question 41

    Domain 3: Resilient Cloud Solutions · Task 3.3

    The startup's engineers accidentally deleted items from a DynamoDB table. They need the table as it was 20 minutes ago. What should have been enabled?

  42. Question 42

    Domain 4: Monitoring and Logging · Task 4.1

    The startup's app logs only to local files on EC2, and logs are lost when instances are replaced. What should the engineer do?

  43. Question 43

    Domain 4: Monitoring and Logging · Task 4.1

    The startup's CloudWatch Logs bill is growing because log groups never expire. Most logs are only needed for 30 days. What should the engineer do?

  44. Question 44

    Domain 4: Monitoring and Logging · Task 4.1

    The startup wants business metrics such as sign-ups per minute in CloudWatch, without changing much code. The app already writes a JSON log line per sign-up. Which TWO options work? Select TWO.

    Choose 2.

  45. Question 45

    Domain 4: Monitoring and Logging · Task 4.1

    The startup needs memory and disk usage for its EC2 instances, which the default metrics don't include. What should the engineer do?

  46. Question 46

    Domain 4: Monitoring and Logging · Task 4.2

    Customers report slow checkout, but the startup can't tell whether the database, payment API or app code is to blame. What should the engineer add?

  47. Question 47

    Domain 4: Monitoring and Logging · Task 4.2

    The startup's error alarm pages engineers several times a night for single-minute blips that resolve themselves. What should the engineer change?

  48. Question 48

    Domain 4: Monitoring and Logging · Task 4.2

    The startup wants a single dashboard showing API latency, error rate, queue depth and database CPU for the on-call engineer. What should the engineer build?

  49. Question 49

    Domain 4: Monitoring and Logging · Task 4.2

    After a security scare, the startup wants to know who changed a security group last week and from which IP. Where should the engineer look?

  50. Question 50

    Domain 4: Monitoring and Logging · Task 4.3

    When the startup's SQS queue backs up, the on-call engineer wants a Slack message, and more workers should start automatically. Which TWO configurations fit? Select TWO.

    Choose 2.

  51. Question 51

    Domain 4: Monitoring and Logging · Task 4.3

    The startup's EC2 instances sometimes fail hardware checks overnight and stay down until morning. What should the engineer configure?

  52. Question 52

    Domain 4: Monitoring and Logging · Task 4.3

    The startup wants every new S3 bucket to have encryption and versioning turned on, fixing any bucket that doesn't. What should the engineer configure?

  53. Question 53

    Domain 5: Incident and Event Response · Task 5.1

    The startup wants a notification whenever any EC2 instance stops unexpectedly, without polling. What should the engineer configure?

  54. Question 54

    Domain 5: Incident and Event Response · Task 5.1

    When a customer upgrades their plan, the startup's billing, email and analytics services must each react. Currently the upgrade code calls all three directly and fails if one is down. What should the engineer change?

  55. Question 55

    Domain 5: Incident and Event Response · Task 5.1

    The startup wants AWS Health notifications about scheduled maintenance for its instances sent to its Slack channel. What should the engineer configure?

  56. Question 56

    Domain 5: Incident and Event Response · Task 5.2

    AWS Config shows that some security groups allow SSH from anywhere. The startup wants those rules removed automatically. What should the engineer configure?

  57. Question 57

    Domain 5: Incident and Event Response · Task 5.2

    When CPU on the startup's database stays above 90% for 15 minutes, the team wants to scale up the RDS instance class during a maintenance window automatically. Which design fits BEST?

  58. Question 58

    Domain 5: Incident and Event Response · Task 5.2

    The startup's engineers sometimes change Lambda environment variables in the console, causing drift from the CDK code. What should the engineer do?

  59. Question 59

    Domain 5: Incident and Event Response · Task 5.3

    The startup's CodePipeline fails at the CloudFormation deploy step with 'Role arn:... is invalid or cannot be assumed'. What should the engineer check?

  60. Question 60

    Domain 5: Incident and Event Response · Task 5.3

    After a deployment, the startup's ECS tasks start and stop repeatedly. The stopped reason says 'Essential container in task exited'. What should the engineer check FIRST?

  61. Question 61

    Domain 5: Incident and Event Response · Task 5.3

    The startup's Lambda function times out when calling a third-party API from a private subnet, though it works outside the VPC. What is the MOST likely cause?

  62. Question 62

    Domain 5: Incident and Event Response · Task 5.3

    The startup's Auto Scaling group keeps terminating new instances right after launch because ELB health checks fail while the app warms up for 3 minutes. What should the engineer change?

  63. Question 63

    Domain 6: Security and Compliance · Task 6.1

    The startup's app on EC2 uses an IAM user's access keys stored in a config file to reach S3. What should the engineer change?

  64. Question 64

    Domain 6: Security and Compliance · Task 6.1

    The startup's developers all have AdministratorAccess. The CTO wants least privilege without blocking daily work. Which approach fits BEST?

  65. Question 65

    Domain 6: Security and Compliance · Task 6.1

    The startup's GitHub Actions deploy with an IAM user's keys stored as secrets. Security wants short-lived credentials instead. What should the engineer configure?

  66. Question 66

    Domain 6: Security and Compliance · Task 6.1

    The startup's database password is in an environment variable on every server and has never changed. What should the engineer do?

  67. Question 67

    Domain 6: Security and Compliance · Task 6.1

    A contractor needs access to one S3 bucket for 2 weeks. Which approach is MOST secure?

  68. Question 68

    Domain 6: Security and Compliance · Task 6.2

    The startup stores customer documents in S3. A customer contract requires encryption with keys the startup controls and audit of every key use. What should the engineer configure?

  69. Question 69

    Domain 6: Security and Compliance · Task 6.2

    The startup's public API on an ALB receives bot traffic and SQL injection attempts. What should the engineer add with the least effort?

  70. Question 70

    Domain 6: Security and Compliance · Task 6.2

    The startup's website must use HTTPS with a certificate that renews automatically. What should the engineer use?

  71. Question 71

    Domain 6: Security and Compliance · Task 6.2

    The startup wants to check whether it accidentally stored customer personal data in any of its 40 S3 buckets. Which service fits BEST?

  72. Question 72

    Domain 6: Security and Compliance · Task 6.3

    The startup wants to be alerted about suspicious activity, such as crypto mining or compromised credentials, in its AWS accounts, with minimal setup. What should the engineer enable?

  73. Question 73

    Domain 6: Security and Compliance · Task 6.3

    The startup's security questionnaire asks how it detects vulnerable software on its EC2 instances and container images. What should the engineer enable?

  74. Question 74

    Domain 6: Security and Compliance · Task 6.3

    A customer audit requires proof that the startup's audit logs can't be modified after they're written. Which TWO features help? Select TWO.

    Choose 2.

  75. Question 75

    Domain 6: Security and Compliance · Task 6.3

    The startup wants one place showing its security posture against best practices, such as public buckets and missing MFA, with a score. Which service fits BEST?

75 questions unanswered; they count as wrong.

Video walkthrough

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