Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Practice Test 98
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.
Question 971
After implementing a proposed fix, the team reviews: An incident responder needs to investigate unusual role assumptions across accounts over months, but only recent management events are readily accessible. Which result would BEST confirm that the risk is addressed?
- A safe simulated rule match generates a routed high-severity root activity alert.
- A password-only privileged session cannot perform the protected action.
- A known historical AssumeRole event can be retrieved with caller and time.
- One recurring event is tracked coherently and distinct high-severity signals escalate.
Explanation
Correct Answer
C:A known historical AssumeRole event can be retrieved with caller and time. The approved action is: Enable protected collection and query access covering required identity events. The risk principle is: Long-term security auditing requires suitable retained CloudTrail event collection and query.
Incorrect Answers
A:A safe simulated rule match generates a routed high-severity root activity alert. This instead addresses a different case: The security team needs immediate notification if any member account root principal creates an access key or changes account settings. For the stated situation (An incident responder needs to investigate unusual role assumptions across accounts over months, but only recent management events are readily accessible.), the better verification is: A known historical AssumeRole event can be retrieved with caller and time. The deciding distinction is: Long-term security auditing requires suitable retained CloudTrail event collection and query.
B:A password-only privileged session cannot perform the protected action. This instead addresses a different case: Human operators access high-risk account settings without multifactor authentication, even though a company policy mandates it. For the stated situation (An incident responder needs to investigate unusual role assumptions across accounts over months, but only recent management events are readily accessible.), the better verification is: A known historical AssumeRole event can be retrieved with caller and time. The deciding distinction is: Long-term security auditing requires suitable retained CloudTrail event collection and query.
D:One recurring event is tracked coherently and distinct high-severity signals escalate. This instead addresses a different case: A monitoring platform generates thousands of identical GuardDuty alerts while missing new critical incidents due to analyst overload. For the stated situation (An incident responder needs to investigate unusual role assumptions across accounts over months, but only recent management events are readily accessible.), the better verification is: A known historical AssumeRole event can be retrieved with caller and time. The deciding distinction is: Long-term security auditing requires suitable retained CloudTrail event collection and query.
Question 972
The DevOps team must resolve this scenario: An ECS task starts successfully but is continually removed from service because its target group health check targets a nonexistent path. Which engineering change is MOST appropriate?
- Constrain deployment roles and policy conditions to approved accounts and Regions.
- Choose a pipeline execution mode or deployment lock appropriate to the shared environment.
- Align target-group checks with a reliable application readiness endpoint and reachable port.
- Keep a verifiable mapping from release to Lambda published version and restore alias on failure.
Explanation
Correct Answer
C:Align target-group checks with a reliable application readiness endpoint and reachable port. Its validation is: A new task transitions healthy and serves requests while a genuinely unready task is withheld. The principle is: Task deployment health checks must reflect the live application's endpoint and readiness behavior.
Incorrect Answers
A:Constrain deployment roles and policy conditions to approved accounts and Regions. This instead addresses a different case: A deployment pipeline has approvals for one Region but a wrong parameter lets the same artifact create resources in an unapproved jurisdiction. For the stated situation (An ECS task starts successfully but is continually removed from service because its target group health check targets a nonexistent path.), the better engineering action is: Align target-group checks with a reliable application readiness endpoint and reachable port. The deciding distinction is: Task deployment health checks must reflect the live application's endpoint and readiness behavior.
B:Choose a pipeline execution mode or deployment lock appropriate to the shared environment. This instead addresses a different case: Two successive commits trigger deployments against the same production stack, and the earlier execution finishes after the newer release. For the stated situation (An ECS task starts successfully but is continually removed from service because its target group health check targets a nonexistent path.), the better engineering action is: Align target-group checks with a reliable application readiness endpoint and reachable port. The deciding distinction is: Task deployment health checks must reflect the live application's endpoint and readiness behavior.
D:Keep a verifiable mapping from release to Lambda published version and restore alias on failure. This instead addresses a different case: A Lambda release is invoked through an alias but the deployment pipeline overwrites the prior version identifier in its rollback records. For the stated situation (An ECS task starts successfully but is continually removed from service because its target group health check targets a nonexistent path.), the better engineering action is: Align target-group checks with a reliable application readiness endpoint and reachable port. The deciding distinction is: Task deployment health checks must reflect the live application's endpoint and readiness behavior.
Question 973
A DevOps team is reviewing: A critical Aurora service stores data reliably but a client uses a short hardcoded connection timeout and does not retry after writer promotion. Which TWO complementary actions should it take? Select TWO answers.
- Implement bounded retries and use appropriate cluster endpoints around database failover.
- Review RDS deployment mode, client retry behavior, endpoint, RTO and current backups.
- Use protected cross-account or cross-Region backups with appropriately isolated recovery roles.
- Review writer failover tests, connection pools, DNS refresh and retry strategy.
- Inspect cookie handling, session persistence, application state and failure tests.
Explanation
Correct Answers
A:Implement bounded retries and use appropriate cluster endpoints around database failover. This is a required controlled engineering action for the stated situation: A critical Aurora service stores data reliably but a client uses a short hardcoded connection timeout and does not retry after writer promotion. The complementary correct action is: Review writer failover tests, connection pools, DNS refresh and retry strategy. Both follow the principle: Availability requires both managed database failover and application-side transient fault handling.
D:Review writer failover tests, connection pools, DNS refresh and retry strategy. This is a required diagnostic evidence step for the stated situation: A critical Aurora service stores data reliably but a client uses a short hardcoded connection timeout and does not retry after writer promotion. The complementary correct action is: Implement bounded retries and use appropriate cluster endpoints around database failover. Both follow the principle: Availability requires both managed database failover and application-side transient fault handling.
Incorrect Answers
B:Review RDS deployment mode, client retry behavior, endpoint, RTO and current backups. This is suitable for another situation: A critical RDS database runs on one instance and must recover automatically from underlying infrastructure failure without manual restoration. In this case, engineers instead need the paired investigation (Review writer failover tests, connection pools, DNS refresh and retry strategy.) and design change (Implement bounded retries and use appropriate cluster endpoints around database failover.). These two steps address: A critical Aurora service stores data reliably but a client uses a short hardcoded connection timeout and does not retry after writer promotion.
C:Use protected cross-account or cross-Region backups with appropriately isolated recovery roles. This is suitable for another situation: Ransomware could delete backups because production administrators have the same permissions on the only backup vault. In this case, engineers instead need the paired investigation (Review writer failover tests, connection pools, DNS refresh and retry strategy.) and design change (Implement bounded retries and use appropriate cluster endpoints around database failover.). These two steps address: A critical Aurora service stores data reliably but a client uses a short hardcoded connection timeout and does not retry after writer promotion.
E:Inspect cookie handling, session persistence, application state and failure tests. This is suitable for another situation: Two application instances run in distinct AZs but all sessions are stored on one instance and users lose carts during target failures. In this case, engineers instead need the paired investigation (Review writer failover tests, connection pools, DNS refresh and retry strategy.) and design change (Implement bounded retries and use appropriate cluster endpoints around database failover.). These two steps address: A critical Aurora service stores data reliably but a client uses a short hardcoded connection timeout and does not retry after writer promotion.
Question 974
An AWS platform team investigates this condition: A multinational OU has a data residency rule, but new accounts can deploy regulated S3 resources in arbitrary Regions. Which DevOps principle BEST explains the core problem?
- Organization controls should constrain sensitive service actions to approved Regions where practical.
- Account movement can change inherited guardrails and service-managed StackSets targets.
- Long-running workflows should use durable orchestration rather than a single Lambda invocation.
- OU hierarchy and controls should reflect different business risk profiles without losing required common protections.
Explanation
Correct Answer
A:Organization controls should constrain sensitive service actions to approved Regions where practical. Relevant first evidence: Inspect organizational SCPs, permitted global-service exceptions and deployment destinations. The resulting controlled response is: Apply reviewed region-deny guardrails with necessary exceptions at appropriate OU scope.
Incorrect Answers
B:Account movement can change inherited guardrails and service-managed StackSets targets. This instead addresses a different case: A team moves an account to a new OU and expects an existing StackSets-managed baseline to remain unchanged without review. For the stated situation (A multinational OU has a data residency rule, but new accounts can deploy regulated S3 resources in arbitrary Regions.), the better principle is: Organization controls should constrain sensitive service actions to approved Regions where practical. The deciding distinction is: Organization controls should constrain sensitive service actions to approved Regions where practical.
C:Long-running workflows should use durable orchestration rather than a single Lambda invocation. This instead addresses a different case: A Lambda invoked for a multi-hour infrastructure migration times out before tasks finish and loses progress. For the stated situation (A multinational OU has a data residency rule, but new accounts can deploy regulated S3 resources in arbitrary Regions.), the better principle is: Organization controls should constrain sensitive service actions to approved Regions where practical. The deciding distinction is: Organization controls should constrain sensitive service actions to approved Regions where practical.
D:OU hierarchy and controls should reflect different business risk profiles without losing required common protections. This instead addresses a different case: Development accounts and regulated production accounts need distinct guardrails, but a single organization-wide policy blocks legitimate development experiments. For the stated situation (A multinational OU has a data residency rule, but new accounts can deploy regulated S3 resources in arbitrary Regions.), the better principle is: Organization controls should constrain sensitive service actions to approved Regions where practical. The deciding distinction is: Organization controls should constrain sensitive service actions to approved Regions where practical.
Question 975
An engineering review identifies: Five related alarms page the same team simultaneously for a single database outage, overwhelming responders. Which shortcut is MOST unsafe for this exact condition?
- SSH to the replaced node and expect all deleted pod logs to remain local.
- Raise the queue depth threshold while ignoring message age and failures.
- Disable all component alarms without preserving root-cause visibility.
- Reboot every EC2 instance on any CPU alarm and assume hardware recovery is solved.
Explanation
Correct Answer
C:Disable all component alarms without preserving root-cause visibility. The case is: Five related alarms page the same team simultaneously for a single database outage, overwhelming responders. A safer engineering response is: Use CloudWatch composite alarm logic with deliberate suppression or grouping. The deciding principle is: Composite alarms can group related signals into meaningful incident notifications.
Incorrect Answers
A:SSH to the replaced node and expect all deleted pod logs to remain local. 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 (Five related alarms page the same team simultaneously for a single database outage, overwhelming responders.), the better unsafe assumption to reject is: Disable all component alarms without preserving root-cause visibility. The deciding distinction is: Composite alarms can group related signals into meaningful incident notifications.
B:Raise the queue depth threshold while ignoring message age and failures. This instead addresses a different case: A queue's depth remains modest but its oldest message waits 40 minutes because one poison message repeatedly fails processing. For the stated situation (Five related alarms page the same team simultaneously for a single database outage, overwhelming responders.), the better unsafe assumption to reject is: Disable all component alarms without preserving root-cause visibility. The deciding distinction is: Composite alarms can group related signals into meaningful incident notifications.
D:Reboot every EC2 instance on any CPU alarm and assume hardware recovery is solved. This instead addresses a different case: A critical single EC2 instance occasionally fails hardware health checks, but operators discover the outage only when customers complain. For the stated situation (Five related alarms page the same team simultaneously for a single database outage, overwhelming responders.), the better unsafe assumption to reject is: Disable all component alarms without preserving root-cause visibility. The deciding distinction is: Composite alarms can group related signals into meaningful incident notifications.
Question 976
The DevOps team must resolve this scenario: A production security group unexpectedly allows SSH from the internet, and teams disagree who changed it. Which engineering change is MOST appropriate?
- Create per-function metric queries and alarms using appropriate dimensions.
- Query historical configuration snapshots and correlate with authorization records.
- Query trusted CloudTrail records and correlate with approved change records.
- Instrument affected services and analyze slow traces to isolate the expensive dependency.
Explanation
Correct Answer
C:Query trusted CloudTrail records and correlate with approved change records. Its validation is: The exact authorized or unauthorized API caller and action are identified reproducibly. The principle is: CloudTrail management events can attribute configuration changes when logged and retained appropriately.
Incorrect Answers
A:Create per-function metric queries and alarms using appropriate dimensions. This instead addresses a different case: A dashboard aggregates all Lambda error counts into one line and cannot reveal which function causes the failures. For the stated situation (A production security group unexpectedly allows SSH from the internet, and teams disagree who changed it.), the better engineering action is: Query trusted CloudTrail records and correlate with approved change records. The deciding distinction is: CloudTrail management events can attribute configuration changes when logged and retained appropriately.
B:Query historical configuration snapshots and correlate with authorization records. This instead addresses a different case: A tagged production S3 bucket is currently private, but auditors need to know whether it was public during a past incident window. For the stated situation (A production security group unexpectedly allows SSH from the internet, and teams disagree who changed it.), the better engineering action is: Query trusted CloudTrail records and correlate with approved change records. The deciding distinction is: CloudTrail management events can attribute configuration changes when logged and retained appropriately.
D:Instrument affected services and analyze slow traces to isolate the expensive dependency. This instead addresses a different case: An application has slow checkout requests only when external credit checks are called, but aggregate ALB metrics cannot locate the dependency. For the stated situation (A production security group unexpectedly allows SSH from the internet, and teams disagree who changed it.), the better engineering action is: Query trusted CloudTrail records and correlate with approved change records. The deciding distinction is: CloudTrail management events can attribute configuration changes when logged and retained appropriately.
Question 977
After implementing a proposed fix, the team reviews: A template refactor changes an S3 bucket logical ID, risking replacement of a bucket containing business records. Which result would BEST confirm that the risk is addressed?
- Two test applications deploy consistent network controls from the approved shared version.
- A noncompliant test node patches during its window and reports a verifiable status.
- The planned update avoids unapproved loss and records expected replacement operations.
- The stack returns to a stable state with all original persistent resources intact.
Explanation
Correct Answer
C:The planned update avoids unapproved loss and records expected replacement operations. The approved action is: Preserve logical resource identity or implement a controlled migration and retention plan. The risk principle is: IaC refactors should identify replacement and deletion consequences before execution.
Incorrect Answers
A:Two test applications deploy consistent network controls from the approved shared version. 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 template refactor changes an S3 bucket logical ID, risking replacement of a bucket containing business records.), the better verification is: The planned update avoids unapproved loss and records expected replacement operations. The deciding distinction is: IaC refactors should identify replacement and deletion consequences before execution.
B:A noncompliant test node patches during its window and reports a verifiable status. This instead addresses a different case: A fleet must receive OS security patches only during approved windows, with controlled reboots and exception reporting. For the stated situation (A template refactor changes an S3 bucket logical ID, risking replacement of a bucket containing business records.), the better verification is: The planned update avoids unapproved loss and records expected replacement operations. The deciding distinction is: IaC refactors should identify replacement and deletion consequences before execution.
D:The stack returns to a stable state with all original persistent resources intact. 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 (A template refactor changes an S3 bucket logical ID, risking replacement of a bucket containing business records.), the better verification is: The planned update avoids unapproved loss and records expected replacement operations. The deciding distinction is: IaC refactors should identify replacement and deletion consequences before execution.
Question 978
The DevOps team must resolve this scenario: An organization must retain regulatory audit evidence for seven years, but administrators can remove every copy using ordinary DeleteObject. Which engineering change is MOST appropriate?
- Enable sufficient flow log scope with protected centralized analysis.
- Apply approved S3 Object Lock retention where required with tested access governance.
- Grant only the necessary KMS decrypt permissions to the intended application role.
- Use ACM or a secure secret/key service appropriate to the termination model.
Explanation
Correct Answer
B:Apply approved S3 Object Lock retention where required with tested access governance. Its validation is: A test delete before retention expiry is denied and authorized readers retain access. The principle is: Compliance retention requires appropriate immutability controls and separated privileges.
Incorrect Answers
A:Enable sufficient flow log scope with protected centralized analysis. This instead addresses a different case: Security detects unauthorized port scans but cannot determine which source attempted connections to a sensitive subnet. For the stated situation (An organization must retain regulatory audit evidence for seven years, but administrators can remove every copy using ordinary DeleteObject.), the better engineering action is: Apply approved S3 Object Lock retention where required with tested access governance. The deciding distinction is: Compliance retention requires appropriate immutability controls and separated privileges.
C:Grant only the necessary KMS decrypt permissions to the intended application role. This instead addresses a different case: An application has s3:GetObject permission but cannot read encrypted objects after a KMS key policy update. For the stated situation (An organization must retain regulatory audit evidence for seven years, but administrators can remove every copy using ordinary DeleteObject.), the better engineering action is: Apply approved S3 Object Lock retention where required with tested access governance. The deciding distinction is: Compliance retention requires appropriate immutability controls and separated privileges.
D:Use ACM or a secure secret/key service appropriate to the termination model. This instead addresses a different case: A custom TLS termination service stores its private key in an unencrypted public container image layer. For the stated situation (An organization must retain regulatory audit evidence for seven years, but administrators can remove every copy using ordinary DeleteObject.), the better engineering action is: Apply approved S3 Object Lock retention where required with tested access governance. The deciding distinction is: Compliance retention requires appropriate immutability controls and separated privileges.
Question 979
The DevOps team must resolve this scenario: An ECS application task fails health checks every few minutes, and the team restarts the same failing task manually without identifying a dependency outage. Which engineering change is MOST appropriate?
- Use conditional automation and human approval for high-risk stateful remediation.
- Correct rotation and refresh behavior with a tested coordinated client retry path.
- Use ECS service reconciliation with alarms and root-cause escalation for repeated failures.
- Subscribe to relevant health events through centralized EventBridge and incident workflows.
Explanation
Correct Answer
C:Use ECS service reconciliation with alarms and root-cause escalation for repeated failures. Its validation is: A single crashed task is replaced, while repeated failures trigger a meaningful incident. The principle is: Automated recovery must distinguish replaceable task failure from persistent systemic causes.
Incorrect Answers
A:Use conditional automation and human approval for high-risk stateful remediation. 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 ECS application task fails health checks every few minutes, and the team restarts the same failing task manually without identifying a dependency outage.), the better engineering action is: Use ECS service reconciliation with alarms and root-cause escalation for repeated failures. The deciding distinction is: Automated recovery must distinguish replaceable task failure from persistent systemic causes.
B:Correct rotation and refresh behavior with a tested coordinated client retry path. This instead addresses a different case: A scheduled Secrets Manager rotation updates a credential, but its consumer application continues using the revoked password and fails authentication. For the stated situation (An ECS application task fails health checks every few minutes, and the team restarts the same failing task manually without identifying a dependency outage.), the better engineering action is: Use ECS service reconciliation with alarms and root-cause escalation for repeated failures. The deciding distinction is: Automated recovery must distinguish replaceable task failure from persistent systemic causes.
D:Subscribe to relevant health events through centralized EventBridge and incident workflows. This instead addresses a different case: An AWS Health event affects a critical enterprise database in an otherwise quiet account, but the team monitors only application CloudWatch alarms. For the stated situation (An ECS application task fails health checks every few minutes, and the team restarts the same failing task manually without identifying a dependency outage.), the better engineering action is: Use ECS service reconciliation with alarms and root-cause escalation for repeated failures. The deciding distinction is: Automated recovery must distinguish replaceable task failure from persistent systemic causes.
Question 980
An AWS platform team investigates this condition: A Lambda cleans abandoned development stacks nightly but occasionally deletes shared production KMS keys due to an imprecise tag query. Which DevOps principle BEST explains the core problem?
- Automated resource cleanup must constrain target scope and irreversible actions.
- Complex automation benefits from explicit state transitions, retries, timeouts and compensation.
- A failed IaC update should be diagnosed and recovered without destroying existing service state.
- Operational automation requires versioning, target control and bounded failure exposure.
Explanation
Correct Answer
A:Automated resource cleanup must constrain target scope and irreversible actions. Relevant first evidence: Review discovery filters, resource ownership, dependency graph and deletion permissions. The resulting controlled response is: Use explicit account/OU boundaries, safe tags, dry-run records and approval for destructive operations.
Incorrect Answers
B:Complex automation benefits from explicit state transitions, retries, timeouts and compensation. This instead addresses a different case: A manual checklist coordinates data migration, validation, and customer notification, but operators skip steps when a Lambda function times out. For the stated situation (A Lambda cleans abandoned development stacks nightly but occasionally deletes shared production KMS keys due to an imprecise tag query.), the better principle is: Automated resource cleanup must constrain target scope and irreversible actions. The deciding distinction is: Automated resource cleanup must constrain target scope and irreversible actions.
C:A failed IaC update should be diagnosed and recovered without destroying existing service state. 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 (A Lambda cleans abandoned development stacks nightly but occasionally deletes shared production KMS keys due to an imprecise tag query.), the better principle is: Automated resource cleanup must constrain target scope and irreversible actions. The deciding distinction is: Automated resource cleanup must constrain target scope and irreversible actions.
D:Operational automation requires versioning, target control and bounded failure exposure. This instead addresses a different case: A fleet automation document runs shell commands as root across all tagged instances with no peer review or limit on execution concurrency. For the stated situation (A Lambda cleans abandoned development stacks nightly but occasionally deletes shared production KMS keys due to an imprecise tag query.), the better principle is: Automated resource cleanup must constrain target scope and irreversible actions. The deciding distinction is: Automated resource cleanup must constrain target scope and irreversible actions.