Question 420

During root-cause analysis, the team identifies the following: Disaster restoration is blocked because runbooks rely on ad hoc manual console settings. To recreate known-good application capacity from immutable infrastructure definitions, what should be configured?

  1. Use RDS Multi-AZ automatic failover for a local Availability Zone failure
  2. Use AWS Elastic Disaster Recovery replication and recovery launch plans
  3. Enable S3 versioning and implement recovery for deleted object versions
  4. Maintain tested IaC and AMI releases in the disaster recovery Region
  5. Run regular failover game days and measure actual RTO and RPO

Explanation

Correct Answer

D:

Versioned IaC and images allow consistent restoration of application infrastructure. It restores the ability to recreate known-good application capacity from immutable infrastructure definitions, provided the implementation also observes that the recovery environment must reproduce network, IAM, and compute configuration deterministically.

Incorrect Answers

A:

RDS Multi-AZ can fail over to a maintained standby in another zone using the managed DB endpoint; this can help teams restore database service availability without promoting a cross-Region read replica, but the reported workflow needs to recreate known-good application capacity from immutable infrastructure definitions. It does not perform that required function.

B:

That service solves a different operating problem: the need to reduce recovery time for supported server workloads using block-level replication; its behavior is that elastic Disaster Recovery continuously replicates supported source-server data for recovery launches into AWS; the requested outcome remains recreate known-good application capacity from immutable infrastructure definitions.

C:

The choice is useful when engineers need to recover an overwritten or deleted application object from an earlier version: S3 versioning preserves prior object versions so authorized users can restore selected versions; it would not establish the control needed to recreate known-good application capacity from immutable infrastructure definitions.

E:

Choosing this would aim to validate recovery performance against business-approved thresholds instead of recreate known-good application capacity from immutable infrastructure definitions; controlled recovery tests expose dependencies, manual delays, and replication gaps before incidents; it cannot replace the mechanism specified by the incident evidence.

Question 421

During root-cause analysis, the team identifies the following: One serial job runs the entire OS and runtime matrix and takes too long. To run compatible test variations in parallel and consolidate their outcomes, what should be configured?

  1. Use a CodePipeline test action after deployment to staging
  2. Run unit tests in the first CodeBuild stage before packaging
  3. Use CodeBuild batch builds for a supported test matrix
  4. Configure CodeBuild test reports with the supported report-file format
  5. Use pull request events to start a pre-merge validation build

Explanation

Correct Answer

C:

Batch builds support coordinated multiple build configurations and associated aggregate status; it restores the ability to run compatible test variations in parallel and consolidate their outcomes, provided the implementation also observes that the matrix results must be tied to one reviewable build request.

Incorrect Answers

A:

That service solves a different operating problem: the need to fail a promotion flow based on smoke-test results for the deployed service. Its behavior is that a pipeline test action turns post-deployment health verification into an enforceable promotion gate. The requested outcome remains run compatible test variations in parallel and consolidate their outcomes.

B:

The choice is useful when engineers need to reject code-level regressions rapidly before creating production artifacts: unit tests in an early build action reduce feedback latency and stop faulty revisions before expensive stages. It would not establish the control needed to run compatible test variations in parallel and consolidate their outcomes.

D:

Choosing this would aim to expose test-suite pass rates and failing cases for each build execution instead of run compatible test variations in parallel and consolidate their outcomes; CodeBuild reads supported report files from configured paths and associates results with report groups; it cannot replace the mechanism specified by the incident evidence.

E:

Although PR-triggered builds can test changes earlier than post-merge releases and support branch protection workflows, the scenario does not ask for evaluate a proposed change before it merges into a protected branch. It requires the ability to run compatible test variations in parallel and consolidate their outcomes, which is a separate responsibility.

Question 422

An observability team is resolving a multi-part production requirement: (1) identify which downstream call dominates end-to-end request latency; (2) find when an infrastructure resource drifted from its previous configuration. Which TWO proposals directly implement the required capabilities? Choose TWO.

  1. Set CloudWatch alarm evaluation periods and datapoints-to-alarm deliberately
  2. Configure CloudWatch composite alarms to combine related signal states
  3. Configure a CloudWatch anomaly detection band on a seasonal metric
  4. Use CloudWatch dashboard widgets for a shared service SLO view
  5. Enable AWS X-Ray tracing across supported API and Lambda components
  6. Use AWS Config resource timelines to inspect configuration history

Explanation

Correct Answers

E:

X-Ray traces and segments expose timing and dependencies across instrumented service calls; among the listed outcomes, it addresses identify which downstream call dominates end-to-end request latency, rather than merely contributing a related signal or support step.

F:

This covers the specific result to find when an infrastructure resource drifted from its previous configuration: AWS Config configuration history tracks supported resource state changes over time. The investigation needs configuration snapshots rather than only API audit events.

Incorrect Answers

A:

It supports a separate administrative task, namely to avoid triggering rollbacks on one isolated noisy metric datapoint; evaluation periods and datapoints-to-alarm control how many recent breaches cause an alarm state; the prompt's required outcomes are not achieved by substituting this control; the specified requirement instead is to identify which downstream call dominates end-to-end request latency.

B:

Composite alarms evaluate the Boolean state of underlying alarms before transitioning. If the requirement were to page operators only when multiple correlated alarms indicate a real incident, that would matter. The requested outcomes are separate from the one this option addresses.

C:

CloudWatch anomaly detection models expected patterns and allows alarms on deviations from the band; that would be appropriate to alert on unexpected deviations without relying on a single fixed threshold, but this is a different objective from the numbered obligations in the stem.

D:

This mechanism supports the ability to show latency, errors, and saturation to incident responders in one panel: CloudWatch dashboards visualize selected metrics, logs, and alarms in a shared operational view; it would not satisfy a different obligation just by appearing in the same workflow; the specified requirement instead is to identify which downstream call dominates end-to-end request latency.

Question 423

After a configuration change, the service maintenance group sees this issue: Developers hand-create differently configured network stacks in each account. What best restores the ability to let application teams self-service compliant infrastructure without broad template authoring access?

  1. Use CloudFormation hooks to validate resource configuration during stack operations
  2. Publish approved infrastructure products through AWS Service Catalog
  3. Use CDK Aspects to apply organization-wide checks or tags to constructs
  4. Use SSM document version control for repeatable operational scripts
  5. Apply CloudFormation Guard rules in the infrastructure validation stage

Explanation

Correct Answer

B:

Service Catalog portfolios expose governed infrastructure products to authorized consumers. It enables the necessary capability to let application teams self-service compliant infrastructure without broad template authoring access rather than only providing an adjacent operational control. Platform owners must constrain which templates and versions can be provisioned.

Incorrect Answers

A:

CloudFormation hooks can enforce pre-provisioning or operation-time checks for supported resource types; this is a reasonable option when the requirement is to intercept stack resource operations that violate central deployment rules, but it operates at a different workflow boundary from the stated need to let application teams self-service compliant infrastructure without broad template authoring access.

C:

Although CDK Aspects visit construct nodes to apply checks or modifications throughout a CDK application, the scenario does not ask for enforce consistent tagging and validation across an application's CDK construct tree. It requires the ability to let application teams self-service compliant infrastructure without broad template authoring access, which is a separate responsibility.

D:

SSM documents support versioned content and associations can refer to defined document versions; this can help teams publish a reviewed command document and execute a pinned approved version, but the reported workflow needs to let application teams self-service compliant infrastructure without broad template authoring access. It does not perform that required function.

E:

That service solves a different operating problem: the need to reject templates that violate machine-readable resource configuration standards. Its behavior is that CloudFormation Guard checks supported template structures against declarative compliance rules. The requested outcome remains let application teams self-service compliant infrastructure without broad template authoring access.

Question 424

