Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Practice Test 13
Question 120
An AWS platform team investigates this condition: An automated CloudFormation update rolls back because a new IAM permission is denied, but the team plans to delete the entire production stack to recover. Which DevOps principle BEST explains the core problem?
- Configuration state should be continuously enforced on new and existing managed nodes.
- A failed IaC update should be diagnosed and recovered without destroying existing service state.
- Managed multi-account deployment benefits from governed CloudFormation StackSets administration.
- Parameter naming and permissions must isolate environment configuration.
Explanation
Correct Answer
B:A failed IaC update should be diagnosed and recovered without destroying existing service state. Relevant first evidence: Inspect stack events, failed resources, execution role permissions and rollback status. The resulting controlled response is: Correct the permission or invalid change and use the supported stack recovery or update workflow.
Incorrect Answers
A:Configuration state should be continuously enforced on new and existing managed nodes. This instead addresses a different case: A managed EC2 fleet often loses an approved monitoring agent after instance replacement. For the stated situation (An automated CloudFormation update rolls back because a new IAM permission is denied, but the team plans to delete the entire production stack to recover.), the better principle is: A failed IaC update should be diagnosed and recovered without destroying existing service state. The deciding distinction is: A failed IaC update should be diagnosed and recovered without destroying existing service state.
C:Managed multi-account deployment benefits from governed CloudFormation StackSets administration. This instead addresses a different case: A central platform team needs to roll out an approved Config rule to newly joined accounts across multiple Regions without manual role creation each time. For the stated situation (An automated CloudFormation update rolls back because a new IAM permission is denied, but the team plans to delete the entire production stack to recover.), the better principle is: A failed IaC update should be diagnosed and recovered without destroying existing service state. The deciding distinction is: A failed IaC update should be diagnosed and recovered without destroying existing service state.
D:Parameter naming and permissions must isolate environment configuration. This instead addresses a different case: Multiple environments share unqualified /db/password parameter names and a production application accidentally reads a staging secret. For the stated situation (An automated CloudFormation update rolls back because a new IAM permission is denied, but the team plans to delete the entire production stack to recover.), the better principle is: A failed IaC update should be diagnosed and recovered without destroying existing service state. The deciding distinction is: A failed IaC update should be diagnosed and recovered without destroying existing service state.
Question 121
Before changing production, engineers find: A public API invokes Lambda and saturates an external payment service when automatic concurrency grows after a marketing event. Which investigation should the engineer perform FIRST?
- Inspect Lambda concurrent executions, throttles, payment API quotas and latency.
- Inspect hit ratios, query rate, freshness needs and per-user access controls.
- Review target tracking, ALB request metrics, task CPU/memory and scaling cooldown.
- Review subnet free addresses, quotas, launch templates, recovery-time budget and data replicas.
Explanation
Correct Answer
A:Inspect Lambda concurrent executions, throttles, payment API quotas and latency. The governing principle is: Serverless scaling must respect downstream rate limits and concurrency budgets. The next controlled engineering decision is: Use reserved concurrency or queue buffering and controlled backpressure.
Incorrect Answers
B:Inspect hit ratios, query rate, freshness needs and per-user access controls. This instead addresses a different case: An authenticated read-heavy API repeatedly queries a database for identical catalog metadata, exhausting database read capacity. For the stated situation (A public API invokes Lambda and saturates an external payment service when automatic concurrency grows after a marketing event.), the better investigation is: Inspect Lambda concurrent executions, throttles, payment API quotas and latency. The deciding distinction is: Serverless scaling must respect downstream rate limits and concurrency budgets.
C:Review target tracking, ALB request metrics, task CPU/memory and scaling cooldown. This instead addresses a different case: An ECS Fargate application scales tasks manually and saturates its ALB during promotional traffic spikes. For the stated situation (A public API invokes Lambda and saturates an external payment service when automatic concurrency grows after a marketing event.), the better investigation is: Inspect Lambda concurrent executions, throttles, payment API quotas and latency. The deciding distinction is: Serverless scaling must respect downstream rate limits and concurrency budgets.
D:Review subnet free addresses, quotas, launch templates, recovery-time budget and data replicas. This instead addresses a different case: A pilot-light disaster recovery setup replicates data but recovery scripts try to restore full production capacity into an undersized subnet with insufficient IPs. For the stated situation (A public API invokes Lambda and saturates an external payment service when automatic concurrency grows after a marketing event.), the better investigation is: Inspect Lambda concurrent executions, throttles, payment API quotas and latency. The deciding distinction is: Serverless scaling must respect downstream rate limits and concurrency budgets.
Question 122
An AWS platform team investigates this condition: A pipeline applies a template change that silently replaces a stateful database resource during a minor refactor. Which DevOps principle BEST explains the core problem?
- Security assessment should be incorporated at a stage where an unsafe artifact can be blocked.
- Infrastructure changes should be previewed and checked for destructive resource effects.
- Performance acceptance must use representative concurrency and measured service-level thresholds.
- Container provenance controls should verify publishers and immutable artifact digests.
Explanation
Correct Answer
B:Infrastructure changes should be previewed and checked for destructive resource effects. Relevant first evidence: Review generated CloudFormation change sets, deletion or replacement actions and approval policy. The resulting controlled response is: Create and inspect a change set before controlled production execution.
Incorrect Answers
A:Security assessment should be incorporated at a stage where an unsafe artifact can be blocked. This instead addresses a different case: A container image with a known critical OS vulnerability is built and deployed because only compilation and unit testing are gated. For the stated situation (A pipeline applies a template change that silently replaces a stateful database resource during a minor refactor.), the better principle is: Infrastructure changes should be previewed and checked for destructive resource effects. The deciding distinction is: Infrastructure changes should be previewed and checked for destructive resource effects.
C:Performance acceptance must use representative concurrency and measured service-level thresholds. This instead addresses a different case: A service passes one-user functional tests yet violates its 99th percentile latency target at peak checkout demand. For the stated situation (A pipeline applies a template change that silently replaces a stateful database resource during a minor refactor.), the better principle is: Infrastructure changes should be previewed and checked for destructive resource effects. The deciding distinction is: Infrastructure changes should be previewed and checked for destructive resource effects.
D:Container provenance controls should verify publishers and immutable artifact digests. This instead addresses a different case: A registry contains internal and third-party images, and the deployment job cannot distinguish approved signed builds from untrusted tags. For the stated situation (A pipeline applies a template change that silently replaces a stateful database resource during a minor refactor.), the better principle is: Infrastructure changes should be previewed and checked for destructive resource effects. The deciding distinction is: Infrastructure changes should be previewed and checked for destructive resource effects.
Question 123
An AWS platform team investigates this condition: A telemetry consumer requires per-device ordering but producers assign random partition keys and observations arrive out of sequence. Which DevOps principle BEST explains the core problem?
- Provider health notifications complement application and resource telemetry.
- Security findings need reliable event routing with context and severity-based action.
- Event-based remediation should be scoped to the affected resource and run with least privilege.
- Stream ordering guarantees depend on partition key and consumer processing model.
Explanation
Correct Answer
D:Stream ordering guarantees depend on partition key and consumer processing model. Relevant first evidence: Inspect producer partition-key selection, shard mapping and processing checkpoints. The resulting controlled response is: Use stable device partition keys where ordering is required, with monitored throughput.
Incorrect Answers
A:Provider health notifications complement application and resource telemetry. This instead addresses a different case: An AWS Health event affects a critical enterprise database in an otherwise quiet account, but the team monitors only application CloudWatch alarms. For the stated situation (A telemetry consumer requires per-device ordering but producers assign random partition keys and observations arrive out of sequence.), the better principle is: Stream ordering guarantees depend on partition key and consumer processing model. The deciding distinction is: Stream ordering guarantees depend on partition key and consumer processing model.
B:Security findings need reliable event routing with context and severity-based action. This instead addresses a different case: A GuardDuty finding appears in one account, but the incident team sees it only after manually checking the service console. For the stated situation (A telemetry consumer requires per-device ordering but producers assign random partition keys and observations arrive out of sequence.), the better principle is: Stream ordering guarantees depend on partition key and consumer processing model. The deciding distinction is: Stream ordering guarantees depend on partition key and consumer processing model.
C:Event-based remediation should be scoped to the affected resource and run with least privilege. This instead addresses a different case: AWS Config finds an EC2 instance without the approved monitoring agent, but the repair Lambda has permission to modify every resource in the account. For the stated situation (A telemetry consumer requires per-device ordering but producers assign random partition keys and observations arrive out of sequence.), the better principle is: Stream ordering guarantees depend on partition key and consumer processing model. The deciding distinction is: Stream ordering guarantees depend on partition key and consumer processing model.
Question 124
After implementing a proposed fix, the team reviews: An S3 ObjectCreated event invokes a Lambda that retries a billing update after a transient error and charges the same customer twice. Which result would BEST confirm that the risk is addressed?
- An unauthorized delete request fails and recovery data remains protected.
- A scheduled invocation occurs after the old server is terminated and failures are detectable.
- A simulated timeout follows the expected recovery or compensation path without skipped stages.
- Replaying the same event does not produce a second charge.
Explanation
Correct Answer
D:Replaying the same event does not produce a second charge. The approved action is: Implement a durable idempotency key and conditional write or transaction guard. The risk principle is: At-least-once event processing requires idempotent operations and a stable request identity.
Incorrect Answers
A:An unauthorized delete request fails and recovery data remains protected. This instead addresses a different case: A production database is managed in a stack whose deletion could be triggered by an overly broad cleanup pipeline. For the stated situation (An S3 ObjectCreated event invokes a Lambda that retries a billing update after a transient error and charges the same customer twice.), the better verification is: Replaying the same event does not produce a second charge. The deciding distinction is: At-least-once event processing requires idempotent operations and a stable request identity.
B:A scheduled invocation occurs after the old server is terminated and failures are detectable. This instead addresses a different case: A production housekeeping Lambda is triggered by a local server cron job and silently stops after that server is retired. For the stated situation (An S3 ObjectCreated event invokes a Lambda that retries a billing update after a transient error and charges the same customer twice.), the better verification is: Replaying the same event does not produce a second charge. The deciding distinction is: At-least-once event processing requires idempotent operations and a stable request identity.
C:A simulated timeout follows the expected recovery or compensation path without skipped stages. This instead addresses a different case: A manual checklist coordinates data migration, validation, and customer notification, but operators skip steps when a Lambda function times out. For the stated situation (An S3 ObjectCreated event invokes a Lambda that retries a billing update after a transient error and charges the same customer twice.), the better verification is: Replaying the same event does not produce a second charge. The deciding distinction is: At-least-once event processing requires idempotent operations and a stable request identity.
Question 125
An engineering review identifies: A predictable daily traffic peak starts before the reactive Auto Scaling policy can launch sufficient EC2 instances. Which shortcut is MOST unsafe for this exact condition?
- Keep alarms on a dashboard only and rely on operators to notice a failed release.
- Raise the queue depth threshold while ignoring message age and failures.
- Raise the static threshold above all observed peaks and ignore future anomalies.
- Wait for an error-rate alarm to fire before adding all needed capacity every morning.
Explanation
Correct Answer
D:Wait for an error-rate alarm to fire before adding all needed capacity every morning. The case is: A predictable daily traffic peak starts before the reactive Auto Scaling policy can launch sufficient EC2 instances. A safer engineering response is: Configure suitable scheduled or predictive scaling alongside reactive controls. The deciding principle is: Predictable demand can be addressed with scheduled or predictive capacity planning.
Incorrect Answers
A:Keep alarms on a dashboard only and rely on operators to notice a failed release. This instead addresses a different case: A new ECS task definition produces errors after traffic shift, but the deployment continues to completion because alarms are not associated with the release. For the stated situation (A predictable daily traffic peak starts before the reactive Auto Scaling policy can launch sufficient EC2 instances.), the better unsafe assumption to reject is: Wait for an error-rate alarm to fire before adding all needed capacity every morning. The deciding distinction is: Predictable demand can be addressed with scheduled or predictive capacity planning.
B:Raise the queue depth threshold while ignoring message age and failures. This instead addresses a different case: A queue's depth remains modest but its oldest message waits 40 minutes because one poison message repeatedly fails processing. For the stated situation (A predictable daily traffic peak starts before the reactive Auto Scaling policy can launch sufficient EC2 instances.), the better unsafe assumption to reject is: Wait for an error-rate alarm to fire before adding all needed capacity every morning. The deciding distinction is: Predictable demand can be addressed with scheduled or predictive capacity planning.
C:Raise the static threshold above all observed peaks and ignore future anomalies. This instead addresses a different case: A seasonal shopping workload triggers fixed CPU threshold alerts every evening although nightly traffic is normal and expected. For the stated situation (A predictable daily traffic peak starts before the reactive Auto Scaling policy can launch sufficient EC2 instances.), the better unsafe assumption to reject is: Wait for an error-rate alarm to fire before adding all needed capacity every morning. The deciding distinction is: Predictable demand can be addressed with scheduled or predictive capacity planning.
Question 126
Before changing production, engineers find: A document service requires copies in a separate Region, but new objects stay only in the source S3 bucket. Which investigation should the engineer perform FIRST?
- Inspect secret replication, KMS key design, role access and DNS/failover flows.
- Measure backlog per worker, task duration, queue age and scaling policies.
- Review source/destination versioning, replication rule scope, IAM role and KMS key grants.
- Inspect Route 53 health check settings, record sets, TTL and primary/secondary target state.
Explanation
Correct Answer
C:Review source/destination versioning, replication rule scope, IAM role and KMS key grants. The governing principle is: Cross-Region object resilience requires configured replication and suitable versioning and permissions. The next controlled engineering decision is: Configure S3 replication with required permissions and encryption handling.
Incorrect Answers
A:Inspect secret replication, KMS key design, role access and DNS/failover flows. This instead addresses a different case: A warm standby web tier exists in a second Region but depends on secrets and KMS keys that are only accessible in the primary Region. For the stated situation (A document service requires copies in a separate Region, but new objects stay only in the source S3 bucket.), the better investigation is: Review source/destination versioning, replication rule scope, IAM role and KMS key grants. The deciding distinction is: Cross-Region object resilience requires configured replication and suitable versioning and permissions.
B:Measure backlog per worker, task duration, queue age and scaling policies. This instead addresses a different case: A worker fleet uses CPU utilization to scale even though pending SQS message backlog increases rapidly while CPU remains low. For the stated situation (A document service requires copies in a separate Region, but new objects stay only in the source S3 bucket.), the better investigation is: Review source/destination versioning, replication rule scope, IAM role and KMS key grants. The deciding distinction is: Cross-Region object resilience requires configured replication and suitable versioning and permissions.
D:Inspect Route 53 health check settings, record sets, TTL and primary/secondary target state. This instead addresses a different case: A secondary-region service is healthy but Route 53 sends users to a failed primary endpoint because its failover record has no meaningful health check. For the stated situation (A document service requires copies in a separate Region, but new objects stay only in the source S3 bucket.), the better investigation is: Review source/destination versioning, replication rule scope, IAM role and KMS key grants. The deciding distinction is: Cross-Region object resilience requires configured replication and suitable versioning and permissions.
Question 127
Before changing production, engineers find: A container image with a known critical OS vulnerability is built and deployed because only compilation and unit testing are gated. Which investigation should the engineer perform FIRST?
- Review generated CloudFormation change sets, deletion or replacement actions and approval policy.
- Review synthetic journey coverage, response assertion logic and post-deploy gate signals.
- Inspect published version ARNs, alias routing and rollback manifest.
- Inspect image scan reports, vulnerability severity policy and promotion configuration.
Explanation
Correct Answer
D:Inspect image scan reports, vulnerability severity policy and promotion configuration. The governing principle is: Security assessment should be incorporated at a stage where an unsafe artifact can be blocked. The next controlled engineering decision is: Integrate supported image vulnerability scanning and a risk-based release gate.
Incorrect Answers
A:Review generated CloudFormation change sets, deletion or replacement actions and approval policy. This instead addresses a different case: A pipeline applies a template change that silently replaces a stateful database resource during a minor refactor. For the stated situation (A container image with a known critical OS vulnerability is built and deployed because only compilation and unit testing are gated.), the better investigation is: Inspect image scan reports, vulnerability severity policy and promotion configuration. The deciding distinction is: Security assessment should be incorporated at a stage where an unsafe artifact can be blocked.
B:Review synthetic journey coverage, response assertion logic and post-deploy gate signals. This instead addresses a different case: After a deployment, the homepage returns HTTP 200 while checkout is broken for authenticated customers. For the stated situation (A container image with a known critical OS vulnerability is built and deployed because only compilation and unit testing are gated.), the better investigation is: Inspect image scan reports, vulnerability severity policy and promotion configuration. The deciding distinction is: Security assessment should be incorporated at a stage where an unsafe artifact can be blocked.
C:Inspect published version ARNs, alias routing and rollback manifest. This instead addresses a different case: A Lambda release is invoked through an alias but the deployment pipeline overwrites the prior version identifier in its rollback records. For the stated situation (A container image with a known critical OS vulnerability is built and deployed because only compilation and unit testing are gated.), the better investigation is: Inspect image scan reports, vulnerability severity policy and promotion configuration. The deciding distinction is: Security assessment should be incorporated at a stage where an unsafe artifact can be blocked.
Question 128
After implementing a proposed fix, the team reviews: A new ECS task definition produces errors after traffic shift, but the deployment continues to completion because alarms are not associated with the release. Which result would BEST confirm that the risk is addressed?
- A failing test release restores healthy tasks while recording the rollback reason.
- Capacity is ready before known peaks while unwanted excess capacity is limited.
- A test matching event reaches the correct responder with affected account context.
- A deliberate application 500 is distinguishable from an ALB-origin 503 in monitoring.
Explanation
Correct Answer
A:A failing test release restores healthy tasks while recording the rollback reason. The approved action is: Associate deployment-specific health alarms and enable appropriate automated rollback. The risk principle is: Delivery should link actionable CloudWatch alarms to supported deployment rollback actions.
Incorrect Answers
B:Capacity is ready before known peaks while unwanted excess capacity is limited. This instead addresses a different case: A predictable daily traffic peak starts before the reactive Auto Scaling policy can launch sufficient EC2 instances. For the stated situation (A new ECS task definition produces errors after traffic shift, but the deployment continues to completion because alarms are not associated with the release.), the better verification is: A failing test release restores healthy tasks while recording the rollback reason. The deciding distinction is: Delivery should link actionable CloudWatch alarms to supported deployment rollback actions.
C:A test matching event reaches the correct responder with affected account context. This instead addresses a different case: A regional AWS Health event indicates maintenance of a service used by five accounts, but no on-call team receives it. For the stated situation (A new ECS task definition produces errors after traffic shift, but the deployment continues to completion because alarms are not associated with the release.), the better verification is: A failing test release restores healthy tasks while recording the rollback reason. The deciding distinction is: Delivery should link actionable CloudWatch alarms to supported deployment rollback actions.
D:A deliberate application 500 is distinguishable from an ALB-origin 503 in monitoring. This instead addresses a different case: An application dashboard reports increased HTTP 5xx errors after release, but it does not distinguish target errors from errors generated by the ALB. For the stated situation (A new ECS task definition produces errors after traffic shift, but the deployment continues to completion because alarms are not associated with the release.), the better verification is: A failing test release restores healthy tasks while recording the rollback reason. The deciding distinction is: Delivery should link actionable CloudWatch alarms to supported deployment rollback actions.
Question 129
An AWS platform team investigates this condition: The secondary service is healthy, but a disaster exercise reveals operators cannot change DNS because the failover role lacks permission. Which DevOps principle BEST explains the core problem?
- Backup retention should resist malicious or accidental deletion for the required period.
- Client endpoint strategy must match the intended Aurora failover and read routing.
- Recovery feasibility includes pre-authorized IAM roles and tested control-plane actions.
- Disaster recovery needs repeatable orchestration and measured test evidence.
Explanation
Correct Answer
C:Recovery feasibility includes pre-authorized IAM roles and tested control-plane actions. Relevant first evidence: Inspect role trust and permissions, routing policy and operational incident access. The resulting controlled response is: Define least-privilege emergency DNS roles and practice failover under expected conditions.
Incorrect Answers
A:Backup retention should resist malicious or accidental deletion for the required period. This instead addresses a different case: A regulated dataset is protected by S3 copies, but the only operator can permanently delete versions during an incident. For the stated situation (The secondary service is healthy, but a disaster exercise reveals operators cannot change DNS because the failover role lacks permission.), the better principle is: Recovery feasibility includes pre-authorized IAM roles and tested control-plane actions. The deciding distinction is: Recovery feasibility includes pre-authorized IAM roles and tested control-plane actions.
B:Client endpoint strategy must match the intended Aurora failover and read routing. This instead addresses a different case: An Aurora cluster has replicas in different AZs but applications use fixed instance endpoints and never fail over to another reader. For the stated situation (The secondary service is healthy, but a disaster exercise reveals operators cannot change DNS because the failover role lacks permission.), the better principle is: Recovery feasibility includes pre-authorized IAM roles and tested control-plane actions. The deciding distinction is: Recovery feasibility includes pre-authorized IAM roles and tested control-plane actions.
D:Disaster recovery needs repeatable orchestration and measured test evidence. This instead addresses a different case: A failover runbook manually changes 14 DNS and compute settings in a fixed order; quarterly drills frequently skip steps. For the stated situation (The secondary service is healthy, but a disaster exercise reveals operators cannot change DNS because the failover role lacks permission.), the better principle is: Recovery feasibility includes pre-authorized IAM roles and tested control-plane actions. The deciding distinction is: Recovery feasibility includes pre-authorized IAM roles and tested control-plane actions.
Question 130
An AWS platform team investigates this condition: A tagged production S3 bucket is currently private, but auditors need to know whether it was public during a past incident window. Which DevOps principle BEST explains the core problem?
- Queue monitoring must track oldest message age and dead-letter handling, not count alone.
- Troubleshooting requires separating load balancer and target failure metrics.
- Dynamic baseline alarms can detect unusual deviations when static thresholds create chronic false positives.
- Compliance conclusions depend on time-relevant configuration history, not only present state.
Explanation
Correct Answer
D:Compliance conclusions depend on time-relevant configuration history, not only present state. Relevant first evidence: Review AWS Config resource timeline and recorded CloudTrail changes for the period. The resulting controlled response is: Query historical configuration snapshots and correlate with authorization records.
Incorrect Answers
A:Queue monitoring must track oldest message age and dead-letter handling, not count alone. This instead addresses a different case: A queue's depth remains modest but its oldest message waits 40 minutes because one poison message repeatedly fails processing. For the stated situation (A tagged production S3 bucket is currently private, but auditors need to know whether it was public during a past incident window.), the better principle is: Compliance conclusions depend on time-relevant configuration history, not only present state. The deciding distinction is: Compliance conclusions depend on time-relevant configuration history, not only present state.
B:Troubleshooting requires separating load balancer and target failure metrics. This instead addresses a different case: An application dashboard reports increased HTTP 5xx errors after release, but it does not distinguish target errors from errors generated by the ALB. For the stated situation (A tagged production S3 bucket is currently private, but auditors need to know whether it was public during a past incident window.), the better principle is: Compliance conclusions depend on time-relevant configuration history, not only present state. The deciding distinction is: Compliance conclusions depend on time-relevant configuration history, not only present state.
C:Dynamic baseline alarms can detect unusual deviations when static thresholds create chronic false positives. This instead addresses a different case: A seasonal shopping workload triggers fixed CPU threshold alerts every evening although nightly traffic is normal and expected. For the stated situation (A tagged production S3 bucket is currently private, but auditors need to know whether it was public during a past incident window.), the better principle is: Compliance conclusions depend on time-relevant configuration history, not only present state. The deciding distinction is: Compliance conclusions depend on time-relevant configuration history, not only present state.