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.

Question 621

The security engineering team selects this control: Use CodeDeploy blue/green deployment with a replacement EC2 Auto Scaling group. What associated scope or dependency matters most when using it to replace an entire instance release without modifying the current live fleet?

  1. The old environment should remain ready during a traffic switch
  2. Instances require network access and a functioning local agent to apply revisions
  3. Traffic switching and the old task set must be independently manageable
  4. Rollback must be linked to an explicit monitored deployment failure condition
  5. Fleet changes must converge on a new launch template version

Explanation

Correct Answer

A:

The requested behavior is to replace an entire instance release without modifying the current live fleet, and the old environment should remain ready during a traffic switch. The underlying AWS behavior is that CodeDeploy blue/green can provision replacement EC2 instances and reroute traffic after health checks.

Incorrect Answers

B:

The proposed condition makes sense in an implementation designed to make instances eligible to receive CodeDeploy lifecycle instructions; it concerns the CodeDeploy agent polls for work and runs lifecycle instructions on managed EC2 or on-premises hosts, whereas this question tests the prerequisite of the named control; the specified requirement instead is to replace an entire instance release without modifying the current live fleet.

C:

This proposed constraint belongs to a separate objective: traffic switching and the old task set must be independently manageable; the corresponding goal is to shift load balancer traffic from the old ECS task set to the new task set, not the selected architecture's goal to replace an entire instance release without modifying the current live fleet.

D:

This condition governs the different mechanism used to halt an EC2 release when service health violates a CloudWatch alarm; CodeDeploy can monitor CloudWatch alarms and stop or roll back deployments based on configured criteria; for the selected control, the relevant boundary is instead that the old environment should remain ready during a traffic switch.

E:

Auto Scaling instance refresh replaces instances according to an updated launch template and health controls; its own dependency is that fleet changes must converge on a new launch template version; those details concern the separate objective of being able to replace outdated instances with a tested image instead of mutating running systems, rather than to the named control required to replace an entire instance release without modifying the current live fleet.

Question 622

A reliability change request has linked acceptance tests: the system must reduce database read pressure for frequently requested reusable data, and it must automatically change fleet capacity to maintain a target utilization level. Which two controls should the engineers combine?

  1. Configure Auto Scaling warm pools for slow-starting instances; configure EC2 target tracking scaling on an application-relevant metric
  2. Use ElastiCache for repeated hot-key application lookups; configure EC2 target tracking scaling on an application-relevant metric
  3. Use ElastiCache for repeated hot-key application lookups; use SQS backlog per worker as a target tracking metric
  4. Configure Kubernetes Horizontal Pod Autoscaler with relevant metrics; use SQS to buffer bursts between request intake and worker processing

Explanation

Correct Answer

B:

An in-memory cache serves hot keys without a round trip to the primary database for every read; this handles the first acceptance condition, subject to the boundary that application cache invalidation and expiration must be designed explicitly. The remaining condition is handled separately: target tracking policies adjust desired capacity around a configured metric target, with the metric should correlate with per-instance capacity and stable control behavior.

Incorrect Answers

A:

This combination solves only the latter acceptance test. The substituted first control supports reduce scale-out readiness time for an application with lengthy initialization: an Auto Scaling warm pool holds initialized instances in a supported state for later scale-out. It does not implement reduce database read pressure for frequently requested reusable data.

C:

Backlog per instance estimates the pressure on worker capacity for queue-driven scaling. That alternative supports the ability to scale message-processing workers with the backlog relative to active capacity, but it is not the requested second outcome (automatically change fleet capacity to maintain a target utilization level). Even though the first half addresses reduce database read pressure for frequently requested reusable data, this pair is incomplete.

D:

The pair changes the problem instead of completing it. One option addresses scale pod replicas for demand without changing each pod's compute limits; the other addresses decouple transient producer spikes from a bounded worker fleet. The release, however, needs to reduce database read pressure for frequently requested reusable data as well as automatically change fleet capacity to maintain a target utilization level.

Question 623

The architecture record specifies: Use an ECS deployment with a new immutable task definition revision. To support the goal to roll out a changed container image while retaining the previous task definition, which consideration should the engineer validate?

  1. Fleet changes must converge on a new launch template version
  2. The old environment should remain ready during a traffic switch
  3. The service must detect failure to reach steady state and enable rollback
  4. The service scheduler must be told which task definition revision to run

Explanation

Correct Answer

D:

The service scheduler must be told which task definition revision to run. Without this, choosing the named service is not enough to produce the promised outcome; an ECS service update selects a task definition revision and schedules replacement tasks to converge to it.

Incorrect Answers

A:

This proposed constraint belongs to a separate objective: fleet changes must converge on a new launch template version; the corresponding goal is to replace outdated instances with a tested image instead of mutating running systems, not the selected architecture's goal to roll out a changed container image while retaining the previous task definition.

B:

This condition governs the different mechanism used 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 selected control, the relevant boundary is instead that the service scheduler must be told which task definition revision to run.

C:

The ECS deployment circuit breaker can mark rolling deployments failed and roll back to a prior completed deployment; its own dependency is that the service must detect failure to reach steady state and enable rollback. Those details concern the separate objective of being able to automatically restore an earlier task deployment after a rolling deployment cannot stabilize, rather than to the named control required to roll out a changed container image while retaining the previous task definition.

Question 624

An operations runbook has 2 acceptance criteria: (1) invoke a service API at a one-time or recurring schedule without hosting a cron instance; (2) publish an internal agent package and distribute it to managed nodes. Which TWO AWS actions satisfy these requirements? Choose TWO.

  1. Use Systems Manager Distributor for controlled software-package deployment
  2. Use Systems Manager Patch Manager and patch baselines
  3. Use Systems Manager Automation runbooks for multi-step operational remediation
  4. Use Systems Manager Run Command for scoped remote command execution
  5. Use EventBridge Scheduler for per-task scheduled API invocations

Explanation

Correct Answers

A:

Distributor manages software packages that can be installed or updated through Systems Manager workflows; this fulfills the stated requirement to publish an internal agent package and distribute it to managed nodes. The operational limitation is that agent distribution must use managed package versions and installation commands.

E:

EventBridge Scheduler manages time-based invocation schedules with supported targets and retry policies; this fulfills the stated requirement to invoke a service API at a one-time or recurring schedule without hosting a cron instance; the operational limitation is that retries and dead-letter delivery need managed scheduling controls; in this design the separate acceptance test is to publish an internal agent package and distribute it to managed nodes.

Incorrect Answers

B:

This mechanism supports the ability to scan and install operating-system updates according to approved patch classifications: patch Manager applies selected baselines to supported managed nodes for scan or install operations; it would not satisfy a different obligation just by appearing in the same workflow; the specified requirement instead is to publish an internal agent package and distribute it to managed nodes.

C:

It supports a separate administrative task, namely to combine approvals, API actions, branching, and rollback-aware tasks in a repeatable runbook; automation runbooks execute structured steps and AWS service operations with defined permissions; the prompt's required outcomes are not achieved by substituting this control.

D:

Run Command dispatches supported command documents to selected managed nodes and records execution results; if the requirement were to run a one-time script against a tagged fleet without SSH access, that would matter. The requested outcomes are separate from the one this option addresses.

Question 625

A production-readiness assessment calls out two missing capabilities: detect tampering with delivered CloudTrail log files and control at-rest log encryption under an explicitly governed encryption key. Choose the AWS implementation that explicitly addresses both.

  1. Enable CloudTrail log file integrity validation for audit log chains; use CloudWatch agent StatsD or collectd integrations for supported workloads
  2. Create CloudWatch metric streams to Amazon Data Firehose; associate a customer managed KMS key with a CloudWatch Logs log group
  3. Enable CloudTrail log file integrity validation for audit log chains; configure CloudWatch metric filters for structured application log events
  4. Use an AWS Config aggregator for resource-compliance reporting; associate a customer managed KMS key with a CloudWatch Logs log group
  5. Install and configure the unified CloudWatch agent on EC2; publish application logs in structured JSON with stable correlation identifiers
  6. Enable CloudTrail log file integrity validation for audit log chains; associate a customer managed KMS key with a CloudWatch Logs log group

Explanation

Correct Answer

F:

For the requirement to detect tampering with delivered CloudTrail log files, CloudTrail log file integrity validation delivers digest files that can verify delivered logs; for the requirement to control at-rest log encryption under an explicitly governed encryption key, CloudWatch Logs supports customer-managed KMS key association for eligible log groups; 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; the unified CloudWatch agent supports collection from compatible metrics protocols and export to CloudWatch; it helps bridge existing application metric protocols into CloudWatch rather than control at-rest log encryption under an explicitly governed encryption key.

B:

CloudWatch metric streams continuously send metric data to supported delivery services. That is intended to continuously export supported metrics to an external observability platform, not to detect tampering with delivered CloudTrail log files; the second half can meet the requirement to control at-rest log encryption under an explicitly governed encryption key, but the first is still missing.

C:

Metric filters evaluate incoming CloudWatch Logs records and emit metrics for matching patterns; that alternative supports the ability to count specific error patterns without changing application metric instrumentation, but it is not the requested second outcome (control at-rest log encryption under an explicitly governed encryption key). Even though the first half addresses detect tampering with delivered CloudTrail log files, this pair is incomplete.

D:

This combination solves only the latter acceptance test. The substituted first control supports centralize supported configuration and compliance summaries from accounts and Regions: AWS Config aggregators consolidate resource configuration and compliance data from configured sources; it does not implement detect tampering with delivered CloudTrail log files.

E:

Neither control directly supplies both requested behaviors. The CloudWatch agent collects supported host metrics and logs beyond the standard EC2 metric set; structured log fields and propagated request IDs enable targeted multi-service incident investigation. Those mechanisms address different objectives. The specified capabilities are to detect tampering with delivered CloudTrail log files and to control at-rest log encryption under an explicitly governed encryption key.

Question 626

An observability team is resolving a multi-part production requirement: (1) watch incoming application events while reproducing a production issue; (2) protect exported audit objects with a controlled at-rest encryption boundary; (3) emit high-cardinality application measurements together with diagnostic context. Which THREE proposals directly implement the required capabilities? Choose THREE.

  1. Encrypt long-term S3 log objects with a customer managed KMS key
  2. Enable CloudTrail log file integrity validation for audit log chains
  3. Use CloudWatch Logs Live Tail for short-lived streaming troubleshooting
  4. Configure CloudTrail data events for selected sensitive S3 buckets
  5. Use an AWS Config aggregator for resource-compliance reporting
  6. Use CloudWatch Embedded Metric Format in structured JSON logs

Explanation

Correct Answers

A:

S3 SSE-KMS encrypts objects using AWS KMS keys with separate data and key-access controls; among the listed outcomes, it addresses protect exported audit objects with a controlled at-rest encryption boundary, rather than merely contributing a related signal or support step; in this design the separate acceptance test is to watch incoming application events while reproducing a production issue.

C:

Live Tail streams recently ingested matching log events from supported log groups. This fulfills the stated requirement to watch incoming application events while reproducing a production issue. The operational limitation is that the observation should focus on newly ingested log events in real time.

F:

This covers the specific result to emit high-cardinality application measurements together with diagnostic context: embedded Metric Format embeds metric definitions in structured log events for CloudWatch extraction. The log payload must follow the EMF schema for metrics extraction.

Incorrect Answers

B:

CloudTrail log file integrity validation delivers digest files that can verify delivered logs. If the requirement were to detect tampering with delivered CloudTrail log files, that would matter. The requested outcomes are separate from the one this option addresses.

D:

This mechanism supports the ability to record relevant object-level API activity rather than only account management events: CloudTrail data events capture selected data-plane operations, such as S3 object API calls; it would not satisfy a different obligation just by appearing in the same workflow; the specified requirement instead is to protect exported audit objects with a controlled at-rest encryption boundary.

E:

It supports a separate administrative task, namely to centralize supported configuration and compliance summaries from accounts and Regions. AWS Config aggregators consolidate resource configuration and compliance data from configured sources; the prompt's required outcomes are not achieved by substituting this control.

Question 627

A technical change review names the selected control as follows: Use a deployment action with a production-account IAM role. To isolate permissions between staging and production delivery, which constraint must be addressed for this design?

  1. The target account must retain control over the deployment role permissions
  2. The message should contain context for the paused approval rather than generic pipeline logs
  3. The shared artifact store must remain encrypted while permitting only designated consumers
  4. Production permissions must be assumed only by the designated production action

Explanation

Correct Answer

D:

Production permissions must be assumed only by the designated production action. Without this, choosing the named service is not enough to produce the promised outcome; role separation allows each pipeline action to run under the permissions approved for its target environment.

Incorrect Answers

A:

This proposed constraint belongs to a separate objective: the target account must retain control over the deployment role permissions; the corresponding goal is to deploy an artifact from the delivery account into a separately governed workload account, not the selected architecture's goal to isolate permissions between staging and production delivery.

B:

This condition governs the different mechanism used to notify release owners that production is awaiting an approval action. The manual approval action can publish an approval notification to an SNS topic for human review; for the selected control, the relevant boundary is instead that production permissions must be assumed only by the designated production action.

C:

A customer managed key with suitable key policy and IAM permission supports cross-account decrypt access; its own dependency is that the shared artifact store must remain encrypted while permitting only designated consumers. Those details concern the separate objective of being able to make encrypted CodePipeline artifacts usable by an authorized cross-account action, rather than to the named control required to isolate permissions between staging and production delivery.

Question 628

The release manager reports the following failure: Each team downloads third-party packages independently and cannot pin approved internal versions. Which action directly restores the requirement to centrally share approved Maven or npm packages across build projects?

  1. Enable ECR scan-on-push or enhanced scanning according to policy
  2. Store deployment bundles in an encrypted versioned S3 artifact bucket
  3. Publish versioned language dependencies to AWS CodeArtifact
  4. Push container images to a private Amazon ECR repository

Explanation

Correct Answer

C:

CodeArtifact hosts versioned package repositories with upstream connections and permission policies; in this case the control is appropriate because it supports centrally share approved Maven or npm packages across build projects. Repository access should be controlled by IAM and scoped package versions.

Incorrect Answers

A:

Choosing this would aim to surface vulnerable container packages before images are approved instead of centrally share approved Maven or npm packages across build projects; ECR scanning integrates container vulnerability findings with repository images and security workflows; it cannot replace the mechanism specified by the incident evidence.

B:

Although S3 versioning preserves object versions; bucket encryption and scoped policies protect deployment bundles, the scenario does not ask for retain retrievable, auditable application bundles for instance deployments. It requires the ability to centrally share approved Maven or npm packages across build projects, which is a separate responsibility.

D:

That service solves a different operating problem: the need to store deployable OCI images with private access for ECS workloads. Its behavior is that Amazon ECR stores container image manifests and layers in repositories that can enforce permissions. The requested outcome remains centrally share approved Maven or npm packages across build projects.

Question 629

An internal reliability review requests these controls: (1) run compatible test variations in parallel and consolidate their outcomes; (2) verify the release role cannot perform actions outside its approved scope. Which TWO proposed actions belong in the implementation? Choose TWO.

  1. Use AWS IAM policy evaluation tests for deployment-role assumptions
  2. Run controlled load tests in a dedicated performance environment
  3. Execute integration tests against an isolated ephemeral test stack
  4. Use CodeBuild batch builds for a supported test matrix
  5. Run unit tests in the first CodeBuild stage before packaging

Explanation

Correct Answers

A:

The corresponding obligation is to verify the release role cannot perform actions outside its approved scope. IAM policy simulation and access analysis can help test whether planned principal actions are allowed; that behavior is the reason this action belongs in the selected answer set.

D:

Batch builds support coordinated multiple build configurations and associated aggregate status; this fulfills the stated requirement to run compatible test variations in parallel and consolidate their outcomes. The operational limitation is that the matrix results must be tied to one reviewable build request.

Incorrect Answers

B:

It supports a separate administrative task, namely to measure throughput and latency under expected concurrency without degrading production; dedicated performance testing reveals scale and bottleneck behavior while isolating intentional high load; the prompt's required outcomes are not achieved by substituting this control; the specified requirement instead is to verify the release role cannot perform actions outside its approved scope.

C:

An integration environment exercises actual API and infrastructure interactions that unit mocks do not cover; if the requirement were to validate service-to-service interactions against real deployed dependencies before approval, that would matter. The requested outcomes are separate from the one this option addresses.

E:

This mechanism supports the ability to reject code-level regressions rapidly before creating production artifacts: unit tests in an early build action reduce feedback latency and stop faulty revisions before expensive stages. It would not satisfy a different obligation just by appearing in the same workflow.

Question 630

A production ticket contains this symptom: Pull requests repeatedly introduce storage resources without mandatory encryption properties. The desired behavior is to reject templates that violate machine-readable resource configuration standards. What should be fixed?

  1. Apply CloudFormation Guard rules in the infrastructure validation stage
  2. Use CloudFormation dynamic references for protected parameter values
  3. Use CDK Aspects to apply organization-wide checks or tags to constructs
  4. Publish approved infrastructure products through AWS Service Catalog
  5. Use CloudFormation hooks to validate resource configuration during stack operations

Explanation

Correct Answer

A:

CloudFormation Guard checks supported template structures against declarative compliance rules; in this case the control is appropriate because it supports reject templates that violate machine-readable resource configuration standards. Policy validation must happen before CloudFormation executes changes.

Incorrect Answers

B:

That service solves a different operating problem: the need to avoid hardcoding a sensitive input in reusable infrastructure templates; its behavior is that dynamic references let CloudFormation retrieve supported values from SSM Parameter Store or Secrets Manager; the requested outcome remains reject templates that violate machine-readable resource configuration standards.

C:

The choice is useful when engineers need to enforce consistent tagging and validation across an application's CDK construct tree: CDK Aspects visit construct nodes to apply checks or modifications throughout a CDK application. It would not establish the control needed to reject templates that violate machine-readable resource configuration standards.

D:

Service Catalog portfolios expose governed infrastructure products to authorized consumers. This is a reasonable option when the requirement is to let application teams self-service compliant infrastructure without broad template authoring access, but it operates at a different workflow boundary from the stated need to reject templates that violate machine-readable resource configuration standards.

E:

Choosing this would aim to intercept stack resource operations that violate central deployment rules instead of reject templates that violate machine-readable resource configuration standards. CloudFormation hooks can enforce pre-provisioning or operation-time checks for supported resource types; it cannot replace the mechanism specified by the incident evidence.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests