Exam Information
Free practice questions with explanations
Amazon DOP-C02 Practice Questions
Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.
- Questions
- 12
- Answered
- 0
- Correct
- 0
- Score
- -
-
1 Question 1 Single choice Configuration Management and IaC
A company manages 40 AWS accounts through AWS Organizations and deploys a shared VPC stack into every account in each of three Regions. The platform team wants a single template change to roll out automatically to all current and future accounts and Regions, with no manual per-account steps, and wants any drift in the deployed stacks to be detected centrally. Which approach BEST meets these requirements?
Correct Answer: AExplanationService-managed StackSets integrate with AWS Organizations, so the stack is deployed to target OUs across chosen Regions, new accounts that join the OU receive the stack automatically, and StackSet drift detection can be run centrally from the management account. Self-managed permissions require hand-built IAM roles in every account and explicit account lists, which does not scale to future accounts. The Systems Manager runbook is a scheduled push that lacks automatic onboarding and central drift visibility. The per-account EventBridge and Lambda approach multiplies the custom logic that must be maintained and does not give a single organization-wide drift view.
-
2 Question 2 Single choice Incident and Event Response
An e-commerce team runs an Auto Scaling group behind an Application Load Balancer. A new release causes the instances to fail their health checks within minutes of launch, and Auto Scaling keeps terminating and replacing them. The on-call engineer must automatically stop the replacement loop and notify the team as soon as the group reports that scaling activities are failing, without changing the group's launch template. Which action should the engineer configure?
Correct Answer: AExplanationAuto Scaling emits EC2 Instance Launch Unsuccessful events when launches fail, and an EventBridge rule can react to them to set desired capacity to zero and notify through SNS, breaking the loop without touching the launch template. The GroupInServiceInstances alarm reacts to the wrong signal and scaling in by one per alarm period does not stop replacements. Scale-in protection prevents termination by scaling policies but would leave broken instances in place and does not fix the launch failure loop. Rebooting load balancer targets is unrelated to the instance replacement cycle and does not halt the group.
-
3 Question 3 Single choice Monitoring and Logging
A payments company stores application logs in CloudWatch Logs in a central logging account. Regulations require that logs be retained for seven years, but engineers query only the last 30 days interactively and cost must be minimised. Logs from 40 workload accounts currently go to a single log group per application with infinite retention, and storage costs are rising sharply. Which change BEST reduces cost while meeting the retention requirement?
Correct Answer: BExplanationRetention in CloudWatch Logs is a per-log-group setting, so reducing it to 30 days cuts stored volume while a subscription filter streams events to S3 for long-term archival, where Object Lock compliance mode enforces the seven-year immutability that regulators expect. Keeping seven years in CloudWatch Logs is costly for data queried rarely. The Infrequent Access class lowers price but still retains everything in CloudWatch for years, which the cost target rules out. Copying logs into DynamoDB is expensive and unsuited to large log volumes.
-
4 Question 4 Single choice Resilient Cloud Solutions
A financial application runs in us-east-1 with an Aurora PostgreSQL global database serving reads in eu-west-1. The business requires an RPO of under one second and an RTO of under five minutes for a regional outage in us-east-1. The team must keep the application in eu-west-1 able to accept writes after failover, and wants the failover to be initiated quickly without manual cluster reconfiguration. Which design BEST meets these requirements?
Correct Answer: BExplanationWhen the primary Region is unavailable, a planned failover cannot be used because it requires the primary to be reachable, so the team must perform an unplanned failover by detaching the secondary and promoting it to a standalone writable cluster, which typically completes within the five-minute target. Managed planned failover depends on the old primary responding and is therefore the wrong mechanism for a regional outage. Snapshot restore takes far longer than five minutes and loses data beyond the RPO. Cross-Region read replicas are a separate construct and promoting them is not the global database failover path that the RPO and RTO imply.
-
5 Question 5 Single choice SDLC Automation
A team deploys a containerised service to Amazon ECS on Fargate using AWS CodePipeline and CodeDeploy with a blue/green deployment. Their release process requires that traffic shift only after an automated integration test suite passes against the new task set, and that the release roll back automatically if a CloudWatch alarm on the target group's 5xx count fires during the 15 minutes after the shift. Which configuration meets these requirements?
Correct Answer: AExplanationIn an ECS blue/green CodeDeploy deployment, the BeforeAllowTraffic hook runs after the replacement task set is live but before production traffic is shifted, so it is the correct place to gate the shift on tests, and a deployment group alarm configuration rolls back automatically when the named CloudWatch alarm enters the alarm state during the monitoring window. Running tests in AfterAllowTraffic exposes users to the new version before validation. A pipeline action after deployment finishes is too late because traffic has already moved. A BeforeInstall hook runs before the new task set exists, so the tests cannot target it, and rollback on failure alone does not cover alarm-driven failures after the shift.
-
6 Question 6 Single choice Security and Compliance
A company uses IAM Identity Center with a permission set for its developers. Auditors found that developers can create IAM roles with the AdministratorAccess managed policy attached, effectively escalating their privileges. The security team must prevent any principal in the member accounts from creating roles that carry administrative permissions, while still letting developers create ordinary application roles through the existing permission set. The change must apply to all current and future accounts in the organization automatically. Which control BEST achieves this?
Correct Answer: AExplanationAn SCP applied at the organization or OU level applies to all member accounts including future ones, and a deny on iam:AttachRolePolicy conditioned on the AdministratorAccess policy ARN, together with CreateRole where the attached policy is referenced, blocks the escalation path while leaving other role creation possible. A permission set's own permissions boundary does not constrain roles created through other paths and is not an organization-wide guardrail. AWS Config detects and remediates after the fact, so a window of escalation remains and it is not preventive. Requiring a permissions boundary through an SCP is a valid pattern, but it needs every account to pre-create the boundary policy, which the requirement's automatic future coverage does not satisfy.
-
7 Question 7 Multiple choice Configuration Management and IaC
A company manages a fleet of EC2 instances across three accounts using AWS Systems Manager. The platform team wants a configuration baseline that is enforced automatically on newly launched instances and that reports compliance centrally. Which TWO actions together meet these requirements? (Choose two.)
Correct Answer: A, EExplanationA State Manager association with a tag-based target keeps the desired state applied on a schedule, including instances launched later that match the tag, and reports compliance per instance. Resource Data Sync aggregates that compliance and inventory data across accounts into a central location for reporting. User data runs only once at launch and produces no ongoing compliance reporting. A one-time Run Command does not enforce on future instances. A Config conformance pack evaluates compliance but does not apply configuration to instances.
-
8 Question 8 Multiple choice Monitoring and Logging
A team runs a microservices platform on Amazon ECS with Container Insights disabled. Engineers need per-task CPU and memory metrics, and they want the service's custom application latency metric emitted in a structured format to be queryable without publishing each data point individually through the API. The team must avoid writing a custom agent. Which TWO actions meet these requirements? (Choose two.)
Correct Answer: A, DExplanationContainer Insights, once enabled on the ECS cluster, collects task and service CPU and memory metrics without a custom agent, and Embedded Metric Format lets an application write structured JSON log entries that CloudWatch converts into metrics without per-point PutMetricData calls. Metric filters on awslogs logs can extract values but they are a log-level extraction feature, not the format the requirement describes, and they rely on pattern parsing. A CloudWatch agent sidecar is a custom agent, which is excluded. Detailed monitoring on container instances reports instance-level metrics, not per-task ones.
-
9 Question 9 Single choice Incident and Event Response
A platform team runs a stateless API on EC2 instances in an Auto Scaling group. A memory leak appears during peak traffic, and the team has decided that when instances exceed 85 percent memory utilisation for five consecutive minutes, the instance should be replaced automatically with a fresh one, and the faulty instance's logs must be preserved for investigation before termination. Memory metrics come from the CloudWatch agent. Which design meets these requirements?
Correct Answer: BExplanationA scale-in or replacement path driven by the alarm can terminate an instance, and a termination lifecycle hook pauses that termination while an EventBridge rule runs an SSM Automation runbook that uploads the logs; the instance completes termination after the hook is released. Terminating after the alarm without a hook removes the instance before logs are saved. Manual termination fails the automatic replacement requirement. Changing the health check type to ELB does not react to memory utilisation, since memory is not part of load balancer health checks.
-
10 Question 10 Single choice Resilient Cloud Solutions
A company runs a stateful job queue on a single EC2 instance in one Availability Zone, backed by an EBS volume. The business accepts up to 10 minutes of downtime and must recover automatically from an instance or AZ failure with no data loss from the volume. Cost must remain low, and the team wants to avoid running a second active instance. Which approach BEST meets these requirements?
Correct Answer: AExplanationAn Auto Scaling group of size one in two subnets relaunches the instance into a healthy AZ after a failure, and EBS volumes are AZ-scoped, so a lifecycle hook or launch-time automation recovers data by restoring a recent snapshot into the new AZ, keeping the cost of a single running instance. A standby running instance doubles cost and the requirement rules out always-on duplicates. Running two active instances against one queue creates concurrency issues the stateful design cannot tolerate. EBS Multi-Attach only works for io1/io2 volumes attached to instances in the same AZ and does not allow cross-AZ access.
-
11 Question 11 Single choice SDLC Automation
A team builds container images in AWS CodeBuild and pushes them to Amazon ECR. Security requires that only images that have been scanned for critical vulnerabilities can be deployed, and that deployments must fail if a critical finding exists in a newly built image. The pipeline already contains a build stage and a deploy stage to ECS. Which change BEST enforces this requirement within the pipeline?
Correct Answer: CExplanationEnhanced scanning with Amazon Inspector provides continuous findings for ECR images, and a pipeline gate that queries those findings before deployment can fail the pipeline when critical vulnerabilities are present, which satisfies the 'deployment must fail' requirement. Basic scanning does not continuously evaluate images the same way and deleting after deploy is too late, since the vulnerable image has already reached production. A scanner that always exits successfully never blocks, which contradicts the requirement. Tag immutability prevents overwriting tags but does not check vulnerabilities.
-
12 Question 12 Multiple choice Security and Compliance
A company stores sensitive customer documents in Amazon S3 across several accounts. The security team must detect and respond when a bucket policy is changed to allow public access, and must automatically restore compliant policies without human intervention. The solution must work for buckets created in the future. Which TWO actions together meet these requirements? (Choose two.)
Correct Answer: A, EExplanationAn AWS Config rule with automatic remediation through an SSM Automation document detects a non-compliant bucket policy and restores the compliant state without human action, and it applies to future buckets as they are created. CloudTrail management events record the PutBucketPolicy call for auditing and feed EventBridge-based response, while data events are not needed for policy changes. Organization-level Block Public Access is a preventive control that is strong but the requirement asks for detection and automatic restoration of policies, so it is not the restoration mechanism. Server access logs record object requests, not policy changes. Per-account IAM denies do not cover future accounts and are not automatic restoration.
These are 12 of the 449 questions in the full DOP-C02 pack.
Get All 449 QuestionsGet all 449 questions & answers
Full access options for Amazon DOP-C02
Self-study
PDF Version
- 449 actual exam questions
- Compatible with all devices
- Printable PDF format
- No download limits
- 90 days free updates
- 24/7 customer support
Best value
Bundle Pack
- Discounted PDF + online access
- 449 actual exam questions
- Both PDF and online practice test
- Free 90 days updates
- No download or practice limits
- 24/7 customer support
Exam simulation
Online Practice Test
- 449 actual exam questions
- Actual exam environment
- 90 days free updates
- Browser-based software
- 24/7 customer support
100% Money Back Guarantee
Your success comes first
At DumpsProvider, we give you a 100% money back guarantee on all of our exam dumps. For us, your success is the #1 priority and we are more than confident that our exam material will help you pass the DOP-C02 Exam (AWS Certified DevOps Engineer - Professional Exam) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.