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.
Question 1
Domain 1: SDLC Automation · Task 1.1A 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?
Question 2
Domain 1: SDLC Automation · Task 1.1The 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.
Question 3
Domain 1: SDLC Automation · Task 1.1The 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?
Question 4
Domain 1: SDLC Automation · Task 1.1Builds take 15 minutes because the CodeBuild project reinstalls Node.js dependencies every time. What is the SIMPLEST improvement?
Question 5
Domain 1: SDLC Automation · Task 1.1The 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?
Question 6
Domain 1: SDLC Automation · Task 1.2The 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?
Question 7
Domain 1: SDLC Automation · Task 1.2After 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?
Question 8
Domain 1: SDLC Automation · Task 1.2The 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?
Question 9
Domain 1: SDLC Automation · Task 1.2A deployment script's smoke test prints errors but the pipeline shows success. What is the MOST likely cause?
Question 10
Domain 1: SDLC Automation · Task 1.3The startup builds Docker images on developer laptops and pushes them to ECR, and production sometimes runs untested images. What should the engineer change?
Question 11
Domain 1: SDLC Automation · Task 1.3ECR 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?
Question 12
Domain 1: SDLC Automation · Task 1.3The startup's Lambda functions share a large set of dependencies, making each deployment package slow to upload. Which approach fits BEST?
Question 13
Domain 1: SDLC Automation · Task 1.4The 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?
Question 14
Domain 1: SDLC Automation · Task 1.4The 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?
Question 15
Domain 1: SDLC Automation · Task 1.4A CodeDeploy EC2 deployment fails with 'The overall deployment failed because too many individual instances failed deployment'. What should the engineer do FIRST?
Question 16
Domain 1: SDLC Automation · Task 1.4The 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?
Question 17
Domain 1: SDLC Automation · Task 1.4The 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?
Question 18
Domain 2: Configuration Management and IaC · Task 2.1The 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?
Question 19
Domain 2: Configuration Management and IaC · Task 2.1The 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?
Question 20
Domain 2: Configuration Management and IaC · Task 2.1The startup's production database was deleted when an engineer removed it from a template by mistake. What should the engineer add to prevent this?
Question 21
Domain 2: Configuration Management and IaC · Task 2.1The 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?
Question 22
Domain 2: Configuration Management and IaC · Task 2.1Before every production stack update, the CTO wants to see exactly what will change, including any resource replacements. What should the pipeline do?
Question 23
Domain 2: Configuration Management and IaC · Task 2.2The 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?
Question 24
Domain 2: Configuration Management and IaC · Task 2.2Engineers 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?
Question 25
Domain 2: Configuration Management and IaC · Task 2.2The 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.
Question 26
Domain 2: Configuration Management and IaC · Task 2.2The 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?
Question 27
Domain 2: Configuration Management and IaC · Task 2.3The 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?
Question 28
Domain 2: Configuration Management and IaC · Task 2.3The startup's ops engineer restarts a stuck worker service by SSHing into instances several times a week. What should the engineer automate?
Question 29
Domain 2: Configuration Management and IaC · Task 2.3The startup wants to stop all development EC2 and RDS resources every night and weekend to save money. What is the SIMPLEST solution?
Question 30
Domain 2: Configuration Management and IaC · Task 2.3The 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?
Question 31
Domain 3: Resilient Cloud Solutions · Task 3.1The 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?
Question 32
Domain 3: Resilient Cloud Solutions · Task 3.1The 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?
Question 33
Domain 3: Resilient Cloud Solutions · Task 3.1An 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?
Question 34
Domain 3: Resilient Cloud Solutions · Task 3.1The startup's static marketing site runs on an EC2 instance that sometimes goes down. What is the MOST resilient and cost-effective option?
Question 35
Domain 3: Resilient Cloud Solutions · Task 3.2The startup's traffic doubles every month, and engineers resize EC2 instances by hand each week. What should the engineer implement?
Question 36
Domain 3: Resilient Cloud Solutions · Task 3.2The startup sends welcome emails synchronously during sign-up, and when the email provider is slow, sign-ups time out. What should the engineer do?
Question 37
Domain 3: Resilient Cloud Solutions · Task 3.2The startup's PostgreSQL database on RDS is overloaded by read-heavy analytics queries from the product dashboard. Which change helps MOST?
Question 38
Domain 3: Resilient Cloud Solutions · Task 3.2The startup's image resizing runs inside its web servers and slows page loads during spikes. Which serverless design fits BEST?
Question 39
Domain 3: Resilient Cloud Solutions · Task 3.3The 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?
Question 40
Domain 3: Resilient Cloud Solutions · Task 3.3The 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?
Question 41
Domain 3: Resilient Cloud Solutions · Task 3.3The 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?
Question 42
Domain 4: Monitoring and Logging · Task 4.1The startup's app logs only to local files on EC2, and logs are lost when instances are replaced. What should the engineer do?
Question 43
Domain 4: Monitoring and Logging · Task 4.1The 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?
Question 44
Domain 4: Monitoring and Logging · Task 4.1The 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.
Question 45
Domain 4: Monitoring and Logging · Task 4.1The startup needs memory and disk usage for its EC2 instances, which the default metrics don't include. What should the engineer do?
Question 46
Domain 4: Monitoring and Logging · Task 4.2Customers 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?
Question 47
Domain 4: Monitoring and Logging · Task 4.2The startup's error alarm pages engineers several times a night for single-minute blips that resolve themselves. What should the engineer change?
Question 48
Domain 4: Monitoring and Logging · Task 4.2The 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?
Question 49
Domain 4: Monitoring and Logging · Task 4.2After a security scare, the startup wants to know who changed a security group last week and from which IP. Where should the engineer look?
Question 50
Domain 4: Monitoring and Logging · Task 4.3When 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.
Question 51
Domain 4: Monitoring and Logging · Task 4.3The startup's EC2 instances sometimes fail hardware checks overnight and stay down until morning. What should the engineer configure?
Question 52
Domain 4: Monitoring and Logging · Task 4.3The startup wants every new S3 bucket to have encryption and versioning turned on, fixing any bucket that doesn't. What should the engineer configure?
Question 53
Domain 5: Incident and Event Response · Task 5.1The startup wants a notification whenever any EC2 instance stops unexpectedly, without polling. What should the engineer configure?
Question 54
Domain 5: Incident and Event Response · Task 5.1When 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?
Question 55
Domain 5: Incident and Event Response · Task 5.1The startup wants AWS Health notifications about scheduled maintenance for its instances sent to its Slack channel. What should the engineer configure?
Question 56
Domain 5: Incident and Event Response · Task 5.2AWS Config shows that some security groups allow SSH from anywhere. The startup wants those rules removed automatically. What should the engineer configure?
Question 57
Domain 5: Incident and Event Response · Task 5.2When 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?
Question 58
Domain 5: Incident and Event Response · Task 5.2The startup's engineers sometimes change Lambda environment variables in the console, causing drift from the CDK code. What should the engineer do?
Question 59
Domain 5: Incident and Event Response · Task 5.3The startup's CodePipeline fails at the CloudFormation deploy step with 'Role arn:... is invalid or cannot be assumed'. What should the engineer check?
Question 60
Domain 5: Incident and Event Response · Task 5.3After 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?
Question 61
Domain 5: Incident and Event Response · Task 5.3The 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?
Question 62
Domain 5: Incident and Event Response · Task 5.3The 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?
Question 63
Domain 6: Security and Compliance · Task 6.1The 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?
Question 64
Domain 6: Security and Compliance · Task 6.1The startup's developers all have AdministratorAccess. The CTO wants least privilege without blocking daily work. Which approach fits BEST?
Question 65
Domain 6: Security and Compliance · Task 6.1The 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?
Question 66
Domain 6: Security and Compliance · Task 6.1The startup's database password is in an environment variable on every server and has never changed. What should the engineer do?
Question 67
Domain 6: Security and Compliance · Task 6.1A contractor needs access to one S3 bucket for 2 weeks. Which approach is MOST secure?
Question 68
Domain 6: Security and Compliance · Task 6.2The 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?
Question 69
Domain 6: Security and Compliance · Task 6.2The startup's public API on an ALB receives bot traffic and SQL injection attempts. What should the engineer add with the least effort?
Question 70
Domain 6: Security and Compliance · Task 6.2The startup's website must use HTTPS with a certificate that renews automatically. What should the engineer use?
Question 71
Domain 6: Security and Compliance · Task 6.2The startup wants to check whether it accidentally stored customer personal data in any of its 40 S3 buckets. Which service fits BEST?
Question 72
Domain 6: Security and Compliance · Task 6.3The 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?
Question 73
Domain 6: Security and Compliance · Task 6.3The startup's security questionnaire asks how it detects vulnerable software on its EC2 instances and container images. What should the engineer enable?
Question 74
Domain 6: Security and Compliance · Task 6.3A 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.
Question 75
Domain 6: Security and Compliance · Task 6.3The 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.