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.

Question 251

The delivery engineering group cannot close its release review until both of these are possible: fail a release when latency regresses even though all APIs still return successful status codes; exercise a critical HTTP journey regularly with externally visible outcomes. Which implementation pair satisfies the review?

  1. Separate performance threshold checks from functional correctness tests; use canary synthetic checks against a published test endpoint
  2. Use AWS Fault Injection Service in a controlled resilience test; use canary synthetic checks against a published test endpoint
  3. Use contract tests to validate interface compatibility between independently deployed services; use canary synthetic checks against a published test endpoint
  4. Separate performance threshold checks from functional correctness tests; use pull request events to start a pre-merge validation build
  5. Separate performance threshold checks from functional correctness tests; run dependency and container image scanning before artifact promotion
  6. Use AWS IAM policy evaluation tests for deployment-role assumptions; run unit tests in the first CodeBuild stage before packaging

Explanation

Correct Answer

A:

Performance testing assesses response-time and throughput targets distinct from pass or fail functionality; this handles the first acceptance condition, subject to the boundary that the gate must compare measurements against a specific performance baseline. The remaining condition is handled separately: CloudWatch Synthetics canaries run scheduled scripts against endpoints and report pass or failure measurements, with user-journey availability should be measured beyond instance resource metrics.

Incorrect Answers

B:

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 fail a release when latency regresses even though all APIs still return successful status codes.

C:

Contract tests assert expected interface behavior, revealing breaking integration changes before both services ship; that is intended to detect incompatible API schema changes without requiring full production rollout, not to fail a release when latency regresses even though all APIs still return successful status codes; the second half can meet the requirement to exercise a critical HTTP journey regularly with externally visible outcomes, but the first is still missing.

D:

PR-triggered builds can test changes earlier than post-merge releases and support branch protection workflows; that alternative supports the ability to evaluate a proposed change before it merges into a protected branch, but it is not the requested second outcome (exercise a critical HTTP journey regularly with externally visible outcomes). Even though the first half addresses fail a release when latency regresses even though all APIs still return successful status codes, this pair is incomplete.

E:

Combining a suitable first control with this second one misses the secondary acceptance criterion; an automated scanning gate blocks releases when risk findings breach the defined security policy; it helps reject packages containing prohibited vulnerable dependencies before production rather than exercise a critical HTTP journey regularly with externally visible outcomes.

F:

Neither control directly supplies both requested behaviors. IAM policy simulation and access analysis can help test whether planned principal actions are allowed; unit tests in an early build action reduce feedback latency and stop faulty revisions before expensive stages. Those mechanisms address different objectives. The specified capabilities are to fail a release when latency regresses even though all APIs still return successful status codes and to exercise a critical HTTP journey regularly with externally visible outcomes.

Question 252

The architecture record specifies: Inspect RDS failover events and connection retry handling. To support the goal to explain a brief application database interruption after a Multi-AZ failover, which consideration should the engineer validate?

  1. The app should re-resolve endpoints and retry stale connections appropriately
  2. The failing invocation and configured function timeout must be compared
  3. Age of pending work is needed in addition to raw queue length
  4. The root cause may involve launch template errors, capacity availability, or quotas

Explanation

Correct Answer

A:

The app should re-resolve endpoints and retry stale connections appropriately. That is the governing deployment boundary for the selected control: RDS event timelines and application connection behavior help diagnose managed failover recovery. If the boundary is missed, the design can fail to explain a brief application database interruption after a Multi-AZ failover.

Incorrect Answers

B:

Lambda logs include invocation results, duration, timeout messages, and runtime failures. Its own dependency is that the failing invocation and configured function timeout must be compared. Those details concern the separate objective of being able to explain missing API responses from a new Lambda deployment, rather than to the named control required to explain a brief application database interruption after a Multi-AZ failover.

C:

The proposed condition makes sense in an implementation designed to identify whether queue-processing latency is growing from a slow consumer; it concerns SQS age metrics help reveal processing delay that count metrics alone can obscure, whereas this question tests the prerequisite of the named control.

D:

This proposed constraint belongs to a separate objective: the root cause may involve launch template errors, capacity availability, or quotas; the corresponding goal is to discover why an EC2 fleet fails to add replacement capacity, not the selected architecture's goal to explain a brief application database interruption after a Multi-AZ failover.

Question 253

A new operational design must diagnose an ECS service unable to reach steady state. The investigation must identify scheduler failures, image pulls, or container exit reasons. Which approach meets both requirements?

  1. Inspect ECS service events and stopped-task reasons
  2. Inspect CodePipeline stage and action execution history
  3. Inspect CloudFormation stack events for the first failed resource
  4. Review CodeBuild CloudWatch logs and build phase status

Explanation

Correct Answer

A:

ECS service events and stopped task metadata describe placement and startup failures. It restores the ability to diagnose an ECS service unable to reach steady state, provided the implementation also observes that the investigation must identify scheduler failures, image pulls, or container exit reasons.

Incorrect Answers

B:

The choice is useful when engineers need to find which pipeline action failed and review its detailed external execution link: CodePipeline records stage and action execution statuses and detailed links for troubleshooting; it would not establish the control needed to diagnose an ECS service unable to reach steady state.

C:

CloudFormation stack events show per-resource transitions and service error messages. This is a reasonable option when the requirement is to identify the underlying resource error that triggered a stack rollback, but it operates at a different workflow boundary from the stated need to diagnose an ECS service unable to reach steady state.

D:

Choosing this would aim to identify the first shell command or dependency failure in a failing build instead of diagnose an ECS service unable to reach steady state; CodeBuild build logs and phase contexts expose command errors and environment failures; it cannot replace the mechanism specified by the incident evidence.

Question 254

An operational design is incomplete until it can replace an entire instance release without modifying the current live fleet and shift load balancer traffic from the old ECS task set to the new task set. Which two-part implementation fills both gaps?

  1. Use CodeDeploy blue/green deployment with a replacement EC2 Auto Scaling group; use CodeDeploy ECS blue/green with two target groups
  2. Run a post-deploy smoke test against an ALB health-checked endpoint; use CodeDeploy ECS blue/green with two target groups
  3. Use immutable AMI replacement through an Auto Scaling instance refresh; choose CodeDeploy in-place deployment with minimum healthy hosts
  4. Use CodeDeploy blue/green deployment with a replacement EC2 Auto Scaling group; use an appspec.yml to define CodeDeploy instance hooks

Explanation

Correct Answer

A:

For the requirement to replace an entire instance release without modifying the current live fleet, CodeDeploy blue/green can provision replacement EC2 instances and reroute traffic after health checks. 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; both mechanisms are necessary; implementing only the first would leave the second unsatisfied.

Incorrect Answers

B:

This combination solves only the latter acceptance test. The substituted first control supports validate that a new service release responds correctly before ending the deployment: a smoke test targets live application behavior after rollout and can trigger deployment failure handling; it does not implement replace an entire instance release without modifying the current live fleet.

C:

Neither control directly supplies both requested behaviors. Auto Scaling instance refresh replaces instances according to an updated launch template and health controls; CodeDeploy EC2 in-place configurations control host update concurrency using healthy-host thresholds. Those mechanisms address different objectives. The specified capabilities are to replace an entire instance release without modifying the current live fleet and to shift load balancer traffic from the old ECS task set to the new task set.

D:

An AppSpec file maps application files and lifecycle event hooks for EC2 deployments. That alternative supports the ability to execute controlled install and validation scripts during an EC2 deployment, but it is not the requested second outcome (shift load balancer traffic from the old ECS task set to the new task set). Even though the first half addresses replace an entire instance release without modifying the current live fleet, this pair is incomplete.

Question 255

The next production deployment needs 2 specific capabilities: (1) bridge existing application metric protocols into CloudWatch; (2) centralize supported configuration and compliance summaries from accounts and Regions. Select the TWO most directly applicable actions. Choose TWO.

  1. Use an AWS Config aggregator for resource-compliance reporting
  2. Configure CloudWatch Logs cross-account subscription delivery through supported destination policies
  3. Configure CloudWatch Logs subscription filters to stream events to an eligible destination
  4. Use CloudWatch agent StatsD or collectd integrations for supported workloads
  5. Associate a customer managed KMS key with a CloudWatch Logs log group
  6. Use CloudWatch Logs Live Tail for short-lived streaming troubleshooting

Explanation

Correct Answers

A:

This covers the specific result to centralize supported configuration and compliance summaries from accounts and Regions: AWS Config aggregators consolidate resource configuration and compliance data from configured sources. The aggregator needs authorized sources and configuration recording in source accounts.

D:

The unified CloudWatch agent supports collection from compatible metrics protocols and export to CloudWatch; among the listed outcomes, it addresses bridge existing application metric protocols into CloudWatch, rather than merely contributing a related signal or support step.

Incorrect Answers

B:

CloudWatch Logs destinations and resource policies authorize supported cross-account subscription flows; that would be appropriate to centralize matching account log streams into a designated log-processing account, but this is a different objective from the numbered obligations in the stem.

C:

This mechanism supports the ability to process matching log records as they arrive instead of polling stored logs: subscription filters route new matching CloudWatch Logs events to supported streaming or processing destinations. It would not satisfy a different obligation just by appearing in the same workflow.

E:

CloudWatch Logs supports customer-managed KMS key association for eligible log groups. If the requirement were to control at-rest log encryption under an explicitly governed encryption key, that would matter. The requested outcomes are separate from the one this option addresses.

F:

Live Tail streams recently ingested matching log events from supported log groups; that would be appropriate to watch incoming application events while reproducing a production issue, but this is a different objective from the numbered obligations in the stem; the specified requirement instead is to centralize supported configuration and compliance summaries from accounts and Regions.

Question 256

The platform engineering team selects this control: Enable CodeBuild local caching for reusable build dependencies. What associated scope or dependency matters most when using it to reduce time spent re-fetching dependencies in repeated builds on compatible environments?

  1. The optimization must not be assumed to work for every compute mode or build host
  2. Artifact storage must be available in every Region where pipeline actions require it
  3. Build permissions must not be broadened to administrator access
  4. Results must remain associated with their build executions

Explanation

Correct Answer

A:

The optimization must not be assumed to work for every compute mode or build host. That is the governing deployment boundary for the selected control: local caches can reuse permitted source or dependency data on a build host, subject to environment and cache limitations. If the boundary is missed, the design can fail to reduce time spent re-fetching dependencies in repeated builds on compatible environments.

Incorrect Answers

B:

Cross-Region CodePipeline actions need an artifact store in each relevant action Region. Its own dependency is that artifact storage must be available in every Region where pipeline actions require it; those details concern the separate objective of being able to run a deployment action in a different AWS Region from its pipeline, rather than to the named control required to reduce time spent re-fetching dependencies in repeated builds on compatible environments.

C:

The proposed condition makes sense in an implementation designed to let automated builds read only the required inputs and publish expected outputs. It concerns CodeBuild runs under its assigned IAM service role, which needs access to referenced buckets, logs, and relevant keys, whereas this question tests the prerequisite of the named control.

D:

This proposed constraint belongs to a separate objective: results must remain associated with their build executions; the corresponding goal is to publish structured test reports that reviewers can inspect after a CI run, not the selected architecture's goal to reduce time spent re-fetching dependencies in repeated builds on compatible environments.

Question 257

A production ticket contains this symptom: Targets are registered but remain unhealthy after an otherwise successful deployment. The desired behavior is to diagnose why valid backend instances receive no load balancer traffic. What should be fixed?

  1. Inspect X-Ray traces for downstream service latency
  2. Review CodeDeploy lifecycle hook logs and agent logs on target EC2 instances
  3. Inspect application retry behavior and SQS ApproximateAgeOfOldestMessage
  4. Check ALB target-group health reason codes and the configured health path

Explanation

Correct Answer

D:

ALB target-group status reason codes and health settings show why endpoints fail checks. In this case the control is appropriate because it supports diagnose why valid backend instances receive no load balancer traffic. The target port, route, response code, and health thresholds need verification.

Incorrect Answers

A:

Although x-Ray traces expose service dependencies and timing across instrumented operations, the scenario does not ask for find which dependency slows a distributed API request; it requires the ability to diagnose why valid backend instances receive no load balancer traffic, which is a separate responsibility.

B:

CodeDeploy agent and deployment logs record instance-level lifecycle command behavior. This can help teams diagnose why an instance deployment fails during a lifecycle hook, but the reported workflow needs to diagnose why valid backend instances receive no load balancer traffic. It does not perform that required function.

C:

That service solves a different operating problem: the need to identify whether queue-processing latency is growing from a slow consumer. Its behavior is that SQS age metrics help reveal processing delay that count metrics alone can obscure. The requested outcome remains diagnose why valid backend instances receive no load balancer traffic.

Question 258

The application owner reports the following failure: A recovery design assumes a regional key ARN is automatically usable in every Region. Which action directly restores the requirement to manage related KMS key material for supported multi-Region cryptographic operations?

  1. Use AWS Private CA for an organization-managed private certificate authority
  2. Use customer managed KMS keys with explicitly scoped key policies
  3. Apply S3 Block Public Access at the account or bucket scope
  4. Use multi-Region KMS keys where the supported encryption workflow needs related keys
  5. Use AWS Config rule evaluations with automatic remediation for policy violations

Explanation

Correct Answer

D:

To manage related KMS key material for supported multi-Region cryptographic operations, the architecture relies on this AWS behavior: multi-Region KMS keys allow related keys in selected Regions but do not make every AWS service resource global; key replication, key policy, and regional resource configuration still require explicit management.

Incorrect Answers

A:

AWS Private CA creates and operates private certificate authorities for issuing and managing private certificates; this can help teams issue short-lived internal TLS certificates for private service identities, but the reported workflow needs to manage related KMS key material for supported multi-Region cryptographic operations. It does not perform that required function.

B:

That service solves a different operating problem: the need to separate encryption key management from broad object storage administration. Its behavior is that KMS key policies and grants determine who can use a protected customer managed key. The requested outcome remains manage related KMS key material for supported multi-Region cryptographic operations.

C:

The choice is useful when engineers need to prevent accidental public grants on sensitive S3 buckets: S3 Block Public Access settings override relevant public permissions for supported access paths; it would not establish the control needed to manage related KMS key material for supported multi-Region cryptographic operations.

E:

Choosing this would aim to restore supported misconfigured resource settings when drift is detected instead of manage related KMS key material for supported multi-Region cryptographic operations. AWS Config rules evaluate configurations and can integrate with Systems Manager remediation; it cannot replace the mechanism specified by the incident evidence.

Question 259

The production plan uses this approach: Use a nested CloudFormation stack for a reusable infrastructure component. The goal is to compose a large deployment from smaller lifecycle-managed CloudFormation templates. Which prerequisite or limitation should receive focused review?

  1. The deployment must still produce CloudFormation-managed infrastructure
  2. CloudFormation should resolve the protected value from its secret or parameter store
  3. The consumer should use an explicit stack export instead of hard-coded values
  4. Protection should constrain update operations while allowing approved stack updates elsewhere
  5. Reusable components should remain stacks with their own update boundaries

Explanation

Correct Answer

E:

The implementation has to honor the exact constraint: reusable components should remain stacks with their own update boundaries; nested stacks allow a parent stack to reference reusable child templates through stack resources.

Incorrect Answers

A:

This proposed constraint belongs to a separate objective: the deployment must still produce CloudFormation-managed infrastructure; the corresponding goal is to describe serverless functions and their event sources concisely in an IaC template, not the selected architecture's goal to compose a large deployment from smaller lifecycle-managed CloudFormation templates.

B:

This condition governs the different mechanism used to avoid hardcoding a sensitive input in reusable infrastructure templates; dynamic references let CloudFormation retrieve supported values from SSM Parameter Store or Secrets Manager; for the selected control, the relevant boundary is instead that reusable components should remain stacks with their own update boundaries.

C:

CloudFormation exports and Fn::ImportValue share supported values between stacks within the same account and Region; its own dependency is that the consumer should use an explicit stack export instead of hard-coded values. Those details concern the separate objective of being able to reference a networking stack's output from an application stack in the same Region, rather than to the named control required to compose a large deployment from smaller lifecycle-managed CloudFormation templates.

D:

The proposed condition makes sense in an implementation designed to block unintended replacement or deletion of protected resources during stack updates. It concerns a stack policy can deny update actions on selected logical resources unless appropriately overridden, whereas this question tests the prerequisite of the named control.

Question 260

The architecture record specifies: Use AWS Config conformance packs for grouped compliance evaluation. To support the goal to evaluate a collection of resource configuration controls against a standard, which consideration should the engineer validate?

  1. The comparison should focus on supported declared CloudFormation properties
  2. Rules should be bundled with any supported remediation definitions as a deployable unit
  3. The report should focus on IAM users and key use rather than role session credentials
  4. The process should adjust supported finding properties based on matching conditions

Explanation

Correct Answer

B:

The requested behavior is to evaluate a collection of resource configuration controls against a standard, and rules should be bundled with any supported remediation definitions as a deployable unit. The underlying AWS behavior is that conformance packs package AWS Config rules and supported remediation actions for consistent evaluation.

Incorrect Answers

A:

This condition governs the different mechanism used to identify resource properties that no longer match the approved template. Drift detection checks supported stack resource configuration against the declared IaC state. For the selected control, the relevant boundary is instead that rules should be bundled with any supported remediation definitions as a deployable unit.

C:

The proposed condition makes sense in an implementation designed to identify aging IAM user credentials that require rotation or removal; it concerns IAM credential reports and access-key usage metadata support audits of IAM user authentication materials, whereas this question tests the prerequisite of the named control.

D:

This proposed constraint belongs to a separate objective: the process should adjust supported finding properties based on matching conditions. The corresponding goal is to normalize and triage recurring findings according to defined central criteria, not the selected architecture's goal to evaluate a collection of resource configuration controls against a standard.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests