Question 20

After a configuration change, the platform engineering team sees this issue: New instances take several minutes to bootstrap after a target tracking scale-out decision. What best restores the ability to reduce scale-out readiness time for an application with lengthy initialization?

  1. Use scheduled scaling for recurring predictable demand
  2. Configure Kubernetes Horizontal Pod Autoscaler with relevant metrics
  3. Use predictive scaling with EC2 Auto Scaling for suitable historical patterns
  4. Configure Auto Scaling warm pools for slow-starting instances

Explanation

Correct Answer

D:

An Auto Scaling warm pool holds initialized instances in a supported state for later scale-out; it restores the ability to reduce scale-out readiness time for an application with lengthy initialization, provided the implementation also observes that preinitialized instances should be available for faster activation.

Incorrect Answers

A:

The choice is useful when engineers need to preprovision EC2 capacity before a known daily traffic increase: scheduled actions change Auto Scaling desired or min and max capacity at specified times; it would not establish the control needed to reduce scale-out readiness time for an application with lengthy initialization.

B:

HPA adjusts the replica count of supported Kubernetes workloads from configured metrics. This is a reasonable option when the requirement is to scale pod replicas for demand without changing each pod's compute limits, but it operates at a different workflow boundary from the stated need to reduce scale-out readiness time for an application with lengthy initialization.

C:

Choosing this would aim to anticipate regular load variations using observed historical demand instead of reduce scale-out readiness time for an application with lengthy initialization. Predictive scaling forecasts capacity demand from load history and can schedule scaling ahead of it; it cannot replace the mechanism specified by the incident evidence.

Question 21

The platform engineering team proposes this implementation: Add an explicit manual approval action before the production deploy stage. Its intended result is to require a human release decision after staging tests and before production changes. Which implementation consideration is most specific to that choice?

  1. The message should contain context for the paused approval rather than generic pipeline logs
  2. Only the matching event type should start the automation without polling
  3. The approver must see contextual information and approve the pending pipeline execution
  4. The target account must retain control over the deployment role permissions

Explanation

Correct Answer

C:

The implementation has to honor the exact constraint: the approver must see contextual information and approve the pending pipeline execution; a CodePipeline manual approval action pauses stage progression until approval, rejection, or timeout.

Incorrect Answers

A:

The manual approval action can publish an approval notification to an SNS topic for human review; its own dependency is that the message should contain context for the paused approval rather than generic pipeline logs; those details concern the separate objective of being able to notify release owners that production is awaiting an approval action, rather than to the named control required to require a human release decision after staging tests and before production changes.

B:

The proposed condition makes sense in an implementation designed to trigger a deployment workflow when a matching AWS service event occurs; it concerns EventBridge event patterns select the desired events and route them to a supported automation target, whereas this question tests the prerequisite of the named control.

D:

This condition governs the different mechanism used to deploy an artifact from the delivery account into a separately governed workload account; a trusted IAM role in the destination account authorizes the pipeline to perform scoped deployment actions via STS; for the selected control, the relevant boundary is instead that the approver must see contextual information and approve the pending pipeline execution.

Question 22

A reliability review exposes two requirements in the same release: adjust running service task capacity based on a CloudWatch target metric; in addition, anticipate regular load variations using observed historical demand. Which paired set of AWS controls meets both requirements?

  1. Use DynamoDB auto scaling for provisioned read and write capacity; use predictive scaling with EC2 Auto Scaling for suitable historical patterns
  2. Use an ECS capacity provider strategy for EC2 cluster capacity; run stateless burst workloads on AWS Fargate
  3. Enable ECS Service Auto Scaling for task count; use SQS to buffer bursts between request intake and worker processing
  4. Enable ECS Service Auto Scaling for task count; use predictive scaling with EC2 Auto Scaling for suitable historical patterns

Explanation

Correct Answer

D:

The first outcome depends on the behavior that application Auto Scaling can control ECS service desired count from target tracking or step policies. Separately, predictive scaling forecasts capacity demand from load history and can schedule scaling ahead of it. Together these meet the two requested outcomes, with the operational limits that the capacity mechanism must update ECS desired task count and the feature must have suitable load history and an appropriate forecasting configuration.

Incorrect Answers

A:

This combination solves only the latter acceptance test. The substituted first control supports adapt provisioned throughput targets to changing demand: DynamoDB Application Auto Scaling can change provisioned read or write capacity based on utilization targets; it does not implement adjust running service task capacity based on a CloudWatch target metric.

B:

Neither control directly supplies both requested behaviors. ECS capacity providers can couple task placement and managed scaling of EC2 Auto Scaling capacity; fargate provides managed compute capacity for compatible ECS tasks and EKS pods. Those mechanisms address different objectives. The specified capabilities are to adjust running service task capacity based on a CloudWatch target metric and to anticipate regular load variations using observed historical demand.

C:

SQS queues hold pending work and let consumers process it asynchronously with retry semantics. That alternative supports the ability to decouple transient producer spikes from a bounded worker fleet, but it is not the requested second outcome (anticipate regular load variations using observed historical demand). Even though the first half addresses adjust running service task capacity based on a CloudWatch target metric, this pair is incomplete.

Question 23

During root-cause analysis, the team identifies the following: A configuration fix works briefly but managed instances repeatedly revert after local changes. To restore approved daemon settings when a node falls out of compliance, what should be configured?

  1. Use State Manager associations to prevent recurring OS configuration drift
  2. Perform an Auto Scaling instance refresh after updating a launch template
  3. Trigger SSM Automation from EventBridge for a specific incident event
  4. Attach an AWS Config remediation configuration to an SSM Automation runbook

Explanation

Correct Answer

A:

State Manager continuously applies declared configurations to matching managed instances. It restores the ability to restore approved daemon settings when a node falls out of compliance, provided the implementation also observes that the target setting must be rechecked on a defined association schedule.

Incorrect Answers

B:

Instance refresh gradually replaces existing Auto Scaling instances according to updated configuration; this can help teams roll out a corrected launch template to already-running fleet instances, but the reported workflow needs to restore approved daemon settings when a node falls out of compliance. It does not perform that required function.

C:

That service solves a different operating problem: the need to run a documented multi-step configuration repair after a matching event. Its behavior is that an EventBridge rule can start Systems Manager Automation documents as supported targets. The requested outcome remains restore approved daemon settings when a node falls out of compliance.

D:

The choice is useful when engineers need to repair noncompliant security group rules after policy evaluation: config remediation can invoke Systems Manager Automation to correct supported rule findings; it would not establish the control needed to restore approved daemon settings when a node falls out of compliance.

Question 24

A production ticket contains this symptom: New databases are created but do not inherit the required backup schedule. The desired behavior is to apply centralized backup schedules to eligible resources as fleets change. What should be fixed?

  1. Copy supported AWS Backup recovery points to another Region
  2. Use AWS Elastic Disaster Recovery replication and recovery launch plans
  3. Enable S3 versioning and implement recovery for deleted object versions
  4. Use AWS Backup restore testing plans for supported resources
  5. Define AWS Backup plans and selections using resource tags

Explanation

Correct Answer

E:

AWS Backup plans and tag-based selections assign eligible resources to backup rules. It restores the ability to apply centralized backup schedules to eligible resources as fleets change, provided the implementation also observes that protection must follow tags and backup policies rather than manual resource selection.

Incorrect Answers

A:

AWS Backup copy rules replicate supported recovery points to destination vaults in other Regions; this can help teams preserve recoverable backups outside the source Region, but the reported workflow needs to apply centralized backup schedules to eligible resources as fleets change. 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 apply centralized backup schedules to eligible resources as fleets change.

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 apply centralized backup schedules to eligible resources as fleets change.

D:

AWS Backup restore testing automates recovery-point selection and supported restore testing workflows; this is a reasonable option when the requirement is to periodically verify recoverability rather than assuming a backup job is sufficient, but it operates at a different workflow boundary from the stated need to apply centralized backup schedules to eligible resources as fleets change.

Question 25

After a configuration change, the site reliability team sees this issue: An HPA requests additional replicas but the pods remain Pending. What best restores the ability to diagnose Kubernetes scheduling constraints rather than application code failure?

  1. Inspect EKS pod events and describe output for Pending pods
  2. Review CodeDeploy lifecycle hook logs and agent logs on target EC2 instances
  3. Inspect CloudFormation stack events for the first failed resource
  4. Inspect RDS failover events and connection retry handling
  5. Inspect ECS service events and stopped-task reasons

Explanation

Correct Answer

A:

Kubernetes scheduling events explain why pending pods cannot be assigned to nodes. In this case the control is appropriate because it supports diagnose Kubernetes scheduling constraints rather than application code failure. Cluster capacity, taints, and resource requests must be reviewed before restarting pods.

Incorrect Answers

B:

The choice is useful when engineers need to diagnose why an instance deployment fails during a lifecycle hook: CodeDeploy agent and deployment logs record instance-level lifecycle command behavior. It would not establish the control needed to diagnose Kubernetes scheduling constraints rather than application code failure.

C:

CloudFormation stack events show per-resource transitions and service error messages. This is a reasonable option when the requirement is to identify the underlying resource error that triggered a stack rollback, but it operates at a different workflow boundary from the stated need to diagnose Kubernetes scheduling constraints rather than application code failure.

D:

Choosing this would aim to explain a brief application database interruption after a Multi-AZ failover instead of diagnose Kubernetes scheduling constraints rather than application code failure; RDS event timelines and application connection behavior help diagnose managed failover recovery; it cannot replace the mechanism specified by the incident evidence.

E:

Although ECS service events and stopped task metadata describe placement and startup failures, the scenario does not ask for diagnose an ECS service unable to reach steady state; it requires the ability to diagnose Kubernetes scheduling constraints rather than application code failure, which is a separate responsibility.

Question 26

Two technical outcomes must be delivered together: connect a managed stream or queue to a target with transformation and optional enrichment and initiate targeted response to an AWS-managed service event affecting the account. Which pair of controls is sufficient for the stated outcomes?

  1. Use EventBridge Pipes to filter and enrich events from a supported source; use Kinesis Data Streams for ordered partition-based event processing
  2. Use EventBridge Pipes to filter and enrich events from a supported source; use AWS Health events through EventBridge for account-impact notifications
  3. Use Step Functions Choice states for severity-dependent incident routing; use Step Functions wait and retry policies for delayed dependent checks
  4. Use SNS with appropriate subscription filter policies; use AWS Health events through EventBridge for account-impact notifications

Explanation

Correct Answer

B:

EventBridge Pipes connects supported sources to targets with optional filter and enrichment steps; this handles the first acceptance condition, subject to the boundary that the managed route must support the source, filtering, and target integration; the remaining condition is handled separately: supported AWS Health events appear on EventBridge and can trigger notification or workflows, with account health events need event-driven notification and contextual routing.

Incorrect Answers

A:

Kinesis Data Streams partitions records by key and retains them for consumers to read over time; that alternative supports the ability to ingest a high-volume event stream with multiple independently scaled consumers, but it is not the requested second outcome (initiate targeted response to an AWS-managed service event affecting the account). Even though the first half addresses connect a managed stream or queue to a target with transformation and optional enrichment, this pair is incomplete.

C:

Neither control directly supplies both requested behaviors. Choice states route state machine execution according to supported data conditions; Step Functions supports Wait states and task retry policies outside a single Lambda runtime. Those mechanisms address different objectives. The specified capabilities are to connect a managed stream or queue to a target with transformation and optional enrichment and to initiate targeted response to an AWS-managed service event affecting the account.

D:

The second implementation is relevant; the problem is the first. SNS subscription filters select which published messages each subscriber receives. It can help send only security-relevant messages to the security response queue, whereas the stated first requirement is to connect a managed stream or queue to a target with transformation and optional enrichment.

Question 27

The release manager selects this control: Implement warm standby with reduced running capacity in a secondary Region. What associated scope or dependency matters most when using it to meet a short recovery objective while keeping DR spend below a full duplicate production stack?

  1. Recovery automation must launch additional application capacity after failover
  2. Retention enforcement must be harder to bypass than ordinary IAM permissions
  3. The recovery environment must reproduce network, IAM, and compute configuration deterministically
  4. The secondary environment must already be functional and scale up during failover

Explanation

Correct Answer

D:

The secondary environment must already be functional and scale up during failover. Without this, choosing the named service is not enough to produce the promised outcome. Warm standby keeps a smaller but operational workload in the recovery Region.

Incorrect Answers

A:

This proposed constraint belongs to a separate objective: recovery automation must launch additional application capacity after failover. The corresponding goal is to maintain replicated core data while minimizing always-on application compute cost, not the selected architecture's goal to meet a short recovery objective while keeping DR spend below a full duplicate production stack.

B:

This condition governs the different mechanism used to protect retained backup recovery points from early deletion; backup Vault Lock enforces supported WORM retention protections according to its configured mode; for the selected control, the relevant boundary is instead that the secondary environment must already be functional and scale up during failover.

C:

Versioned IaC and images allow consistent restoration of application infrastructure. Its own dependency is that the recovery environment must reproduce network, IAM, and compute configuration deterministically; those details concern the separate objective of being able to recreate known-good application capacity from immutable infrastructure definitions, rather than to the named control required to meet a short recovery objective while keeping DR spend below a full duplicate production stack.

Question 28

During root-cause analysis, the team identifies the following: All global traffic is directed to one distant endpoint despite available regional deployments. To direct global clients toward the Region with better measured network latency, what should be configured?

  1. Use an Aurora Global Database with secondary Region clusters
  2. Enable ALB target-group health checks with a representative health path
  3. Use AWS Global Accelerator with healthy regional endpoint groups
  4. Use Route 53 latency routing for healthy regional endpoints

Explanation

Correct Answer

D:

To direct global clients toward the Region with better measured network latency, the architecture relies on this AWS behavior: Route 53 latency policies select records based on measured latency among configured Regions. Users should be routed by latency rather than a fixed weighted percentage.

Incorrect Answers

A:

Choosing this would aim to provide low-latency cross-Region database reads and a regional recovery path instead of direct global clients toward the Region with better measured network latency. Aurora Global Database replicates from a primary cluster to secondary regional clusters for reads and recovery; it cannot replace the mechanism specified by the incident evidence.

B:

Although target group health checks determine which registered targets receive load balancer traffic, the scenario does not ask for stop sending new traffic to application instances that fail readiness checks; it requires the ability to direct global clients toward the Region with better measured network latency, which is a separate responsibility.

C:

Global Accelerator routes TCP or UDP traffic through static anycast addresses to healthy configured endpoints; this can help teams provide static anycast entry points and health-aware regional application routing, but the reported workflow needs to direct global clients toward the Region with better measured network latency. It does not perform that required function.

Question 29

An internal reliability review requests these controls: (1) prevent modification or deletion of archived release artifacts for a mandated period; (2) cache vetted public-package dependencies through the organization's package repository; (3) include compiled outputs rather than the entire source tree in a pipeline artifact. Which THREE proposed actions belong in the implementation? Choose THREE.

  1. Use CodeArtifact upstream repositories for approved external packages
  2. Export a CodeBuild artifact using buildspec artifact paths
  3. Configure ECR replication to authorized Regions or accounts
  4. Apply S3 Object Lock retention when required by evidence policy
  5. Sign and verify release artifacts through a controlled integrity process
  6. Enable S3 replication for approved build objects that must be available cross-Region

Explanation

Correct Answers

A:

The corresponding obligation is to cache vetted public-package dependencies through the organization's package repository. CodeArtifact upstream relationships can retrieve dependency versions while concentrating package access management; that behavior is the reason this action belongs in the selected answer set.

B:

The buildspec artifacts section chooses files to package and publish as build outputs; among the listed outcomes, it addresses include compiled outputs rather than the entire source tree in a pipeline artifact, rather than merely contributing a related signal or support step.

D:

S3 Object Lock protects eligible versioned objects under governance or compliance retention modes; this fulfills the stated requirement to prevent modification or deletion of archived release artifacts for a mandated period. The operational limitation is that retention must be tamper-resistant rather than merely a lifecycle policy.

Incorrect Answers

C:

ECR replication copies matching repository images to configured destination registries and Regions; if the requirement were to preposition container images in the registries used by regional deployments, that would matter. The requested outcomes are separate from the one this option addresses.

E:

This mechanism supports the ability to detect tampering between build completion and production deployment: cryptographic signatures and trusted verification bind an approved artifact to its signing provenance; it would not satisfy a different obligation just by appearing in the same workflow.

F:

It supports a separate administrative task, namely to copy versioned release bundles into a secondary Region's artifact bucket. S3 replication rules copy eligible objects between versioned buckets with suitable destination and permissions; the prompt's required outcomes are not achieved by substituting this control.

Question 30

After a configuration change, the site reliability team sees this issue: A single Lambda handler has grown into dozens of nested alert-routing conditions. What best restores the ability to branch remediation based on incident severity and resource classification?

  1. Use Step Functions wait and retry policies for delayed dependent checks
  2. Use EventBridge archive and replay for selected critical events
  3. Use S3 Event Notifications to enqueue object-processing work
  4. Use Step Functions Choice states for severity-dependent incident routing

Explanation

Correct Answer

D:

Choice states route state machine execution according to supported data conditions. It restores the ability to branch remediation based on incident severity and resource classification, provided the implementation also observes that different decision branches must remain observable as workflow states.

Incorrect Answers

A:

Step Functions supports Wait states and task retry policies outside a single Lambda runtime. This can help teams recheck an AWS service state after provisioning without busy-waiting, but the reported workflow needs to branch remediation based on incident severity and resource classification. It does not perform that required function.

B:

That service solves a different operating problem: the need to reprocess a historical event period after a corrected incident workflow is deployed; its behavior is that EventBridge archives can retain selected events for later replay to an event bus; the requested outcome remains branch remediation based on incident severity and resource classification.

C:

The choice is useful when engineers need to respond asynchronously when new diagnostic objects arrive in an S3 bucket: S3 event notifications can send selected bucket events to eligible SQS, SNS, or Lambda targets. It would not establish the control needed to branch remediation based on incident severity and resource classification.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests