DOP-C02 Practice Exam 8: Public sector DevOps
AWS Certified DevOps Engineer – Professional. 75 questions, 12 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.1An agency's change advisory board must approve each production release, and the approval must be recorded with the approver's identity. Releases happen weekly. Which pipeline design fits BEST?
Question 2
Domain 1: SDLC Automation · Task 1.1An agency's builds must not reach the internet; all dependencies must come from approved internal sources. CodeBuild runs in private subnets. Which TWO components fit? Select TWO.
Choose 2.
Question 3
Domain 1: SDLC Automation · Task 1.1An agency deploys the same application to development, test and production accounts. Auditors require that production runs the exact binary that passed testing. What should the pipeline do?
Question 4
Domain 1: SDLC Automation · Task 1.1Agency policy requires that pipeline definitions themselves be version-controlled and reviewed, not edited in the console. Which approach fits BEST?
Question 5
Domain 1: SDLC Automation · Task 1.1An agency's build must sign release artifacts with a key that never leaves a hardware security module, and verification must happen before deployment. Which approach fits BEST?
Question 6
Domain 1: SDLC Automation · Task 1.2An agency must run accessibility tests (WCAG) on its citizen portal for every release, and block releases with critical failures. Where should the tests run?
Question 7
Domain 1: SDLC Automation · Task 1.2An agency requires that infrastructure templates be checked against a compliance framework's controls, such as encryption and logging, before deployment. Which tool fits BEST in the pipeline?
Question 8
Domain 1: SDLC Automation · Task 1.2Integration tests for a benefits system need realistic data but must never use real citizen records. Which approach fits BEST?
Question 9
Domain 1: SDLC Automation · Task 1.2The agency's pipeline must stop if any high-severity vulnerability is found in the container image built for a release. Images are in ECR. What should the engineer add?
Question 10
Domain 1: SDLC Automation · Task 1.3An agency must keep every released artifact for 7 years, prevent deletion, and remove non-release build artifacts after 30 days. Which TWO configurations fit? Select TWO.
Choose 2.
Question 11
Domain 1: SDLC Automation · Task 1.3The agency's golden AMI must meet a hardening benchmark, be rebuilt monthly, and be shared to 40 accounts. What should the engineer use?
Question 12
Domain 1: SDLC Automation · Task 1.3Auditors need to know which open-source packages and versions are inside each released container image. What should the pipeline produce?
Question 13
Domain 1: SDLC Automation · Task 1.4A citizen portal on EC2 must be updated with zero downtime and an immediate rollback option, and the agency prefers not to modify running servers. Which approach fits BEST?
Question 14
Domain 1: SDLC Automation · Task 1.4A permit-processing API on Lambda must be deployed with 10% of traffic for 15 minutes before full rollout, rolling back automatically on errors. Which configuration fits?
Question 15
Domain 1: SDLC Automation · Task 1.4A records management app on ECS must keep serving during deployments, and a failing deployment must roll back automatically without engineers watching. Which TWO settings fit? Select TWO.
Choose 2.
Question 16
Domain 1: SDLC Automation · Task 1.4A CodeDeploy deployment to EC2 instances in an agency VPC without internet access never starts on the instances. The agent is installed. What should the engineer check?
Question 17
Domain 1: SDLC Automation · Task 1.4An agency runs a containerized app on EKS and wants each release progressively shifted using weighted target groups on the ALB, with automatic analysis of error metrics. Which approach fits BEST?
Question 18
Domain 2: Configuration Management and IaC · Task 2.1An agency standardizes on CloudFormation. Templates must include approved resource configurations, such as encrypted volumes, reused across 60 applications. Which TWO approaches fit? Select TWO.
Choose 2.
Question 19
Domain 2: Configuration Management and IaC · Task 2.1An agency must change a production stack only through reviewed change sets, and certain resources must never be replaced. Which TWO features fit? Select TWO.
Choose 2.
Question 20
Domain 2: Configuration Management and IaC · Task 2.1An agency's application reads configuration such as feature toggles and service URLs. Changes must be validated and deployed gradually with rollback, and every change audited. Which service fits BEST?
Question 21
Domain 2: Configuration Management and IaC · Task 2.1An agency must deploy a security baseline stack to all accounts in its organization and two Regions, including future accounts. What should the engineer use?
Question 22
Domain 2: Configuration Management and IaC · Task 2.1Agency engineers changed a CloudFormation-managed security group in the console during an incident. The agency must find all such changes across 50 stacks. What should the engineer run?
Question 23
Domain 2: Configuration Management and IaC · Task 2.2An agency is moving to a multi-account structure with separate accounts for security tooling, logging, shared networking and each program. Which service sets this up with guardrails fastest?
Question 24
Domain 2: Configuration Management and IaC · Task 2.2Agency policy forbids workloads in Regions outside the country. Account administrators must not be able to override this. What should the engineer configure?
Question 25
Domain 2: Configuration Management and IaC · Task 2.2An agency must ensure all accounts have AWS Config recording, CloudTrail to the log archive, and a read-only audit role, without manual steps. Which approach fits BEST?
Question 26
Domain 2: Configuration Management and IaC · Task 2.2An agency wants all IAM users banned in member accounts; people must use federation only. Which control fits BEST?
Question 27
Domain 2: Configuration Management and IaC · Task 2.3An agency must apply STIG configuration settings to 1,200 Windows and Linux servers, and correct any that drift, with compliance reports for auditors. What should the engineer use?
Question 28
Domain 2: Configuration Management and IaC · Task 2.3An agency processes benefit applications through steps: validate, check eligibility with another agency's API, wait for a caseworker, and notify the citizen. Steps must be auditable and retried on failure. What should the engineer use?
Question 29
Domain 2: Configuration Management and IaC · Task 2.3An agency needs proof each month that all Linux servers have current security patches, across 25 accounts, in one report. Which TWO features fit? Select TWO.
Choose 2.
Question 30
Domain 2: Configuration Management and IaC · Task 2.3Operators must run approved scripts on servers only during approved change windows, with each run recorded. Which Systems Manager features fit BEST?
Question 31
Domain 3: Resilient Cloud Solutions · Task 3.1A tax filing portal must stay available during an AZ failure on filing day. Which TWO design elements fit? Select TWO.
Choose 2.
Question 32
Domain 3: Resilient Cloud Solutions · Task 3.1An agency's emergency alert API must keep working even if an entire Region fails. Data changes must be available in the second Region within a second. Which data store fits BEST?
Question 33
Domain 3: Resilient Cloud Solutions · Task 3.1An agency's API depends on a state partner's system that is often slow. During slowdowns, the agency's API threads are exhausted. What should the engineer implement?
Question 34
Domain 3: Resilient Cloud Solutions · Task 3.1A citizen portal's RDS for PostgreSQL database must fail over automatically within a minute or two if the primary fails, with no data loss. What should the engineer enable?
Question 35
Domain 3: Resilient Cloud Solutions · Task 3.2An agency's form submission spikes 20 times on the last day of a deadline. The backend can't keep up and submissions fail. What should the engineer change?
Question 36
Domain 3: Resilient Cloud Solutions · Task 3.2A public records search on ECS Fargate must scale with requests per target and keep latency stable. What should the engineer configure?
Question 37
Domain 3: Resilient Cloud Solutions · Task 3.2An agency's static open-data downloads are served from EC2 instances, which overload when datasets are published. What should the engineer do?
Question 38
Domain 3: Resilient Cloud Solutions · Task 3.2An agency's Lambda-based eligibility checker is throttled because other functions use the account's concurrency. The checker must always have capacity for 200 concurrent requests. What should the engineer configure?
Question 39
Domain 3: Resilient Cloud Solutions · Task 3.3An agency's case management system needs an RTO of 15 minutes and RPO of seconds for a Regional outage, and a scaled-down running copy in the second Region is acceptable. Which strategy fits BEST?
Question 40
Domain 3: Resilient Cloud Solutions · Task 3.3Agency backups must be immutable, kept for 10 years, and copied to a separate account so a compromised admin can't delete them. Which TWO features fit? Select TWO.
Choose 2.
Question 41
Domain 3: Resilient Cloud Solutions · Task 3.3An agency must test its DR plan quarterly and measure the actual RTO, without disrupting production. Which approach fits BEST?
Question 42
Domain 4: Monitoring and Logging · Task 4.1An agency must keep CloudTrail, VPC Flow Logs and application logs for 7 years in a central account, immutable, and searchable when needed. Which TWO actions fit? Select TWO.
Choose 2.
Question 43
Domain 4: Monitoring and Logging · Task 4.1Agency policy requires CloudWatch Logs encrypted with agency-controlled keys, and only the security team may decrypt certain log groups. What should the engineer configure?
Question 44
Domain 4: Monitoring and Logging · Task 4.1The agency runs a mixed estate: 300 servers in its own data center and 500 EC2 instances. Operations wants identical log and metric collection on both, managed from one place. What should the engineer do?
Question 45
Domain 4: Monitoring and Logging · Task 4.1A benefits system's developers discover that national ID numbers have been written to application log events for months. Only the privacy office may ever see them in clear text. What should the engineer configure?
Question 46
Domain 4: Monitoring and Logging · Task 4.2Investigators need SQL access to three years of API activity from 80 accounts, and the agency has no staff to maintain Glue tables, crawlers or partitions. Which option fits BEST?
Question 47
Domain 4: Monitoring and Logging · Task 4.2A citizen portal's latency varies by time of day and season, and static alarms either miss problems or page too often. What should the engineer configure?
Question 48
Domain 4: Monitoring and Logging · Task 4.2Auditors want continuous evidence that all accounts meet a set of compliance controls, mapped to a framework, with reports. Which TWO services fit? Select TWO.
Choose 2.
Question 49
Domain 4: Monitoring and Logging · Task 4.2A multi-tier permit system has slow requests, and the team can't tell whether the API, queue or database is the bottleneck. What should the engineer add?
Question 50
Domain 4: Monitoring and Logging · Task 4.3Agency policy treats any use of an account's root credentials as a security incident. The security operations center must learn of it within minutes. What should the engineer configure?
Question 51
Domain 4: Monitoring and Logging · Task 4.3An agency's EC2 fleet must report memory and disk metrics, and any instance without the CloudWatch agent must get it automatically. What should the engineer configure?
Question 52
Domain 4: Monitoring and Logging · Task 4.3Auditors found agency buckets missing access logs and encryption settings. Program teams create buckets weekly, and any gap must be corrected without a person stepping in. What should the engineer configure?
Question 53
Domain 5: Incident and Event Response · Task 5.1When a new citizen application arrives, five downstream systems must each be notified, and more will be added without changing the intake system. Which pattern fits BEST?
Question 54
Domain 5: Incident and Event Response · Task 5.1The agency's IT service management tool must receive a ticket automatically whenever AWS reports an issue or scheduled change affecting resources in any of its 80 accounts. What should the engineer configure?
Question 55
Domain 5: Incident and Event Response · Task 5.1A records ingestion pipeline receives events that must be processed in order per case ID, with duplicates removed. Which service fits BEST?
Question 56
Domain 5: Incident and Event Response · Task 5.2Config finds an EBS volume created without encryption in a program account. The agency wants an automatic response that notifies the owner and opens an OpsItem. Which design fits BEST?
Question 57
Domain 5: Incident and Event Response · Task 5.2When GuardDuty detects an instance communicating with a known command-and-control server, the agency wants the instance isolated and forensic snapshots taken automatically. What should the engineer configure?
Question 58
Domain 5: Incident and Event Response · Task 5.2An agency's Auto Scaling groups must be updated when a new hardened AMI is published monthly, replacing instances gradually. Which design fits BEST?
Question 59
Domain 5: Incident and Event Response · Task 5.3A pipeline's CloudFormation stage fails with 'User is not authorized to perform iam:PassRole'. What should the engineer fix?
Question 60
Domain 5: Incident and Event Response · Task 5.3A records API on ECS fails health checks after a release, and tasks keep restarting. The logs show 'connection refused' to the database. What should the engineer check FIRST?
Question 61
Domain 5: Incident and Event Response · Task 5.3After an agency migrated an app to Lambda in a VPC, the function times out calling Secrets Manager. The subnets have no NAT gateway. What should the engineer add?
Question 62
Domain 5: Incident and Event Response · Task 5.3An Auto Scaling group for a permit portal fails to launch instances with 'You are not authorized to use launch template'. What is the MOST likely cause?
Question 63
Domain 6: Security and Compliance · Task 6.1An agency's 4,000 staff use a government identity provider with smart cards. They need role-based access to 80 accounts with short sessions. What should the engineer configure?
Question 64
Domain 6: Security and Compliance · Task 6.1Contractors need temporary access to one program's accounts, ending automatically when their contract ends. Which approach fits BEST?
Question 65
Domain 6: Security and Compliance · Task 6.1A program's developers may create IAM roles for their workloads but must never exceed a defined set of permissions. What should the engineer require?
Question 66
Domain 6: Security and Compliance · Task 6.1An agency's on-premises case system needs to call AWS APIs. Policy forbids long-term credentials, and the agency runs its own PKI. What should the engineer use?
Question 67
Domain 6: Security and Compliance · Task 6.1Database credentials for 30 agency applications must rotate every 60 days automatically without downtime. What should the engineer use?
Question 68
Domain 6: Security and Compliance · Task 6.2An agency requires FIPS 140-validated cryptography and that its keys be in HSMs it exclusively controls, while still using S3 and EBS encryption. What should the engineer use?
Question 69
Domain 6: Security and Compliance · Task 6.2Agency applications must call AWS APIs only through FIPS endpoints in US Regions. How should the engineer configure the applications?
Question 70
Domain 6: Security and Compliance · Task 6.2An agency must apply the same WAF rules, Shield Advanced protection and security group baselines to every account's public resources, including new ones. Which service fits BEST?
Question 71
Domain 6: Security and Compliance · Task 6.2Citizen documents uploaded to S3 must be scanned for personal data and classified, across 30 program accounts, with findings sent to the security team. Which TWO components fit? Select TWO.
Choose 2.
Question 72
Domain 6: Security and Compliance · Task 6.3Auditors must be able to prove CloudTrail logs weren't altered and that logging was never turned off in any account. Which TWO controls fit? Select TWO.
Choose 2.
Question 73
Domain 6: Security and Compliance · Task 6.3The agency's security team wants threat detection for API activity, network traffic and DNS across all accounts, with findings centralized. What should the engineer enable?
Question 74
Domain 6: Security and Compliance · Task 6.3A data-sharing review must list every bucket, key and role whose policy lets a principal from another organization in, and must keep the list current as policies change. Which service fits BEST?
Question 75
Domain 6: Security and Compliance · Task 6.3The agency must show a security posture score for each program account against a best-practices standard, updated continuously. What should the engineer use?
75 questions unanswered; they count as wrong.
Video walkthrough
Try the exam first, then watch every question worked through.