Question 500

A production-readiness assessment calls out two missing capabilities: automate DNS-level cutover after the primary regional endpoint fails and recreate known-good application capacity from immutable infrastructure definitions. Choose the AWS implementation that explicitly addresses both.

  1. Use active-active multi-Region deployment with regional traffic steering; use AWS Elastic Disaster Recovery replication and recovery launch plans
  2. Use RDS automated backups for point-in-time recovery within retention; maintain tested IaC and AMI releases in the disaster recovery Region
  3. Use Route 53 health-checked failover records for a pretested recovery endpoint; maintain tested IaC and AMI releases in the disaster recovery Region
  4. Use Route 53 health-checked failover records for a pretested recovery endpoint; use AWS Backup restore testing plans for supported resources

Explanation

Correct Answer

C:

For the requirement to automate DNS-level cutover after the primary regional endpoint fails, failover routing can resolve the standby record based on health state, subject to client caching. For the requirement to recreate known-good application capacity from immutable infrastructure definitions, versioned IaC and images allow consistent restoration of application infrastructure. Both mechanisms are necessary; implementing only the first would leave the second unsatisfied.

Incorrect Answers

A:

These are legitimate AWS controls for different outcomes: active-active systems keep multiple regional stacks serving requests, reducing activation time at the cost of complexity, whereas elastic Disaster Recovery continuously replicates supported source-server data for recovery launches into AWS. The problem instead requires the ability to automate DNS-level cutover after the primary regional endpoint fails and to recreate known-good application capacity from immutable infrastructure definitions.

B:

This combination solves only the latter acceptance test. The substituted first control supports restore a supported relational database to a selected time before an accidental modification: RDS automated backups support point-in-time restore using retained backup data and transaction logs; it does not implement automate DNS-level cutover after the primary regional endpoint fails.

D:

AWS Backup restore testing automates recovery-point selection and supported restore testing workflows; that alternative supports the ability to periodically verify recoverability rather than assuming a backup job is sufficient, but it is not the requested second outcome (recreate known-good application capacity from immutable infrastructure definitions). Even though the first half addresses automate DNS-level cutover after the primary regional endpoint fails, this pair is incomplete.

Question 501

A production-readiness assessment calls out two missing capabilities: identify the underlying resource error that triggered a stack rollback and diagnose an ECS service unable to reach steady state. Choose the AWS implementation that explicitly addresses both.

  1. Inspect CloudFormation stack events for the first failed resource; inspect ECS service events and stopped-task reasons
  2. Inspect CodePipeline stage and action execution history; inspect ECS service events and stopped-task reasons
  3. Inspect CloudFormation stack events for the first failed resource; check ALB target-group health reason codes and the configured health path
  4. Check Auto Scaling scaling activities and launch failures; inspect Lambda CloudWatch logs for timeout and initialization errors

Explanation

Correct Answer

A:

The first outcome depends on the behavior that CloudFormation stack events show per-resource transitions and service error messages. Separately, ECS service events and stopped task metadata describe placement and startup failures. Together these meet the two requested outcomes, with the operational limits that the first CREATE_FAILED or UPDATE_FAILED event is more informative than later rollback messages and the investigation must identify scheduler failures, image pulls, or container exit reasons.

Incorrect Answers

B:

The second implementation is relevant; the problem is the first. CodePipeline records stage and action execution statuses and detailed links for troubleshooting; it can help find which pipeline action failed and review its detailed external execution link, whereas the stated first requirement is to identify the underlying resource error that triggered a stack rollback.

C:

Combining a suitable first control with this second one misses the secondary acceptance criterion; ALB target-group status reason codes and health settings show why endpoints fail checks; it helps diagnose why valid backend instances receive no load balancer traffic rather than diagnose an ECS service unable to reach steady state.

D:

Neither control directly supplies both requested behaviors. Auto Scaling activity history records scaling requests and instance launch or health-related failures; Lambda logs include invocation results, duration, timeout messages, and runtime failures. Those mechanisms address different objectives. The specified capabilities are to identify the underlying resource error that triggered a stack rollback and to diagnose an ECS service unable to reach steady state.

Question 502

An incident record says: Operators manually edit DNS during an outage while a healthy standby already exists. To restore the capability to automate DNS-level cutover after the primary regional endpoint fails, which change addresses the root cause?

  1. Use active-active multi-Region deployment with regional traffic steering
  2. Use Route 53 health-checked failover records for a pretested recovery endpoint
  3. Use backup-and-restore DR for a workload with a generous recovery target
  4. Use RDS automated backups for point-in-time recovery within retention

Explanation

Correct Answer

B:

Failover routing can resolve the standby record based on health state, subject to client caching; it restores the ability to automate DNS-level cutover after the primary regional endpoint fails, provided the implementation also observes that endpoint health evaluation and TTL caching effects must be included in drills.

Incorrect Answers

A:

Choosing this would aim to minimize regional failover downtime for workloads designed to accept distributed traffic instead of automate DNS-level cutover after the primary regional endpoint fails; active-active systems keep multiple regional stacks serving requests, reducing activation time at the cost of complexity; it cannot replace the mechanism specified by the incident evidence.

C:

Backup-and-restore recreates infrastructure and data only when needed, trading longer RTO for lower cost; this can help teams minimize steady-state disaster recovery costs where hours of recovery are acceptable, but the reported workflow needs to automate DNS-level cutover after the primary regional endpoint fails. It does not perform that required function.

D:

That service solves a different operating problem: the need to restore a supported relational database to a selected time before an accidental modification. Its behavior is that RDS automated backups support point-in-time restore using retained backup data and transaction logs. The requested outcome remains automate DNS-level cutover after the primary regional endpoint fails.

Question 503

The next AWS platform release needs to periodically verify recoverability rather than assuming a backup job is sufficient while also being able to minimize steady-state disaster recovery costs where hours of recovery are acceptable. Which pairing best supports that release?

  1. Run regular failover game days and measure actual RTO and RPO; enable AWS Backup Vault Lock in an appropriate mode
  2. Use AWS Backup restore testing plans for supported resources; use backup-and-restore DR for a workload with a generous recovery target
  3. Use Route 53 health-checked failover records for a pretested recovery endpoint; use backup-and-restore DR for a workload with a generous recovery target
  4. Use AWS Backup restore testing plans for supported resources; implement a pilot-light DR architecture in a secondary Region

Explanation

Correct Answer

B:

AWS Backup restore testing automates recovery-point selection and supported restore testing workflows; backup-and-restore recreates infrastructure and data only when needed, trading longer RTO for lower cost. The first control satisfies the need to periodically verify recoverability rather than assuming a backup job is sufficient; the second addresses the need to minimize steady-state disaster recovery costs where hours of recovery are acceptable. Testing should be scheduled and generate measurable restore evidence; recovery can tolerate restoring backups and provisioning infrastructure after a disaster.

Incorrect Answers

A:

These are legitimate AWS controls for different outcomes: controlled recovery tests expose dependencies, manual delays, and replication gaps before incidents, whereas backup Vault Lock enforces supported WORM retention protections according to its configured mode. The problem instead requires the ability to periodically verify recoverability rather than assuming a backup job is sufficient and to minimize steady-state disaster recovery costs where hours of recovery are acceptable.

C:

Failover routing can resolve the standby record based on health state, subject to client caching; that is intended to automate DNS-level cutover after the primary regional endpoint fails, not to periodically verify recoverability rather than assuming a backup job is sufficient. The second half can meet the requirement to minimize steady-state disaster recovery costs where hours of recovery are acceptable, but the first is still missing.

D:

Pilot light maintains minimal core components ready and brings up remaining tiers during recovery; that alternative supports the ability to maintain replicated core data while minimizing always-on application compute cost, but it is not the requested second outcome (minimize steady-state disaster recovery costs where hours of recovery are acceptable). Even though the first half addresses periodically verify recoverability rather than assuming a backup job is sufficient, this pair is incomplete.

Question 504

An engineer will implement the following change: Use CloudWatch Embedded Metric Format in structured JSON logs. Which operational boundary most directly applies to the intended outcome to emit high-cardinality application measurements together with diagnostic context?

  1. The log payload must follow the EMF schema for metrics extraction
  2. A correlation ID must be propagated consistently through application calls
  3. The collector must listen for the existing protocol and publish metric data with proper permissions
  4. The response must support a query language over centrally stored log events

Explanation

Correct Answer

A:

The log payload must follow the EMF schema for metrics extraction. That is the governing deployment boundary for the selected control: embedded Metric Format embeds metric definitions in structured log events for CloudWatch extraction. If the boundary is missed, the design can fail to emit high-cardinality application measurements together with diagnostic context.

Incorrect Answers

B:

Structured log fields and propagated request IDs enable targeted multi-service incident investigation; its own dependency is that a correlation ID must be propagated consistently through application calls; those details concern the separate objective of being able to correlate requests across independent container services in a central log search, rather than to the named control required to emit high-cardinality application measurements together with diagnostic context.

C:

The proposed condition makes sense in an implementation designed to bridge existing application metric protocols into CloudWatch; it concerns the unified CloudWatch agent supports collection from compatible metrics protocols and export to CloudWatch, whereas this question tests the prerequisite of the named control; the specified requirement instead is to emit high-cardinality application measurements together with diagnostic context.

D:

This proposed constraint belongs to a separate objective: the response must support a query language over centrally stored log events; the corresponding goal is to query structured error events across log groups during incidents, not the selected architecture's goal to emit high-cardinality application measurements together with diagnostic context.

Question 505

The next AWS platform release needs to supply a rotating database credential to CI jobs without placing the secret in source control while also being able to let automated builds read only the required inputs and publish expected outputs. Which pairing best supports that release?

  1. Use an AWS CDK pipeline with dedicated synth and deployment steps; use a deployment action with a production-account IAM role
  2. Resolve runtime secrets from Secrets Manager during the build; restrict build credentials to a CodeBuild service role with least privilege
  3. Resolve runtime secrets from Secrets Manager during the build; use distinct CodePipeline stages with a separate integration test action
  4. Enable CodeBuild local caching for reusable build dependencies; restrict build credentials to a CodeBuild service role with least privilege

Explanation

Correct Answer

B:

For the requirement to supply a rotating database credential to CI jobs without placing the secret in source control, Secrets Manager stores secret values and supports managed rotation integrations; runtime retrieval avoids committing values. For the requirement to let automated builds read only the required inputs and publish expected outputs, CodeBuild runs under its assigned IAM service role, which needs access to referenced buckets, logs, and relevant keys; both mechanisms are necessary; implementing only the first would leave the second unsatisfied.

Incorrect Answers

A:

The pair changes the problem instead of completing it. One option addresses automate build and deployment of CDK infrastructure changes with reviewable application source; the other addresses isolate permissions between staging and production delivery. The release, however, needs to supply a rotating database credential to CI jobs without placing the secret in source control as well as let automated builds read only the required inputs and publish expected outputs.

C:

A failed test action makes the stage fail and prevents subsequent deployment stages from proceeding; that alternative supports the ability to stop an unsafe revision before it can reach the deployment stage, but it is not the requested second outcome (let automated builds read only the required inputs and publish expected outputs). Even though the first half addresses supply a rotating database credential to CI jobs without placing the secret in source control, this pair is incomplete.

D:

This combination solves only the latter acceptance test. The substituted first control supports reduce time spent re-fetching dependencies in repeated builds on compatible environments: local caches can reuse permitted source or dependency data on a build host, subject to environment and cache limitations; it does not implement supply a rotating database credential to CI jobs without placing the secret in source control.

Question 506

The cloud operations group reports the following failure: A role can read a protected bucket from arbitrary public network paths. Which action directly restores the requirement to deny access to a sensitive resource unless requests use an approved VPC endpoint?

  1. Use an IAM policy condition on aws:SourceVpce for eligible AWS service requests
  2. Use session policies when assuming a role for a narrowly scoped job
  3. Use IAM database authentication for a supported RDS engine and client
  4. Use IAM ABAC conditions based on principal and resource tags

Explanation

Correct Answer

A:

To deny access to a sensitive resource unless requests use an approved VPC endpoint, the architecture relies on this AWS behavior: the source VPC endpoint condition can constrain eligible requests to a designated private endpoint path; the condition must apply to supported request paths and account for AWS service-to-service exceptions.

Incorrect Answers

B:

STS session policies intersect with the role's permissions to further restrict an assumed-role session; this is a reasonable option when the requirement is to further limit temporary role credentials to the resources needed by one execution, but it operates at a different workflow boundary from the stated need to deny access to a sensitive resource unless requests use an approved VPC endpoint.

C:

Choosing this would aim to reduce reliance on stored passwords for supported database connections instead of deny access to a sensitive resource unless requests use an approved VPC endpoint; IAM database authentication generates short-lived authentication tokens for supported RDS database engines; it cannot replace the mechanism specified by the incident evidence.

D:

Although attribute-based access control evaluates policy conditions using attributes such as tags, the scenario does not ask for grant access to project-matching resources without enumerating every resource ARN. It requires the ability to deny access to a sensitive resource unless requests use an approved VPC endpoint, which is a separate responsibility.

Question 507

An operational design is incomplete until it can respond when a scheduled backup job fails before the recovery point objective is exceeded and run a documented multi-step configuration repair after a matching event. Which two-part implementation fills both gaps?

  1. Use an SSM Automation role with a permissions boundary or narrow IAM policy; trigger SSM Automation from EventBridge for a specific incident event
  2. Use AWS Backup event notifications and a bounded retry workflow; use EC2 Auto Scaling health replacement for unhealthy fleet members
  3. Attach an AWS Config remediation configuration to an SSM Automation runbook; perform an Auto Scaling instance refresh after updating a launch template
  4. Use AWS Backup event notifications and a bounded retry workflow; trigger SSM Automation from EventBridge for a specific incident event

Explanation

Correct Answer

D:

For the requirement to respond when a scheduled backup job fails before the recovery point objective is exceeded, AWS Backup job state events can feed EventBridge-driven notification and automation. For the requirement to run a documented multi-step configuration repair after a matching event, an EventBridge rule can start Systems Manager Automation documents as supported targets; both mechanisms are necessary; implementing only the first would leave the second unsatisfied.

Incorrect Answers

A:

Dedicated execution roles and least-privilege policies bound the authority of automated changes; that is intended to limit the changes an automated incident runbook can make, not to respond when a scheduled backup job fails before the recovery point objective is exceeded. The second half can meet the requirement to run a documented multi-step configuration repair after a matching event, but the first is still missing.

B:

EC2 Auto Scaling can terminate and replace unhealthy instances to meet desired capacity. That alternative supports the ability to automatically replace failed instances without requiring manual restarts, but it is not the requested second outcome (run a documented multi-step configuration repair after a matching event). Even though the first half addresses respond when a scheduled backup job fails before the recovery point objective is exceeded, this pair is incomplete.

C:

The pair changes the problem instead of completing it. One option addresses repair noncompliant security group rules after policy evaluation; the other addresses roll out a corrected launch template to already-running fleet instances. The release, however, needs to respond when a scheduled backup job fails before the recovery point objective is exceeded as well as run a documented multi-step configuration repair after a matching event.

Question 508

The current plan covers only one side of the reliability operating model. It needs to provide static anycast entry points and health-aware regional application routing as well as direct global clients toward the Region with better measured network latency. Which paired changes complete the design?

  1. Configure DynamoDB global tables for multi-Region active-active access; implement stateless application nodes with session state in a shared store
  2. Use ElastiCache replication groups spanning multiple Availability Zones; use Route 53 latency routing for healthy regional endpoints
  3. Use AWS Global Accelerator with healthy regional endpoint groups; enable Amazon RDS Multi-AZ high availability for a supported DB engine
  4. Use AWS Global Accelerator with healthy regional endpoint groups; use Route 53 latency routing for healthy regional endpoints

Explanation

Correct Answer

D:

Global Accelerator routes TCP or UDP traffic through static anycast addresses to healthy configured endpoints; this handles the first acceptance condition, subject to the boundary that the front door should retain stable global IPs while adjusting endpoint routing. The remaining condition is handled separately: Route 53 latency policies select records based on measured latency among configured Regions, with users should be routed by latency rather than a fixed weighted percentage.

Incorrect Answers

A:

The pair changes the problem instead of completing it. One option addresses allow application writes in more than one AWS Region with replication; the other addresses allow requests to move among instances without losing user session context. The release, however, needs to provide static anycast entry points and health-aware regional application routing as well as direct global clients toward the Region with better measured network latency.

B:

Supported ElastiCache replication groups use replicas and automatic failover to recover from primary loss; that is intended to improve availability of supported Redis or Valkey cache workloads, not to provide static anycast entry points and health-aware regional application routing. The second half can meet the requirement to direct global clients toward the Region with better measured network latency, but the first is still missing.

C:

RDS Multi-AZ deployments maintain a standby or multi-instance arrangement for managed failover; that alternative supports the ability to provide automatic database failover after a primary Availability Zone outage, but it is not the requested second outcome (direct global clients toward the Region with better measured network latency). Even though the first half addresses provide static anycast entry points and health-aware regional application routing, this pair is incomplete.

Question 509

The current plan covers only one side of the incident-response operating model. It needs to diagnose why valid backend instances receive no load balancer traffic as well as diagnose why an instance deployment fails during a lifecycle hook. Which paired changes complete the design?

  1. Inspect RDS failover events and connection retry handling; review CodeDeploy lifecycle hook logs and agent logs on target EC2 instances
  2. Check ALB target-group health reason codes and the configured health path; review CodeDeploy lifecycle hook logs and agent logs on target EC2 instances
  3. Check ALB target-group health reason codes and the configured health path; inspect CodePipeline stage and action execution history
  4. Check ALB target-group health reason codes and the configured health path; inspect EKS pod events and describe output for Pending pods
  5. Evaluate resource and identity policies for a cross-account S3 artifact read; inspect X-Ray traces for downstream service latency

Explanation

Correct Answer

B:

For the requirement to diagnose why valid backend instances receive no load balancer traffic, ALB target-group status reason codes and health settings show why endpoints fail checks; for the requirement to diagnose why an instance deployment fails during a lifecycle hook, CodeDeploy agent and deployment logs record instance-level lifecycle command behavior. Both mechanisms are necessary; implementing only the first would leave the second unsatisfied.

Incorrect Answers

A:

The second implementation is relevant; the problem is the first. RDS event timelines and application connection behavior help diagnose managed failover recovery; it can help explain a brief application database interruption after a Multi-AZ failover, whereas the stated first requirement is to diagnose why valid backend instances receive no load balancer traffic.

C:

The first half is appropriate: ALB target-group status reason codes and health settings show why endpoints fail checks. However, CodePipeline records stage and action execution statuses and detailed links for troubleshooting; that serves a different objective (find which pipeline action failed and review its detailed external execution link) and leaves the explicit need to diagnose why an instance deployment fails during a lifecycle hook unmet.

D:

Kubernetes scheduling events explain why pending pods cannot be assigned to nodes. That alternative supports the ability to diagnose Kubernetes scheduling constraints rather than application code failure, but it is not the requested second outcome (diagnose why an instance deployment fails during a lifecycle hook). Even though the first half addresses diagnose why valid backend instances receive no load balancer traffic, this pair is incomplete.

E:

The pair changes the problem instead of completing it. One option addresses diagnose a deployment that can assume a role but cannot fetch its release bundle; the other addresses find which dependency slows a distributed API request. The release, however, needs to diagnose why valid backend instances receive no load balancer traffic as well as diagnose why an instance deployment fails during a lifecycle hook.

Question 510

An AWS design review will approve a solution only if it meets these criteria: (1) set a maximum permission boundary for member-account principals; (2) separate development and production accounts into different policy inheritance scopes. Select the TWO needed changes. Choose TWO.

  1. Attach an Organizations SCP to a production OU
  2. Use AWS Backup policies through Organizations for supported centralized plans
  3. Place accounts into purpose-specific organizational units
  4. Use centralized VPC Flow Logs delivery to an approved log destination
  5. Use an S3 bucket policy that denies insecure transport for organization logs
  6. Configure Security Hub organization integration and central settings policies

Explanation

Correct Answers

A:

Service control policies limit the maximum permissions of affected account principals but do not grant rights; among the listed outcomes, it addresses set a maximum permission boundary for member-account principals, rather than merely contributing a related signal or support step.

C:

Organizational units group accounts and establish boundaries for inherited organization policies; this fulfills the stated requirement to separate development and production accounts into different policy inheritance scopes; the operational limitation is that governance must attach to account groups rather than individual IAM users; in this design the separate acceptance test is to set a maximum permission boundary for member-account principals.

Incorrect Answers

B:

Organizations backup policies help coordinate AWS Backup plans and selections across member accounts; if the requirement were to distribute common backup policy requirements to eligible member accounts, that would matter. The requested outcomes are separate from the one this option addresses.

D:

This mechanism supports the ability to collect network flow metadata from selected workload VPCs for audit analysis: VPC Flow Logs capture metadata for selected interfaces, subnets, or VPCs and deliver to supported destinations; it would not satisfy a different obligation just by appearing in the same workflow.

E:

It supports a separate administrative task, namely to prevent log upload and retrieval over unencrypted transport; a bucket policy can deny requests when the aws:SecureTransport context indicates an insecure connection; the prompt's required outcomes are not achieved by substituting this control.

F:

Security Hub central configuration can apply supported policies across an organization hierarchy; if the requirement were to standardize security finding aggregation and enabled standards across accounts, that would matter. The requested outcomes are separate from the one this option addresses.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests