Question 360

An engineer will implement the following change: Use AWS Global Accelerator with healthy regional endpoint groups. Which operational boundary most directly applies to the intended outcome to provide static anycast entry points and health-aware regional application routing?

  1. The front door should retain stable global IPs while adjusting endpoint routing
  2. The design must reconcile multi-Region replicated changes rather than use a read-only replica
  3. Application sessions must survive instance replacement and Availability Zone movement
  4. A planned regional recovery strategy must account for replication lag and switchover behavior

Explanation

Correct Answer

A:

The front door should retain stable global IPs while adjusting endpoint routing. That is the governing deployment boundary for the selected control: global Accelerator routes TCP or UDP traffic through static anycast addresses to healthy configured endpoints. If the boundary is missed, the design can fail to provide static anycast entry points and health-aware regional application routing.

Incorrect Answers

B:

DynamoDB global tables replicate data among participating Regions and support multi-Region writes; its own dependency is that the design must reconcile multi-Region replicated changes rather than use a read-only replica; those details concern the separate objective of being able to allow application writes in more than one AWS Region with replication, rather than to the named control required to provide static anycast entry points and health-aware regional application routing.

C:

The proposed condition makes sense in an implementation designed to allow requests to move among instances without losing user session context; it concerns externalizing session data removes per-instance affinity as a correctness requirement for request handling, whereas this question tests the prerequisite of the named control; the specified requirement instead is to provide static anycast entry points and health-aware regional application routing.

D:

This proposed constraint belongs to a separate objective: a planned regional recovery strategy must account for replication lag and switchover behavior. The corresponding goal is to provide low-latency cross-Region database reads and a regional recovery path, not the selected architecture's goal to provide static anycast entry points and health-aware regional application routing.

Question 361

During root-cause analysis, the team identifies the following: Different teams copy installation files manually and cannot track published package versions. To publish an internal agent package and distribute it to managed nodes, what should be configured?

  1. Use Systems Manager Inventory to collect managed-node software metadata
  2. Use Systems Manager Distributor for controlled software-package deployment
  3. Use State Manager to enforce a recurring configuration association
  4. Attach an SSM Automation remediation action to an AWS Config rule

Explanation

Correct Answer

B:

Distributor manages software packages that can be installed or updated through Systems Manager workflows; that directly addresses the observed failure in the scenario. The configuration still has to respect this constraint: agent distribution must use managed package versions and installation commands.

Incorrect Answers

A:

That service solves a different operating problem: the need to report installed applications and instance configuration across the managed fleet. Its behavior is that Systems Manager Inventory collects supported software and configuration metadata for fleet reporting. The requested outcome remains publish an internal agent package and distribute it to managed nodes.

C:

State Manager associations run specified documents against targets according to defined schedules; this is a reasonable option when the requirement is to reapply a required host configuration whenever nodes drift, but it operates at a different workflow boundary from the stated need to publish an internal agent package and distribute it to managed nodes.

D:

Choosing this would aim to remediate eligible noncompliant resources using a controlled runbook instead of publish an internal agent package and distribute it to managed nodes. Config remediation configurations can invoke Systems Manager Automation documents for matching findings; it cannot replace the mechanism specified by the incident evidence.

Question 362

Investigators observe: A single SQS queue allows only one consumer group to receive each incident message. Engineers still need to deliver each incident notification to separate durable processing teams. Which corrective action is most appropriate?

  1. Use an SNS topic with independent SQS subscriptions for event fan-out
  2. Use an SQS redrive policy and dead-letter queue for failed events
  3. Use SQS visibility timeouts aligned to consumer processing
  4. Use Kinesis Data Streams for ordered partition-based event processing
  5. Use AWS Health events through EventBridge for account-impact notifications

Explanation

Correct Answer

A:

SNS fan-out to multiple SQS queues gives each subscribed queue an independent message stream; that directly addresses the observed failure in the scenario. The configuration still has to respect this constraint: every subscribed processing system needs its own durable copy of the event.

Incorrect Answers

B:

An SQS redrive policy sends messages to a DLQ after the receive count exceeds its threshold. This is a reasonable option when the requirement is to isolate repeatedly unprocessable events without blocking successful work, but it operates at a different workflow boundary from the stated need to deliver each incident notification to separate durable processing teams.

C:

Choosing this would aim to prevent a valid long-running worker task from being processed concurrently instead of deliver each incident notification to separate durable processing teams. SQS visibility timeouts temporarily hide received messages until deletion or timeout expiration; it cannot replace the mechanism specified by the incident evidence.

D:

Although Kinesis Data Streams partitions records by key and retains them for consumers to read over time, the scenario does not ask for ingest a high-volume event stream with multiple independently scaled consumers. It requires the ability to deliver each incident notification to separate durable processing teams, which is a separate responsibility.

E:

Supported AWS Health events appear on EventBridge and can trigger notification or workflows. This can help teams initiate targeted response to an AWS-managed service event affecting the account, but the reported workflow needs to deliver each incident notification to separate durable processing teams. It does not perform that required function.

Question 363

An engineer will implement the following change: Use IAM ABAC conditions based on principal and resource tags. Which operational boundary most directly applies to the intended outcome to grant access to project-matching resources without enumerating every resource ARN?

  1. Certificate trust anchors and profile scopes must be explicitly managed
  2. Human credentials need additional authentication safeguards beyond a static password
  3. Trusted principal tags and resource tags must use consistent authorized values
  4. The assumed session must not gain permissions beyond the base role

Explanation

Correct Answer

C:

The requested behavior is to grant access to project-matching resources without enumerating every resource ARN, and trusted principal tags and resource tags must use consistent authorized values. The underlying AWS behavior is that attribute-based access control evaluates policy conditions using attributes such as tags.

Incorrect Answers

A:

This proposed constraint belongs to a separate objective: certificate trust anchors and profile scopes must be explicitly managed; the corresponding goal is to provide temporary AWS credentials to on-premises workloads without storing IAM user keys, not the selected architecture's goal to grant access to project-matching resources without enumerating every resource ARN.

B:

This condition governs the different mechanism used to add possession-based verification to administrator authentication. MFA adds a second factor and can be required through identity provider settings or IAM policy conditions; for the selected control, the relevant boundary is instead that trusted principal tags and resource tags must use consistent authorized values.

D:

The proposed condition makes sense in an implementation designed to further limit temporary role credentials to the resources needed by one execution. It concerns STS session policies intersect with the role's permissions to further restrict an assumed-role session, whereas this question tests the prerequisite of the named control.

Question 364

One team is accountable for the AWS workflow to integrate governed account provisioning with existing Terraform-based request automation. A second acceptance condition requires it to create new workload accounts with standardized landing-zone controls. Which combination should be approved?

  1. Use IAM Identity Center permission sets for federated workforce access; use AWS Control Tower Account Factory to provision governed accounts
  2. Use Control Tower Account Factory for Terraform where supported by the enterprise workflow; use AWS Backup policies through Organizations for supported centralized plans
  3. Use cross-account STS AssumeRole for automated administration; use centralized VPC Flow Logs delivery to an approved log destination
  4. Use Control Tower Account Factory for Terraform where supported by the enterprise workflow; use AWS Organizations CreateAccount automation for programmatic member creation
  5. Use Control Tower Account Factory for Terraform where supported by the enterprise workflow; use AWS Control Tower Account Factory to provision governed accounts

Explanation

Correct Answer

E:

Account Factory for Terraform integrates account-vending workflows with Control Tower governance; account Factory provisions accounts under a landing-zone structure using configured account baselines. The first control satisfies the need to integrate governed account provisioning with existing Terraform-based request automation; the second addresses the need to create new workload accounts with standardized landing-zone controls. Accounts should remain enrolled in approved landing-zone controls; provisioning must follow the organization's Control Tower governance model.

Incorrect Answers

A:

This combination solves only the latter acceptance test. The substituted first control supports assign consistent workforce roles to many accounts through one identity portal: IAM Identity Center permission sets provision corresponding account roles for entitled users or groups. It does not implement integrate governed account provisioning with existing Terraform-based request automation.

B:

The first half is appropriate: Account Factory for Terraform integrates account-vending workflows with Control Tower governance. However, organizations backup policies help coordinate AWS Backup plans and selections across member accounts; that serves a different objective (distribute common backup policy requirements to eligible member accounts) and leaves the explicit need to create new workload accounts with standardized landing-zone controls unmet.

C:

These are legitimate AWS controls for different outcomes: STS AssumeRole returns temporary credentials for a trusted role whose permissions constrain the session, whereas VPC Flow Logs capture metadata for selected interfaces, subnets, or VPCs and deliver to supported destinations. The problem instead requires the ability to integrate governed account provisioning with existing Terraform-based request automation and to create new workload accounts with standardized landing-zone controls.

D:

Combining a suitable first control with this second one misses the secondary acceptance criterion; organizations supports asynchronous member account creation through its account APIs; it helps automate account creation and consolidate billing within an organization rather than create new workload accounts with standardized landing-zone controls.

Question 365

An internal reliability review requests these controls: (1) avoid distributing durable access keys for central administration in member accounts; (2) provide temporary AWS credentials to on-premises workloads without storing IAM user keys. Which TWO proposed actions belong in the implementation? Choose TWO.

  1. Use an IAM role with STS temporary credentials for cross-account operations
  2. Use session policies when assuming a role for a narrowly scoped job
  3. Use a resource-based policy on an S3 bucket for a cross-account principal
  4. Use IAM Roles Anywhere for eligible external workloads with X.509 identities
  5. Use IAM Identity Center with an external identity provider federation

Explanation

Correct Answers

A:

The corresponding obligation is to avoid distributing durable access keys for central administration in member accounts. STS AssumeRole issues expiring credentials for a trusted role rather than persistent user secrets; that behavior is the reason this action belongs in the selected answer set.

D:

IAM Roles Anywhere uses trusted X.509 certificates to obtain temporary role credentials for external workloads; this fulfills the stated requirement to provide temporary AWS credentials to on-premises workloads without storing IAM user keys. The operational limitation is that certificate trust anchors and profile scopes must be explicitly managed.

Incorrect Answers

B:

It supports a separate administrative task, namely to further limit temporary role credentials to the resources needed by one execution. STS session policies intersect with the role's permissions to further restrict an assumed-role session; the prompt's required outcomes are not achieved by substituting this control.

C:

An S3 bucket policy can grant a specified external principal access to selected object ARNs. If the requirement were to authorize a designated external role to access a narrow set of objects, that would matter. The requested outcomes are separate from the one this option addresses.

E:

This mechanism supports the ability to centralize workforce lifecycle while retaining the corporate identity provider: IAM Identity Center integrates with supported identity providers for federated workforce access. It would not satisfy a different obligation just by appearing in the same workflow.

Question 366

During the rollout of a governed environment, engineers are required to roll out a changed container image while retaining the previous task definition and, separately, automatically restore an earlier task deployment after a rolling deployment cannot stabilize. Which combination meets the specification?

  1. Choose a supported ECS canary traffic-shift configuration; configure ECS service deployment circuit breaker and rollback
  2. Use an ECS deployment with a new immutable task definition revision; set appropriate ECS deployment minimum healthy percent and maximum percent
  3. Use immutable AMI replacement through an Auto Scaling instance refresh; set termination wait time for a CodeDeploy ECS blue/green deployment
  4. Use an ECS deployment with a new immutable task definition revision; use an appspec.yml to define CodeDeploy instance hooks
  5. Use an ECS deployment with a new immutable task definition revision; configure ECS service deployment circuit breaker and rollback

Explanation

Correct Answer

E:

For the requirement to roll out a changed container image while retaining the previous task definition, an ECS service update selects a task definition revision and schedules replacement tasks to converge to it. For the requirement to automatically restore an earlier task deployment after a rolling deployment cannot stabilize, the ECS deployment circuit breaker can mark rolling deployments failed and roll back to a prior completed deployment; both mechanisms are necessary; implementing only the first would leave the second unsatisfied.

Incorrect Answers

A:

Canary deployment configurations shift an initial percentage before the remaining cutover. That is intended to send a small fraction of user traffic to a replacement task set before full cutover, not to roll out a changed container image while retaining the previous task definition. The second half can meet the requirement to automatically restore an earlier task deployment after a rolling deployment cannot stabilize, but the first is still missing.

B:

ECS deployment percentages bound the numbers of running and pending tasks during a rolling update; that alternative supports the ability to control the capacity margin during rolling task replacement, but it is not the requested second outcome (automatically restore an earlier task deployment after a rolling deployment cannot stabilize). Even though the first half addresses roll out a changed container image while retaining the previous task definition, this pair is incomplete.

C:

The pair changes the problem instead of completing it. One option addresses replace outdated instances with a tested image instead of mutating running systems; the other addresses retain the old ECS task set temporarily for rollback after traffic rerouting. The release, however, needs to roll out a changed container image while retaining the previous task definition as well as automatically restore an earlier task deployment after a rolling deployment cannot stabilize.

D:

The first half is appropriate: An ECS service update selects a task definition revision and schedules replacement tasks to converge to it. However, an AppSpec file maps application files and lifecycle event hooks for EC2 deployments; that serves a different objective (execute controlled install and validation scripts during an EC2 deployment) and leaves the explicit need to automatically restore an earlier task deployment after a rolling deployment cannot stabilize unmet.

Question 367

After a configuration change, the production support team sees this issue: A singleton EC2 instance becomes impaired due to underlying host issues and no recovery action occurs. What best restores the ability to recover an eligible impaired instance when a system-status check indicates host failure?

  1. Configure an EventBridge rule with an SSM Automation target
  2. Use EventBridge input transformation before notifying an operations target
  3. Use a CloudWatch alarm action for supported EC2 automatic recovery
  4. Use EventBridge rules to route AWS Health account events to response automation
  5. Use CloudWatch alarm actions to invoke supported Auto Scaling policies

Explanation

Correct Answer

C:

Supported CloudWatch alarm actions can request EC2 instance recovery for qualifying status-check failures; it enables the necessary capability to recover an eligible impaired instance when a system-status check indicates host failure rather than only providing an adjacent operational control. The target instance and alarm must meet EC2 recovery requirements.

Incorrect Answers

A:

That service solves a different operating problem: the need to launch a defined remediation runbook when a matching service event occurs. Its behavior is that EventBridge can invoke supported Systems Manager Automation runbooks from matching events. The requested outcome remains recover an eligible impaired instance when a system-status check indicates host failure.

B:

The choice is useful when engineers need to send only relevant event details to responders rather than an entire event payload: EventBridge input transformers construct custom target payloads from matched event fields. It would not establish the control needed to recover an eligible impaired instance when a system-status check indicates host failure.

D:

Choosing this would aim to notify the operations account when an AWS service issue affects the workload instead of recover an eligible impaired instance when a system-status check indicates host failure; EventBridge receives supported AWS Health events and routes matching events to configured targets; it cannot replace the mechanism specified by the incident evidence.

E:

Although step or simple scaling policies can be driven by CloudWatch alarm transitions, the scenario does not ask for adjust worker fleet capacity when a workload metric crosses a defined level; it requires the ability to recover an eligible impaired instance when a system-status check indicates host failure, which is a separate responsibility.

Question 368

A release design adopts this mechanism: Evaluate resource and identity policies for a cross-account S3 artifact read. Which implementation detail is most relevant to its proposed use to diagnose a deployment that can assume a role but cannot fetch its release bundle?

  1. The audit must distinguish caller identity, API action, and request context
  2. The target port, route, response code, and health thresholds need verification
  3. The authorization path must include both principal permissions and bucket resource policy
  4. Decryption authorization must be separate from S3 GetObject permission
  5. Cluster capacity, taints, and resource requests must be reviewed before restarting pods
  6. The first CREATE_FAILED or UPDATE_FAILED event is more informative than later rollback messages

Explanation

Correct Answer

C:

The authorization path must include both principal permissions and bucket resource policy. Without this, choosing the named service is not enough to produce the promised outcome; cross-account S3 access can require compatible IAM and resource policy permissions for the object.

Incorrect Answers

A:

This condition governs the different mechanism used 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; for the selected control, the relevant boundary is instead that the authorization path must include both principal permissions and bucket resource policy.

B:

ALB target-group status reason codes and health settings show why endpoints fail checks. Its own dependency is that the target port, route, response code, and health thresholds need verification; those details concern the separate objective of being able to diagnose why valid backend instances receive no load balancer traffic, rather than to the named control required to diagnose a deployment that can assume a role but cannot fetch its release bundle.

D:

This proposed constraint belongs to a separate objective: decryption authorization must be separate from S3 GetObject permission. The corresponding goal is to diagnose artifact decryption failure after S3 object access succeeds, not the selected architecture's goal to diagnose a deployment that can assume a role but cannot fetch its release bundle.

E:

This condition governs the different mechanism used to diagnose Kubernetes scheduling constraints rather than application code failure. Kubernetes scheduling events explain why pending pods cannot be assigned to nodes; for the selected control, the relevant boundary is instead that the authorization path must include both principal permissions and bucket resource policy.

F:

CloudFormation stack events show per-resource transitions and service error messages. Its own dependency is that the first CREATE_FAILED or UPDATE_FAILED event is more informative than later rollback messages; those details concern the separate objective of being able to identify the underlying resource error that triggered a stack rollback, rather than to the named control required to diagnose a deployment that can assume a role but cannot fetch its release bundle.

Question 369

After a configuration change, the infrastructure automation group sees this issue: A trail records bucket policy changes but not object reads performed by a suspicious principal. What best restores the ability to record relevant object-level API activity rather than only account management events?

  1. Publish application logs in structured JSON with stable correlation identifiers
  2. Configure CloudWatch metric filters for structured application log events
  3. Configure CloudTrail data events for selected sensitive S3 buckets
  4. Enable CloudTrail log file integrity validation for audit log chains

Explanation

Correct Answer

C:

To record relevant object-level API activity rather than only account management events, the architecture relies on this AWS behavior: CloudTrail data events capture selected data-plane operations, such as S3 object API calls. The event selectors should limit costly high-volume events to in-scope resources.

Incorrect Answers

A:

Structured log fields and propagated request IDs enable targeted multi-service incident investigation; this is a reasonable option when the requirement is to correlate requests across independent container services in a central log search, but it operates at a different workflow boundary from the stated need to record relevant object-level API activity rather than only account management events.

B:

Choosing this would aim to count specific error patterns without changing application metric instrumentation instead of record relevant object-level API activity rather than only account management events. Metric filters evaluate incoming CloudWatch Logs records and emit metrics for matching patterns; it cannot replace the mechanism specified by the incident evidence.

D:

CloudTrail log file integrity validation delivers digest files that can verify delivered logs. This can help teams detect tampering with delivered CloudTrail log files, but the reported workflow needs to record relevant object-level API activity rather than only account management events. It does not perform that required function.

Question 370

An engineer is addressing a two-part delivery requirement: stop a pipeline build action when the test runner detects a regression, without losing the ability to fail a promotion flow based on smoke-test results for the deployed service. Which set of actions is suitable?

  1. Return a nonzero exit code when a blocking automated test fails; run unit tests in the first CodeBuild stage before packaging
  2. Return a nonzero exit code when a blocking automated test fails; use a CodePipeline test action after deployment to staging
  3. Run dependency and container image scanning before artifact promotion; use AWS IAM policy evaluation tests for deployment-role assumptions
  4. Use AWS Fault Injection Service in a controlled resilience test; use a CodePipeline test action after deployment to staging

Explanation

Correct Answer

B:

CodeBuild determines command success from process exit status unless buildspec failure handling overrides it; this handles the first acceptance condition, subject to the boundary that later deployment stages must not run after a failing quality gate. The remaining condition is handled separately: a pipeline test action turns post-deployment health verification into an enforceable promotion gate, with the test stage must consume the staged endpoint and block the next stage if it fails.

Incorrect Answers

A:

Combining a suitable first control with this second one misses the secondary acceptance criterion; unit tests in an early build action reduce feedback latency and stop faulty revisions before expensive stages; it helps reject code-level regressions rapidly before creating production artifacts rather than fail a promotion flow based on smoke-test results for the deployed service.

C:

These are legitimate AWS controls for different outcomes: an automated scanning gate blocks releases when risk findings breach the defined security policy, whereas IAM policy simulation and access analysis can help test whether planned principal actions are allowed. The problem instead requires the ability to stop a pipeline build action when the test runner detects a regression and to fail a promotion flow based on smoke-test results for the deployed service.

D:

This combination solves only the latter acceptance test. The substituted first control supports validate that a multi-AZ application survives a deliberately introduced infrastructure fault: fault Injection Service can inject supported disruptions so teams can measure actual resilience behavior; it does not implement stop a pipeline build action when the test runner detects a regression.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests