Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Practice Test 18
Question 170
The DevOps team must resolve this scenario: A table is accidentally overwritten and operators can restore only yesterday's full snapshot, losing recent transactions. Which engineering change is MOST appropriate?
- Automate suitable recovery steps with controlled Step Functions or Systems Manager workflows.
- Provision and test a suitably sized standby baseline with controlled scale-up on failover.
- Enable supported point-in-time recovery and rehearse restoration of an isolated database.
- Configure ECS Service Auto Scaling with appropriate target tracking and bounds.
Explanation
Correct Answer
C:Enable supported point-in-time recovery and rehearse restoration of an isolated database. Its validation is: A recovery test restores data to an approved timestamp before the accidental update. The principle is: Point-in-time recovery depends on backup retention and database capabilities, not just one manual snapshot.
Incorrect Answers
A:Automate suitable recovery steps with controlled Step Functions or Systems Manager workflows. 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 (A table is accidentally overwritten and operators can restore only yesterday's full snapshot, losing recent transactions.), the better engineering action is: Enable supported point-in-time recovery and rehearse restoration of an isolated database. The deciding distinction is: Point-in-time recovery depends on backup retention and database capabilities, not just one manual snapshot.
B:Provision and test a suitably sized standby baseline with controlled scale-up on failover. This instead addresses a different case: A standby Region has copied AMIs but no provisioned database capacity and cannot accept traffic for hours. For the stated situation (A table is accidentally overwritten and operators can restore only yesterday's full snapshot, losing recent transactions.), the better engineering action is: Enable supported point-in-time recovery and rehearse restoration of an isolated database. The deciding distinction is: Point-in-time recovery depends on backup retention and database capabilities, not just one manual snapshot.
D:Configure ECS Service Auto Scaling with appropriate target tracking and bounds. 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 table is accidentally overwritten and operators can restore only yesterday's full snapshot, losing recent transactions.), the better engineering action is: Enable supported point-in-time recovery and rehearse restoration of an isolated database. The deciding distinction is: Point-in-time recovery depends on backup retention and database capabilities, not just one manual snapshot.
Question 171
Before changing production, engineers find: A broken message repeatedly fails an event-driven worker and blocks useful progress while on-call has no way to inspect it. Which investigation should the engineer perform FIRST?
- Inspect redrive policy, maxReceiveCount, retention and consumer failures.
- Review S3 object delivery patterns, EventBridge trigger timing and job prerequisites.
- Inspect failed logical resources, status reasons, external dependencies and stack events.
- Review GuardDuty event detail, EventBridge filters, targets and incident ownership.
Explanation
Correct Answer
A:Inspect redrive policy, maxReceiveCount, retention and consumer failures. The governing principle is: Poison messages should be isolated with bounded receive counts and accountable remediation. The next controlled engineering decision is: Configure an appropriate SQS DLQ with alerting and governed redrive procedure.
Incorrect Answers
B:Review S3 object delivery patterns, EventBridge trigger timing and job prerequisites. This instead addresses a different case: An automation starts on a fixed schedule even though the required S3 data file often arrives late, causing incomplete daily reports. For the stated situation (A broken message repeatedly fails an event-driven worker and blocks useful progress while on-call has no way to inspect it.), the better investigation is: Inspect redrive policy, maxReceiveCount, retention and consumer failures. The deciding distinction is: Poison messages should be isolated with bounded receive counts and accountable remediation.
C:Inspect failed logical resources, status reasons, external dependencies and stack events. This instead addresses a different case: A production stack enters UPDATE_ROLLBACK_FAILED after a deleted external resource cannot be restored. For the stated situation (A broken message repeatedly fails an event-driven worker and blocks useful progress while on-call has no way to inspect it.), the better investigation is: Inspect redrive policy, maxReceiveCount, retention and consumer failures. The deciding distinction is: Poison messages should be isolated with bounded receive counts and accountable remediation.
D:Review GuardDuty event detail, EventBridge filters, targets and incident ownership. 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 broken message repeatedly fails an event-driven worker and blocks useful progress while on-call has no way to inspect it.), the better investigation is: Inspect redrive policy, maxReceiveCount, retention and consumer failures. The deciding distinction is: Poison messages should be isolated with bounded receive counts and accountable remediation.
Question 172
An AWS platform team investigates this condition: A Lambda release is invoked through an alias but the deployment pipeline overwrites the prior version identifier in its rollback records. Which DevOps principle BEST explains the core problem?
- Kubernetes update strategy must preserve ready capacity and respect disruption limits.
- Gradual Lambda routing enables bounded exposure and CloudWatch-driven rollback.
- Serverless rollbacks should use immutable published versions and controlled alias revisions.
- Artifact storage needs controlled access, encryption and traceable retention.
Explanation
Correct Answer
C:Serverless rollbacks should use immutable published versions and controlled alias revisions. Relevant first evidence: Inspect published version ARNs, alias routing and rollback manifest. The resulting controlled response is: Keep a verifiable mapping from release to Lambda published version and restore alias on failure.
Incorrect Answers
A:Kubernetes update strategy must preserve ready capacity and respect disruption limits. This instead addresses a different case: An EKS rolling deployment scales down all API pods at once, causing requests to fail despite multiple nodes. For the stated situation (A Lambda release is invoked through an alias but the deployment pipeline overwrites the prior version identifier in its rollback records.), the better principle is: Serverless rollbacks should use immutable published versions and controlled alias revisions. The deciding distinction is: Serverless rollbacks should use immutable published versions and controlled alias revisions.
B:Gradual Lambda routing enables bounded exposure and CloudWatch-driven rollback. This instead addresses a different case: A Lambda function update introduces intermittent errors that appear only under a small share of real requests. For the stated situation (A Lambda release is invoked through an alias but the deployment pipeline overwrites the prior version identifier in its rollback records.), the better principle is: Serverless rollbacks should use immutable published versions and controlled alias revisions. The deciding distinction is: Serverless rollbacks should use immutable published versions and controlled alias revisions.
D:Artifact storage needs controlled access, encryption and traceable retention. This instead addresses a different case: Deployment artifacts containing sensitive configuration are stored in an S3 bucket with broad read access and no enforced encryption policy. For the stated situation (A Lambda release is invoked through an alias but the deployment pipeline overwrites the prior version identifier in its rollback records.), the better principle is: Serverless rollbacks should use immutable published versions and controlled alias revisions. The deciding distinction is: Serverless rollbacks should use immutable published versions and controlled alias revisions.
Question 173
A DevOps team is reviewing: A workload role has accumulated broad services permissions over years, and governance wants evidence to narrow them safely. Which TWO complementary actions should it take? Select TWO answers.
- Inspect Access Analyzer findings, service last accessed data and CloudTrail usage.
- Review trust policy principal, external ID use, STS records and least-privilege permissions.
- Inspect finding identifiers, aggregation rules, duplicate rates and missed escalations.
- Inspect trail or CloudTrail Lake event data store scope, retention and access.
- Review actual necessary actions and tighten policy through a monitored rollout.
Explanation
Correct Answers
A:Inspect Access Analyzer findings, service last accessed data and CloudTrail usage. This is a required diagnostic evidence step for the stated situation: A workload role has accumulated broad services permissions over years, and governance wants evidence to narrow them safely. The complementary correct action is: Review actual necessary actions and tighten policy through a monitored rollout. Both follow the principle: IAM activity and access analysis can support least-privilege refinement under monitoring.
E:Review actual necessary actions and tighten policy through a monitored rollout. This is a required controlled engineering action for the stated situation: A workload role has accumulated broad services permissions over years, and governance wants evidence to narrow them safely. The complementary correct action is: Inspect Access Analyzer findings, service last accessed data and CloudTrail usage. Both follow the principle: IAM activity and access analysis can support least-privilege refinement under monitoring.
Incorrect Answers
B:Review trust policy principal, external ID use, STS records and least-privilege permissions. This is suitable for another situation: A deployment service assumes a role in a third-party account, but the trust policy permits any AWS principal in the partner account. In this case, engineers instead need the paired investigation (Inspect Access Analyzer findings, service last accessed data and CloudTrail usage.) and design change (Review actual necessary actions and tighten policy through a monitored rollout.). These two steps address: A workload role has accumulated broad services permissions over years, and governance wants evidence to narrow them safely.
C:Inspect finding identifiers, aggregation rules, duplicate rates and missed escalations. This is suitable for another situation: A monitoring platform generates thousands of identical GuardDuty alerts while missing new critical incidents due to analyst overload. In this case, engineers instead need the paired investigation (Inspect Access Analyzer findings, service last accessed data and CloudTrail usage.) and design change (Review actual necessary actions and tighten policy through a monitored rollout.). These two steps address: A workload role has accumulated broad services permissions over years, and governance wants evidence to narrow them safely.
D:Inspect trail or CloudTrail Lake event data store scope, retention and access. This is suitable for another situation: An incident responder needs to investigate unusual role assumptions across accounts over months, but only recent management events are readily accessible. In this case, engineers instead need the paired investigation (Inspect Access Analyzer findings, service last accessed data and CloudTrail usage.) and design change (Review actual necessary actions and tighten policy through a monitored rollout.). These two steps address: A workload role has accumulated broad services permissions over years, and governance wants evidence to narrow them safely.
Question 174
Before changing production, engineers find: Amazon Inspector reports a critical package CVE on a small set of container images, but the security board assumes all images are affected. Which investigation should the engineer perform FIRST?
- Inspect Inspector finding resources, image digests, package versions and exposure.
- Inspect CloudTrail delivery errors, destination bucket policy and KMS key policy.
- Inspect historical CPU seasonality, anomaly band and alert validation cases.
- Inspect centralized CloudTrail object layout, partitioning and access permissions.
Explanation
Correct Answer
A:Inspect Inspector finding resources, image digests, package versions and exposure. The governing principle is: Findings require accurate resource scope, severity and remediation tracking. The next controlled engineering decision is: Track affected images and update or replace those artifacts through governed pipelines.
Incorrect Answers
B:Inspect CloudTrail delivery errors, destination bucket policy and KMS key policy. This instead addresses a different case: Member accounts send CloudTrail logs to a central S3 bucket but delivery fails after the bucket switches to a new customer managed KMS key. For the stated situation (Amazon Inspector reports a critical package CVE on a small set of container images, but the security board assumes all images are affected.), the better investigation is: Inspect Inspector finding resources, image digests, package versions and exposure. The deciding distinction is: Findings require accurate resource scope, severity and remediation tracking.
C:Inspect historical CPU seasonality, anomaly band and alert validation cases. 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 (Amazon Inspector reports a critical package CVE on a small set of container images, but the security board assumes all images are affected.), the better investigation is: Inspect Inspector finding resources, image digests, package versions and exposure. The deciding distinction is: Findings require accurate resource scope, severity and remediation tracking.
D:Inspect centralized CloudTrail object layout, partitioning and access permissions. This instead addresses a different case: The platform team needs to analyze months of historical organization CloudTrail records across accounts to detect policy changes. For the stated situation (Amazon Inspector reports a critical package CVE on a small set of container images, but the security board assumes all images are affected.), the better investigation is: Inspect Inspector finding resources, image digests, package versions and exposure. The deciding distinction is: Findings require accurate resource scope, severity and remediation tracking.
Question 175
An AWS platform team investigates this condition: A Lambda invoked for a multi-hour infrastructure migration times out before tasks finish and loses progress. Which DevOps principle BEST explains the core problem?
- Configuration state should be continuously enforced on new and existing managed nodes.
- Long-running workflows should use durable orchestration rather than a single Lambda invocation.
- Governed configuration changes should trigger timely, scoped detection and remediation.
- Reusable infrastructure modules should centralize approved patterns and clear interface parameters.
Explanation
Correct Answer
B:Long-running workflows should use durable orchestration rather than a single Lambda invocation. Relevant first evidence: Measure task duration, timeouts, retry safety and progress checkpoints. The resulting controlled response is: Split work into durable Step Functions state transitions or supported managed operations.
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 (A Lambda invoked for a multi-hour infrastructure migration times out before tasks finish and loses progress.), the better principle is: Long-running workflows should use durable orchestration rather than a single Lambda invocation. The deciding distinction is: Long-running workflows should use durable orchestration rather than a single Lambda invocation.
C:Governed configuration changes should trigger timely, scoped detection and remediation. This instead addresses a different case: An application team repeatedly disables approved EBS encryption defaults and security reviews detect the drift weeks later. For the stated situation (A Lambda invoked for a multi-hour infrastructure migration times out before tasks finish and loses progress.), the better principle is: Long-running workflows should use durable orchestration rather than a single Lambda invocation. The deciding distinction is: Long-running workflows should use durable orchestration rather than a single Lambda invocation.
D:Reusable infrastructure modules should centralize approved patterns and clear interface parameters. This instead addresses a different case: Five application teams copy and edit the same network subnet definitions in separate CloudFormation stacks, causing inconsistent security controls. For the stated situation (A Lambda invoked for a multi-hour infrastructure migration times out before tasks finish and loses progress.), the better principle is: Long-running workflows should use durable orchestration rather than a single Lambda invocation. The deciding distinction is: Long-running workflows should use durable orchestration rather than a single Lambda invocation.
Question 176
An engineering review identifies: A mobile API intermittently returns HTTP 429 during marketing peaks, but its Lambda error metric stays nearly zero. Which shortcut is MOST unsafe for this exact condition?
- Assume ACM automatically renews every imported private certificate without intervention.
- Debug Lambda execution logs as the sole source of 429 responses that never reached Lambda.
- Rebuild the app repeatedly without investigating ECR or network access errors.
- Increase only the API Gateway timeout while the database remains unreachable.
Explanation
Correct Answer
B:Debug Lambda execution logs as the sole source of 429 responses that never reached Lambda. The case is: A mobile API intermittently returns HTTP 429 during marketing peaks, but its Lambda error metric stays nearly zero. A safer engineering response is: Tune supported throttling quotas or implement client backoff and capacity planning. The deciding principle is: Request throttling may occur at API Gateway before integration invocation.
Incorrect Answers
A:Assume ACM automatically renews every imported private certificate without intervention. This instead addresses a different case: An ACM-managed certificate is nearing expiration, but an application relies on manually imported certificates whose renewal notifications are ignored. For the stated situation (A mobile API intermittently returns HTTP 429 during marketing peaks, but its Lambda error metric stays nearly zero.), the better unsafe assumption to reject is: Debug Lambda execution logs as the sole source of 429 responses that never reached Lambda. The deciding distinction is: Request throttling may occur at API Gateway before integration invocation.
C:Rebuild the app repeatedly without investigating ECR or network access errors. This instead addresses a different case: New ECS tasks repeatedly remain PENDING with CannotPullContainerError even though the application binary is correct. For the stated situation (A mobile API intermittently returns HTTP 429 during marketing peaks, but its Lambda error metric stays nearly zero.), the better unsafe assumption to reject is: Debug Lambda execution logs as the sole source of 429 responses that never reached Lambda. The deciding distinction is: Request throttling may occur at API Gateway before integration invocation.
D:Increase only the API Gateway timeout while the database remains unreachable. This instead addresses a different case: An API Gateway operation returns 504 and the Lambda function times out only after calling a VPC-hosted database. For the stated situation (A mobile API intermittently returns HTTP 429 during marketing peaks, but its Lambda error metric stays nearly zero.), the better unsafe assumption to reject is: Debug Lambda execution logs as the sole source of 429 responses that never reached Lambda. The deciding distinction is: Request throttling may occur at API Gateway before integration invocation.
Question 177
After implementing a proposed fix, the team reviews: A provisioned DynamoDB table experiences frequent throttling without any configured application alarm. Which result would BEST confirm that the risk is addressed?
- A normal seasonal peak is not escalated, while a genuine abnormal deviation is detected.
- A test misconfigured resource triggers a traceable event and approved corrective action.
- A deliberately failing message is isolated and material backlog delay triggers alerting.
- A load replay produces timely alerts and action before sustained request failure.
Explanation
Correct Answer
D:A load replay produces timely alerts and action before sustained request failure. The approved action is: Create relevant throttling alarms and adjust target tracking or key design as evidence dictates. The risk principle is: Capacity monitoring should alert on consumption, throttling and autoscaling effectiveness.
Incorrect Answers
A:A normal seasonal peak is not escalated, while a genuine abnormal deviation is detected. 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 provisioned DynamoDB table experiences frequent throttling without any configured application alarm.), the better verification is: A load replay produces timely alerts and action before sustained request failure. The deciding distinction is: Capacity monitoring should alert on consumption, throttling and autoscaling effectiveness.
B:A test misconfigured resource triggers a traceable event and approved corrective action. This instead addresses a different case: Security operations wants alerts whenever Config detects that approved encryption settings are disabled on new storage resources. For the stated situation (A provisioned DynamoDB table experiences frequent throttling without any configured application alarm.), the better verification is: A load replay produces timely alerts and action before sustained request failure. The deciding distinction is: Capacity monitoring should alert on consumption, throttling and autoscaling effectiveness.
C:A deliberately failing message is isolated and material backlog delay triggers alerting. 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 provisioned DynamoDB table experiences frequent throttling without any configured application alarm.), the better verification is: A load replay produces timely alerts and action before sustained request failure. The deciding distinction is: Capacity monitoring should alert on consumption, throttling and autoscaling effectiveness.
Question 178
Before changing production, engineers find: Security detects unauthorized port scans but cannot determine which source attempted connections to a sensitive subnet. Which investigation should the engineer perform FIRST?
- Review stack drift status, CloudTrail changes and IAM effective policy.
- Inspect VPC Flow Logs enablement, records, ENIs and destination retention.
- Review VPC route tables, firewall endpoint placement and egress flow records.
- Inspect Config recorders, aggregation sources, rules and delegated management.
Explanation
Correct Answer
B:Inspect VPC Flow Logs enablement, records, ENIs and destination retention. The governing principle is: Network flow telemetry can reveal accepted and rejected flow metadata when configured correctly. The next controlled engineering decision is: Enable sufficient flow log scope with protected centralized analysis.
Incorrect Answers
A:Review stack drift status, CloudTrail changes and IAM effective policy. This instead addresses a different case: A production IAM role grants expanded privileges despite the approved CloudFormation template declaring limited access. For the stated situation (Security detects unauthorized port scans but cannot determine which source attempted connections to a sensitive subnet.), the better investigation is: Inspect VPC Flow Logs enablement, records, ENIs and destination retention. The deciding distinction is: Network flow telemetry can reveal accepted and rejected flow metadata when configured correctly.
C:Review VPC route tables, firewall endpoint placement and egress flow records. This instead addresses a different case: Security policy requires outbound traffic inspection, but private subnets route directly through NAT without the designated inspection path. For the stated situation (Security detects unauthorized port scans but cannot determine which source attempted connections to a sensitive subnet.), the better investigation is: Inspect VPC Flow Logs enablement, records, ENIs and destination retention. The deciding distinction is: Network flow telemetry can reveal accepted and rejected flow metadata when configured correctly.
D:Inspect Config recorders, aggregation sources, rules and delegated management. This instead addresses a different case: Governance wants one view of noncompliant encrypted volumes across every AWS Organization account and Region. For the stated situation (Security detects unauthorized port scans but cannot determine which source attempted connections to a sensitive subnet.), the better investigation is: Inspect VPC Flow Logs enablement, records, ENIs and destination retention. The deciding distinction is: Network flow telemetry can reveal accepted and rejected flow metadata when configured correctly.
Question 179
The DevOps team must resolve this scenario: Production operators use permanently attached administrator policies to fix rare outages instead of using approved on-demand access. Which engineering change is MOST appropriate?
- Configure an organization Config aggregator and required centrally managed rule coverage.
- Implement a controlled short-lived privileged role assumption with audit and review.
- Add narrowly scoped cross-account bucket and necessary key grants in both authorization planes.
- Constrain trusted partner principals and apply a suitable external ID where warranted.
Explanation
Correct Answer
B:Implement a controlled short-lived privileged role assumption with audit and review. Its validation is: Normal sessions cannot modify critical settings and emergency elevation expires as configured. The principle is: Privileged access should be time bounded, attributable and justified by operational need.
Incorrect Answers
A:Configure an organization Config aggregator and required centrally managed rule coverage. This instead addresses a different case: Governance wants one view of noncompliant encrypted volumes across every AWS Organization account and Region. For the stated situation (Production operators use permanently attached administrator policies to fix rare outages instead of using approved on-demand access.), the better engineering action is: Implement a controlled short-lived privileged role assumption with audit and review. The deciding distinction is: Privileged access should be time bounded, attributable and justified by operational need.
C:Add narrowly scoped cross-account bucket and necessary key grants in both authorization planes. This instead addresses a different case: A Lambda role has s3:GetObject but gets AccessDenied reading a bucket in another account. For the stated situation (Production operators use permanently attached administrator policies to fix rare outages instead of using approved on-demand access.), the better engineering action is: Implement a controlled short-lived privileged role assumption with audit and review. The deciding distinction is: Privileged access should be time bounded, attributable and justified by operational need.
D:Constrain trusted partner principals and apply a suitable external ID where warranted. This instead addresses a different case: A deployment service assumes a role in a third-party account, but the trust policy permits any AWS principal in the partner account. For the stated situation (Production operators use permanently attached administrator policies to fix rare outages instead of using approved on-demand access.), the better engineering action is: Implement a controlled short-lived privileged role assumption with audit and review. The deciding distinction is: Privileged access should be time bounded, attributable and justified by operational need.
Question 180
Before changing production, engineers find: A producer changes the event payload field name and consumers silently ignore new events while their SQS queues fill. Which investigation should the engineer perform FIRST?
- Inspect published event schemas, consumer parsers, DLQ counts and producer revisions.
- Inspect producer partition-key selection, shard mapping and processing checkpoints.
- Review S3 object delivery patterns, EventBridge trigger timing and job prerequisites.
- Inspect failed logical resources, status reasons, external dependencies and stack events.
Explanation
Correct Answer
A:Inspect published event schemas, consumer parsers, DLQ counts and producer revisions. The governing principle is: Event contracts and consumers need version-aware validation and safe schema evolution. The next controlled engineering decision is: Introduce versioned event contracts, compatibility checks and error routing.
Incorrect Answers
B:Inspect producer partition-key selection, shard mapping and processing checkpoints. This instead addresses a different case: A telemetry consumer requires per-device ordering but producers assign random partition keys and observations arrive out of sequence. For the stated situation (A producer changes the event payload field name and consumers silently ignore new events while their SQS queues fill.), the better investigation is: Inspect published event schemas, consumer parsers, DLQ counts and producer revisions. The deciding distinction is: Event contracts and consumers need version-aware validation and safe schema evolution.
C:Review S3 object delivery patterns, EventBridge trigger timing and job prerequisites. This instead addresses a different case: An automation starts on a fixed schedule even though the required S3 data file often arrives late, causing incomplete daily reports. For the stated situation (A producer changes the event payload field name and consumers silently ignore new events while their SQS queues fill.), the better investigation is: Inspect published event schemas, consumer parsers, DLQ counts and producer revisions. The deciding distinction is: Event contracts and consumers need version-aware validation and safe schema evolution.
D:Inspect failed logical resources, status reasons, external dependencies and stack events. This instead addresses a different case: A production stack enters UPDATE_ROLLBACK_FAILED after a deleted external resource cannot be restored. For the stated situation (A producer changes the event payload field name and consumers silently ignore new events while their SQS queues fill.), the better investigation is: Inspect published event schemas, consumer parsers, DLQ counts and producer revisions. The deciding distinction is: Event contracts and consumers need version-aware validation and safe schema evolution.