Question 530

After a configuration change, the delivery engineering team sees this issue: A security remediation automation can modify production without a designated approval step. What best restores the ability to review a sensitive operational change before executing its runbook?

  1. Apply CloudFormation drift remediation through a reviewed template update
  2. Perform an Auto Scaling instance refresh after updating a launch template
  3. Require a Systems Manager Change Manager approval for high-risk production automation
  4. Use Systems Manager Run Command with tag-based targets for an emergency fix

Explanation

Correct Answer

C:

Change Manager supports governed change requests and approval workflows for operations; that directly addresses the observed failure in the scenario. The configuration still has to respect this constraint: the change must be tracked with an approval workflow and appropriate permissions.

Incorrect Answers

A:

The choice is useful when engineers need to restore a resource's intended IaC state after manual infrastructure changes: a reviewed stack update can bring supported drifted resources back toward declared template state. It would not establish the control needed to review a sensitive operational change before executing its runbook.

B:

Instance refresh gradually replaces existing Auto Scaling instances according to updated configuration; this is a reasonable option when the requirement is to roll out a corrected launch template to already-running fleet instances, but it operates at a different workflow boundary from the stated need to review a sensitive operational change before executing its runbook.

D:

Although run Command executes approved documents on selected managed nodes without direct interactive host access, the scenario does not ask for apply a one-off configuration command to all affected managed instances. It requires the ability to review a sensitive operational change before executing its runbook, which is a separate responsibility.

Question 531

During root-cause analysis, the team identifies the following: A malformed alert returns to the source queue indefinitely and consumes processing capacity. To isolate repeatedly unprocessable events without blocking successful work, what should be configured?

  1. Use an SQS FIFO queue when processing order per message group matters
  2. Use an SQS redrive policy and dead-letter queue for failed events
  3. Use EventBridge rule retry settings and an SQS dead-letter queue for failed targets
  4. Use Kinesis Data Streams for ordered partition-based event processing

Explanation

Correct Answer

B:

An SQS redrive policy sends messages to a DLQ after the receive count exceeds its threshold; that directly addresses the observed failure in the scenario. The configuration still has to respect this constraint: the configured failure threshold must retain bad messages for investigation.

Incorrect Answers

A:

SQS FIFO queues preserve order within message groups with managed deduplication semantics. This is a reasonable option when the requirement is to process change events in order for each governed resource, but it operates at a different workflow boundary from the stated need to isolate repeatedly unprocessable events without blocking successful work.

C:

Although EventBridge rules can use retry policies and DLQ targets to preserve failed deliveries, the scenario does not ask for retain failed event delivery attempts for later investigation; it requires the ability to isolate repeatedly unprocessable events without blocking successful work, which is a separate responsibility.

D:

Kinesis Data Streams partitions records by key and retains them for consumers to read over time; this can help teams ingest a high-volume event stream with multiple independently scaled consumers, but the reported workflow needs to isolate repeatedly unprocessable events without blocking successful work. It does not perform that required function.

Question 532

A technical change review names the selected control as follows: Use DynamoDB on-demand capacity for variable request demand. To avoid manual throughput planning when read and write request rates change sharply, which constraint must be addressed for this design?

  1. The database service should adjust capacity without preconfigured RCU and WCU targets
  2. The web endpoint should use health-aware routing across independently failing zones
  3. Replacement capacity should be launched automatically in remaining healthy zones
  4. Replication may be asynchronous and failover requires appropriate application orchestration
  5. Failover should work within the supported origin group request types and status codes

Explanation

Correct Answer

A:

The database service should adjust capacity without preconfigured RCU and WCU targets. That is the governing deployment boundary for the selected control: DynamoDB on-demand mode automatically manages throughput capacity for variable workloads within service limits. If the boundary is missed, the design can fail to avoid manual throughput planning when read and write request rates change sharply.

Incorrect Answers

B:

An ALB can distribute requests to healthy registered targets across enabled Availability Zones; its own dependency is that the web endpoint should use health-aware routing across independently failing zones; those details concern the separate objective of being able to maintain HTTP routing to healthy targets when an application Availability Zone fails, rather than to the named control required to avoid manual throughput planning when read and write request rates change sharply.

C:

The proposed condition makes sense in an implementation designed to replace failed web hosts and distribute capacity across Availability Zones; it concerns EC2 Auto Scaling manages desired instances across configured subnets and uses health checks for replacement, whereas this question tests the prerequisite of the named control.

D:

This proposed constraint belongs to a separate objective: replication may be asynchronous and failover requires appropriate application orchestration; the corresponding goal is to provide off-Region read capacity and a possible promotion-based recovery option, not the selected architecture's goal to avoid manual throughput planning when read and write request rates change sharply.

E:

This condition governs the different mechanism used to keep cacheable web content reachable if the primary origin fails. CloudFront origin groups can switch eligible requests to a secondary origin on configured primary failures; for the selected control, the relevant boundary is instead that the database service should adjust capacity without preconfigured RCU and WCU targets.

Question 533

An operational design is incomplete until it can release immutable Lambda code while keeping callers on a stable function reference and reduce cold-start latency for a predictable high-priority request path. Which two-part implementation fills both gaps?

  1. Use CodeDeploy ECS blue/green with two target groups; apply Kubernetes readiness probes before routing traffic to EKS pods
  2. Publish a Lambda version and route clients through an alias; choose a supported ECS canary traffic-shift configuration
  3. Publish a Lambda version and route clients through an alias; run a post-deploy smoke test against an ALB health-checked endpoint
  4. Attach CodeDeploy deployment alarms for automatic stop or rollback; enable provisioned concurrency on the Lambda alias or published version
  5. Publish a Lambda version and route clients through an alias; enable provisioned concurrency on the Lambda alias or published version

Explanation

Correct Answer

E:

The first outcome depends on the behavior that a published Lambda version snapshots code and configuration; an alias can reference the selected version. Separately, provisioned concurrency keeps initialized Lambda execution environments ready for supported versions or aliases. Together these meet the two requested outcomes, with the operational limits that clients must invoke a stable alias while versions remain immutable and capacity must be prepared for the immutable version behind the release alias.

Incorrect Answers

A:

These are legitimate AWS controls for different outcomes: CodeDeploy blue/green ECS deployments use replacement task sets and load balancer target groups for traffic shifts, whereas readiness probes control whether pods are considered ready for service endpoint traffic. The problem instead requires the ability to release immutable Lambda code while keeping callers on a stable function reference and to reduce cold-start latency for a predictable high-priority request path.

B:

Combining a suitable first control with this second one misses the secondary acceptance criterion; canary deployment configurations shift an initial percentage before the remaining cutover; it helps send a small fraction of user traffic to a replacement task set before full cutover rather than reduce cold-start latency for a predictable high-priority request path.

C:

The first half is appropriate: A published Lambda version snapshots code and configuration; an alias can reference the selected version. However, a smoke test targets live application behavior after rollout and can trigger deployment failure handling; that serves a different objective (validate that a new service release responds correctly before ending the deployment) and leaves the explicit need to reduce cold-start latency for a predictable high-priority request path unmet.

D:

The second implementation is relevant; the problem is the first. CodeDeploy can monitor CloudWatch alarms and stop or roll back deployments based on configured criteria; it can help halt an EC2 release when service health violates a CloudWatch alarm, whereas the stated first requirement is to release immutable Lambda code while keeping callers on a stable function reference.

Question 534

The current plan covers only one side of the delivery operating model. It needs to expose a small percentage of Lambda invocations to a new version before full promotion as well as run pre-traffic or post-traffic checks before accepting an alias cutover. Which paired changes complete the design?

  1. Run a post-deploy smoke test against an ALB health-checked endpoint; attach validation hooks to a Lambda CodeDeploy deployment
  2. Use CodeDeploy Lambda canary deployment with an alias; attach validation hooks to a Lambda CodeDeploy deployment
  3. Use CodeDeploy Lambda canary deployment with an alias; choose a supported ECS canary traffic-shift configuration
  4. Use CodeDeploy Lambda canary deployment with an alias; apply Kubernetes readiness probes before routing traffic to EKS pods
  5. Use a weighted Lambda alias for gradual traffic migration; attach CodeDeploy deployment alarms for automatic stop or rollback

Explanation

Correct Answer

B:

CodeDeploy can update Lambda alias traffic weights using canary configurations. This handles the first acceptance condition, subject to the boundary that a timed first increment is required before the rest of traffic shifts. The remaining condition is handled separately: Lambda deployment lifecycle hooks invoke designated validation functions for pre- and post-traffic checks, with a failed validation hook must stop or fail the deployment workflow.

Incorrect Answers

A:

A smoke test targets live application behavior after rollout and can trigger deployment failure handling; that is intended to validate that a new service release responds correctly before ending the deployment, not to expose a small percentage of Lambda invocations to a new version before full promotion; the second half can meet the requirement to run pre-traffic or post-traffic checks before accepting an alias cutover, but the first is still missing.

C:

Combining a suitable first control with this second one misses the secondary acceptance criterion; canary deployment configurations shift an initial percentage before the remaining cutover; it helps send a small fraction of user traffic to a replacement task set before full cutover rather than run pre-traffic or post-traffic checks before accepting an alias cutover.

D:

The first half is appropriate: CodeDeploy can update Lambda alias traffic weights using canary configurations. However, readiness probes control whether pods are considered ready for service endpoint traffic; that serves a different objective (keep requests away from containers until the application is ready) and leaves the explicit need to run pre-traffic or post-traffic checks before accepting an alias cutover unmet.

E:

These are legitimate AWS controls for different outcomes: a Lambda alias can distribute invocations between its primary and additional published version, whereas CodeDeploy can monitor CloudWatch alarms and stop or roll back deployments based on configured criteria. The problem instead requires the ability to expose a small percentage of Lambda invocations to a new version before full promotion and to run pre-traffic or post-traffic checks before accepting an alias cutover.

Question 535

A production ticket contains this symptom: An engineer changes a production resource directly and the stack update status stays green. The desired behavior is to identify resource properties that no longer match the approved template. What should be fixed?

  1. Use VPC Flow Logs to investigate rejected network flows
  2. Use CloudFormation drift detection to spot out-of-band stack edits
  3. Run SQL queries against existing CloudTrail Lake event data stores
  4. Enable CloudTrail data events for selected S3 object operations

Explanation

Correct Answer

B:

To identify resource properties that no longer match the approved template, the architecture relies on this AWS behavior: drift detection checks supported stack resource configuration against the declared IaC state. The comparison should focus on supported declared CloudFormation properties.

Incorrect Answers

A:

That service solves a different operating problem: the need to identify source, destination, and action details for a suspected network denial. Its behavior is that VPC Flow Logs record accepted and rejected flow metadata without capturing full packet payloads. The requested outcome remains identify resource properties that no longer match the approved template.

C:

CloudTrail Lake ingests supported events into queryable event data stores. This is a reasonable option when the requirement is to query retained CloudTrail events without first building a custom S3 query pipeline, but it operates at a different workflow boundary from the stated need to identify resource properties that no longer match the approved template.

D:

Choosing this would aim to attribute reads or deletes of sensitive bucket objects to a principal instead of identify resource properties that no longer match the approved template; CloudTrail data event selectors record eligible object-level activity beyond management events; it cannot replace the mechanism specified by the incident evidence.

Question 536

An infrastructure proposal must demonstrate two capabilities: cache vetted public-package dependencies through the organization's package repository and prevent existing release tags from silently being overwritten. Which combination supplies the appropriate controls?

  1. Use CodeArtifact upstream repositories for approved external packages; enable ECR image tag immutability for release repositories
  2. Pin image promotion to an ECR image digest instead of a mutable tag; enable ECR image tag immutability for release repositories
  3. Use CodeArtifact upstream repositories for approved external packages; sign and verify release artifacts through a controlled integrity process
  4. Use CodeArtifact upstream repositories for approved external packages; configure ECR replication to authorized Regions or accounts
  5. Export a CodeBuild artifact using buildspec artifact paths; use EC2 Image Builder pipelines to produce hardened AMIs

Explanation

Correct Answer

A:

CodeArtifact upstream relationships can retrieve dependency versions while concentrating package access management; ECR tag immutability prevents image tags from being overwritten in repositories configured for it. The first control satisfies the need to cache vetted public-package dependencies through the organization's package repository; the second addresses the need to prevent existing release tags from silently being overwritten. Builds should resolve dependencies through the same curated repository endpoint; approved deployment references must not be retargeted through tag updates.

Incorrect Answers

B:

This combination solves only the latter acceptance test. The substituted first control supports deploy exactly the image bytes tested during CI: image digests identify content; mutable tags can be repointed and are unsuitable as sole provenance; it does not implement cache vetted public-package dependencies through the organization's package repository.

C:

The first half is appropriate: CodeArtifact upstream relationships can retrieve dependency versions while concentrating package access management. However, cryptographic signatures and trusted verification bind an approved artifact to its signing provenance; that serves a different objective (detect tampering between build completion and production deployment) and leaves the explicit need to prevent existing release tags from silently being overwritten unmet.

D:

ECR replication copies matching repository images to configured destination registries and Regions; that alternative supports the ability to preposition container images in the registries used by regional deployments, but it is not the requested second outcome (prevent existing release tags from silently being overwritten). Even though the first half addresses cache vetted public-package dependencies through the organization's package repository, this pair is incomplete.

E:

The pair changes the problem instead of completing it. One option addresses include compiled outputs rather than the entire source tree in a pipeline artifact; the other addresses automate repeatable golden-image builds with validation tests. The release, however, needs to cache vetted public-package dependencies through the organization's package repository as well as prevent existing release tags from silently being overwritten.

Question 537

An automated check detects: A Lambda release progresses despite a failing integration check on the new version. Which remediation directly supports the requirement to run pre-traffic or post-traffic checks before accepting an alias cutover?

  1. Use an appspec.yml to define CodeDeploy instance hooks
  2. Publish a Lambda version and route clients through an alias
  3. Use CodeDeploy Lambda canary deployment with an alias
  4. Attach validation hooks to a Lambda CodeDeploy deployment

Explanation

Correct Answer

D:

Lambda deployment lifecycle hooks invoke designated validation functions for pre- and post-traffic checks; in this case the control is appropriate because it supports run pre-traffic or post-traffic checks before accepting an alias cutover. A failed validation hook must stop or fail the deployment workflow.

Incorrect Answers

A:

An AppSpec file maps application files and lifecycle event hooks for EC2 deployments. This is a reasonable option when the requirement is to execute controlled install and validation scripts during an EC2 deployment, but it operates at a different workflow boundary from the stated need to run pre-traffic or post-traffic checks before accepting an alias cutover.

B:

Choosing this would aim to release immutable Lambda code while keeping callers on a stable function reference instead of run pre-traffic or post-traffic checks before accepting an alias cutover. A published Lambda version snapshots code and configuration; an alias can reference the selected version; it cannot replace the mechanism specified by the incident evidence.

C:

Although CodeDeploy can update Lambda alias traffic weights using canary configurations, the scenario does not ask for expose a small percentage of Lambda invocations to a new version before full promotion. It requires the ability to run pre-traffic or post-traffic checks before accepting an alias cutover, which is a separate responsibility.

Question 538

A production ticket contains this symptom: Engineers repeatedly refresh stored queries to see whether new errors have appeared. The desired behavior is to watch incoming application events while reproducing a production issue. What should be fixed?

  1. Publish application logs in structured JSON with stable correlation identifiers
  2. Use CloudWatch Logs Live Tail for short-lived streaming troubleshooting
  3. Configure CloudWatch Logs retention per application log group
  4. Use CloudWatch Logs Insights for interactive log analysis

Explanation

Correct Answer

B:

Live Tail streams recently ingested matching log events from supported log groups. It enables the necessary capability to watch incoming application events while reproducing a production issue rather than only providing an adjacent operational control. The observation should focus on newly ingested log events in real time.

Incorrect Answers

A:

Choosing this would aim to correlate requests across independent container services in a central log search instead of watch incoming application events while reproducing a production issue; structured log fields and propagated request IDs enable targeted multi-service incident investigation; it cannot replace the mechanism specified by the incident evidence.

C:

Log-group retention settings automatically expire data beyond the configured retention interval; this can help teams expire routine log events after the approved operating retention period, but the reported workflow needs to watch incoming application events while reproducing a production issue. It does not perform that required function.

D:

That service solves a different operating problem: the need to query structured error events across log groups during incidents; its behavior is that CloudWatch Logs Insights runs interactive queries over selected CloudWatch log groups; the requested outcome remains watch incoming application events while reproducing a production issue.

Question 539

A production ticket contains this symptom: Backend resource metrics remain green even though the login page returns invalid content. The desired behavior is to detect external failures in a multi-step website journey before users report them. What should be fixed?

  1. Use CloudWatch dashboard widgets for a shared service SLO view
  2. Instrument the actual application error path with structured logs and trace IDs
  3. Propagate trace context between microservices
  4. Use CloudWatch Synthetics canaries to validate a customer workflow

Explanation

Correct Answer

D:

Synthetics canaries execute scripts and publish availability and step-level results; that directly addresses the observed failure in the scenario. The configuration still has to respect this constraint: the check must exercise actual HTTP or browser behavior on a defined schedule.

Incorrect Answers

A:

Although CloudWatch dashboards visualize selected metrics, logs, and alarms in a shared operational view, the scenario does not ask for show latency, errors, and saturation to incident responders in one panel; it requires the ability to detect external failures in a multi-step website journey before users report them, which is a separate responsibility.

B:

Application tracing and correlated structured logs reveal failures not expressed by host utilization metrics; this can help teams diagnose which business operation produces sporadic application exceptions, but the reported workflow needs to detect external failures in a multi-step website journey before users report them. It does not perform that required function.

C:

That service solves a different operating problem: the need to link asynchronous or downstream operations to the originating request trace. Its behavior is that trace context propagation relates spans across a distributed request path. The requested outcome remains detect external failures in a multi-step website journey before users report them.

Question 540

Two technical outcomes must be delivered together: identify resource properties that no longer match the approved template and identify resource-based policies granting access outside the expected trust zone. Which pair of controls is sufficient for the stated outcomes?

  1. Use Amazon Detective for investigation of related security activity; use VPC Flow Logs to investigate rejected network flows
  2. Use CloudFormation drift detection to spot out-of-band stack edits; use AWS Config conformance packs for grouped compliance evaluation
  3. Create an organization CloudTrail trail to a separately secured S3 logging bucket; use IAM Access Analyzer external access findings for resource policies
  4. Use CloudFormation drift detection to spot out-of-band stack edits; use IAM Access Analyzer external access findings for resource policies
  5. Use CloudFormation drift detection to spot out-of-band stack edits; route GuardDuty findings through EventBridge to a security workflow

Explanation

Correct Answer

D:

Drift detection checks supported stack resource configuration against the declared IaC state. This handles the first acceptance condition, subject to the boundary that the comparison should focus on supported declared CloudFormation properties. The remaining condition is handled separately: IAM Access Analyzer can flag supported resources whose policies allow external access, with the analysis should examine resource-level external access rather than package CVEs.

Incorrect Answers

A:

Neither control directly supplies both requested behaviors. Detective assists security investigations by correlating supported activity and entity relationships; VPC Flow Logs record accepted and rejected flow metadata without capturing full packet payloads. Those mechanisms address different objectives. The specified capabilities are to identify resource properties that no longer match the approved template and to identify resource-based policies granting access outside the expected trust zone.

B:

Conformance packs package AWS Config rules and supported remediation actions for consistent evaluation; that alternative supports the ability to evaluate a collection of resource configuration controls against a standard, but it is not the requested second outcome (identify resource-based policies granting access outside the expected trust zone). Even though the first half addresses identify resource properties that no longer match the approved template, this pair is incomplete.

C:

This combination solves only the latter acceptance test. The substituted first control supports retain management API events from all AWS Organizations member accounts: an organization trail delivers supported account activity events centrally for member accounts. It does not implement identify resource properties that no longer match the approved template.

E:

GuardDuty emits supported findings to EventBridge for targeted notification and automation. That alternative supports the ability to trigger containment review when a high-severity credential threat appears, but it is not the requested second outcome (identify resource-based policies granting access outside the expected trust zone); even though the first half addresses identify resource properties that no longer match the approved template, this pair is incomplete.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests