Question 290

Investigators observe: Builds succeed but the deployment action cannot find the generated application archive. Engineers still need to include compiled outputs rather than the entire source tree in a pipeline artifact. Which corrective action is most appropriate?

  1. Enable S3 replication for approved build objects that must be available cross-Region
  2. Use EC2 Image Builder pipelines to produce hardened AMIs
  3. Export a CodeBuild artifact using buildspec artifact paths
  4. Pin image promotion to an ECR image digest instead of a mutable tag

Explanation

Correct Answer

C:

The buildspec artifacts section chooses files to package and publish as build outputs; that directly addresses the observed failure in the scenario. The configuration still has to respect this constraint: the downstream action must receive the files produced by build commands.

Incorrect Answers

A:

The choice is useful when engineers need to copy versioned release bundles into a secondary Region's artifact bucket: S3 replication rules copy eligible objects between versioned buckets with suitable destination and permissions; it would not establish the control needed to include compiled outputs rather than the entire source tree in a pipeline artifact.

B:

Image Builder creates, customizes, tests, and distributes repeatable machine images from recipes; this is a reasonable option when the requirement is to automate repeatable golden-image builds with validation tests, but it operates at a different workflow boundary from the stated need to include compiled outputs rather than the entire source tree in a pipeline artifact.

D:

Although image digests identify content; mutable tags can be repointed and are unsuitable as sole provenance, the scenario does not ask for deploy exactly the image bytes tested during CI; it requires the ability to include compiled outputs rather than the entire source tree in a pipeline artifact, which is a separate responsibility.

Question 291

Investigators observe: All teams receive every incident message although they subscribe to different classes. Engineers still need to send only security-relevant messages to the security response queue. Which corrective action is most appropriate?

  1. Use AWS Health events through EventBridge for account-impact notifications
  2. Use EventBridge Pipes to filter and enrich events from a supported source
  3. Use EventBridge rule retry settings and an SQS dead-letter queue for failed targets
  4. Use SNS with appropriate subscription filter policies
  5. Use S3 Event Notifications to enqueue object-processing work

Explanation

Correct Answer

D:

SNS subscription filters select which published messages each subscriber receives. It enables the necessary capability to send only security-relevant messages to the security response queue rather than only providing an adjacent operational control. Message attributes or supported bodies should drive routing to subscribers.

Incorrect Answers

A:

Supported AWS Health events appear on EventBridge and can trigger notification or workflows. This is a reasonable option when the requirement is to initiate targeted response to an AWS-managed service event affecting the account, but it operates at a different workflow boundary from the stated need to send only security-relevant messages to the security response queue.

B:

Choosing this would aim to connect a managed stream or queue to a target with transformation and optional enrichment instead of send only security-relevant messages to the security response queue. EventBridge Pipes connects supported sources to targets with optional filter and enrichment steps; it cannot replace the mechanism specified by the incident evidence.

C:

Although EventBridge rules can use retry policies and DLQ targets to preserve failed deliveries, the scenario does not ask for retain failed event delivery attempts for later investigation; it requires the ability to send only security-relevant messages to the security response queue, which is a separate responsibility.

E:

That service solves a different operating problem: the need to respond asynchronously when new diagnostic objects arrive in an S3 bucket. Its behavior is that S3 event notifications can send selected bucket events to eligible SQS, SNS, or Lambda targets. The requested outcome remains send only security-relevant messages to the security response queue.

Question 292

An engineer is addressing a two-part delivery requirement: validate that a multi-AZ application survives a deliberately introduced infrastructure fault, without losing the ability to fail a promotion flow based on smoke-test results for the deployed service. Which set of actions is suitable?

  1. Use AWS Fault Injection Service in a controlled resilience test; use a CodePipeline test action after deployment to staging
  2. Use AWS Fault Injection Service in a controlled resilience test; run acceptance tests after staging deployment and before approval
  3. Publish code coverage in CodeBuild reports without treating it as proof of behavior; use a CodePipeline test action after deployment to staging
  4. Use pull request events to start a pre-merge validation build; use CodeBuild batch builds for a supported test matrix

Explanation

Correct Answer

A:

Fault Injection Service can inject supported disruptions so teams can measure actual resilience behavior; a pipeline test action turns post-deployment health verification into an enforceable promotion gate. The first control satisfies the need to validate that a multi-AZ application survives a deliberately introduced infrastructure fault; the second addresses the need to fail a promotion flow based on smoke-test results for the deployed service. Experiments need explicit stop conditions and safety controls to limit blast radius; the test stage must consume the staged endpoint and block the next stage if it fails.

Incorrect Answers

B:

The first half is appropriate: Fault Injection Service can inject supported disruptions so teams can measure actual resilience behavior. However, acceptance checks validate end-to-end expected behavior and can fail the pipeline before production; that serves a different objective (verify business workflows on a deployed candidate before production promotion) and leaves the explicit need to fail a promotion flow based on smoke-test results for the deployed service unmet.

C:

The second implementation is relevant; the problem is the first. Coverage reports show which code paths execute; they cannot prove that behavior or assertions are correct; it can help track executed source coverage while retaining assertions-based acceptance gates, whereas the stated first requirement is to validate that a multi-AZ application survives a deliberately introduced infrastructure fault.

D:

The pair changes the problem instead of completing it. One option addresses evaluate a proposed change before it merges into a protected branch; the other addresses run compatible test variations in parallel and consolidate their outcomes. The release, however, needs to validate that a multi-AZ application survives a deliberately introduced infrastructure fault as well as fail a promotion flow based on smoke-test results for the deployed service.

Question 293

An internal reliability review requests these controls: (1) prevent existing release tags from silently being overwritten; (2) deploy exactly the image bytes tested during CI. Which TWO proposed actions belong in the implementation? Choose TWO.

  1. Enable S3 replication for approved build objects that must be available cross-Region
  2. Configure ECR replication to authorized Regions or accounts
  3. Store deployment bundles in an encrypted versioned S3 artifact bucket
  4. Pin image promotion to an ECR image digest instead of a mutable tag
  5. Enable ECR image tag immutability for release repositories

Explanation

Correct Answers

D:

Image digests identify content; mutable tags can be repointed and are unsuitable as sole provenance; this fulfills the stated requirement to deploy exactly the image bytes tested during CI. The operational limitation is that release identity must be immutable even when friendly tags are moved.

E:

The corresponding obligation is to prevent existing release tags from silently being overwritten. ECR tag immutability prevents image tags from being overwritten in repositories configured for it; that behavior is the reason this action belongs in the selected answer set.

Incorrect Answers

A:

This mechanism supports the ability to copy versioned release bundles into a secondary Region's artifact bucket: S3 replication rules copy eligible objects between versioned buckets with suitable destination and permissions. It would not satisfy a different obligation just by appearing in the same workflow.

B:

It supports a separate administrative task, namely to preposition container images in the registries used by regional deployments. ECR replication copies matching repository images to configured destination registries and Regions; the prompt's required outcomes are not achieved by substituting this control.

C:

S3 versioning preserves object versions; bucket encryption and scoped policies protect deployment bundles; if the requirement were to retain retrievable, auditable application bundles for instance deployments, that would matter; the requested outcomes are separate from the one this option addresses.

Question 294

A production-readiness assessment calls out two missing capabilities: evaluate a collection of resource configuration controls against a standard and identify buckets and objects that contain potentially regulated data. Choose the AWS implementation that explicitly addresses both.

  1. Use Security Hub automation rules for finding-state prioritization; use Amazon Macie sensitive-data findings for S3 exposure investigations
  2. Use AWS Config conformance packs for grouped compliance evaluation; enable AWS Config recording and resource configuration history
  3. Use AWS Config conformance packs for grouped compliance evaluation; use Amazon Macie sensitive-data findings for S3 exposure investigations
  4. Use VPC Flow Logs to investigate rejected network flows; use Amazon Detective for investigation of related security activity

Explanation

Correct Answer

C:

Conformance packs package AWS Config rules and supported remediation actions for consistent evaluation; Macie analyzes supported S3 objects and reports sensitive-data discovery findings. The first control satisfies the need to evaluate a collection of resource configuration controls against a standard; the second addresses the need to identify buckets and objects that contain potentially regulated data. Rules should be bundled with any supported remediation definitions as a deployable unit; content discovery should determine whether supported S3 objects contain sensitive information.

Incorrect Answers

A:

Security Hub automation rules can update selected finding fields when findings match configured criteria; that is intended to normalize and triage recurring findings according to defined central criteria, not to evaluate a collection of resource configuration controls against a standard. The second half can meet the requirement to identify buckets and objects that contain potentially regulated data, but the first is still missing.

B:

AWS Config records supported resource configuration items and their change history. That alternative supports the ability to determine how an audited resource's settings changed over time, but it is not the requested second outcome (identify buckets and objects that contain potentially regulated data). Even though the first half addresses evaluate a collection of resource configuration controls against a standard, this pair is incomplete.

D:

Neither control directly supplies both requested behaviors. VPC Flow Logs record accepted and rejected flow metadata without capturing full packet payloads; detective assists security investigations by correlating supported activity and entity relationships. Those mechanisms address different objectives. The specified capabilities are to evaluate a collection of resource configuration controls against a standard and to identify buckets and objects that contain potentially regulated data.

Question 295

The next AWS platform release needs to control the capacity margin during rolling task replacement while also being able to roll out a changed container image while retaining the previous task definition. Which pairing best supports that release?

  1. Set appropriate ECS deployment minimum healthy percent and maximum percent; use an Auto Scaling lifecycle hook to finish instance initialization before InService
  2. Set appropriate ECS deployment minimum healthy percent and maximum percent; use an ECS deployment with a new immutable task definition revision
  3. Apply Kubernetes readiness probes before routing traffic to EKS pods; use CodeDeploy Lambda canary deployment with an alias
  4. Install and run the CodeDeploy agent on target EC2 instances; use an ECS deployment with a new immutable task definition revision

Explanation

Correct Answer

B:

ECS deployment percentages bound the numbers of running and pending tasks during a rolling update; an ECS service update selects a task definition revision and schedules replacement tasks to converge to it. The first control satisfies the need to control the capacity margin during rolling task replacement; the second addresses the need to roll out a changed container image while retaining the previous task definition. The release must preserve enough healthy tasks while permitting replacements; the service scheduler must be told which task definition revision to run.

Incorrect Answers

A:

Combining a suitable first control with this second one misses the secondary acceptance criterion; an Auto Scaling lifecycle hook can keep instances in a wait state while automation completes initialization; it helps delay load balancer registration until a new EC2 instance is correctly configured rather than roll out a changed container image while retaining the previous task definition.

C:

These are legitimate AWS controls for different outcomes: readiness probes control whether pods are considered ready for service endpoint traffic, whereas CodeDeploy can update Lambda alias traffic weights using canary configurations. The problem instead requires the ability to control the capacity margin during rolling task replacement and to roll out a changed container image while retaining the previous task definition.

D:

This combination solves only the latter acceptance test. The substituted first control supports make instances eligible to receive CodeDeploy lifecycle instructions: the CodeDeploy agent polls for work and runs lifecycle instructions on managed EC2 or on-premises hosts; it does not implement control the capacity margin during rolling task replacement.

Question 296

An incident record says: The SOC reviews raw logs daily but misses bursts of recognized unauthorized activity. To restore the capability to alert when repeated access-denied or suspicious authentication events enter central logs, which change addresses the root cause?

  1. Use IAM credential reports and access-key last-used data for periodic access review
  2. Route GuardDuty findings through EventBridge to a security workflow
  3. Use VPC Flow Logs to investigate rejected network flows
  4. Use AWS WAF logging to analyze blocked HTTP requests
  5. Use CloudWatch metric filters with alarms on sensitive security log patterns

Explanation

Correct Answer

E:

Metric filters turn matching log events into CloudWatch measurements that can trigger alarms. In this case the control is appropriate because it supports alert when repeated access-denied or suspicious authentication events enter central logs. The filter and alarm must use a stable field pattern and relevant count threshold.

Incorrect Answers

A:

The choice is useful when engineers need to identify aging IAM user credentials that require rotation or removal: IAM credential reports and access-key usage metadata support audits of IAM user authentication materials; it would not establish the control needed to alert when repeated access-denied or suspicious authentication events enter central logs.

B:

GuardDuty emits supported findings to EventBridge for targeted notification and automation. This is a reasonable option when the requirement is to trigger containment review when a high-severity credential threat appears, but it operates at a different workflow boundary from the stated need to alert when repeated access-denied or suspicious authentication events enter central logs.

C:

Choosing this would aim to identify source, destination, and action details for a suspected network denial instead of alert when repeated access-denied or suspicious authentication events enter central logs. VPC Flow Logs record accepted and rejected flow metadata without capturing full packet payloads; it cannot replace the mechanism specified by the incident evidence.

D:

Although AWS WAF logs contain supported request and rule evaluation information for configured web ACLs, the scenario does not ask for investigate which web ACL rule is denying legitimate client requests; it requires the ability to alert when repeated access-denied or suspicious authentication events enter central logs, which is a separate responsibility.

Question 297

A new AWS operations standard requires the ability to keep cacheable web content reachable if the primary origin fails and retain replicated application objects in a separate disaster-recovery Region in the same operating environment. Which proposed pair delivers both?

  1. Use Route 53 latency routing for healthy regional endpoints; enable ALB target-group health checks with a representative health path
  2. Use a multi-AZ EC2 Auto Scaling group behind a target group; enable S3 Cross-Region Replication for selected versioned objects
  3. Use CloudFront origins with origin failover for eligible requests; enable S3 Cross-Region Replication for selected versioned objects
  4. Use CloudFront origins with origin failover for eligible requests; configure DynamoDB global tables for multi-Region active-active access

Explanation

Correct Answer

C:

CloudFront origin groups can switch eligible requests to a secondary origin on configured primary failures; this handles the first acceptance condition, subject to the boundary that failover should work within the supported origin group request types and status codes. The remaining condition is handled separately: S3 replication asynchronously copies eligible object versions to configured destination buckets, with source and destination buckets need versioning and replication configuration.

Incorrect Answers

A:

Neither control directly supplies both requested behaviors. Route 53 latency policies select records based on measured latency among configured Regions; target group health checks determine which registered targets receive load balancer traffic. Those mechanisms address different objectives. The specified capabilities are to keep cacheable web content reachable if the primary origin fails and to retain replicated application objects in a separate disaster-recovery Region.

B:

The second implementation is relevant; the problem is the first. EC2 Auto Scaling manages desired instances across configured subnets and uses health checks for replacement; it can help replace failed web hosts and distribute capacity across Availability Zones, whereas the stated first requirement is to keep cacheable web content reachable if the primary origin fails.

D:

The first half is appropriate: CloudFront origin groups can switch eligible requests to a secondary origin on configured primary failures. However, DynamoDB global tables replicate data among participating Regions and support multi-Region writes; that serves a different objective (allow application writes in more than one AWS Region with replication) and leaves the explicit need to retain replicated application objects in a separate disaster-recovery Region unmet.

Question 298

A release design adopts this mechanism: Use EFS mount targets in each client Availability Zone. Which implementation detail is most relevant to its proposed use to allow Linux application instances in multiple zones to access a common managed file system?

  1. Application sessions must survive instance replacement and Availability Zone movement
  2. The design must reconcile multi-Region replicated changes rather than use a read-only replica
  3. Clients should mount EFS through a mount target reachable from their zone
  4. Replacement capacity should be launched automatically in remaining healthy zones
  5. The data tier needs additional instances in independent failure zones

Explanation

Correct Answer

C:

Clients should mount EFS through a mount target reachable from their zone. That is the governing deployment boundary for the selected control: EFS mount targets provide VPC network access to a Regional shared file system from selected zones. If the boundary is missed, the design can fail to allow Linux application instances in multiple zones to access a common managed file system.

Incorrect Answers

A:

The proposed condition makes sense in an implementation designed to allow requests to move among instances without losing user session context; it concerns externalizing session data removes per-instance affinity as a correctness requirement for request handling, whereas this question tests the prerequisite of the named control.

B:

This proposed constraint belongs to a separate objective: the design must reconcile multi-Region replicated changes rather than use a read-only replica; the corresponding goal is to allow application writes in more than one AWS Region with replication, not the selected architecture's goal to allow Linux application instances in multiple zones to access a common managed file system.

D:

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 allow Linux application instances in multiple zones to access a common managed file system.

E:

The proposed condition makes sense in an implementation designed to improve Aurora read availability and provide additional managed failover candidates. It concerns aurora Replicas share cluster storage and can serve reads or be promoted during supported failovers, whereas this question tests the prerequisite of the named control.

Question 299

A release design adopts this mechanism: Use IAM Access Analyzer policy validation and least-privilege findings. Which implementation detail is most relevant to its proposed use to identify broad or risky IAM policy patterns before deployment?

  1. Certificate trust anchors and profile scopes must be explicitly managed
  2. Policy analysis should run before changes reach a sensitive account
  3. Human credentials need additional authentication safeguards beyond a static password
  4. Cross-account access must be permitted by the relevant resource authorization model

Explanation

Correct Answer

B:

Policy analysis should run before changes reach a sensitive account. That is the governing deployment boundary for the selected control: IAM Access Analyzer validates policies and can surface security and best-practice findings. If the boundary is missed, the design can fail to identify broad or risky IAM policy patterns before deployment.

Incorrect Answers

A:

This proposed constraint belongs to a separate objective: certificate trust anchors and profile scopes must be explicitly managed; the corresponding goal is to provide temporary AWS credentials to on-premises workloads without storing IAM user keys, not the selected architecture's goal to identify broad or risky IAM policy patterns before deployment.

C:

MFA adds a second factor and can be required through identity provider settings or IAM policy conditions; its own dependency is that human credentials need additional authentication safeguards beyond a static password; those details concern the separate objective of being able to add possession-based verification to administrator authentication, rather than to the named control required to identify broad or risky IAM policy patterns before deployment.

D:

The proposed condition makes sense in an implementation designed to authorize a designated external role to access a narrow set of objects; it concerns an S3 bucket policy can grant a specified external principal access to selected object ARNs, whereas this question tests the prerequisite of the named control.

Question 300

During the rollout of a governed environment, engineers are required to meet a short recovery objective while keeping DR spend below a full duplicate production stack and, separately, validate recovery performance against business-approved thresholds. Which combination meets the specification?

  1. Implement warm standby with reduced running capacity in a secondary Region; 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; run regular failover game days and measure actual RTO and RPO
  3. Use RDS automated backups for point-in-time recovery within retention; run regular failover game days and measure actual RTO and RPO
  4. Implement warm standby with reduced running capacity in a secondary Region; implement a pilot-light DR architecture in a secondary Region
  5. Define AWS Backup plans and selections using resource tags; use active-active multi-Region deployment with regional traffic steering

Explanation

Correct Answer

B:

The first outcome depends on the behavior that warm standby keeps a smaller but operational workload in the recovery Region. Separately, controlled recovery tests expose dependencies, manual delays, and replication gaps before incidents. Together these meet the two requested outcomes, with the operational limits that the secondary environment must already be functional and scale up during failover and success must be measured from observed restoration and data loss rather than architecture diagrams.

Incorrect Answers

A:

The first half is appropriate: Warm standby keeps a smaller but operational workload in the recovery Region; however, backup-and-restore recreates infrastructure and data only when needed, trading longer RTO for lower cost; that serves a different objective (minimize steady-state disaster recovery costs where hours of recovery are acceptable) and leaves the explicit need to validate recovery performance against business-approved thresholds unmet.

C:

This combination solves only the latter acceptance test. The substituted first control supports restore a supported relational database to a selected time before an accidental modification: RDS automated backups support point-in-time restore using retained backup data and transaction logs; it does not implement meet a short recovery objective while keeping DR spend below a full duplicate production stack.

D:

The first half is appropriate: Warm standby keeps a smaller but operational workload in the recovery Region; however, pilot light maintains minimal core components ready and brings up remaining tiers during recovery; that serves a different objective (maintain replicated core data while minimizing always-on application compute cost) and leaves the explicit need to validate recovery performance against business-approved thresholds unmet.

E:

These are legitimate AWS controls for different outcomes: AWS Backup plans and tag-based selections assign eligible resources to backup rules, whereas active-active systems keep multiple regional stacks serving requests, reducing activation time at the cost of complexity. The problem instead requires the ability to meet a short recovery objective while keeping DR spend below a full duplicate production stack and to validate recovery performance against business-approved thresholds.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests