Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Practice Test 97
Question 960
Before changing production, engineers find: An event rule starts a Lambda that tags an EC2 resource, and the resulting CloudTrail tagging event triggers the same Lambda repeatedly. Which investigation should the engineer perform FIRST?
- Inspect EventBridge event pattern, action-induced events and invocation counts.
- Review alarm condition, transaction criticality, runbook approvals and current service health.
- Review delivery guarantees, subscriptions, DLQs and consumer coupling.
- Inspect ECS service events, target health, logs, dependency reachability and restart rate.
Explanation
Correct Answer
A:Inspect EventBridge event pattern, action-induced events and invocation counts. The governing principle is: Event-driven remediation needs recursion safeguards, idempotency and selective patterns. The next controlled engineering decision is: Filter relevant state transitions and check desired state before mutating resources.
Incorrect Answers
B:Review alarm condition, transaction criticality, runbook approvals and current service health. This instead addresses a different case: A production alarm starts an infrastructure rebuild immediately even during a payroll settlement window where failover can corrupt in-flight transactions. For the stated situation (An event rule starts a Lambda that tags an EC2 resource, and the resulting CloudTrail tagging event triggers the same Lambda repeatedly.), the better investigation is: Inspect EventBridge event pattern, action-induced events and invocation counts. The deciding distinction is: Event-driven remediation needs recursion safeguards, idempotency and selective patterns.
C:Review delivery guarantees, subscriptions, DLQs and consumer coupling. This instead addresses a different case: One order-created event needs to inform billing, fulfillment and analytics independently, but a direct Lambda chain loses downstream events when one service is unavailable. For the stated situation (An event rule starts a Lambda that tags an EC2 resource, and the resulting CloudTrail tagging event triggers the same Lambda repeatedly.), the better investigation is: Inspect EventBridge event pattern, action-induced events and invocation counts. The deciding distinction is: Event-driven remediation needs recursion safeguards, idempotency and selective patterns.
D:Inspect ECS service events, target health, logs, dependency reachability and restart rate. This instead addresses a different case: An ECS application task fails health checks every few minutes, and the team restarts the same failing task manually without identifying a dependency outage. For the stated situation (An event rule starts a Lambda that tags an EC2 resource, and the resulting CloudTrail tagging event triggers the same Lambda repeatedly.), the better investigation is: Inspect EventBridge event pattern, action-induced events and invocation counts. The deciding distinction is: Event-driven remediation needs recursion safeguards, idempotency and selective patterns.
Question 961
A DevOps team is reviewing: An application has s3:GetObject permission but cannot read encrypted objects after a KMS key policy update. Which TWO complementary actions should it take? Select TWO answers.
- Inspect KMS key policy, IAM Decrypt grant, encryption context and bucket policy.
- Enable suitable access analysis and correct unapproved external principals.
- Add key deletion approval and dependency verification safeguards to cleanup automation.
- Design approved AWS Network Firewall routing and rules for inspected outbound paths.
- Grant only the necessary KMS decrypt permissions to the intended application role.
Explanation
Correct Answers
A:Inspect KMS key policy, IAM Decrypt grant, encryption context and bucket policy. This is a required diagnostic evidence step for the stated situation: An application has s3:GetObject permission but cannot read encrypted objects after a KMS key policy update. The complementary correct action is: Grant only the necessary KMS decrypt permissions to the intended application role. Both follow the principle: Access to SSE-KMS objects requires suitable S3 and KMS authorization.
E:Grant only the necessary KMS decrypt permissions to the intended application role. This is a required controlled engineering action for the stated situation: An application has s3:GetObject permission but cannot read encrypted objects after a KMS key policy update. The complementary correct action is: Inspect KMS key policy, IAM Decrypt grant, encryption context and bucket policy. Both follow the principle: Access to SSE-KMS objects requires suitable S3 and KMS authorization.
Incorrect Answers
B:Enable suitable access analysis and correct unapproved external principals. This is suitable for another situation: An S3 bucket policy accidentally grants an external account broad read access, and no one detects the unintended trust. In this case, engineers instead need the paired investigation (Inspect KMS key policy, IAM Decrypt grant, encryption context and bucket policy.) and design change (Grant only the necessary KMS decrypt permissions to the intended application role.). These two steps address: An application has s3:GetObject permission but cannot read encrypted objects after a KMS key policy update.
C:Add key deletion approval and dependency verification safeguards to cleanup automation. This is suitable for another situation: An automated cleanup tool schedules deletion of a KMS key that encrypts backups needed to satisfy long retention. In this case, engineers instead need the paired investigation (Inspect KMS key policy, IAM Decrypt grant, encryption context and bucket policy.) and design change (Grant only the necessary KMS decrypt permissions to the intended application role.). These two steps address: An application has s3:GetObject permission but cannot read encrypted objects after a KMS key policy update.
D:Design approved AWS Network Firewall routing and rules for inspected outbound paths. This is suitable for another situation: Security policy requires outbound traffic inspection, but private subnets route directly through NAT without the designated inspection path. In this case, engineers instead need the paired investigation (Inspect KMS key policy, IAM Decrypt grant, encryption context and bucket policy.) and design change (Grant only the necessary KMS decrypt permissions to the intended application role.). These two steps address: An application has s3:GetObject permission but cannot read encrypted objects after a KMS key policy update.
Question 962
Before changing production, engineers find: Each environment rebuilds an application from its Git branch, making production binaries differ from staging even when the commit matches. Which investigation should the engineer perform FIRST?
- Inspect AppSpec hook scripts, CodeDeploy agent logs, file permissions and deployment events.
- Review action region, artifact store configuration, KMS grants and destination execution permissions.
- Compare staging and production package hashes, dependency resolution and pipeline stage contracts.
- Review deployment alarm configuration, canary outcomes, rollback settings and traffic metrics.
Explanation
Correct Answer
C:Compare staging and production package hashes, dependency resolution and pipeline stage contracts. The governing principle is: Build-once promotion reduces environment drift and strengthens artifact provenance. The next controlled engineering decision is: Build a versioned immutable artifact once, then promote that artifact through approvals and environments.
Incorrect Answers
A:Inspect AppSpec hook scripts, CodeDeploy agent logs, file permissions and deployment events. This instead addresses a different case: A CodeDeploy in-place EC2 release fails during ApplicationStart, but the team incorrectly treats the issue as an Auto Scaling failure. For the stated situation (Each environment rebuilds an application from its Git branch, making production binaries differ from staging even when the commit matches.), the better investigation is: Compare staging and production package hashes, dependency resolution and pipeline stage contracts. The deciding distinction is: Build-once promotion reduces environment drift and strengthens artifact provenance.
B:Review action region, artifact store configuration, KMS grants and destination execution permissions. This instead addresses a different case: A release pipeline runs in one Region but must deploy a serverless service to a second Region with artifacts available for that target. For the stated situation (Each environment rebuilds an application from its Git branch, making production binaries differ from staging even when the commit matches.), the better investigation is: Compare staging and production package hashes, dependency resolution and pipeline stage contracts. The deciding distinction is: Build-once promotion reduces environment drift and strengthens artifact provenance.
D:Review deployment alarm configuration, canary outcomes, rollback settings and traffic metrics. This instead addresses a different case: A production delivery pipeline remains green after a deployment even though health checks fail during post-deploy traffic. For the stated situation (Each environment rebuilds an application from its Git branch, making production binaries differ from staging even when the commit matches.), the better investigation is: Compare staging and production package hashes, dependency resolution and pipeline stage contracts. The deciding distinction is: Build-once promotion reduces environment drift and strengthens artifact provenance.
Question 963
An AWS platform team investigates this condition: A regional API has users worldwide and latency spikes for distant users even when application instances have spare capacity. Which DevOps principle BEST explains the core problem?
- Global scaling must consider latency, routing and regional data access patterns.
- Cross-Region resilience must include regional identity, secret and cryptographic dependencies.
- Container service scaling should use load-appropriate metrics and capacity limits.
- A hot partition can throttle despite table-wide capacity and requires appropriate key design.
Explanation
Correct Answer
A:Global scaling must consider latency, routing and regional data access patterns. Relevant first evidence: Measure client geography, network latency, data locality and regulatory constraints. The resulting controlled response is: Use an appropriate multi-Region or edge front end with safe routing and data strategy.
Incorrect Answers
B:Cross-Region resilience must include regional identity, secret and cryptographic dependencies. 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 regional API has users worldwide and latency spikes for distant users even when application instances have spare capacity.), the better principle is: Global scaling must consider latency, routing and regional data access patterns. The deciding distinction is: Global scaling must consider latency, routing and regional data access patterns.
C:Container service scaling should use load-appropriate metrics and capacity limits. 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 regional API has users worldwide and latency spikes for distant users even when application instances have spare capacity.), the better principle is: Global scaling must consider latency, routing and regional data access patterns. The deciding distinction is: Global scaling must consider latency, routing and regional data access patterns.
D:A hot partition can throttle despite table-wide capacity and requires appropriate key design. This instead addresses a different case: A DynamoDB table has substantial unused provisioned capacity but requests to one partition key still throttle under burst load. For the stated situation (A regional API has users worldwide and latency spikes for distant users even when application instances have spare capacity.), the better principle is: Global scaling must consider latency, routing and regional data access patterns. The deciding distinction is: Global scaling must consider latency, routing and regional data access patterns.
Question 964
An AWS platform team investigates this condition: An Auto Scaling group repeatedly fails to launch enough instances in one AZ despite other AZs having capacity. Which DevOps principle BEST explains the core problem?
- Event routing should filter on relevant sources, detail types and expected event properties.
- Request throttling may occur at API Gateway before integration invocation.
- Capacity failures require examining availability zones, allocation strategy and quotas.
- Failure investigation should use CloudFormation stack events and supported recovery operations.
Explanation
Correct Answer
C:Capacity failures require examining availability zones, allocation strategy and quotas. Relevant first evidence: Inspect Auto Scaling activity history, placement errors, launch template and allowed subnets. The resulting controlled response is: Diversify capacity pools or update launch configuration consistent with requirements.
Incorrect Answers
A:Event routing should filter on relevant sources, detail types and expected event properties. This instead addresses a different case: A security automation rule currently runs for every CloudTrail event, flooding a response Lambda with unrelated calls. For the stated situation (An Auto Scaling group repeatedly fails to launch enough instances in one AZ despite other AZs having capacity.), the better principle is: Capacity failures require examining availability zones, allocation strategy and quotas. The deciding distinction is: Capacity failures require examining availability zones, allocation strategy and quotas.
B:Request throttling may occur at API Gateway before integration invocation. This instead addresses a different case: A mobile API intermittently returns HTTP 429 during marketing peaks, but its Lambda error metric stays nearly zero. For the stated situation (An Auto Scaling group repeatedly fails to launch enough instances in one AZ despite other AZs having capacity.), the better principle is: Capacity failures require examining availability zones, allocation strategy and quotas. The deciding distinction is: Capacity failures require examining availability zones, allocation strategy and quotas.
D:Failure investigation should use CloudFormation stack events and supported recovery operations. 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 (An Auto Scaling group repeatedly fails to launch enough instances in one AZ despite other AZs having capacity.), the better principle is: Capacity failures require examining availability zones, allocation strategy and quotas. The deciding distinction is: Capacity failures require examining availability zones, allocation strategy and quotas.
Question 965
Before changing production, engineers find: Five application teams copy and edit the same network subnet definitions in separate CloudFormation stacks, causing inconsistent security controls. Which investigation should the engineer perform FIRST?
- Inspect organizational SCPs, permitted global-service exceptions and deployment destinations.
- Review duplicated templates, parameter contracts, dependencies and current deviations.
- Review organization structure, delegated administrator, StackSets permission model and target OUs.
- Inspect stack events, failed resources, execution role permissions and rollback status.
Explanation
Correct Answer
B:Review duplicated templates, parameter contracts, dependencies and current deviations. The governing principle is: Reusable infrastructure modules should centralize approved patterns and clear interface parameters. The next controlled engineering decision is: Adopt versioned shared modules or nested stacks with governed inputs and consumer upgrades.
Incorrect Answers
A:Inspect organizational SCPs, permitted global-service exceptions and deployment destinations. This instead addresses a different case: A multinational OU has a data residency rule, but new accounts can deploy regulated S3 resources in arbitrary Regions. For the stated situation (Five application teams copy and edit the same network subnet definitions in separate CloudFormation stacks, causing inconsistent security controls.), the better investigation is: Review duplicated templates, parameter contracts, dependencies and current deviations. The deciding distinction is: Reusable infrastructure modules should centralize approved patterns and clear interface parameters.
C:Review organization structure, delegated administrator, StackSets permission model and target OUs. 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 (Five application teams copy and edit the same network subnet definitions in separate CloudFormation stacks, causing inconsistent security controls.), the better investigation is: Review duplicated templates, parameter contracts, dependencies and current deviations. The deciding distinction is: Reusable infrastructure modules should centralize approved patterns and clear interface parameters.
D:Inspect stack events, failed resources, execution role permissions and rollback status. This instead addresses a different case: 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. For the stated situation (Five application teams copy and edit the same network subnet definitions in separate CloudFormation stacks, causing inconsistent security controls.), the better investigation is: Review duplicated templates, parameter contracts, dependencies and current deviations. The deciding distinction is: Reusable infrastructure modules should centralize approved patterns and clear interface parameters.
Question 966
After implementing a proposed fix, the team reviews: Production EC2 Auto Scaling launches instances from an AMI built manually months earlier with inconsistent patch levels. Which result would BEST confirm that the risk is addressed?
- A failing assertion marks the build failed and its report identifies the failed test.
- The build resolves approved versions and rejects an unauthorized dependency source.
- An authorized dry run produces no token in captured logs and fetch still succeeds.
- A new instance matches the approved image baseline and related tests are traceable.
Explanation
Correct Answer
D:A new instance matches the approved image baseline and related tests are traceable. The approved action is: Use EC2 Image Builder to build and test a versioned, hardened AMI for deployment. The risk principle is: Infrastructure images should be rebuilt and validated through a repeatable automated process.
Incorrect Answers
A:A failing assertion marks the build failed and its report identifies the failed test. This instead addresses a different case: CodeBuild exits zero after a testing script prints failing assertions, and no test result report is retained. For the stated situation (Production EC2 Auto Scaling launches instances from an AMI built manually months earlier with inconsistent patch levels.), the better verification is: A new instance matches the approved image baseline and related tests are traceable. The deciding distinction is: Infrastructure images should be rebuilt and validated through a repeatable automated process.
B:The build resolves approved versions and rejects an unauthorized dependency source. This instead addresses a different case: A CodeBuild project downloads packages from unrestricted public registries even though an internal vetted package repository is required. For the stated situation (Production EC2 Auto Scaling launches instances from an AMI built manually months earlier with inconsistent patch levels.), the better verification is: A new instance matches the approved image baseline and related tests are traceable. The deciding distinction is: Infrastructure images should be rebuilt and validated through a repeatable automated process.
C:An authorized dry run produces no token in captured logs and fetch still succeeds. This instead addresses a different case: A diagnostic CodeBuild command prints an authentication token to CloudWatch Logs before fetching a private package. For the stated situation (Production EC2 Auto Scaling launches instances from an AMI built manually months earlier with inconsistent patch levels.), the better verification is: A new instance matches the approved image baseline and related tests are traceable. The deciding distinction is: Infrastructure images should be rebuilt and validated through a repeatable automated process.
Question 967
An AWS platform team investigates this condition: Multiple application instances embed a database password that is rotated manually, causing widespread outages after each change. Which DevOps principle BEST explains the core problem?
- Organization guardrails limit effective permissions regardless of broad account IAM Allow.
- AWS compute workloads should generally use IAM roles and temporary instance profile credentials.
- Machine credentials should be centrally rotated with coordinated client refresh and access scoping.
- Cryptographic key lifecycle must protect decryptability of retained sensitive data.
Explanation
Correct Answer
C:Machine credentials should be centrally rotated with coordinated client refresh and access scoping. Relevant first evidence: Inspect secret version stages, rotation workflow and application cache behavior. The resulting controlled response is: Implement safe Secrets Manager rotation and compatible runtime secret refresh.
Incorrect Answers
A:Organization guardrails limit effective permissions regardless of broad account IAM Allow. This instead addresses a different case: A developer's administrator IAM policy still fails to launch an unapproved service because an OU SCP contains an explicit deny. For the stated situation (Multiple application instances embed a database password that is rotated manually, causing widespread outages after each change.), the better principle is: Machine credentials should be centrally rotated with coordinated client refresh and access scoping. The deciding distinction is: Machine credentials should be centrally rotated with coordinated client refresh and access scoping.
B:AWS compute workloads should generally use IAM roles and temporary instance profile credentials. This instead addresses a different case: An EC2 application stores a permanent IAM access key in a local configuration file to upload reports to S3. For the stated situation (Multiple application instances embed a database password that is rotated manually, causing widespread outages after each change.), the better principle is: Machine credentials should be centrally rotated with coordinated client refresh and access scoping. The deciding distinction is: Machine credentials should be centrally rotated with coordinated client refresh and access scoping.
D:Cryptographic key lifecycle must protect decryptability of retained sensitive data. This instead addresses a different case: An automated cleanup tool schedules deletion of a KMS key that encrypts backups needed to satisfy long retention. For the stated situation (Multiple application instances embed a database password that is rotated manually, causing widespread outages after each change.), the better principle is: Machine credentials should be centrally rotated with coordinated client refresh and access scoping. The deciding distinction is: Machine credentials should be centrally rotated with coordinated client refresh and access scoping.
Question 968
The DevOps team must resolve this scenario: A development application sends verbose logs to CloudWatch Logs indefinitely, creating growing cost and a retention-policy exception. Which engineering change is MOST appropriate?
- Query trusted CloudTrail records and correlate with approved change records.
- Configure a supported CloudWatch Logs subscription to the approved analytics pipeline.
- Set an approved retention period and route long-term audit logs to suitable protected storage if needed.
- Configure CloudWatch metric streams with a managed supported delivery route.
Explanation
Correct Answer
C:Set an approved retention period and route long-term audit logs to suitable protected storage if needed. Its validation is: A test log group expires data according to its authorized retention policy. The principle is: Log-group retention should reflect business, legal and investigation requirements.
Incorrect Answers
A:Query trusted CloudTrail records and correlate with approved change records. This instead addresses a different case: A production security group unexpectedly allows SSH from the internet, and teams disagree who changed it. For the stated situation (A development application sends verbose logs to CloudWatch Logs indefinitely, creating growing cost and a retention-policy exception.), the better engineering action is: Set an approved retention period and route long-term audit logs to suitable protected storage if needed. The deciding distinction is: Log-group retention should reflect business, legal and investigation requirements.
B:Configure a supported CloudWatch Logs subscription to the approved analytics pipeline. This instead addresses a different case: CloudWatch Logs receives application errors but the incident analytics system never sees them because the log stream is not forwarded. For the stated situation (A development application sends verbose logs to CloudWatch Logs indefinitely, creating growing cost and a retention-policy exception.), the better engineering action is: Set an approved retention period and route long-term audit logs to suitable protected storage if needed. The deciding distinction is: Log-group retention should reflect business, legal and investigation requirements.
D:Configure CloudWatch metric streams with a managed supported delivery route. This instead addresses a different case: An enterprise needs near-real-time CloudWatch metric delivery to a central external analytics platform but polling every account exceeds API limits. For the stated situation (A development application sends verbose logs to CloudWatch Logs indefinitely, creating growing cost and a retention-policy exception.), the better engineering action is: Set an approved retention period and route long-term audit logs to suitable protected storage if needed. The deciding distinction is: Log-group retention should reflect business, legal and investigation requirements.
Question 969
The DevOps team must resolve this scenario: 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. Which engineering change is MOST appropriate?
- Configure failover routing records with valid health checks and appropriate backup endpoint.
- Enable supported point-in-time recovery and rehearse restoration of an isolated database.
- Implement bounded retries and use appropriate cluster endpoints around database failover.
- Configure appropriate CloudFront origin failover using a viable secondary origin.
Explanation
Correct Answer
A:Configure failover routing records with valid health checks and appropriate backup endpoint. Its validation is: A primary fault causes DNS answers to move to a healthy secondary target within expectations. The principle is: DNS failover needs accurate health evaluation and correctly associated routing records.
Incorrect Answers
B:Enable supported point-in-time recovery and rehearse restoration of an isolated database. This instead addresses a different case: A table is accidentally overwritten and operators can restore only yesterday's full snapshot, losing recent transactions. For the stated situation (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.), the better engineering action is: Configure failover routing records with valid health checks and appropriate backup endpoint. The deciding distinction is: DNS failover needs accurate health evaluation and correctly associated routing records.
C:Implement bounded retries and use appropriate cluster endpoints around database failover. This instead addresses a different case: A critical Aurora service stores data reliably but a client uses a short hardcoded connection timeout and does not retry after writer promotion. For the stated situation (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.), the better engineering action is: Configure failover routing records with valid health checks and appropriate backup endpoint. The deciding distinction is: DNS failover needs accurate health evaluation and correctly associated routing records.
D:Configure appropriate CloudFront origin failover using a viable secondary origin. This instead addresses a different case: A global static site uses CloudFront but both primary and fallback origins point to the same unavailable S3 bucket. For the stated situation (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.), the better engineering action is: Configure failover routing records with valid health checks and appropriate backup endpoint. The deciding distinction is: DNS failover needs accurate health evaluation and correctly associated routing records.
Question 970
An AWS platform team investigates this condition: A standby Region has copied AMIs but no provisioned database capacity and cannot accept traffic for hours. Which DevOps principle BEST explains the core problem?
- Backup retention should resist malicious or accidental deletion for the required period.
- Queue consumer visibility and processing design must account for task duration and idempotency.
- Point-in-time recovery depends on backup retention and database capabilities, not just one manual snapshot.
- Warm standby requires pre-deployed usable components sufficient for stated recovery time.
Explanation
Correct Answer
D:Warm standby requires pre-deployed usable components sufficient for stated recovery time. Relevant first evidence: Review standby environment inventory, RTO, replication and scaling procedures. The resulting controlled response is: Provision and test a suitably sized standby baseline with controlled scale-up on failover.
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 (A standby Region has copied AMIs but no provisioned database capacity and cannot accept traffic for hours.), the better principle is: Warm standby requires pre-deployed usable components sufficient for stated recovery time. The deciding distinction is: Warm standby requires pre-deployed usable components sufficient for stated recovery time.
B:Queue consumer visibility and processing design must account for task duration and idempotency. This instead addresses a different case: Message consumers regularly process tasks longer than the SQS visibility timeout, causing duplicate deliveries while the first worker is active. For the stated situation (A standby Region has copied AMIs but no provisioned database capacity and cannot accept traffic for hours.), the better principle is: Warm standby requires pre-deployed usable components sufficient for stated recovery time. The deciding distinction is: Warm standby requires pre-deployed usable components sufficient for stated recovery time.
C:Point-in-time recovery depends on backup retention and database capabilities, not just one manual snapshot. This instead addresses a different case: A table is accidentally overwritten and operators can restore only yesterday's full snapshot, losing recent transactions. For the stated situation (A standby Region has copied AMIs but no provisioned database capacity and cannot accept traffic for hours.), the better principle is: Warm standby requires pre-deployed usable components sufficient for stated recovery time. The deciding distinction is: Warm standby requires pre-deployed usable components sufficient for stated recovery time.