Question 610

Investigators observe: Teams assign inconsistent cost-center values and tagging reports no longer reconcile. Engineers still need to report and enforce valid tag keys or values across organizational accounts where supported. Which corrective action is most appropriate?

  1. Attach an Organizations SCP to a production OU
  2. Use delegated administrator registration for supported organization-wide services
  3. Use Organizations tag policies to standardize supported resource tags
  4. Use AWS Backup policies through Organizations for supported centralized plans
  5. Use IAM Identity Center permission sets for federated workforce access

Explanation

Correct Answer

C:

Tag policies define permitted capitalization and values and can enforce supported tagging operations; that directly addresses the observed failure in the scenario. The configuration still has to respect this constraint: the policy must govern tag conventions rather than grant IAM access.

Incorrect Answers

A:

Choosing this would aim to set a maximum permission boundary for member-account principals instead of report and enforce valid tag keys or values across organizational accounts where supported. Service control policies limit the maximum permissions of affected account principals but do not grant rights; it cannot replace the mechanism specified by the incident evidence.

B:

Although delegated administration allows a registered member account to manage eligible service functions organization-wide, the scenario does not ask for let a security account administer a supported service for organization members. It requires the ability to report and enforce valid tag keys or values across organizational accounts where supported, which is a separate responsibility.

D:

That service solves a different operating problem: the need to distribute common backup policy requirements to eligible member accounts. Its behavior is that organizations backup policies help coordinate AWS Backup plans and selections across member accounts. The requested outcome remains report and enforce valid tag keys or values across organizational accounts where supported.

E:

The choice is useful when engineers need to 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 would not establish the control needed to report and enforce valid tag keys or values across organizational accounts where supported.

Question 611

During root-cause analysis, the team identifies the following: A compilation success is accepted even though the unit-test suite was never executed. To reject code-level regressions rapidly before creating production artifacts, what should be configured?

  1. Run unit tests in the first CodeBuild stage before packaging
  2. Execute integration tests against an isolated ephemeral test stack
  3. Run acceptance tests after staging deployment and before approval
  4. Separate performance threshold checks from functional correctness tests
  5. Run dependency and container image scanning before artifact promotion

Explanation

Correct Answer

A:

To reject code-level regressions rapidly before creating production artifacts, the architecture relies on this AWS behavior: unit tests in an early build action reduce feedback latency and stop faulty revisions before expensive stages. Fast deterministic tests must block downstream promotion when they fail.

Incorrect Answers

B:

An integration environment exercises actual API and infrastructure interactions that unit mocks do not cover; this can help teams validate service-to-service interactions against real deployed dependencies before approval, but the reported workflow needs to reject code-level regressions rapidly before creating production artifacts. It does not perform that required function.

C:

That service solves a different operating problem: the need to verify business workflows on a deployed candidate before production promotion; its behavior is that acceptance checks validate end-to-end expected behavior and can fail the pipeline before production; the requested outcome remains reject code-level regressions rapidly before creating production artifacts.

D:

The choice is useful when engineers need to fail a release when latency regresses even though all APIs still return successful status codes: performance testing assesses response-time and throughput targets distinct from pass or fail functionality. It would not establish the control needed to reject code-level regressions rapidly before creating production artifacts.

E:

An automated scanning gate blocks releases when risk findings breach the defined security policy; this is a reasonable option when the requirement is to reject packages containing prohibited vulnerable dependencies before production, but it operates at a different workflow boundary from the stated need to reject code-level regressions rapidly before creating production artifacts.

Question 612

The current plan covers only one side of the observability operating model. It needs to bridge existing application metric protocols into CloudWatch as well as publish guest memory and disk-usage metrics not available from default EC2 metrics. Which paired changes complete the design?

  1. Use CloudWatch agent StatsD or collectd integrations for supported workloads; configure CloudWatch Logs cross-account subscription delivery through supported destination policies
  2. Configure HTTPS or TLS for log delivery clients; configure CloudTrail data events for selected sensitive S3 buckets
  3. Create CloudWatch metric streams to Amazon Data Firehose; install and configure the unified CloudWatch agent on EC2
  4. Use CloudWatch agent StatsD or collectd integrations for supported workloads; install and configure the unified CloudWatch agent on EC2

Explanation

Correct Answer

D:

The unified CloudWatch agent supports collection from compatible metrics protocols and export to CloudWatch; this handles the first acceptance condition, subject to the boundary that the collector must listen for the existing protocol and publish metric data with proper permissions. The remaining condition is handled separately: the CloudWatch agent collects supported host metrics and logs beyond the standard EC2 metric set, with a least-privilege instance role must authorize the agent to publish custom telemetry.

Incorrect Answers

A:

The first half is appropriate: The unified CloudWatch agent supports collection from compatible metrics protocols and export to CloudWatch. However, CloudWatch Logs destinations and resource policies authorize supported cross-account subscription flows; that serves a different objective (centralize matching account log streams into a designated log-processing account) and leaves the explicit need to publish guest memory and disk-usage metrics not available from default EC2 metrics unmet.

B:

These are legitimate AWS controls for different outcomes: TLS protects log transport over supported network paths against plaintext interception, whereas CloudTrail data events capture selected data-plane operations, such as S3 object API calls. The problem instead requires the ability to bridge existing application metric protocols into CloudWatch and to publish guest memory and disk-usage metrics not available from default EC2 metrics.

C:

This combination solves only the latter acceptance test. The substituted first control supports continuously export supported metrics to an external observability platform: CloudWatch metric streams continuously send metric data to supported delivery services. It does not implement bridge existing application metric protocols into CloudWatch.

Question 613

A production ticket contains this symptom: A restore-from-backup strategy exceeds the approved recovery time objective. The desired behavior is to meet a short recovery objective while keeping DR spend below a full duplicate production stack. What should be fixed?

  1. Use backup-and-restore DR for a workload with a generous recovery target
  2. Implement warm standby with reduced running capacity in a secondary Region
  3. Implement a pilot-light DR architecture in a secondary Region
  4. Maintain tested IaC and AMI releases in the disaster recovery Region

Explanation

Correct Answer

B:

Warm standby keeps a smaller but operational workload in the recovery Region. It enables the necessary capability to meet a short recovery objective while keeping DR spend below a full duplicate production stack rather than only providing an adjacent operational control. The secondary environment must already be functional and scale up during failover.

Incorrect Answers

A:

That service solves a different operating problem: the need to minimize steady-state disaster recovery costs where hours of recovery are acceptable. Its behavior is that backup-and-restore recreates infrastructure and data only when needed, trading longer RTO for lower cost. The requested outcome remains meet a short recovery objective while keeping DR spend below a full duplicate production stack.

C:

Pilot light maintains minimal core components ready and brings up remaining tiers during recovery; this is a reasonable option when the requirement is to maintain replicated core data while minimizing always-on application compute cost, but it operates at a different workflow boundary from the stated need to meet a short recovery objective while keeping DR spend below a full duplicate production stack.

D:

Choosing this would aim to recreate known-good application capacity from immutable infrastructure definitions instead of meet a short recovery objective while keeping DR spend below a full duplicate production stack. Versioned IaC and images allow consistent restoration of application infrastructure; it cannot replace the mechanism specified by the incident evidence.

Question 614

One team is accountable for the AWS workflow to identify broad or risky IAM policy patterns before deployment. A second acceptance condition requires it to authorize container business logic to read only its specific AWS resources. Which combination should be approved?

  1. Configure IAM role trust conditions with an external ID for a third-party provider; use session policies when assuming a role for a narrowly scoped job
  2. Use a Lambda execution role scoped to required AWS APIs; use an ECS task IAM role rather than the ECS task execution role for application API access
  3. Use IAM Access Analyzer policy validation and least-privilege findings; use an Organizations service control policy as an account-wide permission guardrail
  4. Use IAM Access Analyzer policy validation and least-privilege findings; attach an instance profile with a scoped IAM role to EC2
  5. Apply an IAM permissions boundary to delegated role creation; use an ECS task IAM role rather than the ECS task execution role for application API access
  6. Use IAM Access Analyzer policy validation and least-privilege findings; use an ECS task IAM role rather than the ECS task execution role for application API access

Explanation

Correct Answer

F:

IAM Access Analyzer validates policies and can surface security and best-practice findings. This handles the first acceptance condition, subject to the boundary that policy analysis should run before changes reach a sensitive account. The remaining condition is handled separately: ECS task roles grant permissions to containers; execution roles support image pulls, logs, and task startup, with runtime application privileges should be isolated from ECS agent execution privileges.

Incorrect Answers

A:

These are legitimate AWS controls for different outcomes: the sts:ExternalId condition helps a provider distinguish authorized cross-account assume-role requests, whereas STS session policies intersect with the role's permissions to further restrict an assumed-role session. The problem instead requires the ability to identify broad or risky IAM policy patterns before deployment and to authorize container business logic to read only its specific AWS resources.

B:

This combination solves only the latter acceptance test. The substituted first control supports allow a Lambda handler to read a specific secret and publish required logs: Lambda execution roles grant the AWS API permissions used by the running function. It does not implement identify broad or risky IAM policy patterns before deployment.

C:

The first half is appropriate: IAM Access Analyzer validates policies and can surface security and best-practice findings. However, SCPs set maximum available permissions for member-account principals but do not themselves allow actions; that serves a different objective (prevent all affected principals in a production OU from performing prohibited service actions) and leaves the explicit need to authorize container business logic to read only its specific AWS resources unmet.

D:

An EC2 instance profile provides temporary role credentials to applications running on the instance; that alternative supports the ability to give an EC2 application temporary credentials to call an AWS API, but it is not the requested second outcome (authorize container business logic to read only its specific AWS resources). Even though the first half addresses identify broad or risky IAM policy patterns before deployment, this pair is incomplete.

E:

This combination solves only the latter acceptance test. The substituted first control supports allow a development platform team to create roles without granting unlimited privileges: permissions boundaries constrain the effective identity permissions of a user or role without granting access. It does not implement identify broad or risky IAM policy patterns before deployment.

Question 615

A production-readiness assessment calls out two missing capabilities: give an EC2 application temporary credentials to call an AWS API and avoid distributing durable access keys for central administration in member accounts. Choose the AWS implementation that explicitly addresses both.

  1. Use an Organizations service control policy as an account-wide permission guardrail; use an IAM role with STS temporary credentials for cross-account operations
  2. Attach an instance profile with a scoped IAM role to EC2; use a Lambda execution role scoped to required AWS APIs
  3. Attach an instance profile with a scoped IAM role to EC2; use an IAM role with STS temporary credentials for cross-account operations
  4. Assign AWS IAM Identity Center permission sets to workforce groups; use EKS IAM Roles for Service Accounts or supported EKS Pod Identity

Explanation

Correct Answer

C:

The first outcome depends on the behavior that an EC2 instance profile provides temporary role credentials to applications running on the instance. Separately, STS AssumeRole issues expiring credentials for a trusted role rather than persistent user secrets; together these meet the two requested outcomes, with the operational limits that credentials must rotate automatically and be available through supported instance metadata and trust and permission policies must explicitly govern the destination role.

Incorrect Answers

A:

SCPs set maximum available permissions for member-account principals but do not themselves allow actions; that is intended to prevent all affected principals in a production OU from performing prohibited service actions, not to give an EC2 application temporary credentials to call an AWS API. The second half can meet the requirement to avoid distributing durable access keys for central administration in member accounts, but the first is still missing.

B:

Lambda execution roles grant the AWS API permissions used by the running function. That alternative supports the ability to allow a Lambda handler to read a specific secret and publish required logs, but it is not the requested second outcome (avoid distributing durable access keys for central administration in member accounts). Even though the first half addresses give an EC2 application temporary credentials to call an AWS API, this pair is incomplete.

D:

Neither control directly supplies both requested behaviors. IAM Identity Center provisions account roles through permission-set assignments to users and groups; EKS workload identity mechanisms associate an AWS IAM role with a Kubernetes service account or pod. Those mechanisms address different objectives. The specified capabilities are to give an EC2 application temporary credentials to call an AWS API and to avoid distributing durable access keys for central administration in member accounts.

Question 616

A release design adopts this mechanism: Use ElastiCache replication groups spanning multiple Availability Zones. Which implementation detail is most relevant to its proposed use to improve availability of supported Redis or Valkey cache workloads?

  1. The replication group must be configured for failover and multi-AZ placement
  2. Replacement capacity should be launched automatically in remaining healthy zones
  3. Replication may be asynchronous and failover requires appropriate application orchestration
  4. Source and destination buckets need versioning and replication configuration
  5. The data tier needs additional instances in independent failure zones

Explanation

Correct Answer

A:

The replication group must be configured for failover and multi-AZ placement. That is the governing deployment boundary for the selected control: supported ElastiCache replication groups use replicas and automatic failover to recover from primary loss. If the boundary is missed, the design can fail to improve availability of supported Redis or Valkey cache workloads.

Incorrect Answers

B:

EC2 Auto Scaling manages desired instances across configured subnets and uses health checks for replacement; its own dependency is that replacement capacity should be launched automatically in remaining healthy zones; those details concern the separate objective of being able to replace failed web hosts and distribute capacity across Availability Zones, rather than to the named control required to improve availability of supported Redis or Valkey cache workloads.

C:

The proposed condition makes sense in an implementation designed to provide off-Region read capacity and a possible promotion-based recovery option. It concerns cross-Region read replicas copy database changes asynchronously and can be promoted under supported conditions, whereas this question tests the prerequisite of the named control.

D:

This proposed constraint belongs to a separate objective: source and destination buckets need versioning and replication configuration; the corresponding goal is to retain replicated application objects in a separate disaster-recovery Region, not the selected architecture's goal to improve availability of supported Redis or Valkey cache workloads.

E:

This condition governs the different mechanism used to improve Aurora read availability and provide additional managed failover candidates. Aurora Replicas share cluster storage and can serve reads or be promoted during supported failovers; for the selected control, the relevant boundary is instead that the replication group must be configured for failover and multi-AZ placement.

Question 617

The architecture record specifies: Store deployment bundles in an encrypted versioned S3 artifact bucket. To support the goal to retain retrievable, auditable application bundles for instance deployments, which consideration should the engineer validate?

  1. Artifact durability and version history must support restoration of approved revisions
  2. Image access must use IAM-aware authorization instead of an anonymous public registry
  3. The image build should follow a repeatable managed pipeline
  4. Repository access should be controlled by IAM and scoped package versions
  5. Destination encryption and replication roles must be configured for the target bucket

Explanation

Correct Answer

A:

The requested behavior is to retain retrievable, auditable application bundles for instance deployments, and artifact durability and version history must support restoration of approved revisions. The underlying AWS behavior is that S3 versioning preserves object versions; bucket encryption and scoped policies protect deployment bundles.

Incorrect Answers

B:

The proposed condition makes sense in an implementation designed to store deployable OCI images with private access for ECS workloads. It concerns Amazon ECR stores container image manifests and layers in repositories that can enforce permissions, whereas this question tests the prerequisite of the named control.

C:

This proposed constraint belongs to a separate objective: the image build should follow a repeatable managed pipeline. The corresponding goal is to automate container base-image patching and validation for approved images, not the selected architecture's goal to retain retrievable, auditable application bundles for instance deployments.

D:

This condition governs the different mechanism used to centrally share approved Maven or npm packages across build projects. CodeArtifact hosts versioned package repositories with upstream connections and permission policies; for the selected control, the relevant boundary is instead that artifact durability and version history must support restoration of approved revisions.

E:

S3 replication rules copy eligible objects between versioned buckets with suitable destination and permissions; its own dependency is that destination encryption and replication roles must be configured for the target bucket. Those details concern the separate objective of being able to copy versioned release bundles into a secondary Region's artifact bucket, rather than to the named control required to retain retrievable, auditable application bundles for instance deployments.

Question 618

During root-cause analysis, the team identifies the following: A newly exposed test resource remains reachable until an engineer sees the alert. To apply a narrow automated containment action after an unsafe resource change event, what should be configured?

  1. Use EC2 Auto Scaling health replacement for unhealthy fleet members
  2. Use AWS Backup event notifications and a bounded retry workflow
  3. Perform an Auto Scaling instance refresh after updating a launch template
  4. Configure an EventBridge-triggered Lambda to quarantine a newly exposed resource

Explanation

Correct Answer

D:

To apply a narrow automated containment action after an unsafe resource change event, the architecture relies on this AWS behavior: EventBridge invokes a Lambda target whose code can apply scoped AWS API changes when a rule matches. The handler must verify event identity and use least-privilege remediation permissions.

Incorrect Answers

A:

EC2 Auto Scaling can terminate and replace unhealthy instances to meet desired capacity. This can help teams automatically replace failed instances without requiring manual restarts, but the reported workflow needs to apply a narrow automated containment action after an unsafe resource change event. It does not perform that required function.

B:

That service solves a different operating problem: the need to respond when a scheduled backup job fails before the recovery point objective is exceeded. Its behavior is that AWS Backup job state events can feed EventBridge-driven notification and automation. The requested outcome remains apply a narrow automated containment action after an unsafe resource change event.

C:

The choice is useful when engineers need to roll out a corrected launch template to already-running fleet instances: instance refresh gradually replaces existing Auto Scaling instances according to updated configuration; it would not establish the control needed to apply a narrow automated containment action after an unsafe resource change event.

Question 619

A production ticket contains this symptom: A Region-specific ECS task cannot pull an image stored only in the source Region registry. The desired behavior is to preposition container images in the registries used by regional deployments. What should be fixed?

  1. Enable S3 replication for approved build objects that must be available cross-Region
  2. Configure ECR replication to authorized Regions or accounts
  3. Use EC2 Image Builder distribution settings for target Regions and accounts
  4. Enable ECR scan-on-push or enhanced scanning according to policy

Explanation

Correct Answer

B:

ECR replication copies matching repository images to configured destination registries and Regions; in this case the control is appropriate because it supports preposition container images in the registries used by regional deployments. Distribution must follow a defined replication configuration.

Incorrect Answers

A:

That service solves a different operating problem: the need to copy versioned release bundles into a secondary Region's artifact bucket; its behavior is that S3 replication rules copy eligible objects between versioned buckets with suitable destination and permissions; the requested outcome remains preposition container images in the registries used by regional deployments.

C:

Image Builder distribution configurations control supported AMI copies and sharing after creation; this is a reasonable option when the requirement is to publish a validated AMI to workloads outside its build account, but it operates at a different workflow boundary from the stated need to preposition container images in the registries used by regional deployments.

D:

Choosing this would aim to surface vulnerable container packages before images are approved instead of preposition container images in the registries used by regional deployments; ECR scanning integrates container vulnerability findings with repository images and security workflows; it cannot replace the mechanism specified by the incident evidence.

Question 620

A production ticket contains this symptom: Desired capacity rises but the group launches no healthy instances. The desired behavior is to discover why an EC2 fleet fails to add replacement capacity. What should be fixed?

  1. Check Auto Scaling scaling activities and launch failures
  2. Inspect RDS failover events and connection retry handling
  3. Inspect ECS service events and stopped-task reasons
  4. Inspect DynamoDB throttling and consumed capacity metrics

Explanation

Correct Answer

A:

Auto Scaling activity history records scaling requests and instance launch or health-related failures; in this case the control is appropriate because it supports discover why an EC2 fleet fails to add replacement capacity. The root cause may involve launch template errors, capacity availability, or quotas.

Incorrect Answers

B:

RDS event timelines and application connection behavior help diagnose managed failover recovery; this is a reasonable option when the requirement is to explain a brief application database interruption after a Multi-AZ failover, but it operates at a different workflow boundary from the stated need to discover why an EC2 fleet fails to add replacement capacity.

C:

Choosing this would aim to diagnose an ECS service unable to reach steady state instead of discover why an EC2 fleet fails to add replacement capacity. ECS service events and stopped task metadata describe placement and startup failures; it cannot replace the mechanism specified by the incident evidence.

D:

Although DynamoDB metrics identify throttled reads and writes and provisioned or consumed capacity behavior, the scenario does not ask for determine whether database request limits cause application retry storms. It requires the ability to discover why an EC2 fleet fails to add replacement capacity, which is a separate responsibility.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests