Question 390

An infrastructure proposal must demonstrate two capabilities: review a sensitive operational change before executing its runbook and review the actual resource mutations before applying a critical IaC patch. Which combination supplies the appropriate controls?

  1. Apply CloudFormation drift remediation through a reviewed template update; use a CloudFormation Change Set for emergency infrastructure adjustments
  2. Require a Systems Manager Change Manager approval for high-risk production automation; use AWS Backup event notifications and a bounded retry workflow
  3. Require a Systems Manager Change Manager approval for high-risk production automation; use a CloudFormation Change Set for emergency infrastructure adjustments
  4. Use Systems Manager Run Command with tag-based targets for an emergency fix; perform an Auto Scaling instance refresh after updating a launch template

Explanation

Correct Answer

C:

Change Manager supports governed change requests and approval workflows for operations; CloudFormation Change Sets preview resource actions including potential replacements before execution. The first control satisfies the need to review a sensitive operational change before executing its runbook; the second addresses the need to review the actual resource mutations before applying a critical IaC patch. The change must be tracked with an approval workflow and appropriate permissions; the change must be inspectable before stack update execution.

Incorrect Answers

A:

A reviewed stack update can bring supported drifted resources back toward declared template state; that is intended to restore a resource's intended IaC state after manual infrastructure changes, not to review a sensitive operational change before executing its runbook. The second half can meet the requirement to review the actual resource mutations before applying a critical IaC patch, but the first is still missing.

B:

AWS Backup job state events can feed EventBridge-driven notification and automation. That alternative supports the ability to respond when a scheduled backup job fails before the recovery point objective is exceeded, but it is not the requested second outcome (review the actual resource mutations before applying a critical IaC patch). Even though the first half addresses review a sensitive operational change before executing its runbook, this pair is incomplete.

D:

Neither control directly supplies both requested behaviors. Run Command executes approved documents on selected managed nodes without direct interactive host access; instance refresh gradually replaces existing Auto Scaling instances according to updated configuration. Those mechanisms address different objectives. The specified capabilities are to review a sensitive operational change before executing its runbook and to review the actual resource mutations before applying a critical IaC patch.

Question 391

A release readiness review identifies 2 distinct controls to implement: (1) delay load balancer registration until a new EC2 instance is correctly configured; (2) expose a small percentage of Lambda invocations to a new version before full promotion. Select the TWO actions that jointly cover them. Choose TWO.

  1. Use an Auto Scaling lifecycle hook to finish instance initialization before InService
  2. Use CodeDeploy ECS blue/green with two target groups
  3. Install and run the CodeDeploy agent on target EC2 instances
  4. Attach CodeDeploy deployment alarms for automatic stop or rollback
  5. Use CodeDeploy Lambda canary deployment with an alias

Explanation

Correct Answers

A:

This covers the specific result to delay load balancer registration until a new EC2 instance is correctly configured: an Auto Scaling lifecycle hook can keep instances in a wait state while automation completes initialization. Auto Scaling must pause transition while initialization work runs.

E:

This covers the specific result to expose a small percentage of Lambda invocations to a new version before full promotion: CodeDeploy can update Lambda alias traffic weights using canary configurations. A timed first increment is required before the rest of traffic shifts.

Incorrect Answers

B:

CodeDeploy blue/green ECS deployments use replacement task sets and load balancer target groups for traffic shifts; that would be appropriate to shift load balancer traffic from the old ECS task set to the new task set, but this is a different objective from the numbered obligations in the stem.

C:

This mechanism supports the ability to make instances eligible to receive CodeDeploy lifecycle instructions: the CodeDeploy agent polls for work and runs lifecycle instructions on managed EC2 or on-premises hosts. It would not satisfy a different obligation just by appearing in the same workflow.

D:

It supports a separate administrative task, namely to halt an EC2 release when service health violates a CloudWatch alarm. CodeDeploy can monitor CloudWatch alarms and stop or roll back deployments based on configured criteria; the prompt's required outcomes are not achieved by substituting this control.

Question 392

A production ticket contains this symptom: A queue grows while worker CPU remains low due to external I/O waiting. The desired behavior is to scale message-processing workers with the backlog relative to active capacity. What should be fixed?

  1. Use scheduled scaling for recurring predictable demand
  2. Use predictive scaling with EC2 Auto Scaling for suitable historical patterns
  3. Use SQS to buffer bursts between request intake and worker processing
  4. Use SQS backlog per worker as a target tracking metric

Explanation

Correct Answer

D:

Backlog per instance estimates the pressure on worker capacity for queue-driven scaling. In this case the control is appropriate because it supports scale message-processing workers with the backlog relative to active capacity. Scaling must follow outstanding work per consumer rather than CPU alone.

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 scale message-processing workers with the backlog relative to active capacity.

B:

Predictive scaling forecasts capacity demand from load history and can schedule scaling ahead of it; this is a reasonable option when the requirement is to anticipate regular load variations using observed historical demand, but it operates at a different workflow boundary from the stated need to scale message-processing workers with the backlog relative to active capacity.

C:

Choosing this would aim to decouple transient producer spikes from a bounded worker fleet instead of scale message-processing workers with the backlog relative to active capacity; SQS queues hold pending work and let consumers process it asynchronously with retry semantics; it cannot replace the mechanism specified by the incident evidence.

Question 393

Investigators observe: A deployment reports successful file copies although the public API endpoint returns errors. Engineers still need to validate that a new service release responds correctly before ending the deployment. Which corrective action is most appropriate?

  1. Attach validation hooks to a Lambda CodeDeploy deployment
  2. Set termination wait time for a CodeDeploy ECS blue/green deployment
  3. Run a post-deploy smoke test against an ALB health-checked endpoint
  4. Use an Auto Scaling lifecycle hook to finish instance initialization before InService
  5. Use immutable AMI replacement through an Auto Scaling instance refresh

Explanation

Correct Answer

C:

A smoke test targets live application behavior after rollout and can trigger deployment failure handling; in this case the control is appropriate because it supports validate that a new service release responds correctly before ending the deployment. The success condition is customer-path health rather than artifact transfer.

Incorrect Answers

A:

Lambda deployment lifecycle hooks invoke designated validation functions for pre- and post-traffic checks; this is a reasonable option when the requirement is to run pre-traffic or post-traffic checks before accepting an alias cutover, but it operates at a different workflow boundary from the stated need to validate that a new service release responds correctly before ending the deployment.

B:

Choosing this would aim to retain the old ECS task set temporarily for rollback after traffic rerouting instead of validate that a new service release responds correctly before ending the deployment. CodeDeploy blue/green termination settings control how long the original ECS task set remains after success; it cannot replace the mechanism specified by the incident evidence.

D:

An Auto Scaling lifecycle hook can keep instances in a wait state while automation completes initialization; this can help teams delay load balancer registration until a new EC2 instance is correctly configured, but the reported workflow needs to validate that a new service release responds correctly before ending the deployment. It does not perform that required function.

E:

That service solves a different operating problem: the need to replace outdated instances with a tested image instead of mutating running systems. Its behavior is that auto Scaling instance refresh replaces instances according to an updated launch template and health controls. The requested outcome remains validate that a new service release responds correctly before ending the deployment.

Question 394

The service maintenance group proposes this implementation: Use SQS visibility timeouts aligned to consumer processing. Its intended result is to prevent a valid long-running worker task from being processed concurrently. Which implementation consideration is most specific to that choice?

  1. Rules must filter on the desired API event fields and target an authorized workflow
  2. Ordering must be preserved within each identified message group
  3. Message attributes or supported bodies should drive routing to subscribers
  4. Visibility must exceed normal handling time or be extended during processing

Explanation

Correct Answer

D:

The requested behavior is to prevent a valid long-running worker task from being processed concurrently, and visibility must exceed normal handling time or be extended during processing. The underlying AWS behavior is that SQS visibility timeouts temporarily hide received messages until deletion or timeout expiration.

Incorrect Answers

A:

The proposed condition makes sense in an implementation designed to start an incident workflow after a restricted AWS configuration API call. It concerns EventBridge matches supported API activity events and invokes selected event targets, whereas this question tests the prerequisite of the named control.

B:

This proposed constraint belongs to a separate objective: ordering must be preserved within each identified message group. The corresponding goal is to process change events in order for each governed resource, not the selected architecture's goal to prevent a valid long-running worker task from being processed concurrently.

C:

This condition governs the different mechanism used to send only security-relevant messages to the security response queue. SNS subscription filters select which published messages each subscriber receives. For the selected control, the relevant boundary is instead that visibility must exceed normal handling time or be extended during processing.

Question 395

The architecture record specifies: Associate a customer managed KMS key with a CloudWatch Logs log group. To support the goal to control at-rest log encryption under an explicitly governed encryption key, which consideration should the engineer validate?

  1. The observation should focus on newly ingested log events in real time
  2. The data must be protected in transit independently from at-rest bucket encryption
  3. The log service principal and key policy need the required encrypt and decrypt permissions
  4. Writers and readers must be authorized by both storage and KMS policies
  5. Cross-account resource authorization must be explicit for the destination

Explanation

Correct Answer

C:

The requested behavior is to control at-rest log encryption under an explicitly governed encryption key, and the log service principal and key policy need the required encrypt and decrypt permissions. The underlying AWS behavior is that CloudWatch Logs supports customer-managed KMS key association for eligible log groups.

Incorrect Answers

A:

This proposed constraint belongs to a separate objective: the observation should focus on newly ingested log events in real time. The corresponding goal is to watch incoming application events while reproducing a production issue, not the selected architecture's goal to control at-rest log encryption under an explicitly governed encryption key.

B:

This condition governs the different mechanism used to protect sensitive telemetry while it travels from producers to ingestion endpoints; TLS protects log transport over supported network paths against plaintext interception; for the selected control, the relevant boundary is instead that the log service principal and key policy need the required encrypt and decrypt permissions.

D:

The proposed condition makes sense in an implementation designed to protect exported audit objects with a controlled at-rest encryption boundary; it concerns S3 SSE-KMS encrypts objects using AWS KMS keys with separate data and key-access controls, whereas this question tests the prerequisite of the named control.

E:

This proposed constraint belongs to a separate objective: cross-account resource authorization must be explicit for the destination. The corresponding goal is to centralize matching account log streams into a designated log-processing account, not the selected architecture's goal to control at-rest log encryption under an explicitly governed encryption key.

Question 396

The cloud operations group proposes this implementation: Use CloudWatch dashboard widgets for a shared service SLO view. Its intended result is to show latency, errors, and saturation to incident responders in one panel. Which implementation consideration is most specific to that choice?

  1. The display should combine application and infrastructure indicators for the same system
  2. The check must exercise actual HTTP or browser behavior on a defined schedule
  3. Queries should extract stable fields rather than rely on visual scrolling
  4. The alarm should represent sustained violation of a measurable service objective

Explanation

Correct Answer

A:

The display should combine application and infrastructure indicators for the same system. That is the governing deployment boundary for the selected control: CloudWatch dashboards visualize selected metrics, logs, and alarms in a shared operational view. If the boundary is missed, the design can fail to show latency, errors, and saturation to incident responders in one panel.

Incorrect Answers

B:

Synthetics canaries execute scripts and publish availability and step-level results. Its own dependency is that the check must exercise actual HTTP or browser behavior on a defined schedule. Those details concern the separate objective of being able to detect external failures in a multi-step website journey before users report them, rather than to the named control required to show latency, errors, and saturation to incident responders in one panel.

C:

The proposed condition makes sense in an implementation designed to filter application logs by request ID and aggregate failing endpoint counts. It concerns logs Insights provides parsing, filtering, statistics, and time grouping for log data, whereas this question tests the prerequisite of the named control.

D:

This proposed constraint belongs to a separate objective: the alarm should represent sustained violation of a measurable service objective; the corresponding goal is to avoid triggering rollbacks on one isolated noisy metric datapoint, not the selected architecture's goal to show latency, errors, and saturation to incident responders in one panel.

Question 397

During root-cause analysis, the team identifies the following: A team manually runs cdk deploy for every change and cannot consistently promote synthesized stacks. To automate build and deployment of CDK infrastructure changes with reviewable application source, what should be configured?

  1. Enable CodeBuild local caching for reusable build dependencies
  2. Use an AWS CDK pipeline with dedicated synth and deployment steps
  3. Use a deployment action with a production-account IAM role
  4. Define build phases and commands in the CodeBuild buildspec

Explanation

Correct Answer

B:

CDK Pipelines synthesize application definitions into cloud assemblies and orchestrate subsequent stack deployments; it restores the ability to automate build and deployment of CDK infrastructure changes with reviewable application source, provided the implementation also observes that infrastructure deployments must be reproducible from version control.

Incorrect Answers

A:

That service solves a different operating problem: the need to reduce time spent re-fetching dependencies in repeated builds on compatible environments. Its behavior is that local caches can reuse permitted source or dependency data on a build host, subject to environment and cache limitations. The requested outcome remains automate build and deployment of CDK infrastructure changes with reviewable application source.

C:

Role separation allows each pipeline action to run under the permissions approved for its target environment; this is a reasonable option when the requirement is to isolate permissions between staging and production delivery, but it operates at a different workflow boundary from the stated need to automate build and deployment of CDK infrastructure changes with reviewable application source.

D:

Choosing this would aim to run ordered install, pre-build, build, and post-build commands as part of CI instead of automate build and deployment of CDK infrastructure changes with reviewable application source. A buildspec documents lifecycle phases, shell commands, outputs, and optional reports for CodeBuild; it cannot replace the mechanism specified by the incident evidence.

Question 398

The production plan uses this approach: Request an ACM-issued public certificate for a supported HTTPS endpoint. The goal is to automate TLS certificate provisioning for an AWS-managed load balancer. Which prerequisite or limitation should receive focused review?

  1. The ALB should use a managed public certificate with a valid domain validation path
  2. Permissions must reflect both the resource API action and decrypt authorization
  3. The policy must target supported resources through Organizations and configured security administration
  4. The corrective runbook must execute with narrowly authorized permissions

Explanation

Correct Answer

A:

The ALB should use a managed public certificate with a valid domain validation path. Without this, choosing the named service is not enough to produce the promised outcome; AWS Certificate Manager provisions and renews eligible certificates for integrated AWS services.

Incorrect Answers

B:

This proposed constraint belongs to a separate objective: permissions must reflect both the resource API action and decrypt authorization. The corresponding goal is to separate encryption key management from broad object storage administration, not the selected architecture's goal to automate TLS certificate provisioning for an AWS-managed load balancer.

C:

This condition governs the different mechanism used to enforce an approved web ACL policy on supported public application endpoints across member accounts; firewall Manager manages supported security policies across accounts and can apply WAF protections to in-scope resources; for the selected control, the relevant boundary is instead that the ALB should use a managed public certificate with a valid domain validation path.

D:

AWS Config rules evaluate configurations and can integrate with Systems Manager remediation. Its own dependency is that the corrective runbook must execute with narrowly authorized permissions. Those details concern the separate objective of being able to restore supported misconfigured resource settings when drift is detected, rather than to the named control required to automate TLS certificate provisioning for an AWS-managed load balancer.

Question 399

The production plan uses this approach: Configure an ECR lifecycle policy to expire unwanted image versions. The goal is to remove unneeded old images without deleting current release references. Which prerequisite or limitation should receive focused review?

  1. Distribution must follow a defined replication configuration
  2. Retention must be tamper-resistant rather than merely a lifecycle policy
  3. Release identity must be immutable even when friendly tags are moved
  4. Retention should be based on tag status, age, or count instead of manual deletion

Explanation

Correct Answer

D:

Retention should be based on tag status, age, or count instead of manual deletion. Without this, choosing the named service is not enough to produce the promised outcome. ECR lifecycle rules automate image expiration according to matching criteria.

Incorrect Answers

A:

This proposed constraint belongs to a separate objective: distribution must follow a defined replication configuration. The corresponding goal is to preposition container images in the registries used by regional deployments, not the selected architecture's goal to remove unneeded old images without deleting current release references.

B:

This condition governs the different mechanism used to prevent modification or deletion of archived release artifacts for a mandated period; S3 Object Lock protects eligible versioned objects under governance or compliance retention modes; for the selected control, the relevant boundary is instead that retention should be based on tag status, age, or count instead of manual deletion.

C:

Image digests identify content; mutable tags can be repointed and are unsuitable as sole provenance; its own dependency is that release identity must be immutable even when friendly tags are moved. Those details concern the separate objective of being able to deploy exactly the image bytes tested during CI, rather than to the named control required to remove unneeded old images without deleting current release references.

Question 400

The platform engineering team reports the following failure: A standard queue occasionally delivers an update before its earlier update for the same resource. Which action directly restores the requirement to process change events in order for each governed resource?

  1. Use AWS Health events through EventBridge for account-impact notifications
  2. Use an SQS FIFO queue when processing order per message group matters
  3. Use an SQS redrive policy and dead-letter queue for failed events
  4. Use SQS visibility timeouts aligned to consumer processing
  5. Use an SNS topic with independent SQS subscriptions for event fan-out

Explanation

Correct Answer

B:

To process change events in order for each governed resource, the architecture relies on this AWS behavior: SQS FIFO queues preserve order within message groups with managed deduplication semantics. Ordering must be preserved within each identified message group.

Incorrect Answers

A:

Choosing this would aim to initiate targeted response to an AWS-managed service event affecting the account instead of process change events in order for each governed resource; supported AWS Health events appear on EventBridge and can trigger notification or workflows; it cannot replace the mechanism specified by the incident evidence.

C:

An SQS redrive policy sends messages to a DLQ after the receive count exceeds its threshold. This can help teams isolate repeatedly unprocessable events without blocking successful work, but the reported workflow needs to process change events in order for each governed resource. It does not perform that required function.

D:

That service solves a different operating problem: the need to prevent a valid long-running worker task from being processed concurrently. Its behavior is that SQS visibility timeouts temporarily hide received messages until deletion or timeout expiration. The requested outcome remains process change events in order for each governed resource.

E:

The choice is useful when engineers need to deliver each incident notification to separate durable processing teams: SNS fan-out to multiple SQS queues gives each subscribed queue an independent message stream. It would not establish the control needed to process change events in order for each governed resource.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests