Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Practice Test 9
Question 80
The DevOps team must resolve this scenario: A security automation rule currently runs for every CloudTrail event, flooding a response Lambda with unrelated calls. Which engineering change is MOST appropriate?
- Roll back or correct the transaction pattern and add appropriate contention monitoring.
- Create selective event patterns matching only approved incident conditions.
- Subscribe to relevant health events through centralized EventBridge and incident workflows.
- Trigger processing from verified object-available events with idempotent validation.
Explanation
Correct Answer
B:Create selective event patterns matching only approved incident conditions. Its validation is: A matching test event invokes the response and an unrelated event does not. The principle is: Event routing should filter on relevant sources, detail types and expected event properties.
Incorrect Answers
A:Roll back or correct the transaction pattern and add appropriate contention monitoring. 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 (A security automation rule currently runs for every CloudTrail event, flooding a response Lambda with unrelated calls.), the better engineering action is: Create selective event patterns matching only approved incident conditions. The deciding distinction is: Event routing should filter on relevant sources, detail types and expected event properties.
C: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 (A security automation rule currently runs for every CloudTrail event, flooding a response Lambda with unrelated calls.), the better engineering action is: Create selective event patterns matching only approved incident conditions. The deciding distinction is: Event routing should filter on relevant sources, detail types and expected event properties.
D:Trigger processing from verified object-available events with idempotent validation. This instead addresses a different case: An automation starts on a fixed schedule even though the required S3 data file often arrives late, causing incomplete daily reports. For the stated situation (A security automation rule currently runs for every CloudTrail event, flooding a response Lambda with unrelated calls.), the better engineering action is: Create selective event patterns matching only approved incident conditions. The deciding distinction is: Event routing should filter on relevant sources, detail types and expected event properties.
Question 81
Before changing production, engineers find: A reusable AWS CDK construct creates S3 buckets with public access enabled unless individual teams remember to override the setting. Which investigation should the engineer perform FIRST?
- Review synthesized CloudFormation, construct defaults, bucket policies and deployed exceptions.
- Run drift detection and compare effective security group properties with template state.
- Review parameter paths, KMS encryption settings and consuming IAM roles.
- Inspect SSM Automation document version, execution permissions, targets and rate controls.
Explanation
Correct Answer
A:Review synthesized CloudFormation, construct defaults, bucket policies and deployed exceptions. The governing principle is: Reusable code should encode secure defaults and controlled override rules. The next controlled engineering decision is: Update the construct to enforce Block Public Access and appropriate encryption by default.
Incorrect Answers
B:Run drift detection and compare effective security group properties with template state. This instead addresses a different case: A CloudFormation-managed security group was changed directly in the console, and the next stack update behaves differently from the approved template. For the stated situation (A reusable AWS CDK construct creates S3 buckets with public access enabled unless individual teams remember to override the setting.), the better investigation is: Review synthesized CloudFormation, construct defaults, bucket policies and deployed exceptions. The deciding distinction is: Reusable code should encode secure defaults and controlled override rules.
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 (A reusable AWS CDK construct creates S3 buckets with public access enabled unless individual teams remember to override the setting.), the better investigation is: Review synthesized CloudFormation, construct defaults, bucket policies and deployed exceptions. The deciding distinction is: Reusable code should encode secure defaults and controlled override rules.
D:Inspect SSM Automation document version, execution permissions, targets and rate controls. 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 reusable AWS CDK construct creates S3 buckets with public access enabled unless individual teams remember to override the setting.), the better investigation is: Review synthesized CloudFormation, construct defaults, bucket policies and deployed exceptions. The deciding distinction is: Reusable code should encode secure defaults and controlled override rules.
Question 82
Before changing production, engineers find: A multinational OU has a data residency rule, but new accounts can deploy regulated S3 resources in arbitrary Regions. Which investigation should the engineer perform FIRST?
- Inspect trust principals, session policies, resource permissions and key inventory.
- Review effective identity and resource policies, SCP evaluation and organization account membership.
- Run drift detection and compare effective security group properties with template state.
- Inspect organizational SCPs, permitted global-service exceptions and deployment destinations.
Explanation
Correct Answer
D:Inspect organizational SCPs, permitted global-service exceptions and deployment destinations. The governing principle is: Organization controls should constrain sensitive service actions to approved Regions where practical. The next controlled engineering decision is: Apply reviewed region-deny guardrails with necessary exceptions at appropriate OU scope.
Incorrect Answers
A:Inspect trust principals, session policies, resource permissions and key inventory. This instead addresses a different case: A central deployment role uses a shared user access key to write objects to member-account buckets. 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 investigation is: Inspect organizational SCPs, permitted global-service exceptions and deployment destinations. The deciding distinction is: Organization controls should constrain sensitive service actions to approved Regions where practical.
B:Review effective identity and resource policies, SCP evaluation and organization account membership. This instead addresses a different case: A team attaches an AWS Organizations SCP allowing S3 access and assumes member-account workloads now have permission to list all buckets. 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 investigation is: Inspect organizational SCPs, permitted global-service exceptions and deployment destinations. The deciding distinction is: Organization controls should constrain sensitive service actions to approved Regions where practical.
C:Run drift detection and compare effective security group properties with template state. This instead addresses a different case: A CloudFormation-managed security group was changed directly in the console, and the next stack update behaves differently from the approved template. 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 investigation is: Inspect organizational SCPs, permitted global-service exceptions and deployment destinations. The deciding distinction is: Organization controls should constrain sensitive service actions to approved Regions where practical.
Question 83
The DevOps team must resolve this scenario: An application dashboard reports increased HTTP 5xx errors after release, but it does not distinguish target errors from errors generated by the ALB. Which engineering change is MOST appropriate?
- Use CloudWatch composite alarm logic with deliberate suppression or grouping.
- Forward container logs with cluster, namespace, pod and deployment identifiers.
- Use the appropriate metric split and correlated logs to target the failing layer.
- Query historical configuration snapshots and correlate with authorization records.
Explanation
Correct Answer
C:Use the appropriate metric split and correlated logs to target the failing layer. Its validation is: A deliberate application 500 is distinguishable from an ALB-origin 503 in monitoring. The principle is: Troubleshooting requires separating load balancer and target failure metrics.
Incorrect Answers
A:Use CloudWatch composite alarm logic with deliberate suppression or grouping. This instead addresses a different case: Five related alarms page the same team simultaneously for a single database outage, overwhelming responders. For the stated situation (An application dashboard reports increased HTTP 5xx errors after release, but it does not distinguish target errors from errors generated by the ALB.), the better engineering action is: Use the appropriate metric split and correlated logs to target the failing layer. The deciding distinction is: Troubleshooting requires separating load balancer and target failure metrics.
B:Forward container logs with cluster, namespace, pod and deployment identifiers. 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 (An application dashboard reports increased HTTP 5xx errors after release, but it does not distinguish target errors from errors generated by the ALB.), the better engineering action is: Use the appropriate metric split and correlated logs to target the failing layer. The deciding distinction is: Troubleshooting requires separating load balancer and target failure metrics.
D: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 (An application dashboard reports increased HTTP 5xx errors after release, but it does not distinguish target errors from errors generated by the ALB.), the better engineering action is: Use the appropriate metric split and correlated logs to target the failing layer. The deciding distinction is: Troubleshooting requires separating load balancer and target failure metrics.
Question 84
An AWS platform team investigates this condition: Security operations wants alerts whenever Config detects that approved encryption settings are disabled on new storage resources. Which DevOps principle BEST explains the core problem?
- Configuration compliance events can trigger managed event routing and bounded remediation.
- Predictable demand can be addressed with scheduled or predictive capacity planning.
- Findings require accurate resource scope, severity and remediation tracking.
- Operational events need managed cross-account routing and accountable notification paths.
Explanation
Correct Answer
A:Configuration compliance events can trigger managed event routing and bounded remediation. Relevant first evidence: Inspect AWS Config rule events, EventBridge filters and automation target permissions. The resulting controlled response is: Route noncompliance events to appropriate response automation and human visibility.
Incorrect Answers
B:Predictable demand can be addressed with scheduled or predictive capacity planning. This instead addresses a different case: A predictable daily traffic peak starts before the reactive Auto Scaling policy can launch sufficient EC2 instances. For the stated situation (Security operations wants alerts whenever Config detects that approved encryption settings are disabled on new storage resources.), the better principle is: Configuration compliance events can trigger managed event routing and bounded remediation. The deciding distinction is: Configuration compliance events can trigger managed event routing and bounded remediation.
C:Findings require accurate resource scope, severity and remediation tracking. This instead addresses a different case: Amazon Inspector reports a critical package CVE on a small set of container images, but the security board assumes all images are affected. For the stated situation (Security operations wants alerts whenever Config detects that approved encryption settings are disabled on new storage resources.), the better principle is: Configuration compliance events can trigger managed event routing and bounded remediation. The deciding distinction is: Configuration compliance events can trigger managed event routing and bounded remediation.
D:Operational events need managed cross-account routing and accountable notification paths. This instead addresses a different case: A regional AWS Health event indicates maintenance of a service used by five accounts, but no on-call team receives it. For the stated situation (Security operations wants alerts whenever Config detects that approved encryption settings are disabled on new storage resources.), the better principle is: Configuration compliance events can trigger managed event routing and bounded remediation. The deciding distinction is: Configuration compliance events can trigger managed event routing and bounded remediation.
Question 85
An AWS platform team investigates this condition: A new payment option passes staging but causes failures only for a small set of customer geographies. Which DevOps principle BEST explains the core problem?
- End-to-end application acceptance should validate critical customer transactions and dependencies.
- Serverless rollbacks should use immutable published versions and controlled alias revisions.
- Release testing should include representative cohorts and post-traffic observation before full rollout.
- Schema migration tests must account for temporarily coexisting application versions.
Explanation
Correct Answer
C:Release testing should include representative cohorts and post-traffic observation before full rollout. Relevant first evidence: Compare test populations, geographic routing, canary metrics and business error indicators. The resulting controlled response is: Deploy to a bounded canary or targeted cohort and expand only after validated signals.
Incorrect Answers
A:End-to-end application acceptance should validate critical customer transactions and dependencies. This instead addresses a different case: After a deployment, the homepage returns HTTP 200 while checkout is broken for authenticated customers. For the stated situation (A new payment option passes staging but causes failures only for a small set of customer geographies.), the better principle is: Release testing should include representative cohorts and post-traffic observation before full rollout. The deciding distinction is: Release testing should include representative cohorts and post-traffic observation before full rollout.
B:Serverless rollbacks should use immutable published versions and controlled alias revisions. This instead addresses a different case: A Lambda release is invoked through an alias but the deployment pipeline overwrites the prior version identifier in its rollback records. For the stated situation (A new payment option passes staging but causes failures only for a small set of customer geographies.), the better principle is: Release testing should include representative cohorts and post-traffic observation before full rollout. The deciding distinction is: Release testing should include representative cohorts and post-traffic observation before full rollout.
D:Schema migration tests must account for temporarily coexisting application versions. This instead addresses a different case: A new release adds a non-null column while old application instances still write rows during a blue/green deployment. For the stated situation (A new payment option passes staging but causes failures only for a small set of customer geographies.), the better principle is: Release testing should include representative cohorts and post-traffic observation before full rollout. The deciding distinction is: Release testing should include representative cohorts and post-traffic observation before full rollout.
Question 86
After implementing a proposed fix, the team reviews: A tagged production S3 bucket is currently private, but auditors need to know whether it was public during a past incident window. Which result would BEST confirm that the risk is addressed?
- The incident-period public access state is established from timestamped evidence.
- The exact authorized or unauthorized API caller and action are identified reproducibly.
- A representative failed request produces an ALB log object readable by approved responders.
- A controlled slow call is visible in the external dependency segment with measured duration.
Explanation
Correct Answer
A:The incident-period public access state is established from timestamped evidence. The approved action is: Query historical configuration snapshots and correlate with authorization records. The risk principle is: Compliance conclusions depend on time-relevant configuration history, not only present state.
Incorrect Answers
B:The exact authorized or unauthorized API caller and action are identified reproducibly. 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 tagged production S3 bucket is currently private, but auditors need to know whether it was public during a past incident window.), the better verification is: The incident-period public access state is established from timestamped evidence. The deciding distinction is: Compliance conclusions depend on time-relevant configuration history, not only present state.
C:A representative failed request produces an ALB log object readable by approved responders. This instead addresses a different case: An ALB intermittently rejects requests, but access logs are absent because the configured S3 bucket policy denies delivery. For the stated situation (A tagged production S3 bucket is currently private, but auditors need to know whether it was public during a past incident window.), the better verification is: The incident-period public access state is established from timestamped evidence. The deciding distinction is: Compliance conclusions depend on time-relevant configuration history, not only present state.
D:A controlled slow call is visible in the external dependency segment with measured duration. 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 tagged production S3 bucket is currently private, but auditors need to know whether it was public during a past incident window.), the better verification is: The incident-period public access state is established from timestamped evidence. The deciding distinction is: Compliance conclusions depend on time-relevant configuration history, not only present state.
Question 87
The DevOps team must resolve this scenario: Operations edits a firewall security group to add temporary unrestricted access but forgets to remove it after an emergency. Which engineering change is MOST appropriate?
- Filter relevant state transitions and check desired state before mutating resources.
- Use a controlled approved remediation action or rollback of the unauthorized rule.
- Roll back or correct the transaction pattern and add appropriate contention monitoring.
- Connect relevant metrics to a bounded Auto Scaling policy with controlled thresholds.
Explanation
Correct Answer
B:Use a controlled approved remediation action or rollback of the unauthorized rule. Its validation is: A known temporary exposure is detected and safely removed with an audit record. The principle is: Temporary security changes need scoped automatic detection and accountable restoration.
Incorrect Answers
A:Filter relevant state transitions and check desired state before mutating resources. 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 (Operations edits a firewall security group to add temporary unrestricted access but forgets to remove it after an emergency.), the better engineering action is: Use a controlled approved remediation action or rollback of the unauthorized rule. The deciding distinction is: Temporary security changes need scoped automatic detection and accountable restoration.
C:Roll back or correct the transaction pattern and add appropriate contention monitoring. 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 (Operations edits a firewall security group to add temporary unrestricted access but forgets to remove it after an emergency.), the better engineering action is: Use a controlled approved remediation action or rollback of the unauthorized rule. The deciding distinction is: Temporary security changes need scoped automatic detection and accountable restoration.
D:Connect relevant metrics to a bounded Auto Scaling policy with controlled thresholds. This instead addresses a different case: A consumer service has rapidly increasing queue lag, and responders manually launch instances rather than using a safe dynamic policy. For the stated situation (Operations edits a firewall security group to add temporary unrestricted access but forgets to remove it after an emergency.), the better engineering action is: Use a controlled approved remediation action or rollback of the unauthorized rule. The deciding distinction is: Temporary security changes need scoped automatic detection and accountable restoration.
Question 88
A DevOps team is reviewing: Multiple environments share unqualified /db/password parameter names and a production application accidentally reads a staging secret. Which TWO complementary actions should it take? Select TWO answers.
- Review synthesized CloudFormation, construct defaults, bucket policies and deployed exceptions.
- Inspect SSM Automation document version, execution permissions, targets and rate controls.
- Use AppConfig or an approved configuration store with versioned safe rollout and validation.
- Use scoped paths or separate accounts with least-privilege parameter read access.
- Review parameter paths, KMS encryption settings and consuming IAM roles.
Explanation
Correct Answers
D:Use scoped paths or separate accounts with least-privilege parameter read access. This is a required controlled engineering action for the stated situation: Multiple environments share unqualified /db/password parameter names and a production application accidentally reads a staging secret. The complementary correct action is: Review parameter paths, KMS encryption settings and consuming IAM roles. Both follow the principle: Parameter naming and permissions must isolate environment configuration.
E:Review parameter paths, KMS encryption settings and consuming IAM roles. This is a required diagnostic evidence step for the stated situation: Multiple environments share unqualified /db/password parameter names and a production application accidentally reads a staging secret. The complementary correct action is: Use scoped paths or separate accounts with least-privilege parameter read access. Both follow the principle: Parameter naming and permissions must isolate environment configuration.
Incorrect Answers
A:Review synthesized CloudFormation, construct defaults, bucket policies and deployed exceptions. This is suitable for another situation: A reusable AWS CDK construct creates S3 buckets with public access enabled unless individual teams remember to override the setting. In this case, engineers instead need the paired investigation (Review parameter paths, KMS encryption settings and consuming IAM roles.) and design change (Use scoped paths or separate accounts with least-privilege parameter read access.). These two steps address: Multiple environments share unqualified /db/password parameter names and a production application accidentally reads a staging secret.
B:Inspect SSM Automation document version, execution permissions, targets and rate controls. This is suitable for another situation: A fleet automation document runs shell commands as root across all tagged instances with no peer review or limit on execution concurrency. In this case, engineers instead need the paired investigation (Review parameter paths, KMS encryption settings and consuming IAM roles.) and design change (Use scoped paths or separate accounts with least-privilege parameter read access.). These two steps address: Multiple environments share unqualified /db/password parameter names and a production application accidentally reads a staging secret.
C:Use AppConfig or an approved configuration store with versioned safe rollout and validation. This is suitable for another situation: A service reads configuration directly from process environment variables, forcing a container rebuild for each feature-flag adjustment. In this case, engineers instead need the paired investigation (Review parameter paths, KMS encryption settings and consuming IAM roles.) and design change (Use scoped paths or separate accounts with least-privilege parameter read access.). These two steps address: Multiple environments share unqualified /db/password parameter names and a production application accidentally reads a staging secret.
Question 89
An engineering review identifies: A production stack enters UPDATE_ROLLBACK_FAILED after a deleted external resource cannot be restored. Which shortcut is MOST unsafe for this exact condition?
- Assume midnight schedule means every upstream file has finished uploading.
- Debug Lambda execution logs as the sole source of 429 responses that never reached Lambda.
- Delete the stack to clear its red console status without evaluating stateful data.
- Increase CPU scaling target without addressing missing instance capacity.
Explanation
Correct Answer
C:Delete the stack to clear its red console status without evaluating stateful data. The case is: A production stack enters UPDATE_ROLLBACK_FAILED after a deleted external resource cannot be restored. A safer engineering response is: Correct the blocking dependency and continue rollback using supported CloudFormation recovery. The deciding principle is: Failure investigation should use CloudFormation stack events and supported recovery operations.
Incorrect Answers
A:Assume midnight schedule means every upstream file has finished uploading. This instead addresses a different case: An automation starts on a fixed schedule even though the required S3 data file often arrives late, causing incomplete daily reports. For the stated situation (A production stack enters UPDATE_ROLLBACK_FAILED after a deleted external resource cannot be restored.), the better unsafe assumption to reject is: Delete the stack to clear its red console status without evaluating stateful data. The deciding distinction is: Failure investigation should use CloudFormation stack events and supported recovery operations.
B:Debug Lambda execution logs as the sole source of 429 responses that never reached Lambda. 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 (A production stack enters UPDATE_ROLLBACK_FAILED after a deleted external resource cannot be restored.), the better unsafe assumption to reject is: Delete the stack to clear its red console status without evaluating stateful data. The deciding distinction is: Failure investigation should use CloudFormation stack events and supported recovery operations.
D:Increase CPU scaling target without addressing missing instance capacity. This instead addresses a different case: An Auto Scaling group repeatedly fails to launch enough instances in one AZ despite other AZs having capacity. For the stated situation (A production stack enters UPDATE_ROLLBACK_FAILED after a deleted external resource cannot be restored.), the better unsafe assumption to reject is: Delete the stack to clear its red console status without evaluating stateful data. The deciding distinction is: Failure investigation should use CloudFormation stack events and supported recovery operations.
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.