The architecture record specifies: Use CodeDeploy CloudWatch-alarm integration for automatic deployment rollback. To support the goal to reverse a release that triggers the defined customer error alarm, which consideration should the engineer validate?

  1. Health alarms should be linked to staged rollout and rollback criteria
  2. Targets must be selected by tags and have the required SSM managed-node permissions
  3. Rollback should follow a specific monitored release failure signal
  4. The change process should reconcile desired and actual supported configuration

Explanation

Correct Answer

C:

Rollback should follow a specific monitored release failure signal. Without this, choosing the named service is not enough to produce the promised outcome; CodeDeploy can stop and roll back eligible deployments when configured CloudWatch alarms enter ALARM.

Incorrect Answers

A:

This condition governs the different mechanism used to revert a dynamic feature flag after application health degrades. AppConfig can roll back a configuration deployment when monitored CloudWatch alarms indicate failure; for the selected control, the relevant boundary is instead that rollback should follow a specific monitored release failure signal.

B:

Run Command executes approved documents on selected managed nodes without direct interactive host access; its own dependency is that targets must be selected by tags and have the required SSM managed-node permissions. Those details concern the separate objective of being able to apply a one-off configuration command to all affected managed instances, rather than to the named control required to reverse a release that triggers the defined customer error alarm.

D:

This proposed constraint belongs to a separate objective: the change process should reconcile desired and actual supported configuration; the corresponding goal is to restore a resource's intended IaC state after manual infrastructure changes, not the selected architecture's goal to reverse a release that triggers the defined customer error alarm.

Question 425

An incident record says: Config flags an unacceptable setting but operators still fix every finding manually. To restore the capability to remediate eligible noncompliant resources using a controlled runbook, which change addresses the root cause?

  1. Use Systems Manager Automation assumeRole for scoped API execution
  2. Use Systems Manager Session Manager for audited interactive access
  3. Attach an SSM Automation remediation action to an AWS Config rule
  4. Use Systems Manager Distributor for controlled software-package deployment

Explanation

Correct Answer

C:

Config remediation configurations can invoke Systems Manager Automation documents for matching findings; that directly addresses the observed failure in the scenario. The configuration still has to respect this constraint: remediation must invoke a scoped automation role and handle failed attempts.

Incorrect Answers

A:

Although automation can assume an assigned IAM role to run documented steps with explicit API permissions, the scenario does not ask for run an approved automation document under a dedicated role rather than a user's permissions; it requires the ability to remediate eligible noncompliant resources using a controlled runbook, which is a separate responsibility.

B:

Session Manager provides managed interactive sessions through Systems Manager connectivity and IAM controls; this can help teams troubleshoot managed EC2 hosts without opening SSH ports or distributing key pairs, but the reported workflow needs to remediate eligible noncompliant resources using a controlled runbook. It does not perform that required function.

D:

The choice is useful when engineers need to publish an internal agent package and distribute it to managed nodes: distributor manages software packages that can be installed or updated through Systems Manager workflows; it would not establish the control needed to remediate eligible noncompliant resources using a controlled runbook.

Question 426

A platform architecture decision must satisfy two different outcomes, not just choose one AWS feature: enable consistent threat detection coverage for member accounts and standardize security finding aggregation and enabled standards across accounts. Which implementation does that?

  1. Use AWS Organizations CreateAccount automation for programmatic member creation; use cross-account STS AssumeRole for automated administration
  2. Create an organization-wide CloudTrail trail to a protected logging account; configure Security Hub organization integration and central settings policies
  3. Configure organization-wide GuardDuty management through a delegated security account; configure Security Hub organization integration and central settings policies
  4. Configure organization-wide GuardDuty management through a delegated security account; use delegated administrator registration for supported organization-wide services

Explanation

Correct Answer

C:

GuardDuty organization administration can automatically manage protection enrollment across eligible members; Security Hub central configuration can apply supported policies across an organization hierarchy. The first control satisfies the need to enable consistent threat detection coverage for member accounts; the second addresses the need to standardize security finding aggregation and enabled standards across accounts. New-account enablement should be managed through organization integration; security monitoring policy should be managed from the security administration model.

Incorrect Answers

A:

Neither control directly supplies both requested behaviors. Organizations supports asynchronous member account creation through its account APIs; STS AssumeRole returns temporary credentials for a trusted role whose permissions constrain the session. Those mechanisms address different objectives. The specified capabilities are to enable consistent threat detection coverage for member accounts and to standardize security finding aggregation and enabled standards across accounts.

B:

The second implementation is relevant; the problem is the first. An organization trail covers member accounts with centralized delivery and separately controlled storage; it can help collect supported account activity centrally across an AWS organization, whereas the stated first requirement is to enable consistent threat detection coverage for member accounts.

D:

The first half is appropriate: GuardDuty organization administration can automatically manage protection enrollment across eligible members. However, delegated administration allows a registered member account to manage eligible service functions organization-wide; that serves a different objective (let a security account administer a supported service for organization members) and leaves the explicit need to standardize security finding aggregation and enabled standards across accounts unmet.

Question 427

The delivery team's change record lists two distinct deliverables: keep requests away from containers until the application is ready and send a small fraction of user traffic to a replacement task set before full cutover. Which combination covers both deliverables?

  1. Set appropriate ECS deployment minimum healthy percent and maximum percent; choose CodeDeploy in-place deployment with minimum healthy hosts
  2. Apply Kubernetes readiness probes before routing traffic to EKS pods; choose a supported ECS canary traffic-shift configuration
  3. Run a post-deploy smoke test against an ALB health-checked endpoint; choose a supported ECS canary traffic-shift configuration
  4. Apply Kubernetes readiness probes before routing traffic to EKS pods; configure ECS service deployment circuit breaker and rollback

Explanation

Correct Answer

B:

Readiness probes control whether pods are considered ready for service endpoint traffic; canary deployment configurations shift an initial percentage before the remaining cutover. The first control satisfies the need to keep requests away from containers until the application is ready; the second addresses the need to send a small fraction of user traffic to a replacement task set before full cutover. Traffic routing must reflect application readiness rather than just process existence; the new task set must be evaluated on limited live traffic first.

Incorrect Answers

A:

The pair changes the problem instead of completing it. One option addresses control the capacity margin during rolling task replacement; the other addresses update an existing EC2 fleet in batches while preserving required available capacity. The release, however, needs to keep requests away from containers until the application is ready as well as send a small fraction of user traffic to a replacement task set before full cutover.

C:

The second implementation is relevant; the problem is the first. A smoke test targets live application behavior after rollout and can trigger deployment failure handling; it can help validate that a new service release responds correctly before ending the deployment, whereas the stated first requirement is to keep requests away from containers until the application is ready.

D:

Combining a suitable first control with this second one misses the secondary acceptance criterion; the ECS deployment circuit breaker can mark rolling deployments failed and roll back to a prior completed deployment; it helps automatically restore an earlier task deployment after a rolling deployment cannot stabilize rather than send a small fraction of user traffic to a replacement task set before full cutover.

Question 428

The architecture record specifies: Use an SQS dead-letter queue for repeatedly failing asynchronous work. To support the goal to isolate messages that exceed the permitted receive-attempt count, which consideration should the engineer validate?

  1. Findings should reflect resource configuration rather than instance command status
  2. Parallelism must be controlled and failures handled per workflow item
  3. Desired state must be enforced repeatedly on matching managed nodes
  4. Poison messages must remain available for later diagnosis outside the main queue

Explanation

Correct Answer

D:

The implementation has to honor the exact constraint: poison messages must remain available for later diagnosis outside the main queue; SQS redrive policies move repeatedly unsuccessfully processed messages to a designated dead-letter queue.

Incorrect Answers

A:

This condition governs the different mechanism used to detect resources that diverge from a defined account-level configuration policy; config rules evaluate supported resource configurations against policy and report compliance outcomes; for the selected control, the relevant boundary is instead that poison messages must remain available for later diagnosis outside the main queue.

B:

Map states can apply a defined workflow to collections with configurable concurrency. Its own dependency is that parallelism must be controlled and failures handled per workflow item. Those details concern the separate objective of being able to run a repeatable remediation step against multiple independent work items, rather than to the named control required to isolate messages that exceed the permitted receive-attempt count.

C:

The proposed condition makes sense in an implementation designed to reapply a required host configuration whenever nodes drift. It concerns state Manager associations run specified documents against targets according to defined schedules, whereas this question tests the prerequisite of the named control.

Question 429

The production plan uses this approach: Run stateless burst workloads on AWS Fargate. The goal is to launch containers without managing EC2 hosts for short-lived jobs. Which prerequisite or limitation should receive focused review?

  1. The workload should use a serverless container compute mode where supported
  2. The metric should correlate with per-instance capacity and stable control behavior
  3. Capacity must be ready shortly before the recurring workload starts
  4. Scaling should change replicas rather than only increase a container resource limit

Explanation

Correct Answer

A:

The requested behavior is to launch containers without managing EC2 hosts for short-lived jobs, and the workload should use a serverless container compute mode where supported. The underlying AWS behavior is that fargate provides managed compute capacity for compatible ECS tasks and EKS pods.

Incorrect Answers

B:

The proposed condition makes sense in an implementation designed to automatically change fleet capacity to maintain a target utilization level; it concerns target tracking policies adjust desired capacity around a configured metric target, whereas this question tests the prerequisite of the named control; the specified requirement instead is to launch containers without managing EC2 hosts for short-lived jobs.

C:

This proposed constraint belongs to a separate objective: capacity must be ready shortly before the recurring workload starts; the corresponding goal is to preprovision EC2 capacity before a known daily traffic increase, not the selected architecture's goal to launch containers without managing EC2 hosts for short-lived jobs.

D:

This condition governs the different mechanism used to scale pod replicas for demand without changing each pod's compute limits. HPA adjusts the replica count of supported Kubernetes workloads from configured metrics. For the selected control, the relevant boundary is instead that the workload should use a serverless container compute mode where supported.

Question 430

The next AWS platform release needs to automate build and deployment of CDK infrastructure changes with reviewable application source while also being able to isolate permissions between staging and production delivery. Which pairing best supports that release?

  1. Configure an EventBridge rule for an event-driven pipeline execution; enable CodeBuild report groups for automated test results
  2. Connect a CodePipeline source action to an approved Git provider through CodeConnections; use a deployment action with a production-account IAM role
  3. Use an AWS CDK pipeline with dedicated synth and deployment steps; use a deployment action with a production-account IAM role
  4. Use an AWS CDK pipeline with dedicated synth and deployment steps; use an AWS Step Functions state machine to coordinate conditional release tasks

Explanation

Correct Answer

C:

CDK Pipelines synthesize application definitions into cloud assemblies and orchestrate subsequent stack deployments; role separation allows each pipeline action to run under the permissions approved for its target environment. The first control satisfies the need to automate build and deployment of CDK infrastructure changes with reviewable application source; the second addresses the need to isolate permissions between staging and production delivery. Infrastructure deployments must be reproducible from version control; production permissions must be assumed only by the designated production action.

Incorrect Answers

A:

The pair changes the problem instead of completing it. One option addresses trigger a deployment workflow when a matching AWS service event occurs; the other addresses publish structured test reports that reviewers can inspect after a CI run. The release, however, needs to automate build and deployment of CDK infrastructure changes with reviewable application source as well as isolate permissions between staging and production delivery.

B:

The source connection supplies authorized repository events and revisions to a pipeline source action; that is intended to start pipeline executions from commits on the approved application branch, not to automate build and deployment of CDK infrastructure changes with reviewable application source. The second half can meet the requirement to isolate permissions between staging and production delivery, but the first is still missing.

D:

Combining a suitable first control with this second one misses the secondary acceptance criterion; Step Functions models a durable workflow with service integrations, conditional paths, waits, and retries; it helps orchestrate multiple release checks with retries, branches, and explicit failure states rather than isolate permissions between staging and production delivery.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests