Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Practice Test 10
Question 90
Before changing production, engineers find: A high-severity payment error alarm stays green when the application stops publishing error metrics during an outage. Which investigation should the engineer perform FIRST?
- Compare HTTPCode_ELB_5XX_Count, HTTPCode_Target_5XX_Count, target health and app logs.
- Review Fluent Bit or approved collector delivery, pod labels and restart events.
- Review alarm threshold, missing-data policy, publishing heartbeat and error logs.
- Inspect read/write capacity utilization, throttle metrics and scaling settings.
Explanation
Correct Answer
C:Review alarm threshold, missing-data policy, publishing heartbeat and error logs. The governing principle is: Missing metric data needs treatment consistent with the failure mode and alarm semantics. The next controlled engineering decision is: Configure appropriate missing-data behavior or a dedicated telemetry-heartbeat alarm.
Incorrect Answers
A:Compare HTTPCode_ELB_5XX_Count, HTTPCode_Target_5XX_Count, target health and app logs. 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 high-severity payment error alarm stays green when the application stops publishing error metrics during an outage.), the better investigation is: Review alarm threshold, missing-data policy, publishing heartbeat and error logs. The deciding distinction is: Missing metric data needs treatment consistent with the failure mode and alarm semantics.
B:Review Fluent Bit or approved collector delivery, pod labels and restart events. This instead addresses a different case: EKS pods restart after a rollout, and their transient filesystem logs disappear before investigators collect them. For the stated situation (A high-severity payment error alarm stays green when the application stops publishing error metrics during an outage.), the better investigation is: Review alarm threshold, missing-data policy, publishing heartbeat and error logs. The deciding distinction is: Missing metric data needs treatment consistent with the failure mode and alarm semantics.
D:Inspect read/write capacity utilization, throttle metrics and scaling settings. This instead addresses a different case: A provisioned DynamoDB table experiences frequent throttling without any configured application alarm. For the stated situation (A high-severity payment error alarm stays green when the application stops publishing error metrics during an outage.), the better investigation is: Review alarm threshold, missing-data policy, publishing heartbeat and error logs. The deciding distinction is: Missing metric data needs treatment consistent with the failure mode and alarm semantics.
Question 91
After implementing a proposed fix, the team reviews: A consumer service has rapidly increasing queue lag, and responders manually launch instances rather than using a safe dynamic policy. Which result would BEST confirm that the risk is addressed?
- A test missing-agent instance is corrected while unrelated resources remain untouched.
- One test event results in bounded action without recursive repeated invocations.
- A safe test finding creates a tracked incident with account, resource and severity context.
- A simulated backlog increases capacity without violating cost or failure limits.
Explanation
Correct Answer
D:A simulated backlog increases capacity without violating cost or failure limits. The approved action is: Connect relevant metrics to a bounded Auto Scaling policy with controlled thresholds. The risk principle is: Resource adjustment should respond to measured demand with bounded Auto Scaling behavior.
Incorrect Answers
A:A test missing-agent instance is corrected while unrelated resources remain untouched. 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 consumer service has rapidly increasing queue lag, and responders manually launch instances rather than using a safe dynamic policy.), the better verification is: A simulated backlog increases capacity without violating cost or failure limits. The deciding distinction is: Resource adjustment should respond to measured demand with bounded Auto Scaling behavior.
B:One test event results in bounded action without recursive repeated invocations. This instead addresses a different case: An event rule starts a Lambda that tags an EC2 resource, and the resulting CloudTrail tagging event triggers the same Lambda repeatedly. For the stated situation (A consumer service has rapidly increasing queue lag, and responders manually launch instances rather than using a safe dynamic policy.), the better verification is: A simulated backlog increases capacity without violating cost or failure limits. The deciding distinction is: Resource adjustment should respond to measured demand with bounded Auto Scaling behavior.
C:A safe test finding creates a tracked incident with account, resource and severity context. 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 consumer service has rapidly increasing queue lag, and responders manually launch instances rather than using a safe dynamic policy.), the better verification is: A simulated backlog increases capacity without violating cost or failure limits. The deciding distinction is: Resource adjustment should respond to measured demand with bounded Auto Scaling behavior.
Question 92
Before changing production, engineers find: A regional API has users worldwide and latency spikes for distant users even when application instances have spare capacity. Which investigation should the engineer perform FIRST?
- Review transaction ordering, backup points, queue offsets and reconciliation design.
- Inspect hit ratios, query rate, freshness needs and per-user access controls.
- Review target tracking, ALB request metrics, task CPU/memory and scaling cooldown.
- Measure client geography, network latency, data locality and regulatory constraints.
Explanation
Correct Answer
D:Measure client geography, network latency, data locality and regulatory constraints. The governing principle is: Global scaling must consider latency, routing and regional data access patterns. The next controlled engineering decision is: Use an appropriate multi-Region or edge front end with safe routing and data strategy.
Incorrect Answers
A:Review transaction ordering, backup points, queue offsets and reconciliation design. This instead addresses a different case: A multi-service order platform restores database and queue snapshots from mismatched times, creating duplicate settlement records. 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 investigation is: Measure client geography, network latency, data locality and regulatory constraints. The deciding distinction is: Global scaling must consider latency, routing and regional data access patterns.
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 regional API has users worldwide and latency spikes for distant users even when application instances have spare capacity.), the better investigation is: Measure client geography, network latency, data locality and regulatory constraints. The deciding distinction is: Global scaling must consider latency, routing and regional data access patterns.
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 regional API has users worldwide and latency spikes for distant users even when application instances have spare capacity.), the better investigation is: Measure client geography, network latency, data locality and regulatory constraints. The deciding distinction is: Global scaling must consider latency, routing and regional data access patterns.
Question 93
The DevOps team must resolve this scenario: An event rule starts a Lambda that tags an EC2 resource, and the resulting CloudTrail tagging event triggers the same Lambda repeatedly. Which engineering change is MOST appropriate?
- Use a controlled Systems Manager automation targeted only to eligible noncompliant nodes.
- Use a controlled approved remediation action or rollback of the unauthorized rule.
- Create selective event patterns matching only approved incident conditions.
- Filter relevant state transitions and check desired state before mutating resources.
Explanation
Correct Answer
D:Filter relevant state transitions and check desired state before mutating resources. Its validation is: One test event results in bounded action without recursive repeated invocations. The principle is: Event-driven remediation needs recursion safeguards, idempotency and selective patterns.
Incorrect Answers
A:Use a controlled Systems Manager automation targeted only to eligible noncompliant nodes. 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 (An event rule starts a Lambda that tags an EC2 resource, and the resulting CloudTrail tagging event triggers the same Lambda repeatedly.), the better engineering action is: Filter relevant state transitions and check desired state before mutating resources. The deciding distinction is: Event-driven remediation needs recursion safeguards, idempotency and selective patterns.
B:Use a controlled approved remediation action or rollback of the unauthorized rule. This instead addresses a different case: Operations edits a firewall security group to add temporary unrestricted access but forgets to remove it after an emergency. 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 engineering action is: Filter relevant state transitions and check desired state before mutating resources. The deciding distinction is: Event-driven remediation needs recursion safeguards, idempotency and selective patterns.
C:Create selective event patterns matching only approved incident conditions. 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 event rule starts a Lambda that tags an EC2 resource, and the resulting CloudTrail tagging event triggers the same Lambda repeatedly.), the better engineering action is: Filter relevant state transitions and check desired state before mutating resources. The deciding distinction is: Event-driven remediation needs recursion safeguards, idempotency and selective patterns.
Question 94
The DevOps team must resolve this scenario: An on-call engineer cannot tell which Git commit generated the container image running in a production ECS service. Which engineering change is MOST appropriate?
- Ensure tests exit nonzero on failures and publish test reports in the build workflow.
- Configure required cross-Region artifact store and least-privilege deployment action settings.
- Use restricted provider connection permissions and pipeline-level source authorization controls.
- Record commit metadata and promote images by immutable digest through the release pipeline.
Explanation
Correct Answer
D:Record commit metadata and promote images by immutable digest through the release pipeline. Its validation is: A production task definition resolves to a verified image digest and source commit. The principle is: Delivery traceability needs immutable artifact identity linked to source and deployment records.
Incorrect Answers
A:Ensure tests exit nonzero on failures and publish test reports in the build workflow. 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 (An on-call engineer cannot tell which Git commit generated the container image running in a production ECS service.), the better engineering action is: Record commit metadata and promote images by immutable digest through the release pipeline. The deciding distinction is: Delivery traceability needs immutable artifact identity linked to source and deployment records.
B:Configure required cross-Region artifact store and least-privilege deployment action settings. 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 (An on-call engineer cannot tell which Git commit generated the container image running in a production ECS service.), the better engineering action is: Record commit metadata and promote images by immutable digest through the release pipeline. The deciding distinction is: Delivery traceability needs immutable artifact identity linked to source and deployment records.
C:Use restricted provider connection permissions and pipeline-level source authorization controls. This instead addresses a different case: A shared CodePipeline connection to an external source provider allows unrelated projects to trigger privileged production pipelines. For the stated situation (An on-call engineer cannot tell which Git commit generated the container image running in a production ECS service.), the better engineering action is: Record commit metadata and promote images by immutable digest through the release pipeline. The deciding distinction is: Delivery traceability needs immutable artifact identity linked to source and deployment records.
Question 95
Before changing production, engineers find: A shared CodePipeline connection to an external source provider allows unrelated projects to trigger privileged production pipelines. Which investigation should the engineer perform FIRST?
- Inspect build provenance, repository commit IDs, image digests and ECS task definition revisions.
- Review repository protection rules, pull-request triggers and build pass requirements.
- Compare staging and production package hashes, dependency resolution and pipeline stage contracts.
- Review connection scope, repo permissions, webhook events and pipeline triggers.
Explanation
Correct Answer
D:Review connection scope, repo permissions, webhook events and pipeline triggers. The governing principle is: Source integrations must authenticate appropriately and isolate authorization by repository and workload. The next controlled engineering decision is: Use restricted provider connection permissions and pipeline-level source authorization controls.
Incorrect Answers
A:Inspect build provenance, repository commit IDs, image digests and ECS task definition revisions. This instead addresses a different case: An on-call engineer cannot tell which Git commit generated the container image running in a production ECS service. For the stated situation (A shared CodePipeline connection to an external source provider allows unrelated projects to trigger privileged production pipelines.), the better investigation is: Review connection scope, repo permissions, webhook events and pipeline triggers. The deciding distinction is: Source integrations must authenticate appropriately and isolate authorization by repository and workload.
B:Review repository protection rules, pull-request triggers and build pass requirements. This instead addresses a different case: Developers merge feature branches into main before CodeBuild checks run, allowing a failing package into the release source. For the stated situation (A shared CodePipeline connection to an external source provider allows unrelated projects to trigger privileged production pipelines.), the better investigation is: Review connection scope, repo permissions, webhook events and pipeline triggers. The deciding distinction is: Source integrations must authenticate appropriately and isolate authorization by repository and workload.
C:Compare staging and production package hashes, dependency resolution and pipeline stage contracts. This instead addresses a different case: Each environment rebuilds an application from its Git branch, making production binaries differ from staging even when the commit matches. For the stated situation (A shared CodePipeline connection to an external source provider allows unrelated projects to trigger privileged production pipelines.), the better investigation is: Review connection scope, repo permissions, webhook events and pipeline triggers. The deciding distinction is: Source integrations must authenticate appropriately and isolate authorization by repository and workload.
Question 96
The DevOps team must resolve this scenario: Ransomware could delete backups because production administrators have the same permissions on the only backup vault. Which engineering change is MOST appropriate?
- Move session state to a resilient shared store or adopt a compatible stateless design.
- Define least-privilege emergency DNS roles and practice failover under expected conditions.
- Apply suitable S3 Object Lock and isolated permissions for protected recovery copies.
- Use protected cross-account or cross-Region backups with appropriately isolated recovery roles.
Explanation
Correct Answer
D:Use protected cross-account or cross-Region backups with appropriately isolated recovery roles. Its validation is: A simulated compromised production role cannot delete protected recovery copies. The principle is: Recovery copies should be protected against compromised primary account identities.
Incorrect Answers
A:Move session state to a resilient shared store or adopt a compatible stateless design. This instead addresses a different case: Two application instances run in distinct AZs but all sessions are stored on one instance and users lose carts during target failures. For the stated situation (Ransomware could delete backups because production administrators have the same permissions on the only backup vault.), the better engineering action is: Use protected cross-account or cross-Region backups with appropriately isolated recovery roles. The deciding distinction is: Recovery copies should be protected against compromised primary account identities.
B:Define least-privilege emergency DNS roles and practice failover under expected conditions. This instead addresses a different case: The secondary service is healthy, but a disaster exercise reveals operators cannot change DNS because the failover role lacks permission. For the stated situation (Ransomware could delete backups because production administrators have the same permissions on the only backup vault.), the better engineering action is: Use protected cross-account or cross-Region backups with appropriately isolated recovery roles. The deciding distinction is: Recovery copies should be protected against compromised primary account identities.
C:Apply suitable S3 Object Lock and isolated permissions for protected recovery copies. 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 (Ransomware could delete backups because production administrators have the same permissions on the only backup vault.), the better engineering action is: Use protected cross-account or cross-Region backups with appropriately isolated recovery roles. The deciding distinction is: Recovery copies should be protected against compromised primary account identities.
Question 97
After implementing a proposed fix, the team reviews: An Auto Scaling group repeatedly fails to launch enough instances in one AZ despite other AZs having capacity. Which result would BEST confirm that the risk is addressed?
- A malformed test message reaches the DLQ while healthy messages continue.
- Representative load shows reduced deadlocks and successful committed transactions.
- The stack returns to a stable state without losing approved persistent resources.
- A simulated scale-out can launch healthy capacity without dependence on one exhausted pool.
Explanation
Correct Answer
D:A simulated scale-out can launch healthy capacity without dependence on one exhausted pool. The approved action is: Diversify capacity pools or update launch configuration consistent with requirements. The risk principle is: Capacity failures require examining availability zones, allocation strategy and quotas.
Incorrect Answers
A:A malformed test message reaches the DLQ while healthy messages continue. This instead addresses a different case: A broken message repeatedly fails an event-driven worker and blocks useful progress while on-call has no way to inspect it. For the stated situation (An Auto Scaling group repeatedly fails to launch enough instances in one AZ despite other AZs having capacity.), the better verification is: A simulated scale-out can launch healthy capacity without dependence on one exhausted pool. The deciding distinction is: Capacity failures require examining availability zones, allocation strategy and quotas.
B:Representative load shows reduced deadlocks and successful committed transactions. This instead addresses a different case: A new backend version causes transaction timeouts and rising database deadlocks, while CPU utilization remains moderate. For the stated situation (An Auto Scaling group repeatedly fails to launch enough instances in one AZ despite other AZs having capacity.), the better verification is: A simulated scale-out can launch healthy capacity without dependence on one exhausted pool. The deciding distinction is: Capacity failures require examining availability zones, allocation strategy and quotas.
C:The stack returns to a stable state without losing approved persistent resources. 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 verification is: A simulated scale-out can launch healthy capacity without dependence on one exhausted pool. The deciding distinction is: Capacity failures require examining availability zones, allocation strategy and quotas.
Question 98
Before changing production, engineers find: Operations estimates patch compliance from EC2 tags but has no verified installed software inventory. Which investigation should the engineer perform FIRST?
- Review discovery filters, resource ownership, dependency graph and deletion permissions.
- Review SSM agent registration, associations, instance profiles and compliance reporting.
- Review parameter paths, KMS encryption settings and consuming IAM roles.
- Inspect managed instance registration, SSM Inventory collection and software reports.
Explanation
Correct Answer
D:Inspect managed instance registration, SSM Inventory collection and software reports. The governing principle is: Fleet governance needs measured configuration and software inventory rather than intended metadata. The next controlled engineering decision is: Enable inventory collection and central reporting for in-scope managed nodes.
Incorrect Answers
A:Review discovery filters, resource ownership, dependency graph and deletion permissions. This instead addresses a different case: A Lambda cleans abandoned development stacks nightly but occasionally deletes shared production KMS keys due to an imprecise tag query. For the stated situation (Operations estimates patch compliance from EC2 tags but has no verified installed software inventory.), the better investigation is: Inspect managed instance registration, SSM Inventory collection and software reports. The deciding distinction is: Fleet governance needs measured configuration and software inventory rather than intended metadata.
B:Review SSM agent registration, associations, instance profiles and compliance reporting. This instead addresses a different case: A managed EC2 fleet often loses an approved monitoring agent after instance replacement. For the stated situation (Operations estimates patch compliance from EC2 tags but has no verified installed software inventory.), the better investigation is: Inspect managed instance registration, SSM Inventory collection and software reports. The deciding distinction is: Fleet governance needs measured configuration and software inventory rather than intended metadata.
C:Review parameter paths, KMS encryption settings and consuming IAM roles. 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 (Operations estimates patch compliance from EC2 tags but has no verified installed software inventory.), the better investigation is: Inspect managed instance registration, SSM Inventory collection and software reports. The deciding distinction is: Fleet governance needs measured configuration and software inventory rather than intended metadata.
Question 99
A DevOps team is reviewing: A production IAM role grants expanded privileges despite the approved CloudFormation template declaring limited access. Which TWO complementary actions should it take? Select TWO answers.
- Deliver CloudTrail logs to a separate protected account with controlled immutable retention where needed.
- Move workforce access to federated IAM Identity Center permission sets with scoped sessions.
- Enable sufficient flow log scope with protected centralized analysis.
- Review stack drift status, CloudTrail changes and IAM effective policy.
- Automate drift detection, alerting and approved reconciliation for critical stacks.
Explanation
Correct Answers
D:Review stack drift status, CloudTrail changes and IAM effective policy. This is a required diagnostic evidence step for the stated situation: A production IAM role grants expanded privileges despite the approved CloudFormation template declaring limited access. The complementary correct action is: Automate drift detection, alerting and approved reconciliation for critical stacks. Both follow the principle: Drift checks and authorization records can reveal out-of-band permission changes.
E:Automate drift detection, alerting and approved reconciliation for critical stacks. This is a required controlled engineering action for the stated situation: A production IAM role grants expanded privileges despite the approved CloudFormation template declaring limited access. The complementary correct action is: Review stack drift status, CloudTrail changes and IAM effective policy. Both follow the principle: Drift checks and authorization records can reveal out-of-band permission changes.
Incorrect Answers
A:Deliver CloudTrail logs to a separate protected account with controlled immutable retention where needed. This is suitable for another situation: An administrator can modify production resources and delete the only CloudTrail delivery bucket objects using the same role. In this case, engineers instead need the paired investigation (Review stack drift status, CloudTrail changes and IAM effective policy.) and design change (Automate drift detection, alerting and approved reconciliation for critical stacks.). These two steps address: A production IAM role grants expanded privileges despite the approved CloudFormation template declaring limited access.
B:Move workforce access to federated IAM Identity Center permission sets with scoped sessions. This is suitable for another situation: Developers in 25 AWS accounts authenticate with individually created IAM users whose credentials remain active after termination. In this case, engineers instead need the paired investigation (Review stack drift status, CloudTrail changes and IAM effective policy.) and design change (Automate drift detection, alerting and approved reconciliation for critical stacks.). These two steps address: A production IAM role grants expanded privileges despite the approved CloudFormation template declaring limited access.
C:Enable sufficient flow log scope with protected centralized analysis. This is suitable for another situation: Security detects unauthorized port scans but cannot determine which source attempted connections to a sensitive subnet. In this case, engineers instead need the paired investigation (Review stack drift status, CloudTrail changes and IAM effective policy.) and design change (Automate drift detection, alerting and approved reconciliation for critical stacks.). These two steps address: A production IAM role grants expanded privileges despite the approved CloudFormation template declaring limited access.
Question 100
A DevOps team is reviewing: A multinational OU has a data residency rule, but new accounts can deploy regulated S3 resources in arbitrary Regions. Which TWO complementary actions should it take? Select TWO answers.
- Split work into durable Step Functions state transitions or supported managed operations.
- Inspect organization trail settings, S3 bucket/KMS access and Region configuration.
- Apply reviewed region-deny guardrails with necessary exceptions at appropriate OU scope.
- Inspect organizational SCPs, permitted global-service exceptions and deployment destinations.
- Use IAM Identity Center groups and governed permission sets for cross-account staff access.
Explanation
Correct Answers
C:Apply reviewed region-deny guardrails with necessary exceptions at appropriate OU scope. This is a required controlled engineering action for the stated situation: A multinational OU has a data residency rule, but new accounts can deploy regulated S3 resources in arbitrary Regions. The complementary correct action is: Inspect organizational SCPs, permitted global-service exceptions and deployment destinations. Both follow the principle: Organization controls should constrain sensitive service actions to approved Regions where practical.
D:Inspect organizational SCPs, permitted global-service exceptions and deployment destinations. This is a required diagnostic evidence step for the stated situation: A multinational OU has a data residency rule, but new accounts can deploy regulated S3 resources in arbitrary Regions. The complementary correct action is: Apply reviewed region-deny guardrails with necessary exceptions at appropriate OU scope. Both follow the principle: Organization controls should constrain sensitive service actions to approved Regions where practical.
Incorrect Answers
A:Split work into durable Step Functions state transitions or supported managed operations. This is suitable for another situation: A Lambda invoked for a multi-hour infrastructure migration times out before tasks finish and loses progress. In this case, engineers instead need the paired investigation (Inspect organizational SCPs, permitted global-service exceptions and deployment destinations.) and design change (Apply reviewed region-deny guardrails with necessary exceptions at appropriate OU scope.). These two steps address: A multinational OU has a data residency rule, but new accounts can deploy regulated S3 resources in arbitrary Regions.
B:Inspect organization trail settings, S3 bucket/KMS access and Region configuration. This is suitable for another situation: A newly onboarded account does not forward CloudTrail management activity to the security archive account. In this case, engineers instead need the paired investigation (Inspect organizational SCPs, permitted global-service exceptions and deployment destinations.) and design change (Apply reviewed region-deny guardrails with necessary exceptions at appropriate OU scope.). These two steps address: A multinational OU has a data residency rule, but new accounts can deploy regulated S3 resources in arbitrary Regions.
E:Use IAM Identity Center groups and governed permission sets for cross-account staff access. This is suitable for another situation: An enterprise manually creates duplicate IAM users in dozens of accounts for employees, creating slow offboarding. In this case, engineers instead need the paired investigation (Inspect organizational SCPs, permitted global-service exceptions and deployment destinations.) and design change (Apply reviewed region-deny guardrails with necessary exceptions at appropriate OU scope.). These two steps address: A multinational OU has a data residency rule, but new accounts can deploy regulated S3 resources in arbitrary Regions.