Question 90

An incident-response review exposes two requirements in the same release: restore a resource's intended IaC state after manual infrastructure changes; in addition, roll out a corrected launch template to already-running fleet instances. Which paired set of AWS controls meets both requirements?

  1. Use EC2 Auto Scaling health replacement for unhealthy fleet members; perform an Auto Scaling instance refresh after updating a launch template
  2. Apply CloudFormation drift remediation through a reviewed template update; perform an Auto Scaling instance refresh after updating a launch template
  3. Use a CloudFormation Change Set for emergency infrastructure adjustments; use an SSM Automation role with a permissions boundary or narrow IAM policy
  4. Apply CloudFormation drift remediation through a reviewed template update; use CodeDeploy CloudWatch-alarm integration for automatic deployment rollback

Explanation

Correct Answer

B:

A reviewed stack update can bring supported drifted resources back toward declared template state; this handles the first acceptance condition, subject to the boundary that the change process should reconcile desired and actual supported configuration; the remaining condition is handled separately: instance refresh gradually replaces existing Auto Scaling instances according to updated configuration, with the fleet must converge through controlled replacement rather than only updating the template.

Incorrect Answers

A:

EC2 Auto Scaling can terminate and replace unhealthy instances to meet desired capacity. That is intended to automatically replace failed instances without requiring manual restarts, not to restore a resource's intended IaC state after manual infrastructure changes; the second half can meet the requirement to roll out a corrected launch template to already-running fleet instances, but the first is still missing.

C:

The pair changes the problem instead of completing it. One option addresses review the actual resource mutations before applying a critical IaC patch; the other addresses limit the changes an automated incident runbook can make. The release, however, needs to restore a resource's intended IaC state after manual infrastructure changes as well as roll out a corrected launch template to already-running fleet instances.

D:

The first half is appropriate: A reviewed stack update can bring supported drifted resources back toward declared template state. However, CodeDeploy can stop and roll back eligible deployments when configured CloudWatch alarms enter ALARM; that serves a different objective (reverse a release that triggers the defined customer error alarm) and leaves the explicit need to roll out a corrected launch template to already-running fleet instances unmet.

Question 91

The next AWS platform release needs to prevent a persistent data resource from being removed when its stack is deleted while also being able to bring an already-created resource under stack management without rebuilding it. Which pairing best supports that release?

  1. Define an AWS CDK construct for a reusable platform pattern; use CloudFormation resource import for supported existing resources
  2. Use CloudFormation DeletionPolicy Retain on a stateful resource; use CloudFormation resource import for supported existing resources
  3. Use CloudFormation DeletionPolicy Retain on a stateful resource; use SSM document version control for repeatable operational scripts
  4. Use CloudFormation stack policies to protect critical resources from updates; use CloudFormation dynamic references for protected parameter values

Explanation

Correct Answer

B:

The Retain policy keeps a supported resource after CloudFormation removes its stack ownership; resource import associates supported existing resources with logical resources in a stack template. The first control satisfies the need to prevent a persistent data resource from being removed when its stack is deleted; the second addresses the need to bring an already-created resource under stack management without rebuilding it. Retention must be declared in the infrastructure template, not as a manual reminder; the migration must preserve the physical resource while creating IaC ownership.

Incorrect Answers

A:

This combination solves only the latter acceptance test. The substituted first control supports package a standardized multi-resource infrastructure pattern into application code: CDK constructs encapsulate infrastructure resources and synthesize AWS CloudFormation definitions; it does not implement prevent a persistent data resource from being removed when its stack is deleted.

C:

SSM documents support versioned content and associations can refer to defined document versions; that alternative supports the ability to publish a reviewed command document and execute a pinned approved version, but it is not the requested second outcome (bring an already-created resource under stack management without rebuilding it); even though the first half addresses prevent a persistent data resource from being removed when its stack is deleted, this pair is incomplete.

D:

The pair changes the problem instead of completing it. One option addresses block unintended replacement or deletion of protected resources during stack updates; the other addresses avoid hardcoding a sensitive input in reusable infrastructure templates. The release, however, needs to prevent a persistent data resource from being removed when its stack is deleted as well as bring an already-created resource under stack management without rebuilding it.

Question 92

An incident record says: An artifact is fetched from storage but the receiver cannot validate its provenance or integrity. To restore the capability to detect tampering between build completion and production deployment, which change addresses the root cause?

  1. Enable S3 replication for approved build objects that must be available cross-Region
  2. Apply S3 Object Lock retention when required by evidence policy
  3. Publish versioned language dependencies to AWS CodeArtifact
  4. Configure ECR replication to authorized Regions or accounts
  5. Sign and verify release artifacts through a controlled integrity process
  6. Use EC2 Image Builder distribution settings for target Regions and accounts

Explanation

Correct Answer

E:

To detect tampering between build completion and production deployment, the architecture relies on this AWS behavior: cryptographic signatures and trusted verification bind an approved artifact to its signing provenance. The verifier must trust the signing identity rather than a filename or tag.

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 detect tampering between build completion and production deployment.

B:

S3 Object Lock protects eligible versioned objects under governance or compliance retention modes; this is a reasonable option when the requirement is to prevent modification or deletion of archived release artifacts for a mandated period, but it operates at a different workflow boundary from the stated need to detect tampering between build completion and production deployment.

C:

Choosing this would aim to centrally share approved Maven or npm packages across build projects instead of detect tampering between build completion and production deployment. CodeArtifact hosts versioned package repositories with upstream connections and permission policies; it cannot replace the mechanism specified by the incident evidence.

D:

Although ECR replication copies matching repository images to configured destination registries and Regions, the scenario does not ask for preposition container images in the registries used by regional deployments. It requires the ability to detect tampering between build completion and production deployment, which is a separate responsibility.

F:

That service solves a different operating problem: the need to publish a validated AMI to workloads outside its build account; its behavior is that image Builder distribution configurations control supported AMI copies and sharing after creation; the requested outcome remains detect tampering between build completion and production deployment.

Question 93

Investigators observe: Sequential builds repeatedly download the same dependencies and execution time stays high. Engineers still need to reduce time spent re-fetching dependencies in repeated builds on compatible environments. Which corrective action is most appropriate?

  1. Use an AWS CDK pipeline with dedicated synth and deployment steps
  2. Enable CodeBuild report groups for automated test results
  3. Configure pipeline variables for explicitly parameterized executions
  4. Enable CodeBuild local caching for reusable build dependencies

Explanation

Correct Answer

D:

To reduce time spent re-fetching dependencies in repeated builds on compatible environments, the architecture relies on this AWS behavior: local caches can reuse permitted source or dependency data on a build host, subject to environment and cache limitations. The optimization must not be assumed to work for every compute mode or build host.

Incorrect Answers

A:

CDK Pipelines synthesize application definitions into cloud assemblies and orchestrate subsequent stack deployments; this is a reasonable option when the requirement is to automate build and deployment of CDK infrastructure changes with reviewable application source, but it operates at a different workflow boundary from the stated need to reduce time spent re-fetching dependencies in repeated builds on compatible environments.

B:

Choosing this would aim to publish structured test reports that reviewers can inspect after a CI run instead of reduce time spent re-fetching dependencies in repeated builds on compatible environments; CodeBuild report groups ingest supported test and code-coverage files generated during a build; it cannot replace the mechanism specified by the incident evidence.

C:

Although pipeline variables expose execution-specific values to actions that support variable substitution, the scenario does not ask for pass an approved environment-specific value into a reusable pipeline action; it requires the ability to reduce time spent re-fetching dependencies in repeated builds on compatible environments, which is a separate responsibility.

Question 94

The platform team's change record lists two distinct deliverables: run a one-time script against a tagged fleet without SSH access and run an approved automation document under a dedicated role rather than a user's permissions. Which combination covers both deliverables?

  1. Use Lambda reserved concurrency to limit simultaneous remediation functions; use State Manager to enforce a recurring configuration association
  2. Use Systems Manager Run Command for scoped remote command execution; use a Step Functions Map state for bounded parallel processing
  3. Use Systems Manager Maintenance Windows for scheduled fleet operations; use Systems Manager Automation assumeRole for scoped API execution
  4. Use Systems Manager Run Command for scoped remote command execution; use Systems Manager Automation assumeRole for scoped API execution

Explanation

Correct Answer

D:

The first outcome depends on the behavior that run Command dispatches supported command documents to selected managed nodes and records execution results. Separately, automation can assume an assigned IAM role to run documented steps with explicit API permissions; together these meet the two requested outcomes, with the operational limits that targets need SSM connectivity and permissions rather than inbound administrative ports and the automation identity must be declared and trusted independently of its triggering user.

Incorrect Answers

A:

The pair changes the problem instead of completing it. One option addresses cap the number of concurrent handlers acting on a sensitive downstream API; the other addresses reapply a required host configuration whenever nodes drift. The release, however, needs to run a one-time script against a tagged fleet without SSH access as well as run an approved automation document under a dedicated role rather than a user's permissions.

B:

The first half is appropriate: Run Command dispatches supported command documents to selected managed nodes and records execution results. However, map states can apply a defined workflow to collections with configurable concurrency; that serves a different objective (run a repeatable remediation step against multiple independent work items) and leaves the explicit need to run an approved automation document under a dedicated role rather than a user's permissions unmet.

C:

The second implementation is relevant; the problem is the first. Maintenance Windows schedule supported tasks against registered targets at specified times. It can help run approved node maintenance tasks during designated service windows, whereas the stated first requirement is to run a one-time script against a tagged fleet without SSH access.

Question 95

A technical change review names the selected control as follows: Use Kinesis Data Streams for ordered partition-based event processing. To ingest a high-volume event stream with multiple independently scaled consumers, which constraint must be addressed for this design?

  1. Different decision branches must remain observable as workflow states
  2. The configured failure threshold must retain bad messages for investigation
  3. Delivery failures must be captured without silently dropping critical events
  4. Events must retain ordering within partition keys and be recoverable during retention

Explanation

Correct Answer

D:

Events must retain ordering within partition keys and be recoverable during retention. Without this, choosing the named service is not enough to produce the promised outcome; Kinesis Data Streams partitions records by key and retains them for consumers to read over time.

Incorrect Answers

A:

This proposed constraint belongs to a separate objective: different decision branches must remain observable as workflow states. The corresponding goal is to branch remediation based on incident severity and resource classification, not the selected architecture's goal to ingest a high-volume event stream with multiple independently scaled consumers.

B:

This condition governs the different mechanism used to isolate repeatedly unprocessable events without blocking successful work. An SQS redrive policy sends messages to a DLQ after the receive count exceeds its threshold. For the selected control, the relevant boundary is instead that events must retain ordering within partition keys and be recoverable during retention.

C:

EventBridge rules can use retry policies and DLQ targets to preserve failed deliveries. Its own dependency is that delivery failures must be captured without silently dropping critical events; those details concern the separate objective of being able to retain failed event delivery attempts for later investigation, rather than to the named control required to ingest a high-volume event stream with multiple independently scaled consumers.

Question 96

The application owner selects this control: Enable CloudTrail log file integrity validation and validate digest signatures. What associated scope or dependency matters most when using it to prove whether delivered trail log objects have been tampered with?

  1. Event selection must include the specific bucket data-plane API activity
  2. Review should use recorded access evidence and defined analysis scope
  3. Integrity verification must use signed digest files, not only S3 checksums
  4. Data store settings should match retention and ingestion requirements
  5. The filter and alarm must use a stable field pattern and relevant count threshold

Explanation

Correct Answer

C:

Integrity verification must use signed digest files, not only S3 checksums. Without this, choosing the named service is not enough to produce the promised outcome; CloudTrail integrity validation supports cryptographic verification of delivered log file digests.

Incorrect Answers

A:

This condition governs the different mechanism used to attribute reads or deletes of sensitive bucket objects to a principal. CloudTrail data event selectors record eligible object-level activity beyond management events; for the selected control, the relevant boundary is instead that integrity verification must use signed digest files, not only S3 checksums.

B:

Unused access findings help identify unused IAM roles or unused permissions for least-privilege review; its own dependency is that review should use recorded access evidence and defined analysis scope; those details concern the separate objective of being able to find roles or permissions that have not been used within the configured scope, rather than to the named control required to prove whether delivered trail log objects have been tampered with.

D:

This proposed constraint belongs to a separate objective: data store settings should match retention and ingestion requirements. The corresponding goal is to query retained CloudTrail events without first building a custom S3 query pipeline, not the selected architecture's goal to prove whether delivered trail log objects have been tampered with.

E:

This condition governs the different mechanism used to alert when repeated access-denied or suspicious authentication events enter central logs; metric filters turn matching log events into CloudWatch measurements that can trigger alarms; for the selected control, the relevant boundary is instead that integrity verification must use signed digest files, not only S3 checksums.

Question 97

The security engineering team reports the following failure: A reused latest tag points to a different image after testing finishes. Which action directly restores the requirement to deploy exactly the image bytes tested during CI?

  1. Use an EC2 Image Builder container recipe to generate a hardened container image
  2. Push container images to a private Amazon ECR repository
  3. Pin image promotion to an ECR image digest instead of a mutable tag
  4. Export a CodeBuild artifact using buildspec artifact paths

Explanation

Correct Answer

C:

Image digests identify content; mutable tags can be repointed and are unsuitable as sole provenance; it enables the necessary capability to deploy exactly the image bytes tested during CI rather than only providing an adjacent operational control. Release identity must be immutable even when friendly tags are moved.

Incorrect Answers

A:

That service solves a different operating problem: the need to automate container base-image patching and validation for approved images. Its behavior is that image Builder supports container recipes and workflows to build and test image outputs. The requested outcome remains deploy exactly the image bytes tested during CI.

B:

The choice is useful when engineers need to store deployable OCI images with private access for ECS workloads: Amazon ECR stores container image manifests and layers in repositories that can enforce permissions. It would not establish the control needed to deploy exactly the image bytes tested during CI.

D:

Choosing this would aim to include compiled outputs rather than the entire source tree in a pipeline artifact instead of deploy exactly the image bytes tested during CI; the buildspec artifacts section chooses files to package and publish as build outputs; it cannot replace the mechanism specified by the incident evidence.

Question 98

An incident record says: Logs show failed assertions but the CodeBuild action still succeeds because the shell exits zero. To restore the capability to stop a pipeline build action when the test runner detects a regression, which change addresses the root cause?

  1. Use a CodePipeline test action after deployment to staging
  2. Use pull request events to start a pre-merge validation build
  3. Use AWS Fault Injection Service in a controlled resilience test
  4. Use CodeBuild batch builds for a supported test matrix
  5. Return a nonzero exit code when a blocking automated test fails

Explanation

Correct Answer

E:

CodeBuild determines command success from process exit status unless buildspec failure handling overrides it; that directly addresses the observed failure in the scenario. The configuration still has to respect this constraint: later deployment stages must not run after a failing quality gate.

Incorrect Answers

A:

The choice is useful when engineers need to fail a promotion flow based on smoke-test results for the deployed service: a pipeline test action turns post-deployment health verification into an enforceable promotion gate; it would not establish the control needed to stop a pipeline build action when the test runner detects a regression.

B:

PR-triggered builds can test changes earlier than post-merge releases and support branch protection workflows; this is a reasonable option when the requirement is to evaluate a proposed change before it merges into a protected branch, but it operates at a different workflow boundary from the stated need to stop a pipeline build action when the test runner detects a regression.

C:

Choosing this would aim to validate that a multi-AZ application survives a deliberately introduced infrastructure fault instead of stop a pipeline build action when the test runner detects a regression. Fault Injection Service can inject supported disruptions so teams can measure actual resilience behavior; it cannot replace the mechanism specified by the incident evidence.

D:

Although batch builds support coordinated multiple build configurations and associated aggregate status, the scenario does not ask for run compatible test variations in parallel and consolidate their outcomes; it requires the ability to stop a pipeline build action when the test runner detects a regression, which is a separate responsibility.

Question 99

Two technical outcomes must be delivered together: diagnose artifact decryption failure after S3 object access succeeds and discover why an EC2 fleet fails to add replacement capacity. Which pair of controls is sufficient for the stated outcomes?

  1. Inspect KMS key policies and grants for cross-account decrypt failures; inspect Lambda CloudWatch logs for timeout and initialization errors
  2. Evaluate resource and identity policies for a cross-account S3 artifact read; inspect CodePipeline stage and action execution history
  3. Inspect KMS key policies and grants for cross-account decrypt failures; inspect EKS pod events and describe output for Pending pods
  4. Inspect KMS key policies and grants for cross-account decrypt failures; check Auto Scaling scaling activities and launch failures
  5. Inspect application retry behavior and SQS ApproximateAgeOfOldestMessage; check Auto Scaling scaling activities and launch failures

Explanation

Correct Answer

D:

For the requirement to diagnose artifact decryption failure after S3 object access succeeds, customer managed KMS key policies and principal permissions govern who may decrypt encrypted artifacts. For the requirement to discover why an EC2 fleet fails to add replacement capacity, auto Scaling activity history records scaling requests and instance launch or health-related failures; both mechanisms are necessary; implementing only the first would leave the second unsatisfied.

Incorrect Answers

A:

The first half is appropriate: Customer managed KMS key policies and principal permissions govern who may decrypt encrypted artifacts. However, Lambda logs include invocation results, duration, timeout messages, and runtime failures; that serves a different objective (explain missing API responses from a new Lambda deployment) and leaves the explicit need to discover why an EC2 fleet fails to add replacement capacity unmet.

B:

These are legitimate AWS controls for different outcomes: cross-account S3 access can require compatible IAM and resource policy permissions for the object, whereas CodePipeline records stage and action execution statuses and detailed links for troubleshooting. The problem instead requires the ability to diagnose artifact decryption failure after S3 object access succeeds and to discover why an EC2 fleet fails to add replacement capacity.

C:

Combining a suitable first control with this second one misses the secondary acceptance criterion; kubernetes scheduling events explain why pending pods cannot be assigned to nodes; it helps diagnose Kubernetes scheduling constraints rather than application code failure rather than discover why an EC2 fleet fails to add replacement capacity.

E:

The second implementation is relevant; the problem is the first. SQS age metrics help reveal processing delay that count metrics alone can obscure. It can help identify whether queue-processing latency is growing from a slow consumer, whereas the stated first requirement is to diagnose artifact decryption failure after S3 object access succeeds.

Question 100

The release manager reports the following failure: An attacker with broad access can shorten backup retention before an incident response. Which action directly restores the requirement to protect retained backup recovery points from early deletion?

  1. Enable AWS Backup Vault Lock in an appropriate mode
  2. Use AWS Backup restore testing plans for supported resources
  3. Enable S3 versioning and implement recovery for deleted object versions
  4. Use Route 53 health-checked failover records for a pretested recovery endpoint

Explanation

Correct Answer

A:

Backup Vault Lock enforces supported WORM retention protections according to its configured mode; in this case the control is appropriate because it supports protect retained backup recovery points from early deletion. Retention enforcement must be harder to bypass than ordinary IAM permissions.

Incorrect Answers

B:

Although AWS Backup restore testing automates recovery-point selection and supported restore testing workflows, the scenario does not ask for periodically verify recoverability rather than assuming a backup job is sufficient. It requires the ability to protect retained backup recovery points from early deletion, which is a separate responsibility.

C:

S3 versioning preserves prior object versions so authorized users can restore selected versions; this can help teams recover an overwritten or deleted application object from an earlier version, but the reported workflow needs to protect retained backup recovery points from early deletion. It does not perform that required function.

D:

That service solves a different operating problem: the need to automate DNS-level cutover after the primary regional endpoint fails. Its behavior is that failover routing can resolve the standby record based on health state, subject to client caching. The requested outcome remains protect retained backup recovery points from early deletion.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests