Question 240

The next AWS platform release needs to revert a dynamic feature flag after application health degrades while also being able to reverse a release that triggers the defined customer error alarm. Which pairing best supports that release?

  1. Use an AWS AppConfig deployment strategy with automatic rollback alarms; apply CloudFormation drift remediation through a reviewed template update
  2. Use State Manager associations to prevent recurring OS configuration drift; use CodeDeploy CloudWatch-alarm integration for automatic deployment rollback
  3. Use an AWS AppConfig deployment strategy with automatic rollback alarms; use CodeDeploy CloudWatch-alarm integration for automatic deployment rollback
  4. Configure an EventBridge-triggered Lambda to quarantine a newly exposed resource; require a Systems Manager Change Manager approval for high-risk production automation

Explanation

Correct Answer

C:

For the requirement to revert a dynamic feature flag after application health degrades, AppConfig can roll back a configuration deployment when monitored CloudWatch alarms indicate failure. For the requirement to reverse a release that triggers the defined customer error alarm, CodeDeploy can stop and roll back eligible deployments when configured CloudWatch alarms enter ALARM. Both mechanisms are necessary; implementing only the first would leave the second unsatisfied.

Incorrect Answers

A:

The first half is appropriate: AppConfig can roll back a configuration deployment when monitored CloudWatch alarms indicate failure. However, a reviewed stack update can bring supported drifted resources back toward declared template state; that serves a different objective (restore a resource's intended IaC state after manual infrastructure changes) and leaves the explicit need to reverse a release that triggers the defined customer error alarm unmet.

B:

The second implementation is relevant; the problem is the first. State Manager continuously applies declared configurations to matching managed instances. It can help restore approved daemon settings when a node falls out of compliance, whereas the stated first requirement is to revert a dynamic feature flag after application health degrades.

D:

Neither control directly supplies both requested behaviors. EventBridge invokes a Lambda target whose code can apply scoped AWS API changes when a rule matches; change Manager supports governed change requests and approval workflows for operations. Those mechanisms address different objectives. The specified capabilities are to revert a dynamic feature flag after application health degrades and to reverse a release that triggers the defined customer error alarm.

Question 241

A reliability change request has linked acceptance tests: the system must replace failed web hosts and distribute capacity across Availability Zones, and it must provide automatic database failover after a primary Availability Zone outage. Which two controls should the engineers combine?

  1. Use CloudFront origins with origin failover for eligible requests; configure DynamoDB global tables for multi-Region active-active access
  2. Enable ALB target-group health checks with a representative health path; enable Amazon RDS Multi-AZ high availability for a supported DB engine
  3. Use a multi-AZ EC2 Auto Scaling group behind a target group; use Route 53 latency routing for healthy regional endpoints
  4. Use a multi-AZ EC2 Auto Scaling group behind a target group; enable Amazon RDS Multi-AZ high availability for a supported DB engine

Explanation

Correct Answer

D:

EC2 Auto Scaling manages desired instances across configured subnets and uses health checks for replacement; RDS Multi-AZ deployments maintain a standby or multi-instance arrangement for managed failover. The first control satisfies the need to replace failed web hosts and distribute capacity across Availability Zones; the second addresses the need to provide automatic database failover after a primary Availability Zone outage. Replacement capacity should be launched automatically in remaining healthy zones; the application should keep using its database endpoint after managed failover.

Incorrect Answers

A:

The pair changes the problem instead of completing it. One option addresses keep cacheable web content reachable if the primary origin fails; the other addresses allow application writes in more than one AWS Region with replication. The release, however, needs to replace failed web hosts and distribute capacity across Availability Zones as well as provide automatic database failover after a primary Availability Zone outage.

B:

Target group health checks determine which registered targets receive load balancer traffic. That is intended to stop sending new traffic to application instances that fail readiness checks, not to replace failed web hosts and distribute capacity across Availability Zones. The second half can meet the requirement to provide automatic database failover after a primary Availability Zone outage, but the first is still missing.

C:

Route 53 latency policies select records based on measured latency among configured Regions. That alternative supports the ability to direct global clients toward the Region with better measured network latency, but it is not the requested second outcome (provide automatic database failover after a primary Availability Zone outage). Even though the first half addresses replace failed web hosts and distribute capacity across Availability Zones, this pair is incomplete.

Question 242

An incident record says: An existing S3 bucket cannot be recreated without disrupting dependent workloads. To restore the capability to bring an already-created resource under stack management without rebuilding it, which change addresses the root cause?

  1. Apply CloudFormation Conditions to optional template resources
  2. Use CloudFormation resource import for supported existing resources
  3. Enable CloudFormation drift detection on supported stack resources
  4. Enable automatic deployment for an OU-targeted CloudFormation StackSet

Explanation

Correct Answer

B:

Resource import associates supported existing resources with logical resources in a stack template; it restores the ability to bring an already-created resource under stack management without rebuilding it, provided the implementation also observes that the migration must preserve the physical resource while creating IaC ownership.

Incorrect Answers

A:

The choice is useful when engineers need to provision a resource only when an environment parameter meets a defined requirement: conditions can determine resource creation and property values based on template parameters and functions. It would not establish the control needed to bring an already-created resource under stack management without rebuilding it.

C:

Choosing this would aim to identify unmanaged configuration changes made outside the IaC deployment instead of bring an already-created resource under stack management without rebuilding it; drift detection compares actual and expected configurations for supported resources and properties; it cannot replace the mechanism specified by the incident evidence.

D:

Although stackSet automatic deployment creates or removes managed instances as accounts move into or out of targeted OUs, the scenario does not ask for apply baseline stacks when new accounts join a targeted organizational unit; it requires the ability to bring an already-created resource under stack management without rebuilding it, which is a separate responsibility.

Question 243

The application owner proposes this implementation: Use Systems Manager Automation runbooks for multi-step operational remediation. Its intended result is to combine approvals, API actions, branching, and rollback-aware tasks in a repeatable runbook. Which implementation consideration is most specific to that choice?

  1. Targets need SSM connectivity and permissions rather than inbound administrative ports
  2. Parallelism must be controlled and failures handled per workflow item
  3. The automation identity must be declared and trusted independently of its triggering user
  4. The workflow needs controlled execution steps and an assumable automation role

Explanation

Correct Answer

D:

The workflow needs controlled execution steps and an assumable automation role. Without this, choosing the named service is not enough to produce the promised outcome; automation runbooks execute structured steps and AWS service operations with defined permissions.

Incorrect Answers

A:

This proposed constraint belongs to a separate objective: targets need SSM connectivity and permissions rather than inbound administrative ports; the corresponding goal is to run a one-time script against a tagged fleet without SSH access, not the selected architecture's goal to combine approvals, API actions, branching, and rollback-aware tasks in a repeatable runbook.

B:

This condition governs the different mechanism used to run a repeatable remediation step against multiple independent work items. Map states can apply a defined workflow to collections with configurable concurrency. For the selected control, the relevant boundary is instead that the workflow needs controlled execution steps and an assumable automation role.

C:

Automation can assume an assigned IAM role to run documented steps with explicit API permissions; its own dependency is that the automation identity must be declared and trusted independently of its triggering user. Those details concern the separate objective of being able to run an approved automation document under a dedicated role rather than a user's permissions, rather than to the named control required to combine approvals, API actions, branching, and rollback-aware tasks in a repeatable runbook.

Question 244

An incident record says: A deployment can't find a private image because its digest is not published in an authorized registry. To restore the capability to store deployable OCI images with private access for ECS workloads, which change addresses the root cause?

  1. Push container images to a private Amazon ECR repository
  2. Publish versioned language dependencies to AWS CodeArtifact
  3. Configure ECR replication to authorized Regions or accounts
  4. Use CodeArtifact upstream repositories for approved external packages

Explanation

Correct Answer

A:

Amazon ECR stores container image manifests and layers in repositories that can enforce permissions; it enables the necessary capability to store deployable OCI images with private access for ECS workloads rather than only providing an adjacent operational control. Image access must use IAM-aware authorization instead of an anonymous public registry.

Incorrect Answers

B:

Although CodeArtifact hosts versioned package repositories with upstream connections and permission policies, the scenario does not ask for centrally share approved Maven or npm packages across build projects. It requires the ability to store deployable OCI images with private access for ECS workloads, which is a separate responsibility.

C:

ECR replication copies matching repository images to configured destination registries and Regions; this can help teams preposition container images in the registries used by regional deployments, but the reported workflow needs to store deployable OCI images with private access for ECS workloads. It does not perform that required function.

D:

That service solves a different operating problem: the need to cache vetted public-package dependencies through the organization's package repository. Its behavior is that CodeArtifact upstream relationships can retrieve dependency versions while concentrating package access management. The requested outcome remains store deployable OCI images with private access for ECS workloads.

Question 245

After a configuration change, the delivery engineering team sees this issue: Staff maintain separate IAM usernames and passwords across all member accounts. What best restores the ability to assign consistent workforce roles to many accounts through one identity portal?

  1. Use AWS Backup policies through Organizations for supported centralized plans
  2. Use IAM Identity Center permission sets for federated workforce access
  3. Attach an Organizations SCP to a production OU
  4. Use cross-account STS AssumeRole for automated administration

Explanation

Correct Answer

B:

To assign consistent workforce roles to many accounts through one identity portal, the architecture relies on this AWS behavior: IAM Identity Center permission sets provision corresponding account roles for entitled users or groups. Human federation and account-level entitlements must be centrally managed.

Incorrect Answers

A:

Although organizations backup policies help coordinate AWS Backup plans and selections across member accounts, the scenario does not ask for distribute common backup policy requirements to eligible member accounts. It requires the ability to assign consistent workforce roles to many accounts through one identity portal, which is a separate responsibility.

C:

That service solves a different operating problem: the need to set a maximum permission boundary for member-account principals; its behavior is that service control policies limit the maximum permissions of affected account principals but do not grant rights; the requested outcome remains assign consistent workforce roles to many accounts through one identity portal.

D:

The choice is useful when engineers need to let central automation perform scoped tasks in governed member accounts: STS AssumeRole returns temporary credentials for a trusted role whose permissions constrain the session. It would not establish the control needed to assign consistent workforce roles to many accounts through one identity portal.

Question 246

A release design adopts this mechanism: Use AWS SAM transform resources for Lambda and API infrastructure. Which implementation detail is most relevant to its proposed use to describe serverless functions and their event sources concisely in an IaC template?

  1. Reviewers must approve a predicted resource change list without executing it
  2. Policy should traverse constructs before the application is synthesized
  3. The deployment must still produce CloudFormation-managed infrastructure
  4. AWS Organizations integration should avoid manually creating cross-account IAM roles

Explanation

Correct Answer

C:

The deployment must still produce CloudFormation-managed infrastructure. That is the governing deployment boundary for the selected control: AWS SAM expands serverless resource declarations into supported CloudFormation resources during transformation. If the boundary is missed, the design can fail to describe serverless functions and their event sources concisely in an IaC template.

Incorrect Answers

A:

The proposed condition makes sense in an implementation designed to inspect the proposed resource replacements and updates before executing infrastructure changes. It concerns a change set previews how CloudFormation intends to modify or replace resources before execution, whereas this question tests the prerequisite of the named control.

B:

This proposed constraint belongs to a separate objective: policy should traverse constructs before the application is synthesized; the corresponding goal is to enforce consistent tagging and validation across an application's CDK construct tree, not the selected architecture's goal to describe serverless functions and their event sources concisely in an IaC template.

D:

Service-managed StackSets use AWS Organizations integration to provision stack instances across eligible accounts; its own dependency is that AWS Organizations integration should avoid manually creating cross-account IAM roles. Those details concern the separate objective of being able to deploy a common baseline across organization accounts and selected Regions, rather than to the named control required to describe serverless functions and their event sources concisely in an IaC template.

Question 247

Two technical outcomes must be delivered together: enforce consistent tagging and validation across an application's CDK construct tree and package a standardized multi-resource infrastructure pattern into application code. Which pair of controls is sufficient for the stated outcomes?

  1. Use CloudFormation StackSets with service-managed permissions; use AWS CloudFormation Change Sets before updating a stack
  2. Use CDK Aspects to apply organization-wide checks or tags to constructs; define an AWS CDK construct for a reusable platform pattern
  3. Use CDK Aspects to apply organization-wide checks or tags to constructs; publish approved infrastructure products through AWS Service Catalog
  4. Use CloudFormation hooks to validate resource configuration during stack operations; define an AWS CDK construct for a reusable platform pattern

Explanation

Correct Answer

B:

CDK Aspects visit construct nodes to apply checks or modifications throughout a CDK application; CDK constructs encapsulate infrastructure resources and synthesize AWS CloudFormation definitions. The first control satisfies the need to enforce consistent tagging and validation across an application's CDK construct tree; the second addresses the need to package a standardized multi-resource infrastructure pattern into application code. Policy should traverse constructs before the application is synthesized; the abstraction must expose typed parameters while synthesizing CloudFormation templates.

Incorrect Answers

A:

The pair changes the problem instead of completing it. One option addresses deploy a common baseline across organization accounts and selected Regions; the other addresses inspect the proposed resource replacements and updates before executing infrastructure changes. The release, however, needs to enforce consistent tagging and validation across an application's CDK construct tree as well as package a standardized multi-resource infrastructure pattern into application code.

C:

Service Catalog portfolios expose governed infrastructure products to authorized consumers. That alternative supports the ability to let application teams self-service compliant infrastructure without broad template authoring access, but it is not the requested second outcome (package a standardized multi-resource infrastructure pattern into application code). Even though the first half addresses enforce consistent tagging and validation across an application's CDK construct tree, this pair is incomplete.

D:

This combination solves only the latter acceptance test. The substituted first control supports intercept stack resource operations that violate central deployment rules: CloudFormation hooks can enforce pre-provisioning or operation-time checks for supported resource types; it does not implement enforce consistent tagging and validation across an application's CDK construct tree.

Question 248

A cross-team infrastructure plan specifies 2 measurable outcomes: (1) identify the first shell command or dependency failure in a failing build; (2) trace which principal and resource action caused a failed automation request. Which TWO solutions address them? Choose TWO.

  1. Inspect X-Ray traces for downstream service latency
  2. Check Auto Scaling scaling activities and launch failures
  3. Review CodeBuild CloudWatch logs and build phase status
  4. Inspect RDS failover events and connection retry handling
  5. Inspect Lambda CloudWatch logs for timeout and initialization errors
  6. Use CloudTrail events to identify the caller behind an AccessDenied API action

Explanation

Correct Answers

C:

CodeBuild build logs and phase contexts expose command errors and environment failures. Among the listed outcomes, it addresses identify the first shell command or dependency failure in a failing build, rather than merely contributing a related signal or support step.

F:

The corresponding obligation is to trace which principal and resource action caused a failed automation request. CloudTrail supported management events can show the assumed role, action, and error context; that behavior is the reason this action belongs in the selected answer set.

Incorrect Answers

A:

X-Ray traces expose service dependencies and timing across instrumented operations. That would be appropriate to find which dependency slows a distributed API request, but this is a different objective from the numbered obligations in the stem.

B:

This mechanism supports the ability to discover why an EC2 fleet fails to add replacement capacity: auto Scaling activity history records scaling requests and instance launch or health-related failures; it would not satisfy a different obligation just by appearing in the same workflow.

D:

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.

E:

Lambda logs include invocation results, duration, timeout messages, and runtime failures. That would be appropriate to explain missing API responses from a new Lambda deployment, but this is a different objective from the numbered obligations in the stem.

Question 249

A release design adopts this mechanism: Run acceptance tests after staging deployment and before approval. Which implementation detail is most relevant to its proposed use to verify business workflows on a deployed candidate before production promotion?

  1. The matrix results must be tied to one reviewable build request
  2. Fast deterministic tests must block downstream promotion when they fail
  3. Release acceptance criteria need a blocking quality gate on a live candidate
  4. The test stage must consume the staged endpoint and block the next stage if it fails

Explanation

Correct Answer

C:

The implementation has to honor the exact constraint: release acceptance criteria need a blocking quality gate on a live candidate; acceptance checks validate end-to-end expected behavior and can fail the pipeline before production.

Incorrect Answers

A:

Batch builds support coordinated multiple build configurations and associated aggregate status; its own dependency is that the matrix results must be tied to one reviewable build request. Those details concern the separate objective of being able to run compatible test variations in parallel and consolidate their outcomes, rather than to the named control required to verify business workflows on a deployed candidate before production promotion.

B:

The proposed condition makes sense in an implementation designed to reject code-level regressions rapidly before creating production artifacts; it concerns unit tests in an early build action reduce feedback latency and stop faulty revisions before expensive stages, whereas this question tests the prerequisite of the named control.

D:

This condition governs the different mechanism used to fail a promotion flow based on smoke-test results for the deployed service; a pipeline test action turns post-deployment health verification into an enforceable promotion gate; for the selected control, the relevant boundary is instead that release acceptance criteria need a blocking quality gate on a live candidate.

Question 250

A technical change review names the selected control as follows: Use EKS IAM Roles for Service Accounts or supported EKS Pod Identity. To grant a Kubernetes workload AWS permissions without using the node IAM role, which constraint must be addressed for this design?

  1. Credentials must rotate automatically and be available through supported instance metadata
  2. The maximum permissions of created roles must be bounded independently of identity policy allows
  3. The database and client must support IAM authentication and TLS requirements
  4. Per-workload identity should restrict permissions to the required AWS APIs

Explanation

Correct Answer

D:

The requested behavior is to grant a Kubernetes workload AWS permissions without using the node IAM role, and per-workload identity should restrict permissions to the required AWS APIs. The underlying AWS behavior is that EKS workload identity mechanisms associate an AWS IAM role with a Kubernetes service account or pod.

Incorrect Answers

A:

The proposed condition makes sense in an implementation designed to give an EC2 application temporary credentials to call an AWS API; it concerns an EC2 instance profile provides temporary role credentials to applications running on the instance, whereas this question tests the prerequisite of the named control.

B:

This proposed constraint belongs to a separate objective: the maximum permissions of created roles must be bounded independently of identity policy allows; the corresponding goal is to allow a development platform team to create roles without granting unlimited privileges, not the selected architecture's goal to grant a Kubernetes workload AWS permissions without using the node IAM role.

C:

This condition governs the different mechanism used to reduce reliance on stored passwords for supported database connections. IAM database authentication generates short-lived authentication tokens for supported RDS database engines; for the selected control, the relevant boundary is instead that per-workload identity should restrict permissions to the required AWS APIs.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests