Question 660

During root-cause analysis, the team identifies the following: The only uploaded ZIP is overwritten and the prior production release cannot be retrieved. To retain retrievable, auditable application bundles for instance deployments, what should be configured?

  1. Store deployment bundles in an encrypted versioned S3 artifact bucket
  2. Enable S3 replication for approved build objects that must be available cross-Region
  3. Publish versioned language dependencies to AWS CodeArtifact
  4. Use CodeArtifact upstream repositories for approved external packages
  5. Push container images to a private Amazon ECR repository

Explanation

Correct Answer

A:

S3 versioning preserves object versions; bucket encryption and scoped policies protect deployment bundles; in this case the control is appropriate because it supports retain retrievable, auditable application bundles for instance deployments. Artifact durability and version history must support restoration of approved revisions.

Incorrect Answers

B:

That service solves a different operating problem: the need to copy versioned release bundles into a secondary Region's artifact bucket; its behavior is that S3 replication rules copy eligible objects between versioned buckets with suitable destination and permissions; the requested outcome remains retain retrievable, auditable application bundles for instance deployments.

C:

The choice is useful when engineers need to centrally share approved Maven or npm packages across build projects: CodeArtifact hosts versioned package repositories with upstream connections and permission policies; it would not establish the control needed to retain retrievable, auditable application bundles for instance deployments.

D:

CodeArtifact upstream relationships can retrieve dependency versions while concentrating package access management; this is a reasonable option when the requirement is to cache vetted public-package dependencies through the organization's package repository, but it operates at a different workflow boundary from the stated need to retain retrievable, auditable application bundles for instance deployments.

E:

Choosing this would aim to store deployable OCI images with private access for ECS workloads instead of retain retrievable, auditable application bundles for instance deployments. Amazon ECR stores container image manifests and layers in repositories that can enforce permissions; it cannot replace the mechanism specified by the incident evidence.

Question 661

During root-cause analysis, the team identifies the following: New pods remain Pending even though HPA increases the desired replica count. To add cluster nodes when pods cannot schedule due to insufficient capacity, what should be configured?

  1. Use Lambda reserved concurrency to protect a downstream dependency
  2. Use an ECS capacity provider strategy for EC2 cluster capacity
  3. Configure Karpenter or a supported EKS node autoscaler for unschedulable pods
  4. Configure EC2 target tracking scaling on an application-relevant metric

Explanation

Correct Answer

C:

Node autoscalers provision or adjust worker capacity in response to pending pods and cluster constraints; it restores the ability to add cluster nodes when pods cannot schedule due to insufficient capacity, provided the implementation also observes that node provisioning must respond to Kubernetes scheduling constraints.

Incorrect Answers

A:

That service solves a different operating problem: the need to cap parallel invocations before a sensitive backend is saturated. Its behavior is that reserved concurrency caps simultaneously executing Lambda instances for the configured function. The requested outcome remains add cluster nodes when pods cannot schedule due to insufficient capacity.

B:

The choice is useful when engineers need to coordinate ECS service task placement with managed EC2 capacity: ECS capacity providers can couple task placement and managed scaling of EC2 Auto Scaling capacity. It would not establish the control needed to add cluster nodes when pods cannot schedule due to insufficient capacity.

D:

Choosing this would aim to automatically change fleet capacity to maintain a target utilization level instead of add cluster nodes when pods cannot schedule due to insufficient capacity. Target tracking policies adjust desired capacity around a configured metric target; it cannot replace the mechanism specified by the incident evidence.

Question 662

A production-readiness assessment calls out two missing capabilities: rotate an application database password without manual quarterly updates and reduce reliance on stored passwords for supported database connections. Choose the AWS implementation that explicitly addresses both.

  1. Use an IAM policy condition on aws:SourceVpce for eligible AWS service requests; use IAM database authentication for a supported RDS engine and client
  2. Use IAM roles and temporary credentials for CodeBuild service integration; use a resource-based policy on an S3 bucket for a cross-account principal
  3. Enable Secrets Manager rotation with a supported rotation strategy; apply an IAM permissions boundary to delegated role creation
  4. Enable Secrets Manager rotation with a supported rotation strategy; use IAM database authentication for a supported RDS engine and client

Explanation

Correct Answer

D:

The first outcome depends on the behavior that Secrets Manager rotation workflows update stored credentials and, with integration, the underlying service credential. Separately, IAM database authentication generates short-lived authentication tokens for supported RDS database engines. Together these meet the two requested outcomes, with the operational limits that consumers must retrieve the current secret value and rotation must preserve application availability and the database and client must support IAM authentication and TLS requirements.

Incorrect Answers

A:

The second implementation is relevant; the problem is the first. The source VPC endpoint condition can constrain eligible requests to a designated private endpoint path; it can help deny access to a sensitive resource unless requests use an approved VPC endpoint, whereas the stated first requirement is to rotate an application database password without manual quarterly updates.

B:

The pair changes the problem instead of completing it. One option addresses prevent CI workers from embedding persistent AWS keys in build scripts; the other addresses authorize a designated external role to access a narrow set of objects. The release, however, needs to rotate an application database password without manual quarterly updates as well as reduce reliance on stored passwords for supported database connections.

C:

The first half is appropriate: Secrets Manager rotation workflows update stored credentials and, with integration, the underlying service credential. However, permissions boundaries constrain the effective identity permissions of a user or role without granting access; that serves a different objective (allow a development platform team to create roles without granting unlimited privileges) and leaves the explicit need to reduce reliance on stored passwords for supported database connections unmet.

Question 663

The next production deployment needs 2 specific capabilities: (1) reduce time spent re-fetching dependencies in repeated builds on compatible environments; (2) require a human release decision after staging tests and before production changes. Select the TWO most directly applicable actions. Choose TWO.

  1. Add an explicit manual approval action before the production deploy stage
  2. Resolve runtime secrets from Secrets Manager during the build
  3. Configure an EventBridge rule for an event-driven pipeline execution
  4. Restrict build credentials to a CodeBuild service role with least privilege
  5. Enable CodeBuild local caching for reusable build dependencies

Explanation

Correct Answers

A:

This covers the specific result to require a human release decision after staging tests and before production changes: a CodePipeline manual approval action pauses stage progression until approval, rejection, or timeout; the approver must see contextual information and approve the pending pipeline execution; in this design the separate acceptance test is to reduce time spent re-fetching dependencies in repeated builds on compatible environments.

E:

This covers the specific result to reduce time spent re-fetching dependencies in repeated builds on compatible environments: 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

B:

Secrets Manager stores secret values and supports managed rotation integrations; runtime retrieval avoids committing values; that would be appropriate to supply a rotating database credential to CI jobs without placing the secret in source control, but this is a different objective from the numbered obligations in the stem.

C:

This mechanism supports the ability to trigger a deployment workflow when a matching AWS service event occurs: EventBridge event patterns select the desired events and route them to a supported automation target. It would not satisfy a different obligation just by appearing in the same workflow.

D:

It supports a separate administrative task, namely to let automated builds read only the required inputs and publish expected outputs; CodeBuild runs under its assigned IAM service role, which needs access to referenced buckets, logs, and relevant keys; the prompt's required outcomes are not achieved by substituting this control.

Question 664

A release design adopts this mechanism: Use cross-account STS AssumeRole for automated administration. Which implementation detail is most relevant to its proposed use to let central automation perform scoped tasks in governed member accounts?

  1. New-account enablement should be managed through organization integration
  2. The restriction must apply above individual IAM identity policy grants
  3. The process must create member accounts under the organization's management structure
  4. Role trust and target permissions must both be explicitly configured
  5. The policy must govern tag conventions rather than grant IAM access

Explanation

Correct Answer

D:

The implementation has to honor the exact constraint: role trust and target permissions must both be explicitly configured; STS AssumeRole returns temporary credentials for a trusted role whose permissions constrain the session.

Incorrect Answers

A:

This condition governs the different mechanism used to enable consistent threat detection coverage for member accounts; GuardDuty organization administration can automatically manage protection enrollment across eligible members; for the selected control, the relevant boundary is instead that role trust and target permissions must both be explicitly configured.

B:

Service control policies limit the maximum permissions of affected account principals but do not grant rights; its own dependency is that the restriction must apply above individual IAM identity policy grants; those details concern the separate objective of being able to set a maximum permission boundary for member-account principals, rather than to the named control required to let central automation perform scoped tasks in governed member accounts.

C:

The proposed condition makes sense in an implementation designed to automate account creation and consolidate billing within an organization; it concerns organizations supports asynchronous member account creation through its account APIs, whereas this question tests the prerequisite of the named control.

E:

This condition governs the different mechanism used to report and enforce valid tag keys or values across organizational accounts where supported. Tag policies define permitted capitalization and values and can enforce supported tagging operations; for the selected control, the relevant boundary is instead that role trust and target permissions must both be explicitly configured.

Question 665

An automated check detects: Patch scripts start during peak request time and disrupt customer sessions. Which remediation directly supports the requirement to run approved node maintenance tasks during designated service windows?

  1. Use Systems Manager OpsCenter OpsItems for operational work tracking
  2. Use Systems Manager Run Command for scoped remote command execution
  3. Use Systems Manager Maintenance Windows for scheduled fleet operations
  4. Use Systems Manager Inventory to collect managed-node software metadata

Explanation

Correct Answer

C:

Maintenance Windows schedule supported tasks against registered targets at specified times; that directly addresses the observed failure in the scenario. The configuration still has to respect this constraint: schedule, targets, and task concurrency must be controlled together.

Incorrect Answers

A:

Although OpsCenter OpsItems group investigation context and operational metadata for issue management, the scenario does not ask for collect recurring operational issues with linked resource context and status. It requires the ability to run approved node maintenance tasks during designated service windows, which is a separate responsibility.

B:

Run Command dispatches supported command documents to selected managed nodes and records execution results; this can help teams run a one-time script against a tagged fleet without SSH access, but the reported workflow needs to run approved node maintenance tasks during designated service windows. It does not perform that required function.

D:

The choice is useful when engineers need to report installed applications and instance configuration across the managed fleet: Systems Manager Inventory collects supported software and configuration metadata for fleet reporting; it would not establish the control needed to run approved node maintenance tasks during designated service windows.

Question 666

A service owner needs to filter application logs by request ID and aggregate failing endpoint counts and determine whether recorded network flows were accepted or rejected at an interface. Which paired controls deliver the requested behavior across both workstreams?

  1. Use CloudWatch Logs Insights fields and parsing for targeted error investigation; enable AWS X-Ray tracing across supported API and Lambda components
  2. Use Security Hub findings to correlate security signals from enabled integrations; use VPC Flow Logs for network traffic acceptance and rejection evidence
  3. Use CloudWatch Logs Insights fields and parsing for targeted error investigation; use VPC Flow Logs for network traffic acceptance and rejection evidence
  4. Set CloudWatch alarm evaluation periods and datapoints-to-alarm deliberately; use AWS Config resource timelines to inspect configuration history

Explanation

Correct Answer

C:

Logs Insights provides parsing, filtering, statistics, and time grouping for log data; VPC Flow Logs record flow metadata such as source, destination, port, and accept or reject action. The first control satisfies the need to filter application logs by request ID and aggregate failing endpoint counts; the second addresses the need to determine whether recorded network flows were accepted or rejected at an interface. Queries should extract stable fields rather than rely on visual scrolling; flow metadata does not include full packet payloads or application semantics.

Incorrect Answers

A:

The first half is appropriate: Logs Insights provides parsing, filtering, statistics, and time grouping for log data. However, x-Ray traces and segments expose timing and dependencies across instrumented service calls; that serves a different objective (identify which downstream call dominates end-to-end request latency) and leaves the explicit need to determine whether recorded network flows were accepted or rejected at an interface unmet.

B:

The second implementation is relevant; the problem is the first. Security Hub normalizes supported security findings and provides centralized prioritization workflows; it can help prioritize security risks across multiple supported detection services, whereas the stated first requirement is to filter application logs by request ID and aggregate failing endpoint counts.

D:

Neither control directly supplies both requested behaviors. Evaluation periods and datapoints-to-alarm control how many recent breaches cause an alarm state; AWS Config configuration history tracks supported resource state changes over time. Those mechanisms address different objectives. The specified capabilities are to filter application logs by request ID and aggregate failing endpoint counts and to determine whether recorded network flows were accepted or rejected at an interface.

Question 667

The application owner reports the following failure: A single transient latency spike causes the release rollback alarm to fire. Which action directly restores the requirement to avoid triggering rollbacks on one isolated noisy metric datapoint?

  1. Configure CloudWatch composite alarms to combine related signal states
  2. Use CloudWatch Logs Insights fields and parsing for targeted error investigation
  3. Configure a CloudWatch anomaly detection band on a seasonal metric
  4. Set CloudWatch alarm evaluation periods and datapoints-to-alarm deliberately

Explanation

Correct Answer

D:

Evaluation periods and datapoints-to-alarm control how many recent breaches cause an alarm state; in this case the control is appropriate because it supports avoid triggering rollbacks on one isolated noisy metric datapoint. The alarm should represent sustained violation of a measurable service objective.

Incorrect Answers

A:

That service solves a different operating problem: the need to page operators only when multiple correlated alarms indicate a real incident. Its behavior is that composite alarms evaluate the Boolean state of underlying alarms before transitioning. The requested outcome remains avoid triggering rollbacks on one isolated noisy metric datapoint.

B:

The choice is useful when engineers need to filter application logs by request ID and aggregate failing endpoint counts: logs Insights provides parsing, filtering, statistics, and time grouping for log data. It would not establish the control needed to avoid triggering rollbacks on one isolated noisy metric datapoint.

C:

CloudWatch anomaly detection models expected patterns and allows alarms on deviations from the band; this is a reasonable option when the requirement is to alert on unexpected deviations without relying on a single fixed threshold, but it operates at a different workflow boundary from the stated need to avoid triggering rollbacks on one isolated noisy metric datapoint.

Question 668

The architecture record specifies: Use CloudFormation DeletionPolicy Retain on a stateful resource. To support the goal to prevent a persistent data resource from being removed when its stack is deleted, which consideration should the engineer validate?

  1. The migration must preserve the physical resource while creating IaC ownership
  2. One parameterized template should selectively include appropriate resources
  3. Retention must be declared in the infrastructure template, not as a manual reminder
  4. Accounts that enter or leave a target OU should follow explicit stack lifecycle policy
  5. The consumer should use an explicit stack export instead of hard-coded values

Explanation

Correct Answer

C:

Retention must be declared in the infrastructure template, not as a manual reminder. Without this, choosing the named service is not enough to produce the promised outcome. The Retain policy keeps a supported resource after CloudFormation removes its stack ownership.

Incorrect Answers

A:

This condition governs the different mechanism used to bring an already-created resource under stack management without rebuilding it; resource import associates supported existing resources with logical resources in a stack template; for the selected control, the relevant boundary is instead that retention must be declared in the infrastructure template, not as a manual reminder.

B:

Conditions can determine resource creation and property values based on template parameters and functions; its own dependency is that one parameterized template should selectively include appropriate resources; those details concern the separate objective of being able to provision a resource only when an environment parameter meets a defined requirement, rather than to the named control required to prevent a persistent data resource from being removed when its stack is deleted.

D:

This proposed constraint belongs to a separate objective: accounts that enter or leave a target OU should follow explicit stack lifecycle policy; the corresponding goal is to apply baseline stacks when new accounts join a targeted organizational unit, not the selected architecture's goal to prevent a persistent data resource from being removed when its stack is deleted.

E:

This condition governs the different mechanism used to reference a networking stack's output from an application stack in the same Region; CloudFormation exports and Fn::ImportValue share supported values between stacks within the same account and Region; for the selected control, the relevant boundary is instead that retention must be declared in the infrastructure template, not as a manual reminder.

Question 669

An automated check detects: Clients rely on regional addresses that require manual switching during failures. Which remediation directly supports the requirement to provide static anycast entry points and health-aware regional application routing?

  1. Use an Aurora Global Database with secondary Region clusters
  2. Use AWS Global Accelerator with healthy regional endpoint groups
  3. Enable ALB target-group health checks with a representative health path
  4. Implement stateless application nodes with session state in a shared store

Explanation

Correct Answer

B:

Global Accelerator routes TCP or UDP traffic through static anycast addresses to healthy configured endpoints; in this case the control is appropriate because it supports provide static anycast entry points and health-aware regional application routing. The front door should retain stable global IPs while adjusting endpoint routing.

Incorrect Answers

A:

Aurora Global Database replicates from a primary cluster to secondary regional clusters for reads and recovery; this is a reasonable option when the requirement is to provide low-latency cross-Region database reads and a regional recovery path, but it operates at a different workflow boundary from the stated need to provide static anycast entry points and health-aware regional application routing.

C:

Although target group health checks determine which registered targets receive load balancer traffic, the scenario does not ask for stop sending new traffic to application instances that fail readiness checks; it requires the ability to provide static anycast entry points and health-aware regional application routing, which is a separate responsibility.

D:

Externalizing session data removes per-instance affinity as a correctness requirement for request handling; this can help teams allow requests to move among instances without losing user session context, but the reported workflow needs to provide static anycast entry points and health-aware regional application routing. It does not perform that required function.

Question 670

After a configuration change, the application owner sees this issue: All unit tests pass but the order-entry workflow fails after the staging deploy. What best restores the ability to verify business workflows on a deployed candidate before production promotion?

  1. Run controlled load tests in a dedicated performance environment
  2. Run acceptance tests after staging deployment and before approval
  3. Use a CodePipeline test action after deployment to staging
  4. Execute integration tests against an isolated ephemeral test stack

Explanation

Correct Answer

B:

To verify business workflows on a deployed candidate before production promotion, the architecture relies on this AWS behavior: acceptance checks validate end-to-end expected behavior and can fail the pipeline before production. Release acceptance criteria need a blocking quality gate on a live candidate.

Incorrect Answers

A:

Choosing this would aim to measure throughput and latency under expected concurrency without degrading production instead of verify business workflows on a deployed candidate before production promotion. Dedicated performance testing reveals scale and bottleneck behavior while isolating intentional high load; it cannot replace the mechanism specified by the incident evidence.

C:

A pipeline test action turns post-deployment health verification into an enforceable promotion gate; this can help teams fail a promotion flow based on smoke-test results for the deployed service, but the reported workflow needs to verify business workflows on a deployed candidate before production promotion. It does not perform that required function.

D:

That service solves a different operating problem: the need to validate service-to-service interactions against real deployed dependencies before approval. Its behavior is that an integration environment exercises actual API and infrastructure interactions that unit mocks do not cover. The requested outcome remains verify business workflows on a deployed candidate before production promotion.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests