Question 510

An AWS design review will approve a solution only if it meets these criteria: (1) set a maximum permission boundary for member-account principals; (2) separate development and production accounts into different policy inheritance scopes. Select the TWO needed changes. Choose TWO.

  1. Attach an Organizations SCP to a production OU
  2. Use AWS Backup policies through Organizations for supported centralized plans
  3. Place accounts into purpose-specific organizational units
  4. Use centralized VPC Flow Logs delivery to an approved log destination
  5. Use an S3 bucket policy that denies insecure transport for organization logs
  6. Configure Security Hub organization integration and central settings policies

Explanation

Correct Answers

A:

Service control policies limit the maximum permissions of affected account principals but do not grant rights; among the listed outcomes, it addresses set a maximum permission boundary for member-account principals, rather than merely contributing a related signal or support step.

C:

Organizational units group accounts and establish boundaries for inherited organization policies; this fulfills the stated requirement to separate development and production accounts into different policy inheritance scopes; the operational limitation is that governance must attach to account groups rather than individual IAM users; in this design the separate acceptance test is to set a maximum permission boundary for member-account principals.

Incorrect Answers

B:

Organizations backup policies help coordinate AWS Backup plans and selections across member accounts; if the requirement were to distribute common backup policy requirements to eligible member accounts, that would matter. The requested outcomes are separate from the one this option addresses.

D:

This mechanism supports the ability to collect network flow metadata from selected workload VPCs for audit analysis: VPC Flow Logs capture metadata for selected interfaces, subnets, or VPCs and deliver to supported destinations; it would not satisfy a different obligation just by appearing in the same workflow.

E:

It supports a separate administrative task, namely to prevent log upload and retrieval over unencrypted transport; a bucket policy can deny requests when the aws:SecureTransport context indicates an insecure connection; the prompt's required outcomes are not achieved by substituting this control.

F:

Security Hub central configuration can apply supported policies across an organization hierarchy; if the requirement were to standardize security finding aggregation and enabled standards across accounts, that would matter. The requested outcomes are separate from the one this option addresses.

Question 511

A platform review exposes two requirements in the same release: separate development and production accounts into different policy inheritance scopes; in addition, create new workload accounts with standardized landing-zone controls. Which paired set of AWS controls meets both requirements?

  1. Place accounts into purpose-specific organizational units; use AWS Control Tower Account Factory to provision governed accounts
  2. Place accounts into purpose-specific organizational units; use Organizations tag policies to standardize supported resource tags
  3. Create an organization-wide CloudTrail trail to a protected logging account; use cross-account STS AssumeRole for automated administration
  4. Enable AWS Config aggregators across organization accounts and Regions; use AWS Control Tower Account Factory to provision governed accounts

Explanation

Correct Answer

A:

Organizational units group accounts and establish boundaries for inherited organization policies; this handles the first acceptance condition, subject to the boundary that governance must attach to account groups rather than individual IAM users. The remaining condition is handled separately: account Factory provisions accounts under a landing-zone structure using configured account baselines, with provisioning must follow the organization's Control Tower governance model.

Incorrect Answers

B:

The first half is appropriate: Organizational units group accounts and establish boundaries for inherited organization policies. However, tag policies define permitted capitalization and values and can enforce supported tagging operations; that serves a different objective (report and enforce valid tag keys or values across organizational accounts where supported) 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: an organization trail covers member accounts with centralized delivery and separately controlled storage, whereas STS AssumeRole returns temporary credentials for a trusted role whose permissions constrain the session. The problem instead requires the ability to separate development and production accounts into different policy inheritance scopes and to create new workload accounts with standardized landing-zone controls.

D:

This combination solves only the latter acceptance test. The substituted first control supports view resource compliance and configuration state from a central operations account: a configuration aggregator consolidates supported AWS Config configuration and compliance data. It does not implement separate development and production accounts into different policy inheritance scopes.

Question 512

A technical change review names the selected control as follows: Implement a pilot-light DR architecture in a secondary Region. To maintain replicated core data while minimizing always-on application compute cost, which constraint must be addressed for this design?

  1. Recovery automation must launch additional application capacity after failover
  2. The secondary environment must already be functional and scale up during failover
  3. Recovery needs transaction-log-aware restore within the configured backup retention
  4. The recovery environment must reproduce network, IAM, and compute configuration deterministically
  5. Recovery can tolerate restoring backups and provisioning infrastructure after a disaster
  6. Endpoint health evaluation and TTL caching effects must be included in drills

Explanation

Correct Answer

A:

Recovery automation must launch additional application capacity after failover. That is the governing deployment boundary for the selected control: pilot light maintains minimal core components ready and brings up remaining tiers during recovery. If the boundary is missed, the design can fail to maintain replicated core data while minimizing always-on application compute cost.

Incorrect Answers

B:

Warm standby keeps a smaller but operational workload in the recovery Region. Its own dependency is that the secondary environment must already be functional and scale up during failover. Those details concern the separate objective of being able to meet a short recovery objective while keeping DR spend below a full duplicate production stack, rather than to the named control required to maintain replicated core data while minimizing always-on application compute cost.

C:

The proposed condition makes sense in an implementation designed to restore a supported relational database to a selected time before an accidental modification; it concerns RDS automated backups support point-in-time restore using retained backup data and transaction logs, whereas this question tests the prerequisite of the named control.

D:

This proposed constraint belongs to a separate objective: the recovery environment must reproduce network, IAM, and compute configuration deterministically. The corresponding goal is to recreate known-good application capacity from immutable infrastructure definitions, not the selected architecture's goal to maintain replicated core data while minimizing always-on application compute cost.

E:

This condition governs the different mechanism used to minimize steady-state disaster recovery costs where hours of recovery are acceptable; backup-and-restore recreates infrastructure and data only when needed, trading longer RTO for lower cost; for the selected control, the relevant boundary is instead that recovery automation must launch additional application capacity after failover.

F:

Failover routing can resolve the standby record based on health state, subject to client caching; its own dependency is that endpoint health evaluation and TTL caching effects must be included in drills. Those details concern the separate objective of being able to automate DNS-level cutover after the primary regional endpoint fails, rather than to the named control required to maintain replicated core data while minimizing always-on application compute cost.

Question 513

A technical change review names the selected control as follows: Use CloudFormation cross-stack exports and imports for shared output values. To reference a networking stack's output from an application stack in the same Region, which constraint must be addressed for this design?

  1. Reviewers must approve a predicted resource change list without executing it
  2. Validation must run as part of CloudFormation resource operation evaluation
  3. The consumer should use an explicit stack export instead of hard-coded values
  4. AWS Organizations integration should avoid manually creating cross-account IAM roles

Explanation

Correct Answer

C:

The implementation has to honor the exact constraint: the consumer should use an explicit stack export instead of hard-coded values; CloudFormation exports and Fn::ImportValue share supported values between stacks within the same account and Region.

Incorrect Answers

A:

A change set previews how CloudFormation intends to modify or replace resources before execution; its own dependency is that reviewers must approve a predicted resource change list without executing it; those details concern the separate objective of being able to inspect the proposed resource replacements and updates before executing infrastructure changes, rather than to the named control required to reference a networking stack's output from an application stack in the same Region.

B:

The proposed condition makes sense in an implementation designed to intercept stack resource operations that violate central deployment rules; it concerns CloudFormation hooks can enforce pre-provisioning or operation-time checks for supported resource types, whereas this question tests the prerequisite of the named control.

D:

This condition governs the different mechanism used to deploy a common baseline across organization accounts and selected Regions. Service-managed StackSets use AWS Organizations integration to provision stack instances across eligible accounts; for the selected control, the relevant boundary is instead that the consumer should use an explicit stack export instead of hard-coded values.

Question 514

The incident-response engineering group cannot close its release review until both of these are possible: retain failed event delivery attempts for later investigation; isolate repeatedly unprocessable events without blocking successful work. Which implementation pair satisfies the review?

  1. Use EventBridge rule retry settings and an SQS dead-letter queue for failed targets; use an SQS redrive policy and dead-letter queue for failed events
  2. Use an EventBridge Scheduler one-time schedule for delayed remediation; use EventBridge archive and replay for selected critical events
  3. Use EventBridge rule retry settings and an SQS dead-letter queue for failed targets; use Step Functions wait and retry policies for delayed dependent checks
  4. Use SQS visibility timeouts aligned to consumer processing; use an SQS redrive policy and dead-letter queue for failed events
  5. Use EventBridge rule retry settings and an SQS dead-letter queue for failed targets; use an EventBridge rule matching a specific CloudTrail API event pattern
  6. Use an SNS topic with independent SQS subscriptions for event fan-out; use an SQS redrive policy and dead-letter queue for failed events

Explanation

Correct Answer

A:

For the requirement to retain failed event delivery attempts for later investigation, EventBridge rules can use retry policies and DLQ targets to preserve failed deliveries. For the requirement to isolate repeatedly unprocessable events without blocking successful work, an SQS redrive policy sends messages to a DLQ after the receive count exceeds its threshold. Both mechanisms are necessary; implementing only the first would leave the second unsatisfied.

Incorrect Answers

B:

Neither control directly supplies both requested behaviors. EventBridge Scheduler can invoke supported targets at specified one-time or recurring times; EventBridge archives can retain selected events for later replay to an event bus. Those mechanisms address different objectives. The specified capabilities are to retain failed event delivery attempts for later investigation and to isolate repeatedly unprocessable events without blocking successful work.

C:

Step Functions supports Wait states and task retry policies outside a single Lambda runtime. That alternative supports the ability to recheck an AWS service state after provisioning without busy-waiting, but it is not the requested second outcome (isolate repeatedly unprocessable events without blocking successful work). Even though the first half addresses retain failed event delivery attempts for later investigation, this pair is incomplete.

D:

This combination solves only the latter acceptance test. The substituted first control supports prevent a valid long-running worker task from being processed concurrently: SQS visibility timeouts temporarily hide received messages until deletion or timeout expiration. It does not implement retain failed event delivery attempts for later investigation.

E:

The first half is appropriate: EventBridge rules can use retry policies and DLQ targets to preserve failed deliveries. However, EventBridge matches supported API activity events and invokes selected event targets; that serves a different objective (start an incident workflow after a restricted AWS configuration API call) and leaves the explicit need to isolate repeatedly unprocessable events without blocking successful work unmet.

F:

The second implementation is relevant; the problem is the first. SNS fan-out to multiple SQS queues gives each subscribed queue an independent message stream. It can help deliver each incident notification to separate durable processing teams, whereas the stated first requirement is to retain failed event delivery attempts for later investigation.

Question 515

The production plan uses this approach: Encrypt long-term S3 log objects with a customer managed KMS key. The goal is to protect exported audit objects with a controlled at-rest encryption boundary. Which prerequisite or limitation should receive focused review?

  1. Storage classes and retention controls should fit audit-access frequency
  2. Writers and readers must be authorized by both storage and KMS policies
  3. The data must be protected in transit independently from at-rest bucket encryption
  4. The response must support a query language over centrally stored log events
  5. The log service principal and key policy need the required encrypt and decrypt permissions

Explanation

Correct Answer

B:

Writers and readers must be authorized by both storage and KMS policies. That is the governing deployment boundary for the selected control: S3 SSE-KMS encrypts objects using AWS KMS keys with separate data and key-access controls. If the boundary is missed, the design can fail to protect exported audit objects with a controlled at-rest encryption boundary.

Incorrect Answers

A:

This proposed constraint belongs to a separate objective: storage classes and retention controls should fit audit-access frequency. The corresponding goal is to retain bulk historical logs at lower long-term storage cost, not the selected architecture's goal to protect exported audit objects with a controlled at-rest encryption boundary.

C:

TLS protects log transport over supported network paths against plaintext interception. Its own dependency is that the data must be protected in transit independently from at-rest bucket encryption. Those details concern the separate objective of being able to protect sensitive telemetry while it travels from producers to ingestion endpoints, rather than to the named control required to protect exported audit objects with a controlled at-rest encryption boundary.

D:

The proposed condition makes sense in an implementation designed to query structured error events across log groups during incidents. It concerns CloudWatch Logs Insights runs interactive queries over selected CloudWatch log groups, whereas this question tests the prerequisite of the named control.

E:

This proposed constraint belongs to a separate objective: the log service principal and key policy need the required encrypt and decrypt permissions; the corresponding goal is to control at-rest log encryption under an explicitly governed encryption key, not the selected architecture's goal to protect exported audit objects with a controlled at-rest encryption boundary.

Question 516

The delivery team's change record lists two distinct deliverables: shift load balancer traffic from the old ECS task set to the new task set and run pre-traffic or post-traffic checks before accepting an alias cutover. Which combination covers both deliverables?

  1. Use CodeDeploy ECS blue/green with two target groups; configure ECS service deployment circuit breaker and rollback
  2. Use an ECS deployment with a new immutable task definition revision; choose a supported ECS canary traffic-shift configuration
  3. Use CodeDeploy ECS blue/green with two target groups; attach validation hooks to a Lambda CodeDeploy deployment
  4. Use an Auto Scaling lifecycle hook to finish instance initialization before InService; attach validation hooks to a Lambda CodeDeploy deployment

Explanation

Correct Answer

C:

For the requirement to shift load balancer traffic from the old ECS task set to the new task set, CodeDeploy blue/green ECS deployments use replacement task sets and load balancer target groups for traffic shifts; for the requirement to run pre-traffic or post-traffic checks before accepting an alias cutover, Lambda deployment lifecycle hooks invoke designated validation functions for pre- and post-traffic checks. Both mechanisms are necessary; implementing only the first would leave the second unsatisfied.

Incorrect Answers

A:

The first half is appropriate: CodeDeploy blue/green ECS deployments use replacement task sets and load balancer target groups for traffic shifts. However, the ECS deployment circuit breaker can mark rolling deployments failed and roll back to a prior completed deployment; that serves a different objective (automatically restore an earlier task deployment after a rolling deployment cannot stabilize) and leaves the explicit need to run pre-traffic or post-traffic checks before accepting an alias cutover unmet.

B:

These are legitimate AWS controls for different outcomes: an ECS service update selects a task definition revision and schedules replacement tasks to converge to it, whereas canary deployment configurations shift an initial percentage before the remaining cutover. The problem instead requires the ability to shift load balancer traffic from the old ECS task set to the new task set and to run pre-traffic or post-traffic checks before accepting an alias cutover.

D:

An Auto Scaling lifecycle hook can keep instances in a wait state while automation completes initialization; that is intended to delay load balancer registration until a new EC2 instance is correctly configured, not to shift load balancer traffic from the old ECS task set to the new task set; the second half can meet the requirement to run pre-traffic or post-traffic checks before accepting an alias cutover, but the first is still missing.

Question 517

A release design adopts this mechanism: Use AWS Organizations CreateAccount automation for programmatic member creation. Which implementation detail is most relevant to its proposed use to automate account creation and consolidate billing within an organization?

  1. Role trust and target permissions must both be explicitly configured
  2. Accounts should remain enrolled in approved landing-zone controls
  3. The process must create member accounts under the organization's management structure
  4. Central reporting should aggregate source data without changing each source configuration

Explanation

Correct Answer

C:

The implementation has to honor the exact constraint: the process must create member accounts under the organization's management structure. Organizations supports asynchronous member account creation through its account APIs.

Incorrect Answers

A:

STS AssumeRole returns temporary credentials for a trusted role whose permissions constrain the session; its own dependency is that role trust and target permissions must both be explicitly configured; those details concern the separate objective of being able to let central automation perform scoped tasks in governed member accounts, rather than to the named control required to automate account creation and consolidate billing within an organization.

B:

The proposed condition makes sense in an implementation designed to integrate governed account provisioning with existing Terraform-based request automation. It concerns account Factory for Terraform integrates account-vending workflows with Control Tower governance, whereas this question tests the prerequisite of the named control.

D:

This condition governs the different mechanism used to view resource compliance and configuration state from a central operations account; a configuration aggregator consolidates supported AWS Config configuration and compliance data; for the selected control, the relevant boundary is instead that the process must create member accounts under the organization's management structure.

Question 518

An observability team is resolving a multi-part production requirement: (1) determine whether recorded network flows were accepted or rejected at an interface; (2) detect user-visible error-rate regression independent of total request volume. Which TWO proposals directly implement the required capabilities? Choose TWO.

  1. Enable AWS X-Ray tracing across supported API and Lambda components
  2. Use VPC Flow Logs for network traffic acceptance and rejection evidence
  3. Propagate trace context between microservices
  4. Use CloudWatch Synthetics canaries to validate a customer workflow
  5. Instrument the actual application error path with structured logs and trace IDs
  6. Use metric math to alarm on ALB 5xx errors as a request ratio

Explanation

Correct Answers

B:

This covers the specific result to determine whether recorded network flows were accepted or rejected at an interface: VPC Flow Logs record flow metadata such as source, destination, port, and accept or reject action. Flow metadata does not include full packet payloads or application semantics.

F:

This covers the specific result to detect user-visible error-rate regression independent of total request volume: CloudWatch metric math combines compatible metrics to evaluate derived rates or ratios. Error counts must be normalized by matching request volume.

Incorrect Answers

A:

It supports a separate administrative task, namely to identify which downstream call dominates end-to-end request latency. X-Ray traces and segments expose timing and dependencies across instrumented service calls. The prompt's required outcomes are not achieved by substituting this control.

C:

Trace context propagation relates spans across a distributed request path; that would be appropriate to link asynchronous or downstream operations to the originating request trace, but this is a different objective from the numbered obligations in the stem.

D:

This mechanism supports the ability to detect external failures in a multi-step website journey before users report them: synthetics canaries execute scripts and publish availability and step-level results. It would not satisfy a different obligation just by appearing in the same workflow.

E:

It supports a separate administrative task, namely to diagnose which business operation produces sporadic application exceptions. Application tracing and correlated structured logs reveal failures not expressed by host utilization metrics; the prompt's required outcomes are not achieved by substituting this control.

Question 519

During root-cause analysis, the team identifies the following: An ECS container tries to query DynamoDB but only its image-pull execution role has permissions. To authorize container business logic to read only its specific AWS resources, what should be configured?

  1. Use EKS IAM Roles for Service Accounts or supported EKS Pod Identity
  2. Use IAM Roles Anywhere for eligible external workloads with X.509 identities
  3. Use an ECS task IAM role rather than the ECS task execution role for application API access
  4. Use a Lambda execution role scoped to required AWS APIs
  5. Use a resource-based policy on an S3 bucket for a cross-account principal

Explanation

Correct Answer

C:

To authorize container business logic to read only its specific AWS resources, the architecture relies on this AWS behavior: ECS task roles grant permissions to containers; execution roles support image pulls, logs, and task startup. Runtime application privileges should be isolated from ECS agent execution privileges.

Incorrect Answers

A:

EKS workload identity mechanisms associate an AWS IAM role with a Kubernetes service account or pod; this is a reasonable option when the requirement is to grant a Kubernetes workload AWS permissions without using the node IAM role, but it operates at a different workflow boundary from the stated need to authorize container business logic to read only its specific AWS resources.

B:

Choosing this would aim to provide temporary AWS credentials to on-premises workloads without storing IAM user keys instead of authorize container business logic to read only its specific AWS resources; IAM Roles Anywhere uses trusted X.509 certificates to obtain temporary role credentials for external workloads; it cannot replace the mechanism specified by the incident evidence.

D:

Lambda execution roles grant the AWS API permissions used by the running function. This can help teams allow a Lambda handler to read a specific secret and publish required logs, but the reported workflow needs to authorize container business logic to read only its specific AWS resources. It does not perform that required function.

E:

That service solves a different operating problem: the need to authorize a designated external role to access a narrow set of objects. Its behavior is that an S3 bucket policy can grant a specified external principal access to selected object ARNs. The requested outcome remains authorize container business logic to read only its specific AWS resources.

Question 520

Two technical outcomes must be delivered together: automate container base-image patching and validation for approved images and publish a validated AMI to workloads outside its build account. Which pair of controls is sufficient for the stated outcomes?

  1. Use an EC2 Image Builder container recipe to generate a hardened container image; configure an ECR lifecycle policy to expire unwanted image versions
  2. Enable S3 replication for approved build objects that must be available cross-Region; configure ECR replication to authorized Regions or accounts
  3. Use an EC2 Image Builder container recipe to generate a hardened container image; use EC2 Image Builder distribution settings for target Regions and accounts
  4. Enable ECR scan-on-push or enhanced scanning according to policy; use EC2 Image Builder distribution settings for target Regions and accounts

Explanation

Correct Answer

C:

For the requirement to automate container base-image patching and validation for approved images, image Builder supports container recipes and workflows to build and test image outputs. For the requirement to publish a validated AMI to workloads outside its build account, image Builder distribution configurations control supported AMI copies and sharing after creation. Both mechanisms are necessary; implementing only the first would leave the second unsatisfied.

Incorrect Answers

A:

Combining a suitable first control with this second one misses the secondary acceptance criterion; ECR lifecycle rules automate image expiration according to matching criteria; it helps remove unneeded old images without deleting current release references rather than publish a validated AMI to workloads outside its build account.

B:

Neither control directly supplies both requested behaviors. S3 replication rules copy eligible objects between versioned buckets with suitable destination and permissions; ECR replication copies matching repository images to configured destination registries and Regions. Those mechanisms address different objectives. The specified capabilities are to automate container base-image patching and validation for approved images and to publish a validated AMI to workloads outside its build account.

D:

This combination solves only the latter acceptance test. The substituted first control supports surface vulnerable container packages before images are approved: ECR scanning integrates container vulnerability findings with repository images and security workflows. It does not implement automate container base-image patching and validation for approved images.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests