Question 460

The security engineering group cannot close its release review until both of these are possible: deny access to a sensitive resource unless requests use an approved VPC endpoint; identify broad or risky IAM policy patterns before deployment. Which implementation pair satisfies the review?

  1. Use an IAM policy condition on aws:SourceVpce for eligible AWS service requests; use IAM Access Analyzer policy validation and least-privilege findings
  2. Use a resource-based policy on an S3 bucket for a cross-account principal; use EKS IAM Roles for Service Accounts or supported EKS Pod Identity
  3. Use an IAM policy condition on aws:SourceVpce for eligible AWS service requests; attach an instance profile with a scoped IAM role to EC2
  4. Use an Organizations service control policy as an account-wide permission guardrail; use IAM Access Analyzer policy validation and least-privilege findings

Explanation

Correct Answer

A:

The source VPC endpoint condition can constrain eligible requests to a designated private endpoint path; IAM Access Analyzer validates policies and can surface security and best-practice findings. The first control satisfies the need to deny access to a sensitive resource unless requests use an approved VPC endpoint; the second addresses the need to identify broad or risky IAM policy patterns before deployment. The condition must apply to supported request paths and account for AWS service-to-service exceptions; policy analysis should run before changes reach a sensitive account.

Incorrect Answers

B:

Neither control directly supplies both requested behaviors. An S3 bucket policy can grant a specified external principal access to selected object ARNs; EKS workload identity mechanisms associate an AWS IAM role with a Kubernetes service account or pod. Those mechanisms address different objectives. The specified capabilities are to deny access to a sensitive resource unless requests use an approved VPC endpoint and to identify broad or risky IAM policy patterns before deployment.

C:

An EC2 instance profile provides temporary role credentials to applications running on the instance; that alternative supports the ability to give an EC2 application temporary credentials to call an AWS API, but it is not the requested second outcome (identify broad or risky IAM policy patterns before deployment). Even though the first half addresses deny access to a sensitive resource unless requests use an approved VPC endpoint, this pair is incomplete.

D:

This combination solves only the latter acceptance test. The substituted first control supports prevent all affected principals in a production OU from performing prohibited service actions: SCPs set maximum available permissions for member-account principals but do not themselves allow actions; it does not implement deny access to a sensitive resource unless requests use an approved VPC endpoint.

Question 461

An automated check detects: A long-running CI system accumulates obsolete untagged images and repository storage grows. Which remediation directly supports the requirement to remove unneeded old images without deleting current release references?

  1. Pin image promotion to an ECR image digest instead of a mutable tag
  2. Enable ECR image tag immutability for release repositories
  3. Enable ECR scan-on-push or enhanced scanning according to policy
  4. Configure an ECR lifecycle policy to expire unwanted image versions

Explanation

Correct Answer

D:

ECR lifecycle rules automate image expiration according to matching criteria. It enables the necessary capability to remove unneeded old images without deleting current release references rather than only providing an adjacent operational control. Retention should be based on tag status, age, or count instead of manual deletion.

Incorrect Answers

A:

Although image digests identify content; mutable tags can be repointed and are unsuitable as sole provenance, the scenario does not ask for deploy exactly the image bytes tested during CI; it requires the ability to remove unneeded old images without deleting current release references, which is a separate responsibility.

B:

ECR tag immutability prevents image tags from being overwritten in repositories configured for it; this can help teams prevent existing release tags from silently being overwritten, but the reported workflow needs to remove unneeded old images without deleting current release references. It does not perform that required function.

C:

That service solves a different operating problem: the need to surface vulnerable container packages before images are approved; its behavior is that ECR scanning integrates container vulnerability findings with repository images and security workflows; the requested outcome remains remove unneeded old images without deleting current release references.

Question 462

The release manager selects this control: Configure a CloudWatch anomaly detection band on a seasonal metric. What associated scope or dependency matters most when using it to alert on unexpected deviations without relying on a single fixed threshold?

  1. The notification should depend on a logical combination of existing alarm states
  2. The display should combine application and infrastructure indicators for the same system
  3. The alert must adapt to learned metric behavior within selected confidence settings
  4. Queries should extract stable fields rather than rely on visual scrolling
  5. The check must exercise actual HTTP or browser behavior on a defined schedule

Explanation

Correct Answer

C:

The alert must adapt to learned metric behavior within selected confidence settings. That is the governing deployment boundary for the selected control: CloudWatch anomaly detection models expected patterns and allows alarms on deviations from the band. If the boundary is missed, the design can fail to alert on unexpected deviations without relying on a single fixed threshold.

Incorrect Answers

A:

The proposed condition makes sense in an implementation designed to page operators only when multiple correlated alarms indicate a real incident; it concerns composite alarms evaluate the Boolean state of underlying alarms before transitioning, whereas this question tests the prerequisite of the named control.

B:

This proposed constraint belongs to a separate objective: the display should combine application and infrastructure indicators for the same system. The corresponding goal is to show latency, errors, and saturation to incident responders in one panel, not the selected architecture's goal to alert on unexpected deviations without relying on a single fixed threshold.

D:

Logs Insights provides parsing, filtering, statistics, and time grouping for log data. Its own dependency is that queries should extract stable fields rather than rely on visual scrolling; those details concern the separate objective of being able to filter application logs by request ID and aggregate failing endpoint counts, rather than to the named control required to alert on unexpected deviations without relying on a single fixed threshold.

E:

The proposed condition makes sense in an implementation designed to detect external failures in a multi-step website journey before users report them; it concerns synthetics canaries execute scripts and publish availability and step-level results, whereas this question tests the prerequisite of the named control; the specified requirement instead is to alert on unexpected deviations without relying on a single fixed threshold.

Question 463

The infrastructure automation group proposes this implementation: Use Lambda reserved concurrency to protect a downstream dependency. Its intended result is to cap parallel invocations before a sensitive backend is saturated. Which implementation consideration is most specific to that choice?

  1. Concurrency must be constrained at the function boundary
  2. Rate and burst limits must be enforced at the API entry point
  3. The workload should use a serverless container compute mode where supported
  4. Scaling should change replicas rather than only increase a container resource limit
  5. Messages must remain durable while consumers scale at a sustainable rate

Explanation

Correct Answer

A:

The implementation has to honor the exact constraint: concurrency must be constrained at the function boundary; reserved concurrency caps simultaneously executing Lambda instances for the configured function.

Incorrect Answers

B:

This condition governs the different mechanism used to protect Lambda and downstream systems from excessive caller traffic; API Gateway throttling controls supported request rates and can return 429 responses when limits are exceeded; for the selected control, the relevant boundary is instead that concurrency must be constrained at the function boundary.

C:

Fargate provides managed compute capacity for compatible ECS tasks and EKS pods. Its own dependency is that the workload should use a serverless container compute mode where supported. Those details concern the separate objective of being able to launch containers without managing EC2 hosts for short-lived jobs, rather than to the named control required to cap parallel invocations before a sensitive backend is saturated.

D:

The proposed condition makes sense in an implementation designed to scale pod replicas for demand without changing each pod's compute limits; it concerns HPA adjusts the replica count of supported Kubernetes workloads from configured metrics, whereas this question tests the prerequisite of the named control; the specified requirement instead is to cap parallel invocations before a sensitive backend is saturated.

E:

This proposed constraint belongs to a separate objective: messages must remain durable while consumers scale at a sustainable rate. The corresponding goal is to decouple transient producer spikes from a bounded worker fleet, not the selected architecture's goal to cap parallel invocations before a sensitive backend is saturated.

Question 464

The site reliability team selects this control: Use Step Functions Choice states for severity-dependent incident routing. What associated scope or dependency matters most when using it to branch remediation based on incident severity and resource classification?

  1. Delivery failures must be captured without silently dropping critical events
  2. Every subscribed processing system needs its own durable copy of the event
  3. The workflow needs durable waits and controlled retry intervals
  4. Different decision branches must remain observable as workflow states
  5. The retry should be scheduled rather than consume an idle function runtime

Explanation

Correct Answer

D:

The implementation has to honor the exact constraint: different decision branches must remain observable as workflow states. Choice states route state machine execution according to supported data conditions.

Incorrect Answers

A:

This condition governs the different mechanism used to retain failed event delivery attempts for later investigation; EventBridge rules can use retry policies and DLQ targets to preserve failed deliveries; for the selected control, the relevant boundary is instead that different decision branches must remain observable as workflow states.

B:

SNS fan-out to multiple SQS queues gives each subscribed queue an independent message stream. Its own dependency is that every subscribed processing system needs its own durable copy of the event. Those details concern the separate objective of being able to deliver each incident notification to separate durable processing teams, rather than to the named control required to branch remediation based on incident severity and resource classification.

C:

The proposed condition makes sense in an implementation designed to recheck an AWS service state after provisioning without busy-waiting; it concerns Step Functions supports Wait states and task retry policies outside a single Lambda runtime, whereas this question tests the prerequisite of the named control.

E:

This condition governs the different mechanism used to invoke a follow-up check at a precise future time after an initial event; EventBridge Scheduler can invoke supported targets at specified one-time or recurring times; for the selected control, the relevant boundary is instead that different decision branches must remain observable as workflow states.

Question 465

Two technical outcomes must be delivered together: branch remediation based on incident severity and resource classification and recheck an AWS service state after provisioning without busy-waiting. Which pair of controls is sufficient for the stated outcomes?

  1. Use Step Functions Choice states for severity-dependent incident routing; use an SQS FIFO queue when processing order per message group matters
  2. Use Step Functions Choice states for severity-dependent incident routing; use Step Functions wait and retry policies for delayed dependent checks
  3. Use S3 Event Notifications to enqueue object-processing work; use AWS Health events through EventBridge for account-impact notifications
  4. Use an SQS redrive policy and dead-letter queue for failed events; use Step Functions wait and retry policies for delayed dependent checks

Explanation

Correct Answer

B:

For the requirement to branch remediation based on incident severity and resource classification, choice states route state machine execution according to supported data conditions. For the requirement to recheck an AWS service state after provisioning without busy-waiting, Step Functions supports Wait states and task retry policies outside a single Lambda runtime. Both mechanisms are necessary; implementing only the first would leave the second unsatisfied.

Incorrect Answers

A:

The first half is appropriate: Choice states route state machine execution according to supported data conditions. However, SQS FIFO queues preserve order within message groups with managed deduplication semantics; that serves a different objective (process change events in order for each governed resource) and leaves the explicit need to recheck an AWS service state after provisioning without busy-waiting unmet.

C:

The pair changes the problem instead of completing it. One option addresses respond asynchronously when new diagnostic objects arrive in an S3 bucket; the other addresses initiate targeted response to an AWS-managed service event affecting the account. The release, however, needs to branch remediation based on incident severity and resource classification as well as recheck an AWS service state after provisioning without busy-waiting.

D:

An SQS redrive policy sends messages to a DLQ after the receive count exceeds its threshold. That is intended to isolate repeatedly unprocessable events without blocking successful work, not to branch remediation based on incident severity and resource classification. The second half can meet the requirement to recheck an AWS service state after provisioning without busy-waiting, but the first is still missing.

Question 466

The cloud operations group reports the following failure: Disaster recovery automation cannot locate a region-local copy of the release bundle. Which action directly restores the requirement to copy versioned release bundles into a secondary Region's artifact bucket?

  1. Enable S3 replication for approved build objects that must be available cross-Region
  2. Use EC2 Image Builder distribution settings for target Regions and accounts
  3. Store deployment bundles in an encrypted versioned S3 artifact bucket
  4. Sign and verify release artifacts through a controlled integrity process
  5. Configure ECR replication to authorized Regions or accounts

Explanation

Correct Answer

A:

To copy versioned release bundles into a secondary Region's artifact bucket, the architecture relies on this AWS behavior: S3 replication rules copy eligible objects between versioned buckets with suitable destination and permissions. Destination encryption and replication roles must be configured for the target bucket.

Incorrect Answers

B:

Although image Builder distribution configurations control supported AMI copies and sharing after creation, the scenario does not ask for publish a validated AMI to workloads outside its build account. It requires the ability to copy versioned release bundles into a secondary Region's artifact bucket, which is a separate responsibility.

C:

S3 versioning preserves object versions; bucket encryption and scoped policies protect deployment bundles; this can help teams retain retrievable, auditable application bundles for instance deployments, but the reported workflow needs to copy versioned release bundles into a secondary Region's artifact bucket. It does not perform that required function.

D:

That service solves a different operating problem: the need to detect tampering between build completion and production deployment; its behavior is that cryptographic signatures and trusted verification bind an approved artifact to its signing provenance; the requested outcome remains copy versioned release bundles into a secondary Region's artifact bucket.

E:

The choice is useful when engineers need to preposition container images in the registries used by regional deployments: ECR replication copies matching repository images to configured destination registries and Regions. It would not establish the control needed to copy versioned release bundles into a secondary Region's artifact bucket.

Question 467

An engineer will implement the following change: Use CloudWatch Synthetics canaries to validate a customer workflow. Which operational boundary most directly applies to the intended outcome to detect external failures in a multi-step website journey before users report them?

  1. The analysis should avoid downloading every object to a workstation
  2. The check must exercise actual HTTP or browser behavior on a defined schedule
  3. A trace identifier should flow through supported service integrations and headers
  4. The display should combine application and infrastructure indicators for the same system

Explanation

Correct Answer

B:

The check must exercise actual HTTP or browser behavior on a defined schedule. That is the governing deployment boundary for the selected control: synthetics canaries execute scripts and publish availability and step-level results. If the boundary is missed, the design can fail to detect external failures in a multi-step website journey before users report them.

Incorrect Answers

A:

This proposed constraint belongs to a separate objective: the analysis should avoid downloading every object to a workstation; the corresponding goal is to investigate historical audit events across a large retained log archive, not the selected architecture's goal to detect external failures in a multi-step website journey before users report them.

C:

Trace context propagation relates spans across a distributed request path. Its own dependency is that a trace identifier should flow through supported service integrations and headers. Those details concern the separate objective of being able to link asynchronous or downstream operations to the originating request trace, rather than to the named control required to detect external failures in a multi-step website journey before users report them.

D:

The proposed condition makes sense in an implementation designed to show latency, errors, and saturation to incident responders in one panel; it concerns CloudWatch dashboards visualize selected metrics, logs, and alarms in a shared operational view, whereas this question tests the prerequisite of the named control.

Question 468

An engineer is addressing a two-part incident-response requirement: find which pipeline action failed and review its detailed external execution link, without losing the ability to identify the underlying resource error that triggered a stack rollback. Which set of actions is suitable?

  1. Use CloudTrail events to identify the caller behind an AccessDenied API action; inspect CloudFormation stack events for the first failed resource
  2. Inspect CodePipeline stage and action execution history; inspect CloudFormation stack events for the first failed resource
  3. Inspect CodePipeline stage and action execution history; review CodeBuild CloudWatch logs and build phase status
  4. Inspect CodePipeline stage and action execution history; review CodeDeploy lifecycle hook logs and agent logs on target EC2 instances
  5. Inspect RDS failover events and connection retry handling; inspect ECS service events and stopped-task reasons

Explanation

Correct Answer

B:

The first outcome depends on the behavior that CodePipeline records stage and action execution statuses and detailed links for troubleshooting. Separately, CloudFormation stack events show per-resource transitions and service error messages. Together these meet the two requested outcomes, with the operational limits that the diagnosis must start from the failed action and its provider output and the first CREATE_FAILED or UPDATE_FAILED event is more informative than later rollback messages.

Incorrect Answers

A:

CloudTrail supported management events can show the assumed role, action, and error context. That is intended to trace which principal and resource action caused a failed automation request, not to find which pipeline action failed and review its detailed external execution link; the second half can meet the requirement to identify the underlying resource error that triggered a stack rollback, but the first is still missing.

C:

Combining a suitable first control with this second one misses the secondary acceptance criterion; CodeBuild build logs and phase contexts expose command errors and environment failures; it helps identify the first shell command or dependency failure in a failing build rather than identify the underlying resource error that triggered a stack rollback.

D:

The first half is appropriate: CodePipeline records stage and action execution statuses and detailed links for troubleshooting. However, CodeDeploy agent and deployment logs record instance-level lifecycle command behavior; that serves a different objective (diagnose why an instance deployment fails during a lifecycle hook) and leaves the explicit need to identify the underlying resource error that triggered a stack rollback unmet.

E:

These are legitimate AWS controls for different outcomes: RDS event timelines and application connection behavior help diagnose managed failover recovery, whereas ECS service events and stopped task metadata describe placement and startup failures. The problem instead requires the ability to find which pipeline action failed and review its detailed external execution link and to identify the underlying resource error that triggered a stack rollback.

Question 469

Investigators observe: An ECS rolling update repeatedly launches unhealthy tasks without completing. Engineers still need to automatically restore an earlier task deployment after a rolling deployment cannot stabilize. Which corrective action is most appropriate?

  1. Set appropriate ECS deployment minimum healthy percent and maximum percent
  2. Use CodeDeploy ECS blue/green with two target groups
  3. Use an ECS deployment with a new immutable task definition revision
  4. Configure ECS service deployment circuit breaker and rollback

Explanation

Correct Answer

D:

The ECS deployment circuit breaker can mark rolling deployments failed and roll back to a prior completed deployment; that directly addresses the observed failure in the scenario. The configuration still has to respect this constraint: the service must detect failure to reach steady state and enable rollback.

Incorrect Answers

A:

That service solves a different operating problem: the need to control the capacity margin during rolling task replacement. Its behavior is that ECS deployment percentages bound the numbers of running and pending tasks during a rolling update. The requested outcome remains automatically restore an earlier task deployment after a rolling deployment cannot stabilize.

B:

The choice is useful when engineers need to shift load balancer traffic from the old ECS task set to the new task set: CodeDeploy blue/green ECS deployments use replacement task sets and load balancer target groups for traffic shifts. It would not establish the control needed to automatically restore an earlier task deployment after a rolling deployment cannot stabilize.

C:

An ECS service update selects a task definition revision and schedules replacement tasks to converge to it; this is a reasonable option when the requirement is to roll out a changed container image while retaining the previous task definition, but it operates at a different workflow boundary from the stated need to automatically restore an earlier task deployment after a rolling deployment cannot stabilize.

Question 470

The infrastructure automation group proposes this implementation: Restrict build credentials to a CodeBuild service role with least privilege. Its intended result is to let automated builds read only the required inputs and publish expected outputs. Which implementation consideration is most specific to that choice?

  1. Build permissions must not be broadened to administrator access
  2. The shared artifact store must remain encrypted while permitting only designated consumers
  3. Production permissions must be assumed only by the designated production action
  4. The optimization must not be assumed to work for every compute mode or build host

Explanation

Correct Answer

A:

Build permissions must not be broadened to administrator access. Without this, choosing the named service is not enough to produce the promised outcome; CodeBuild runs under its assigned IAM service role, which needs access to referenced buckets, logs, and relevant keys.

Incorrect Answers

B:

This proposed constraint belongs to a separate objective: the shared artifact store must remain encrypted while permitting only designated consumers; the corresponding goal is to make encrypted CodePipeline artifacts usable by an authorized cross-account action, not the selected architecture's goal to let automated builds read only the required inputs and publish expected outputs.

C:

This condition governs the different mechanism used to isolate permissions between staging and production delivery; role separation allows each pipeline action to run under the permissions approved for its target environment; for the selected control, the relevant boundary is instead that build permissions must not be broadened to administrator access.

D:

Local caches can reuse permitted source or dependency data on a build host, subject to environment and cache limitations; its own dependency is that the optimization must not be assumed to work for every compute mode or build host. Those details concern the separate objective of being able to reduce time spent re-fetching dependencies in repeated builds on compatible environments, rather than to the named control required to let automated builds read only the required inputs and publish expected outputs.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests