Question 150

An AWS design review will approve a solution only if it meets these criteria: (1) track executed source coverage while retaining assertions-based acceptance gates; (2) evaluate a proposed change before it merges into a protected branch. Select the TWO needed changes. Choose TWO.

  1. Run controlled load tests in a dedicated performance environment
  2. Use pull request events to start a pre-merge validation build
  3. Run unit tests in the first CodeBuild stage before packaging
  4. Run dependency and container image scanning before artifact promotion
  5. Publish code coverage in CodeBuild reports without treating it as proof of behavior

Explanation

Correct Answers

B:

This covers the specific result to evaluate a proposed change before it merges into a protected branch: PR-triggered builds can test changes earlier than post-merge releases and support branch protection workflows; validation must execute for proposed revisions and feed status to the review process.

E:

Coverage reports show which code paths execute; they cannot prove that behavior or assertions are correct; among the listed outcomes, it addresses track executed source coverage while retaining assertions-based acceptance gates, rather than merely contributing a related signal or support step.

Incorrect Answers

A:

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.

C:

Unit tests in an early build action reduce feedback latency and stop faulty revisions before expensive stages; that would be appropriate to reject code-level regressions rapidly before creating production artifacts, but this is a different objective from the numbered obligations in the stem.

D:

This mechanism supports the ability to reject packages containing prohibited vulnerable dependencies before production: an automated scanning gate blocks releases when risk findings breach the defined security policy; it would not satisfy a different obligation just by appearing in the same workflow.

Question 151

A release readiness review identifies 2 distinct controls to implement: (1) evaluate a proposed change before it merges into a protected branch; (2) verify the release role cannot perform actions outside its approved scope. Select the TWO actions that jointly cover them. Choose TWO.

  1. Run controlled load tests in a dedicated performance environment
  2. Use AWS IAM policy evaluation tests for deployment-role assumptions
  3. Run dependency and container image scanning before artifact promotion
  4. Run acceptance tests after staging deployment and before approval
  5. Use pull request events to start a pre-merge validation build

Explanation

Correct Answers

B:

IAM policy simulation and access analysis can help test whether planned principal actions are allowed; this fulfills the stated requirement to verify the release role cannot perform actions outside its approved scope. The operational limitation is that authorization checks must include explicit denied or ungranted actions.

E:

This covers the specific result to evaluate a proposed change before it merges into a protected branch: PR-triggered builds can test changes earlier than post-merge releases and support branch protection workflows; validation must execute for proposed revisions and feed status to the review process; in this design the separate acceptance test is to verify the release role cannot perform actions outside its approved scope.

Incorrect Answers

A:

Dedicated performance testing reveals scale and bottleneck behavior while isolating intentional high load; if the requirement were to measure throughput and latency under expected concurrency without degrading production, that would matter. The requested outcomes are separate from the one this option addresses.

C:

This mechanism supports the ability to reject packages containing prohibited vulnerable dependencies before production: an automated scanning gate blocks releases when risk findings breach the defined security policy; it would not satisfy a different obligation just by appearing in the same workflow; the specified requirement instead is to verify the release role cannot perform actions outside its approved scope.

D:

It supports a separate administrative task, namely to verify business workflows on a deployed candidate before production promotion. Acceptance checks validate end-to-end expected behavior and can fail the pipeline before production; the prompt's required outcomes are not achieved by substituting this control.

Question 152

A cross-team infrastructure plan specifies 3 measurable outcomes: (1) adjust container capacity as aggregate task load grows; (2) raise an incident when a known error token appears repeatedly in application logs; (3) send only relevant event details to responders rather than an entire event payload. Which THREE solutions address them? Choose THREE.

  1. Use EventBridge input transformation before notifying an operations target
  2. Use CloudWatch Contributor Insights for supported high-cardinality usage analysis
  3. Use a CloudWatch alarm for ECS CPU or memory utilization with service scaling
  4. Attach automatic AWS Config remediation to an SSM Automation document
  5. Configure an EventBridge rule with an SSM Automation target
  6. Use a CloudWatch metric filter and alarm for unusual log events

Explanation

Correct Answers

A:

EventBridge input transformers construct custom target payloads from matched event fields. This fulfills the stated requirement to send only relevant event details to responders rather than an entire event payload. The operational limitation is that the message must preserve event ID, resource, and state fields while removing noise.

C:

Application Auto Scaling policies can use CloudWatch service metrics to scale ECS task replicas; among the listed outcomes, it addresses adjust container capacity as aggregate task load grows, rather than merely contributing a related signal or support step.

F:

The corresponding obligation is to raise an incident when a known error token appears repeatedly in application logs. A metric filter emits values from matching logs that a CloudWatch alarm can evaluate; that behavior is the reason this action belongs in the selected answer set.

Incorrect Answers

B:

This mechanism supports the ability to identify the top contributors to a metric or structured log workload: contributor Insights rules analyze supported log or metric inputs to identify top contributing entities. It would not satisfy a different obligation just by appearing in the same workflow.

D:

Config automatic remediation can invoke Systems Manager Automation for noncompliant resources. If the requirement were to correct an eligible configuration violation soon after detection, that would matter. The requested outcomes are separate from the one this option addresses.

E:

EventBridge can invoke supported Systems Manager Automation runbooks from matching events. That would be appropriate to launch a defined remediation runbook when a matching service event occurs, but this is a different objective from the numbered obligations in the stem.

Question 153

A production change is expected to adapt provisioned throughput targets to changing demand. The same change must also reduce scale-out readiness time for an application with lengthy initialization. Which paired implementation meets both acceptance criteria?

  1. Use DynamoDB auto scaling for provisioned read and write capacity; use API Gateway throttling to bound request rates to a serverless backend
  2. Place CloudFront caching ahead of read-heavy static content origins; configure EC2 target tracking scaling on an application-relevant metric
  3. Use DynamoDB auto scaling for provisioned read and write capacity; run stateless burst workloads on AWS Fargate
  4. Use DynamoDB auto scaling for provisioned read and write capacity; configure Auto Scaling warm pools for slow-starting instances
  5. Use ElastiCache for repeated hot-key application lookups; configure Auto Scaling warm pools for slow-starting instances

Explanation

Correct Answer

D:

DynamoDB Application Auto Scaling can change provisioned read or write capacity based on utilization targets; an Auto Scaling warm pool holds initialized instances in a supported state for later scale-out. The first control satisfies the need to adapt provisioned throughput targets to changing demand; the second addresses the need to reduce scale-out readiness time for an application with lengthy initialization. The solution must adjust RCU and WCU settings rather than compute nodes; preinitialized instances should be available for faster activation.

Incorrect Answers

A:

The first half is appropriate: DynamoDB Application Auto Scaling can change provisioned read or write capacity based on utilization targets. However, API Gateway throttling controls supported request rates and can return 429 responses when limits are exceeded; that serves a different objective (protect Lambda and downstream systems from excessive caller traffic) and leaves the explicit need to reduce scale-out readiness time for an application with lengthy initialization unmet.

B:

These are legitimate AWS controls for different outcomes: CloudFront caches eligible objects at edge locations to reduce repeated origin requests and user latency, whereas target tracking policies adjust desired capacity around a configured metric target. The problem instead requires the ability to adapt provisioned throughput targets to changing demand and to reduce scale-out readiness time for an application with lengthy initialization.

C:

Combining a suitable first control with this second one misses the secondary acceptance criterion; fargate provides managed compute capacity for compatible ECS tasks and EKS pods; it helps launch containers without managing EC2 hosts for short-lived jobs rather than reduce scale-out readiness time for an application with lengthy initialization.

E:

The second implementation is relevant; the problem is the first. An in-memory cache serves hot keys without a round trip to the primary database for every read; it can help reduce database read pressure for frequently requested reusable data, whereas the stated first requirement is to adapt provisioned throughput targets to changing demand.

Question 154

For the current AWS workload, operators need to address the following together: (1) reapply a required host configuration whenever nodes drift; (2) combine approvals, API actions, branching, and rollback-aware tasks in a repeatable runbook. Which TWO actions complete the plan? Choose TWO.

  1. Use Systems Manager OpsCenter OpsItems for operational work tracking
  2. Use Lambda reserved concurrency to limit simultaneous remediation functions
  3. Use Systems Manager Automation runbooks for multi-step operational remediation
  4. Use an SQS dead-letter queue for repeatedly failing asynchronous work
  5. Use State Manager to enforce a recurring configuration association
  6. Use conditional writes or deduplication keys to make a remediation handler idempotent

Explanation

Correct Answers

C:

Automation runbooks execute structured steps and AWS service operations with defined permissions; this fulfills the stated requirement to combine approvals, API actions, branching, and rollback-aware tasks in a repeatable runbook. The operational limitation is that the workflow needs controlled execution steps and an assumable automation role.

E:

State Manager associations run specified documents against targets according to defined schedules; among the listed outcomes, it addresses reapply a required host configuration whenever nodes drift, rather than merely contributing a related signal or support step.

Incorrect Answers

A:

It supports a separate administrative task, namely to collect recurring operational issues with linked resource context and status. OpsCenter OpsItems group investigation context and operational metadata for issue management. The prompt's required outcomes are not achieved by substituting this control.

B:

Reserved concurrency sets a function-level limit and allocation of simultaneous Lambda executions; if the requirement were to cap the number of concurrent handlers acting on a sensitive downstream API, that would matter. The requested outcomes are separate from the one this option addresses.

D:

This mechanism supports the ability to isolate messages that exceed the permitted receive-attempt count: SQS redrive policies move repeatedly unsuccessfully processed messages to a designated dead-letter queue. It would not satisfy a different obligation just by appearing in the same workflow.

F:

Idempotency controls make repeated executions converge on the same intended side effect. If the requirement were to prevent repeated event delivery from causing duplicate infrastructure changes, that would matter. The requested outcomes are separate from the one this option addresses.

Question 155

The operations backlog groups related changes into one implementation window: (1) provision a resource only when an environment parameter meets a defined requirement; (2) apply baseline stacks when new accounts join a targeted organizational unit; (3) let application teams self-service compliant infrastructure without broad template authoring access. Which THREE controls directly meet the listed goals? Choose THREE.

  1. Enable automatic deployment for an OU-targeted CloudFormation StackSet
  2. Apply CloudFormation Conditions to optional template resources
  3. Deploy dynamic configuration using AWS AppConfig gradual rollout
  4. Publish approved infrastructure products through AWS Service Catalog
  5. Use SSM document version control for repeatable operational scripts
  6. Use Systems Manager State Manager associations for desired-state enforcement

Explanation

Correct Answers

A:

This covers the specific result to apply baseline stacks when new accounts join a targeted organizational unit: stackSet automatic deployment creates or removes managed instances as accounts move into or out of targeted OUs. Accounts that enter or leave a target OU should follow explicit stack lifecycle policy.

B:

Conditions can determine resource creation and property values based on template parameters and functions; this fulfills the stated requirement to provision a resource only when an environment parameter meets a defined requirement; the operational limitation is that one parameterized template should selectively include appropriate resources; in this design the separate acceptance test is to apply baseline stacks when new accounts join a targeted organizational unit.

D:

Service Catalog portfolios expose governed infrastructure products to authorized consumers. Among the listed outcomes, it addresses let application teams self-service compliant infrastructure without broad template authoring access, rather than merely contributing a related signal or support step.

Incorrect Answers

C:

This mechanism supports the ability to release feature flags independently from application code with automatic rollback on alarms: AppConfig deployment strategies gradually distribute hosted or sourced configuration and can roll back on alarms. It would not satisfy a different obligation just by appearing in the same workflow.

E:

SSM documents support versioned content and associations can refer to defined document versions; if the requirement were to publish a reviewed command document and execute a pinned approved version, that would matter; the requested outcomes are separate from the one this option addresses; the specified requirement instead is to apply baseline stacks when new accounts join a targeted organizational unit.

F:

State Manager associations apply a defined configuration on a schedule to selected managed resources; that would be appropriate to keep managed instances configured with a prescribed agent and operating setting, but this is a different objective from the numbered obligations in the stem.

Question 156

An operations runbook has 2 acceptance criteria: (1) detect tampering between build completion and production deployment; (2) include compiled outputs rather than the entire source tree in a pipeline artifact. Which TWO AWS actions satisfy these requirements? Choose TWO.

  1. Enable ECR image tag immutability for release repositories
  2. Sign and verify release artifacts through a controlled integrity process
  3. Export a CodeBuild artifact using buildspec artifact paths
  4. Use CodeArtifact upstream repositories for approved external packages
  5. Apply S3 Object Lock retention when required by evidence policy
  6. Enable ECR scan-on-push or enhanced scanning according to policy

Explanation

Correct Answers

B:

The corresponding obligation is to detect tampering between build completion and production deployment. Cryptographic signatures and trusted verification bind an approved artifact to its signing provenance; that behavior is the reason this action belongs in the selected answer set.

C:

The buildspec artifacts section chooses files to package and publish as build outputs; among the listed outcomes, it addresses include compiled outputs rather than the entire source tree in a pipeline artifact, rather than merely contributing a related signal or support step; in this design the separate acceptance test is to detect tampering between build completion and production deployment.

Incorrect Answers

A:

ECR tag immutability prevents image tags from being overwritten in repositories configured for it; that would be appropriate to prevent existing release tags from silently being overwritten, but this is a different objective from the numbered obligations in the stem.

D:

CodeArtifact upstream relationships can retrieve dependency versions while concentrating package access management; if the requirement were to cache vetted public-package dependencies through the organization's package repository, that would matter. The requested outcomes are separate from the one this option addresses.

E:

S3 Object Lock protects eligible versioned objects under governance or compliance retention modes; that would be appropriate to prevent modification or deletion of archived release artifacts for a mandated period, but this is a different objective from the numbered obligations in the stem.

F:

This mechanism supports the ability to surface vulnerable container packages before images are approved: ECR scanning integrates container vulnerability findings with repository images and security workflows. It would not satisfy a different obligation just by appearing in the same workflow.

Question 157

After a configuration change, the production support team sees this issue: A single Availability Zone database outage is incorrectly escalated to a full regional recovery runbook. What best restores the ability to restore database service availability without promoting a cross-Region read replica?

  1. Use AWS Elastic Disaster Recovery replication and recovery launch plans
  2. Use RDS Multi-AZ automatic failover for a local Availability Zone failure
  3. Use RDS automated backups for point-in-time recovery within retention
  4. Run regular failover game days and measure actual RTO and RPO

Explanation

Correct Answer

B:

RDS Multi-AZ can fail over to a maintained standby in another zone using the managed DB endpoint; it restores the ability to restore database service availability without promoting a cross-Region read replica, provided the implementation also observes that regional disaster recovery should not be triggered when native Multi-AZ failover is adequate.

Incorrect Answers

A:

That service solves a different operating problem: the need to reduce recovery time for supported server workloads using block-level replication; its behavior is that elastic Disaster Recovery continuously replicates supported source-server data for recovery launches into AWS; the requested outcome remains restore database service availability without promoting a cross-Region read replica.

C:

RDS automated backups support point-in-time restore using retained backup data and transaction logs; this is a reasonable option when the requirement is to restore a supported relational database to a selected time before an accidental modification, but it operates at a different workflow boundary from the stated need to restore database service availability without promoting a cross-Region read replica.

D:

Choosing this would aim to validate recovery performance against business-approved thresholds instead of restore database service availability without promoting a cross-Region read replica; controlled recovery tests expose dependencies, manual delays, and replication gaps before incidents; it cannot replace the mechanism specified by the incident evidence.

Question 158

A release design adopts this mechanism: Use SQS backlog per worker as a target tracking metric. Which implementation detail is most relevant to its proposed use to scale message-processing workers with the backlog relative to active capacity?

  1. Preinitialized instances should be available for faster activation
  2. Node provisioning must respond to Kubernetes scheduling constraints
  3. Scaling must follow outstanding work per consumer rather than CPU alone
  4. The solution must adjust RCU and WCU settings rather than compute nodes
  5. The capacity mechanism must update ECS desired task count

Explanation

Correct Answer

C:

Scaling must follow outstanding work per consumer rather than CPU alone. That is the governing deployment boundary for the selected control: backlog per instance estimates the pressure on worker capacity for queue-driven scaling. If the boundary is missed, the design can fail to scale message-processing workers with the backlog relative to active capacity.

Incorrect Answers

A:

The proposed condition makes sense in an implementation designed to reduce scale-out readiness time for an application with lengthy initialization; it concerns an Auto Scaling warm pool holds initialized instances in a supported state for later scale-out, whereas this question tests the prerequisite of the named control.

B:

This proposed constraint belongs to a separate objective: node provisioning must respond to Kubernetes scheduling constraints. The corresponding goal is to add cluster nodes when pods cannot schedule due to insufficient capacity, not the selected architecture's goal to scale message-processing workers with the backlog relative to active capacity.

D:

DynamoDB Application Auto Scaling can change provisioned read or write capacity based on utilization targets; its own dependency is that the solution must adjust RCU and WCU settings rather than compute nodes; those details concern the separate objective of being able to adapt provisioned throughput targets to changing demand, rather than to the named control required to scale message-processing workers with the backlog relative to active capacity.

E:

The proposed condition makes sense in an implementation designed to adjust running service task capacity based on a CloudWatch target metric; it concerns application Auto Scaling can control ECS service desired count from target tracking or step policies, whereas this question tests the prerequisite of the named control.

Question 159

The release manager reports the following failure: Compute in a second zone cannot reach its expected local EFS mount path. Which action directly restores the requirement to allow Linux application instances in multiple zones to access a common managed file system?

  1. Deploy an Application Load Balancer across at least two Availability Zones
  2. Enable Amazon RDS Multi-AZ high availability for a supported DB engine
  3. Configure DynamoDB global tables for multi-Region active-active access
  4. Use EFS mount targets in each client Availability Zone

Explanation

Correct Answer

D:

EFS mount targets provide VPC network access to a Regional shared file system from selected zones; that directly addresses the observed failure in the scenario. The configuration still has to respect this constraint: clients should mount EFS through a mount target reachable from their zone.

Incorrect Answers

A:

An ALB can distribute requests to healthy registered targets across enabled Availability Zones; this is a reasonable option when the requirement is to maintain HTTP routing to healthy targets when an application Availability Zone fails, but it operates at a different workflow boundary from the stated need to allow Linux application instances in multiple zones to access a common managed file system.

B:

Choosing this would aim to provide automatic database failover after a primary Availability Zone outage instead of allow Linux application instances in multiple zones to access a common managed file system; RDS Multi-AZ deployments maintain a standby or multi-instance arrangement for managed failover; it cannot replace the mechanism specified by the incident evidence.

C:

Although DynamoDB global tables replicate data among participating Regions and support multi-Region writes, the scenario does not ask for allow application writes in more than one AWS Region with replication; it requires the ability to allow Linux application instances in multiple zones to access a common managed file system, which is a separate responsibility.

Question 160

The production support team proposes this implementation: Use a CloudWatch metric filter and alarm for unusual log events. Its intended result is to raise an incident when a known error token appears repeatedly in application logs. Which implementation consideration is most specific to that choice?

  1. The system must evaluate resource configuration against a known rule
  2. The filter pattern must match the incoming event shape
  3. Recipients need subscriptions independent of the monitored resource
  4. Alarm thresholds must correspond to the associated scaling-policy behavior
  5. The target instance and alarm must meet EC2 recovery requirements

Explanation

Correct Answer

B:

The requested behavior is to raise an incident when a known error token appears repeatedly in application logs, and the filter pattern must match the incoming event shape. The underlying AWS behavior is that a metric filter emits values from matching logs that a CloudWatch alarm can evaluate.

Incorrect Answers

A:

This condition governs the different mechanism used to identify noncompliant resources without depending on log-string alerts; config rules assess supported resource settings and publish compliant or noncompliant evaluations; for the selected control, the relevant boundary is instead that the filter pattern must match the incoming event shape.

C:

The proposed condition makes sense in an implementation designed to notify multiple responder endpoints when a service metric breaches its threshold. It concerns CloudWatch alarms can publish state-change notifications to SNS topics and subscribed endpoints, whereas this question tests the prerequisite of the named control.

D:

This proposed constraint belongs to a separate objective: alarm thresholds must correspond to the associated scaling-policy behavior; the corresponding goal is to adjust worker fleet capacity when a workload metric crosses a defined level, not the selected architecture's goal to raise an incident when a known error token appears repeatedly in application logs.

E:

This condition governs the different mechanism used to recover an eligible impaired instance when a system-status check indicates host failure. Supported CloudWatch alarm actions can request EC2 instance recovery for qualifying status-check failures; for the selected control, the relevant boundary is instead that the filter pattern must match the incoming event shape.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests