Question 430

The next AWS platform release needs to automate build and deployment of CDK infrastructure changes with reviewable application source while also being able to isolate permissions between staging and production delivery. Which pairing best supports that release?

  1. Configure an EventBridge rule for an event-driven pipeline execution; enable CodeBuild report groups for automated test results
  2. Connect a CodePipeline source action to an approved Git provider through CodeConnections; use a deployment action with a production-account IAM role
  3. Use an AWS CDK pipeline with dedicated synth and deployment steps; use a deployment action with a production-account IAM role
  4. Use an AWS CDK pipeline with dedicated synth and deployment steps; use an AWS Step Functions state machine to coordinate conditional release tasks

Explanation

Correct Answer

C:

CDK Pipelines synthesize application definitions into cloud assemblies and orchestrate subsequent stack deployments; role separation allows each pipeline action to run under the permissions approved for its target environment. The first control satisfies the need to automate build and deployment of CDK infrastructure changes with reviewable application source; the second addresses the need to isolate permissions between staging and production delivery. Infrastructure deployments must be reproducible from version control; production permissions must be assumed only by the designated production action.

Incorrect Answers

A:

The pair changes the problem instead of completing it. One option addresses trigger a deployment workflow when a matching AWS service event occurs; the other addresses publish structured test reports that reviewers can inspect after a CI run. The release, however, needs to automate build and deployment of CDK infrastructure changes with reviewable application source as well as isolate permissions between staging and production delivery.

B:

The source connection supplies authorized repository events and revisions to a pipeline source action; that is intended to start pipeline executions from commits on the approved application branch, not to automate build and deployment of CDK infrastructure changes with reviewable application source. The second half can meet the requirement to isolate permissions between staging and production delivery, but the first is still missing.

D:

Combining a suitable first control with this second one misses the secondary acceptance criterion; Step Functions models a durable workflow with service integrations, conditional paths, waits, and retries; it helps orchestrate multiple release checks with retries, branches, and explicit failure states rather than isolate permissions between staging and production delivery.

Question 431

A production change is expected to deploy an artifact from the delivery account into a separately governed workload account. The same change must also make encrypted CodePipeline artifacts usable by an authorized cross-account action. Which paired implementation meets both acceptance criteria?

  1. Configure a cross-account deploy action with an assumable target-account role; grant the target-account role access through the S3 artifact bucket policy
  2. Configure a cross-account deploy action with an assumable target-account role; use a deployment action with a production-account IAM role
  3. Use a CodePipeline execution mode suited to parallel release frequency; use a customer managed KMS key and grant the target deployment role decrypt permission
  4. Configure a cross-account deploy action with an assumable target-account role; use a customer managed KMS key and grant the target deployment role decrypt permission
  5. Use an AWS Step Functions state machine to coordinate conditional release tasks; define build phases and commands in the CodeBuild buildspec

Explanation

Correct Answer

D:

For the requirement to deploy an artifact from the delivery account into a separately governed workload account, a trusted IAM role in the destination account authorizes the pipeline to perform scoped deployment actions via STS. For the requirement to make encrypted CodePipeline artifacts usable by an authorized cross-account action, a customer managed key with suitable key policy and IAM permission supports cross-account decrypt access. Both mechanisms are necessary; implementing only the first would leave the second unsatisfied.

Incorrect Answers

A:

A resource-based bucket policy can authorize the trusted destination principal to read specific artifact objects; that alternative supports the ability to permit a cross-account deployment action to retrieve the intended pipeline artifact objects, but it is not the requested second outcome (make encrypted CodePipeline artifacts usable by an authorized cross-account action). Even though the first half addresses deploy an artifact from the delivery account into a separately governed workload account, this pair is incomplete.

B:

Combining a suitable first control with this second one misses the secondary acceptance criterion; role separation allows each pipeline action to run under the permissions approved for its target environment; it helps isolate permissions between staging and production delivery rather than make encrypted CodePipeline artifacts usable by an authorized cross-account action.

C:

Pipeline execution modes determine whether newer runs supersede, queue behind, or coexist with active executions; that is intended to prevent newer revisions from unexpectedly superseding a release requiring sequential review, not to deploy an artifact from the delivery account into a separately governed workload account. The second half can meet the requirement to make encrypted CodePipeline artifacts usable by an authorized cross-account action, but the first is still missing.

E:

The pair changes the problem instead of completing it. One option addresses orchestrate multiple release checks with retries, branches, and explicit failure states; the other addresses run ordered install, pre-build, build, and post-build commands as part of CI. The release, however, needs to deploy an artifact from the delivery account into a separately governed workload account as well as make encrypted CodePipeline artifacts usable by an authorized cross-account action.

Question 432

An operations runbook has 2 acceptance criteria: (1) expose a small percentage of Lambda invocations to a new version before full promotion; (2) control the capacity margin during rolling task replacement. Which TWO AWS actions satisfy these requirements? Choose TWO.

  1. Use CodeDeploy Lambda canary deployment with an alias
  2. Attach CodeDeploy deployment alarms for automatic stop or rollback
  3. Set appropriate ECS deployment minimum healthy percent and maximum percent
  4. Use an Auto Scaling lifecycle hook to finish instance initialization before InService
  5. Apply Kubernetes readiness probes before routing traffic to EKS pods
  6. Choose a supported ECS canary traffic-shift configuration

Explanation

Correct Answers

A:

CodeDeploy can update Lambda alias traffic weights using canary configurations; this fulfills the stated requirement to expose a small percentage of Lambda invocations to a new version before full promotion; the operational limitation is that a timed first increment is required before the rest of traffic shifts.

C:

ECS deployment percentages bound the numbers of running and pending tasks during a rolling update; among the listed outcomes, it addresses control the capacity margin during rolling task replacement, rather than merely contributing a related signal or support step; in this design the separate acceptance test is to expose a small percentage of Lambda invocations to a new version before full promotion.

Incorrect Answers

B:

This mechanism supports the ability 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. It would not satisfy a different obligation just by appearing in the same workflow.

D:

An Auto Scaling lifecycle hook can keep instances in a wait state while automation completes initialization; if the requirement were to delay load balancer registration until a new EC2 instance is correctly configured, that would matter. The requested outcomes are separate from the one this option addresses.

E:

Readiness probes control whether pods are considered ready for service endpoint traffic. That would be appropriate to keep requests away from containers until the application is ready, but this is a different objective from the numbered obligations in the stem.

F:

This mechanism supports the ability to send a small fraction of user traffic to a replacement task set before full cutover: canary deployment configurations shift an initial percentage before the remaining cutover. It would not satisfy a different obligation just by appearing in the same workflow.

Question 433

A production ticket contains this symptom: A one-line template change unexpectedly schedules replacement of a database resource. The desired behavior is to review the actual resource mutations before applying a critical IaC patch. What should be fixed?

  1. Use CodeDeploy CloudWatch-alarm integration for automatic deployment rollback
  2. Use a CloudFormation Change Set for emergency infrastructure adjustments
  3. Use an SSM Automation role with a permissions boundary or narrow IAM policy
  4. Require a Systems Manager Change Manager approval for high-risk production automation

Explanation

Correct Answer

B:

CloudFormation Change Sets preview resource actions including potential replacements before execution; it enables the necessary capability to review the actual resource mutations before applying a critical IaC patch rather than only providing an adjacent operational control. The change must be inspectable before stack update execution.

Incorrect Answers

A:

That service solves a different operating problem: the need to reverse a release that triggers the defined customer error alarm; its behavior is that CodeDeploy can stop and roll back eligible deployments when configured CloudWatch alarms enter ALARM; the requested outcome remains review the actual resource mutations before applying a critical IaC patch.

C:

Dedicated execution roles and least-privilege policies bound the authority of automated changes; this is a reasonable option when the requirement is to limit the changes an automated incident runbook can make, but it operates at a different workflow boundary from the stated need to review the actual resource mutations before applying a critical IaC patch.

D:

Choosing this would aim to review a sensitive operational change before executing its runbook instead of review the actual resource mutations before applying a critical IaC patch. Change Manager supports governed change requests and approval workflows for operations; it cannot replace the mechanism specified by the incident evidence.

Question 434

The architecture record specifies: Use an AWS Config managed rule to detect a specific resource misconfiguration. To support the goal to identify noncompliant resources without depending on log-string alerts, which consideration should the engineer validate?

  1. The system must evaluate resource configuration against a known rule
  2. The remediation action needs authorized and bounded automated permissions
  3. The target needs an appropriate invocation role and bounded event selection
  4. The system needs per-contributor rankings from a suitable input data source

Explanation

Correct Answer

A:

The system must evaluate resource configuration against a known rule. Without this, choosing the named service is not enough to produce the promised outcome; config rules assess supported resource settings and publish compliant or noncompliant evaluations.

Incorrect Answers

B:

This proposed constraint belongs to a separate objective: the remediation action needs authorized and bounded automated permissions. The corresponding goal is to correct an eligible configuration violation soon after detection, not the selected architecture's goal to identify noncompliant resources without depending on log-string alerts.

C:

This condition governs the different mechanism used to launch a defined remediation runbook when a matching service event occurs. EventBridge can invoke supported Systems Manager Automation runbooks from matching events. For the selected control, the relevant boundary is instead that the system must evaluate resource configuration against a known rule.

D:

Contributor Insights rules analyze supported log or metric inputs to identify top contributing entities; its own dependency is that the system needs per-contributor rankings from a suitable input data source; those details concern the separate objective of being able to identify the top contributors to a metric or structured log workload, rather than to the named control required to identify noncompliant resources without depending on log-string alerts.

Question 435

A security change request has linked acceptance tests: the system must prove whether delivered trail log objects have been tampered with, and it must attribute reads or deletes of sensitive bucket objects to a principal. Which two controls should the engineers combine?

  1. Use AWS WAF logging to analyze blocked HTTP requests; route GuardDuty findings through EventBridge to a security workflow
  2. Enable CloudTrail log file integrity validation and validate digest signatures; enable CloudTrail data events for selected S3 object operations
  3. Use IAM credential reports and access-key last-used data for periodic access review; enable CloudTrail data events for selected S3 object operations
  4. Enable CloudTrail log file integrity validation and validate digest signatures; use Security Hub automation rules for finding-state prioritization

Explanation

Correct Answer

B:

CloudTrail integrity validation supports cryptographic verification of delivered log file digests; CloudTrail data event selectors record eligible object-level activity beyond management events. The first control satisfies the need to prove whether delivered trail log objects have been tampered with; the second addresses the need to attribute reads or deletes of sensitive bucket objects to a principal. Integrity verification must use signed digest files, not only S3 checksums; event selection must include the specific bucket data-plane API activity.

Incorrect Answers

A:

Neither control directly supplies both requested behaviors. AWS WAF logs contain supported request and rule evaluation information for configured web ACLs; GuardDuty emits supported findings to EventBridge for targeted notification and automation. Those mechanisms address different objectives. The specified capabilities are to prove whether delivered trail log objects have been tampered with and to attribute reads or deletes of sensitive bucket objects to a principal.

C:

This combination solves only the latter acceptance test. The substituted first control supports identify aging IAM user credentials that require rotation or removal: IAM credential reports and access-key usage metadata support audits of IAM user authentication materials. It does not implement prove whether delivered trail log objects have been tampered with.

D:

The first half is appropriate: CloudTrail integrity validation supports cryptographic verification of delivered log file digests. However, Security Hub automation rules can update selected finding fields when findings match configured criteria; that serves a different objective (normalize and triage recurring findings according to defined central criteria) and leaves the explicit need to attribute reads or deletes of sensitive bucket objects to a principal unmet.

Question 436

During root-cause analysis, the team identifies the following: An automated rollback gets AccessDenied and engineers cannot identify the temporary role session. To trace which principal and resource action caused a failed automation request, what should be configured?

  1. Inspect KMS key policies and grants for cross-account decrypt failures
  2. Use CloudTrail events to identify the caller behind an AccessDenied API action
  3. Evaluate resource and identity policies for a cross-account S3 artifact read
  4. Inspect CodePipeline stage and action execution history
  5. Inspect CloudFormation stack events for the first failed resource

Explanation

Correct Answer

B:

CloudTrail supported management events can show the assumed role, action, and error context; that directly addresses the observed failure in the scenario. The configuration still has to respect this constraint: the audit must distinguish caller identity, API action, and request context.

Incorrect Answers

A:

Choosing this would aim to diagnose artifact decryption failure after S3 object access succeeds instead of trace which principal and resource action caused a failed automation request; customer managed KMS key policies and principal permissions govern who may decrypt encrypted artifacts; it cannot replace the mechanism specified by the incident evidence.

C:

Cross-account S3 access can require compatible IAM and resource policy permissions for the object; this can help teams diagnose a deployment that can assume a role but cannot fetch its release bundle, but the reported workflow needs to trace which principal and resource action caused a failed automation request. It does not perform that required function.

D:

That service solves a different operating problem: the need to find which pipeline action failed and review its detailed external execution link; its behavior is that CodePipeline records stage and action execution statuses and detailed links for troubleshooting; the requested outcome remains trace which principal and resource action caused a failed automation request.

E:

The choice is useful when engineers need to identify the underlying resource error that triggered a stack rollback: CloudFormation stack events show per-resource transitions and service error messages. It would not establish the control needed to trace which principal and resource action caused a failed automation request.

Question 437

An incident record says: An urgent configuration check requires manually connecting to hundreds of EC2 instances. To restore the capability to run a one-time script against a tagged fleet without SSH access, which change addresses the root cause?

  1. Use Systems Manager Automation assumeRole for scoped API execution
  2. Use Systems Manager Automation runbooks for multi-step operational remediation
  3. Use Systems Manager Run Command for scoped remote command execution
  4. Use Systems Manager Maintenance Windows for scheduled fleet operations

Explanation

Correct Answer

C:

Run Command dispatches supported command documents to selected managed nodes and records execution results; it enables the necessary capability to run a one-time script against a tagged fleet without SSH access rather than only providing an adjacent operational control. Targets need SSM connectivity and permissions rather than inbound administrative ports.

Incorrect Answers

A:

Although automation can assume an assigned IAM role to run documented steps with explicit API permissions, the scenario does not ask for run an approved automation document under a dedicated role rather than a user's permissions; it requires the ability to run a one-time script against a tagged fleet without SSH access, which is a separate responsibility.

B:

Automation runbooks execute structured steps and AWS service operations with defined permissions; this can help teams combine approvals, API actions, branching, and rollback-aware tasks in a repeatable runbook, but the reported workflow needs to run a one-time script against a tagged fleet without SSH access. It does not perform that required function.

D:

The choice is useful when engineers need to run approved node maintenance tasks during designated service windows: maintenance Windows schedule supported tasks against registered targets at specified times. It would not establish the control needed to run a one-time script against a tagged fleet without SSH access.

Question 438

An AWS design review will approve a solution only if it meets these criteria: (1) diagnose Kubernetes scheduling constraints rather than application code failure; (2) explain missing API responses from a new Lambda deployment; (3) trace which principal and resource action caused a failed automation request. Select the THREE needed changes. Choose THREE.

  1. Inspect DynamoDB throttling and consumed capacity metrics
  2. Inspect RDS failover events and connection retry handling
  3. Inspect EKS pod events and describe output for Pending pods
  4. Inspect Lambda CloudWatch logs for timeout and initialization errors
  5. Use CloudTrail events to identify the caller behind an AccessDenied API action
  6. Check Auto Scaling scaling activities and launch failures

Explanation

Correct Answers

C:

Kubernetes scheduling events explain why pending pods cannot be assigned to nodes. This fulfills the stated requirement to diagnose Kubernetes scheduling constraints rather than application code failure. The operational limitation is that cluster capacity, taints, and resource requests must be reviewed before restarting pods.

D:

The corresponding obligation is to explain missing API responses from a new Lambda deployment. Lambda logs include invocation results, duration, timeout messages, and runtime failures; that behavior is the reason this action belongs in the selected answer set.

E:

CloudTrail supported management events can show the assumed role, action, and error context. Among the listed outcomes, it addresses trace which principal and resource action caused a failed automation request, rather than merely contributing a related signal or support step.

Incorrect Answers

A:

It supports a separate administrative task, namely to determine whether database request limits cause application retry storms. DynamoDB metrics identify throttled reads and writes and provisioned or consumed capacity behavior; the prompt's required outcomes are not achieved by substituting this control.

B:

RDS event timelines and application connection behavior help diagnose managed failover recovery; if the requirement were to explain a brief application database interruption after a Multi-AZ failover, that would matter; the requested outcomes are separate from the one this option addresses; the specified requirement instead is to diagnose Kubernetes scheduling constraints rather than application code failure.

F:

Auto Scaling activity history records scaling requests and instance launch or health-related failures; if the requirement were to discover why an EC2 fleet fails to add replacement capacity, that would matter. The requested outcomes are separate from the one this option addresses.

Question 439

An automated check detects: An account-specific AWS Health event is visible in the console but misses the operations channel. Which remediation directly supports the requirement to notify the operations account when an AWS service issue affects the workload?

  1. Use EventBridge rules to route AWS Health account events to response automation
  2. Use an ALB target group health check for backend service readiness
  3. Use a CloudWatch alarm action for supported EC2 automatic recovery
  4. Configure CloudWatch alarm notifications through an SNS topic
  5. Configure an EventBridge rule with an SSM Automation target

Explanation

Correct Answer

A:

EventBridge receives supported AWS Health events and routes matching events to configured targets; it enables the necessary capability to notify the operations account when an AWS service issue affects the workload rather than only providing an adjacent operational control. The rule must match the relevant event type and route only useful events.

Incorrect Answers

B:

The choice is useful when engineers need to exclude backend nodes that cannot serve required application requests: ALB target groups mark eligible targets unhealthy and exclude them from normal request routing; it would not establish the control needed to notify the operations account when an AWS service issue affects the workload.

C:

Supported CloudWatch alarm actions can request EC2 instance recovery for qualifying status-check failures; this is a reasonable option when the requirement is to recover an eligible impaired instance when a system-status check indicates host failure, but it operates at a different workflow boundary from the stated need to notify the operations account when an AWS service issue affects the workload.

D:

Choosing this would aim to notify multiple responder endpoints when a service metric breaches its threshold instead of notify the operations account when an AWS service issue affects the workload. CloudWatch alarms can publish state-change notifications to SNS topics and subscribed endpoints; it cannot replace the mechanism specified by the incident evidence.

E:

Although EventBridge can invoke supported Systems Manager Automation runbooks from matching events, the scenario does not ask for launch a defined remediation runbook when a matching service event occurs. It requires the ability to notify the operations account when an AWS service issue affects the workload, which is a separate responsibility.

Question 440

A release design adopts this mechanism: Use EC2 Auto Scaling health replacement for unhealthy fleet members. Which implementation detail is most relevant to its proposed use to automatically replace failed instances without requiring manual restarts?

  1. The fleet must converge through controlled replacement rather than only updating the template
  2. Instance health evaluation must drive desired-capacity reconciliation
  3. The automation must be constrained to the exact API actions and resources it repairs
  4. Health alarms should be linked to staged rollout and rollback criteria

Explanation

Correct Answer

B:

The requested behavior is to automatically replace failed instances without requiring manual restarts, and instance health evaluation must drive desired-capacity reconciliation. The underlying AWS behavior is that EC2 Auto Scaling can terminate and replace unhealthy instances to meet desired capacity.

Incorrect Answers

A:

This condition governs the different mechanism used to roll out a corrected launch template to already-running fleet instances; instance refresh gradually replaces existing Auto Scaling instances according to updated configuration; for the selected control, the relevant boundary is instead that instance health evaluation must drive desired-capacity reconciliation.

C:

The proposed condition makes sense in an implementation designed to limit the changes an automated incident runbook can make; it concerns dedicated execution roles and least-privilege policies bound the authority of automated changes, whereas this question tests the prerequisite of the named control.

D:

This proposed constraint belongs to a separate objective: health alarms should be linked to staged rollout and rollback criteria; the corresponding goal is to revert a dynamic feature flag after application health degrades, not the selected architecture's goal to automatically replace failed instances without requiring manual restarts.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests