Question 980

A production change is expected to update an existing EC2 fleet in batches while preserving required available capacity. The same change must also execute controlled install and validation scripts during an EC2 deployment. Which paired implementation meets both acceptance criteria?

  1. Choose CodeDeploy in-place deployment with minimum healthy hosts; use an appspec.yml to define CodeDeploy instance hooks
  2. Use a weighted Lambda alias for gradual traffic migration; set termination wait time for a CodeDeploy ECS blue/green deployment
  3. Enable provisioned concurrency on the Lambda alias or published version; use an appspec.yml to define CodeDeploy instance hooks
  4. Choose CodeDeploy in-place deployment with minimum healthy hosts; publish a Lambda version and route clients through an alias

Explanation

Correct Answer

A:

CodeDeploy EC2 in-place configurations control host update concurrency using healthy-host thresholds; an AppSpec file maps application files and lifecycle event hooks for EC2 deployments. The first control satisfies the need to update an existing EC2 fleet in batches while preserving required available capacity; the second addresses the need to execute controlled install and validation scripts during an EC2 deployment. The deployment must leave a configured minimum number of healthy hosts; hook scripts must run at the expected deployment lifecycle events.

Incorrect Answers

B:

The pair changes the problem instead of completing it. One option addresses split invocation traffic between two published Lambda versions without changing callers; the other addresses retain the old ECS task set temporarily for rollback after traffic rerouting. The release, however, needs to update an existing EC2 fleet in batches while preserving required available capacity as well as execute controlled install and validation scripts during an EC2 deployment.

C:

Provisioned concurrency keeps initialized Lambda execution environments ready for supported versions or aliases; that is intended to reduce cold-start latency for a predictable high-priority request path, not to update an existing EC2 fleet in batches while preserving required available capacity; the second half can meet the requirement to execute controlled install and validation scripts during an EC2 deployment, but the first is still missing.

D:

A published Lambda version snapshots code and configuration; an alias can reference the selected version; that alternative supports the ability to release immutable Lambda code while keeping callers on a stable function reference, but it is not the requested second outcome (execute controlled install and validation scripts during an EC2 deployment). Even though the first half addresses update an existing EC2 fleet in batches while preserving required available capacity, this pair is incomplete.

Question 981

A new AWS operations standard requires the ability to identify unmanaged configuration changes made outside the IaC deployment and block unintended replacement or deletion of protected resources during stack updates in the same operating environment. Which proposed pair delivers both?

  1. Deploy dynamic configuration using AWS AppConfig gradual rollout; use AWS SAM transform resources for Lambda and API infrastructure
  2. Use Systems Manager Parameter Store hierarchical paths for application settings; use CloudFormation stack policies to protect critical resources from updates
  3. Enable CloudFormation drift detection on supported stack resources; use CloudFormation stack policies to protect critical resources from updates
  4. Enable CloudFormation drift detection on supported stack resources; use CloudFormation resource import for supported existing resources

Explanation

Correct Answer

C:

Drift detection compares actual and expected configurations for supported resources and properties; this handles the first acceptance condition, subject to the boundary that the audit must compare actual supported resource properties with expected template state. The remaining condition is handled separately: a stack policy can deny update actions on selected logical resources unless appropriately overridden, with protection should constrain update operations while allowing approved stack updates elsewhere.

Incorrect Answers

A:

Neither control directly supplies both requested behaviors. AppConfig deployment strategies gradually distribute hosted or sourced configuration and can roll back on alarms; AWS SAM expands serverless resource declarations into supported CloudFormation resources during transformation; those mechanisms address different objectives; the specified capabilities are to identify unmanaged configuration changes made outside the IaC deployment and to block unintended replacement or deletion of protected resources during stack updates.

B:

The second implementation is relevant; the problem is the first. Parameter Store names can use hierarchies and IAM permissions for managed configuration lookup; it can help organize nonsecret configuration keys by environment and application namespace, whereas the stated first requirement is to identify unmanaged configuration changes made outside the IaC deployment.

D:

The first half is appropriate: Drift detection compares actual and expected configurations for supported resources and properties. However, resource import associates supported existing resources with logical resources in a stack template; that serves a different objective (bring an already-created resource under stack management without rebuilding it) and leaves the explicit need to block unintended replacement or deletion of protected resources during stack updates unmet.

Question 982

An engineer will implement the following change: Use SSM document version control for repeatable operational scripts. Which operational boundary most directly applies to the intended outcome to publish a reviewed command document and execute a pinned approved version?

  1. CloudFormation should resolve the protected value from its secret or parameter store
  2. The consumer should use an explicit stack export instead of hard-coded values
  3. Reusable components should remain stacks with their own update boundaries
  4. Operators must distinguish draft and approved automation document versions

Explanation

Correct Answer

D:

The requested behavior is to publish a reviewed command document and execute a pinned approved version, and operators must distinguish draft and approved automation document versions. The underlying AWS behavior is that SSM documents support versioned content and associations can refer to defined document versions.

Incorrect Answers

A:

The proposed condition makes sense in an implementation designed to avoid hardcoding a sensitive input in reusable infrastructure templates. It concerns dynamic references let CloudFormation retrieve supported values from SSM Parameter Store or Secrets Manager, whereas this question tests the prerequisite of the named control.

B:

This proposed constraint belongs to a separate objective: the consumer should use an explicit stack export instead of hard-coded values. The corresponding goal is to reference a networking stack's output from an application stack in the same Region, not the selected architecture's goal to publish a reviewed command document and execute a pinned approved version.

C:

This condition governs the different mechanism used to compose a large deployment from smaller lifecycle-managed CloudFormation templates; nested stacks allow a parent stack to reference reusable child templates through stack resources; for the selected control, the relevant boundary is instead that operators must distinguish draft and approved automation document versions.

Question 983

Investigators observe: One monolithic template duplicates VPC and IAM resource definitions across projects. Engineers still need to compose a large deployment from smaller lifecycle-managed CloudFormation templates. Which corrective action is most appropriate?

  1. Use CloudFormation cross-stack exports and imports for shared output values
  2. Use AWS CloudFormation Change Sets before updating a stack
  3. Apply CloudFormation Conditions to optional template resources
  4. Use a nested CloudFormation stack for a reusable infrastructure component
  5. Use CloudFormation dynamic references for protected parameter values

Explanation

Correct Answer

D:

To compose a large deployment from smaller lifecycle-managed CloudFormation templates, the architecture relies on this AWS behavior: nested stacks allow a parent stack to reference reusable child templates through stack resources. Reusable components should remain stacks with their own update boundaries.

Incorrect Answers

A:

Although CloudFormation exports and Fn::ImportValue share supported values between stacks within the same account and Region, the scenario does not ask for reference a networking stack's output from an application stack in the same Region. It requires the ability to compose a large deployment from smaller lifecycle-managed CloudFormation templates, which is a separate responsibility.

B:

A change set previews how CloudFormation intends to modify or replace resources before execution; this can help teams inspect the proposed resource replacements and updates before executing infrastructure changes, but the reported workflow needs to compose a large deployment from smaller lifecycle-managed CloudFormation templates. It does not perform that required function.

C:

That service solves a different operating problem: the need to provision a resource only when an environment parameter meets a defined requirement. Its behavior is that conditions can determine resource creation and property values based on template parameters and functions. The requested outcome remains compose a large deployment from smaller lifecycle-managed CloudFormation templates.

E:

Dynamic references let CloudFormation retrieve supported values from SSM Parameter Store or Secrets Manager; this is a reasonable option when the requirement is to avoid hardcoding a sensitive input in reusable infrastructure templates, but it operates at a different workflow boundary from the stated need to compose a large deployment from smaller lifecycle-managed CloudFormation templates.

Question 984

An engineer is addressing a two-part platform requirement: let central automation perform scoped tasks in governed member accounts, without losing the ability to enable consistent threat detection coverage for member accounts. Which set of actions is suitable?

  1. Use cross-account STS AssumeRole for automated administration; use AWS Control Tower Account Factory to provision governed accounts
  2. Attach an Organizations SCP to a production OU; use delegated administrator registration for supported organization-wide services
  3. Use cross-account STS AssumeRole for automated administration; configure organization-wide GuardDuty management through a delegated security account
  4. Use AWS Backup policies through Organizations for supported centralized plans; configure organization-wide GuardDuty management through a delegated security account

Explanation

Correct Answer

C:

For the requirement to let central automation perform scoped tasks in governed member accounts, STS AssumeRole returns temporary credentials for a trusted role whose permissions constrain the session. For the requirement to enable consistent threat detection coverage for member accounts, GuardDuty organization administration can automatically manage protection enrollment across eligible members. Both mechanisms are necessary; implementing only the first would leave the second unsatisfied.

Incorrect Answers

A:

The first half is appropriate: STS AssumeRole returns temporary credentials for a trusted role whose permissions constrain the session. However, account Factory provisions accounts under a landing-zone structure using configured account baselines; that serves a different objective (create new workload accounts with standardized landing-zone controls) and leaves the explicit need to enable consistent threat detection coverage for member accounts unmet.

B:

These are legitimate AWS controls for different outcomes: service control policies limit the maximum permissions of affected account principals but do not grant rights, whereas delegated administration allows a registered member account to manage eligible service functions organization-wide. The problem instead requires the ability to let central automation perform scoped tasks in governed member accounts and to enable consistent threat detection coverage for member accounts.

D:

Organizations backup policies help coordinate AWS Backup plans and selections across member accounts; that is intended to distribute common backup policy requirements to eligible member accounts, not to let central automation perform scoped tasks in governed member accounts; the second half can meet the requirement to enable consistent threat detection coverage for member accounts, but the first is still missing.

Question 985

The observability team's change record lists two distinct deliverables: continuously export supported metrics to an external observability platform and count specific error patterns without changing application metric instrumentation. Which combination covers both deliverables?

  1. Create CloudWatch metric streams to Amazon Data Firehose; use CloudWatch Embedded Metric Format in structured JSON logs
  2. Create CloudWatch metric streams to Amazon Data Firehose; configure CloudWatch Logs retention per application log group
  3. Configure CloudWatch Logs cross-account subscription delivery through supported destination policies; configure CloudWatch metric filters for structured application log events
  4. Create CloudWatch metric streams to Amazon Data Firehose; configure CloudWatch metric filters for structured application log events
  5. Deliver S3 server access logs or application exports through lifecycle-managed buckets; configure CloudWatch metric filters for structured application log events
  6. Encrypt long-term S3 log objects with a customer managed KMS key; publish PutMetricData custom metrics with stable dimensions

Explanation

Correct Answer

D:

CloudWatch metric streams continuously send metric data to supported delivery services; metric filters evaluate incoming CloudWatch Logs records and emit metrics for matching patterns. The first control satisfies the need to continuously export supported metrics to an external observability platform; the second addresses the need to count specific error patterns without changing application metric instrumentation. Metric export should be managed and near-real-time without custom scraping loops; the log event pattern is consistent enough to extract a metric value.

Incorrect Answers

A:

Combining a suitable first control with this second one misses the secondary acceptance criterion; embedded Metric Format embeds metric definitions in structured log events for CloudWatch extraction; it helps emit high-cardinality application measurements together with diagnostic context rather than count specific error patterns without changing application metric instrumentation.

B:

The first half is appropriate: CloudWatch metric streams continuously send metric data to supported delivery services. However, log-group retention settings automatically expire data beyond the configured retention interval; that serves a different objective (expire routine log events after the approved operating retention period) and leaves the explicit need to count specific error patterns without changing application metric instrumentation unmet.

C:

The second implementation is relevant; the problem is the first. CloudWatch Logs destinations and resource policies authorize supported cross-account subscription flows; it can help centralize matching account log streams into a designated log-processing account, whereas the stated first requirement is to continuously export supported metrics to an external observability platform.

E:

S3 lifecycle rules transition or expire suitable log objects based on approved retention requirements; that is intended to retain bulk historical logs at lower long-term storage cost, not to continuously export supported metrics to an external observability platform. The second half can meet the requirement to count specific error patterns without changing application metric instrumentation, but the first is still missing.

F:

These are legitimate AWS controls for different outcomes: S3 SSE-KMS encrypts objects using AWS KMS keys with separate data and key-access controls, whereas CloudWatch custom metrics accept namespace, metric name, dimensions, values, and timestamps for aggregation. The problem instead requires the ability to continuously export supported metrics to an external observability platform and to count specific error patterns without changing application metric instrumentation.

Question 986

The site reliability team selects this control: Use a CloudFormation Change Set for emergency infrastructure adjustments. What associated scope or dependency matters most when using it to review the actual resource mutations before applying a critical IaC patch?

  1. The automation must be constrained to the exact API actions and resources it repairs
  2. Rollback should follow a specific monitored release failure signal
  3. Targets must be selected by tags and have the required SSM managed-node permissions
  4. The change must be inspectable before stack update execution
  5. The change must be tracked with an approval workflow and appropriate permissions

Explanation

Correct Answer

D:

The requested behavior is to review the actual resource mutations before applying a critical IaC patch, and the change must be inspectable before stack update execution. The underlying AWS behavior is that CloudFormation Change Sets preview resource actions including potential replacements before execution.

Incorrect Answers

A:

The proposed condition makes sense in an implementation designed to limit the changes an automated incident runbook can make; it concerns dedicated execution roles and least-privilege policies bound the authority of automated changes, whereas this question tests the prerequisite of the named control; the specified requirement instead is to review the actual resource mutations before applying a critical IaC patch.

B:

This proposed constraint belongs to a separate objective: rollback should follow a specific monitored release failure signal; the corresponding goal is to reverse a release that triggers the defined customer error alarm, not the selected architecture's goal to review the actual resource mutations before applying a critical IaC patch.

C:

This condition governs the different mechanism used to apply a one-off configuration command to all affected managed instances. Run Command executes approved documents on selected managed nodes without direct interactive host access; for the selected control, the relevant boundary is instead that the change must be inspectable before stack update execution.

E:

The proposed condition makes sense in an implementation designed to review a sensitive operational change before executing its runbook. It concerns change Manager supports governed change requests and approval workflows for operations, whereas this question tests the prerequisite of the named control.

Question 987

An incident-response implementation has two separate dependencies: determine whether database request limits cause application retry storms, and explain a brief application database interruption after a Multi-AZ failover. Select the combination that addresses both rather than only one.

  1. Inspect DynamoDB throttling and consumed capacity metrics; review CodeDeploy lifecycle hook logs and agent logs on target EC2 instances
  2. Inspect EKS pod events and describe output for Pending pods; review CodeBuild CloudWatch logs and build phase status
  3. Inspect application retry behavior and SQS ApproximateAgeOfOldestMessage; inspect RDS failover events and connection retry handling
  4. Inspect DynamoDB throttling and consumed capacity metrics; inspect RDS failover events and connection retry handling

Explanation

Correct Answer

D:

For the requirement to determine whether database request limits cause application retry storms, DynamoDB metrics identify throttled reads and writes and provisioned or consumed capacity behavior; for the requirement to explain a brief application database interruption after a Multi-AZ failover, RDS event timelines and application connection behavior help diagnose managed failover recovery; both mechanisms are necessary; implementing only the first would leave the second unsatisfied.

Incorrect Answers

A:

The first half is appropriate: DynamoDB metrics identify throttled reads and writes and provisioned or consumed capacity behavior. However, CodeDeploy agent and deployment logs record instance-level lifecycle command behavior; that serves a different objective (diagnose why an instance deployment fails during a lifecycle hook) and leaves the explicit need to explain a brief application database interruption after a Multi-AZ failover unmet.

B:

These are legitimate AWS controls for different outcomes: kubernetes scheduling events explain why pending pods cannot be assigned to nodes, whereas CodeBuild build logs and phase contexts expose command errors and environment failures. The problem instead requires the ability to determine whether database request limits cause application retry storms and to explain a brief application database interruption after a Multi-AZ failover.

C:

This combination solves only the latter acceptance test. The substituted first control supports identify whether queue-processing latency is growing from a slow consumer: SQS age metrics help reveal processing delay that count metrics alone can obscure. It does not implement determine whether database request limits cause application retry storms.

Question 988

Investigators observe: A Config rule marks unrestricted ingress noncompliant but security staff edit every resource manually. Engineers still need to repair noncompliant security group rules after policy evaluation. Which corrective action is most appropriate?

  1. Attach an AWS Config remediation configuration to an SSM Automation runbook
  2. Trigger SSM Automation from EventBridge for a specific incident event
  3. Use Systems Manager Run Command with tag-based targets for an emergency fix
  4. Apply CloudFormation drift remediation through a reviewed template update

Explanation

Correct Answer

A:

Config remediation can invoke Systems Manager Automation to correct supported rule findings. It restores the ability to repair noncompliant security group rules after policy evaluation, provided the implementation also observes that the remediation role needs permissions limited to the intended security group change.

Incorrect Answers

B:

Although an EventBridge rule can start Systems Manager Automation documents as supported targets, the scenario does not ask for run a documented multi-step configuration repair after a matching event. It requires the ability to repair noncompliant security group rules after policy evaluation, which is a separate responsibility.

C:

Run Command executes approved documents on selected managed nodes without direct interactive host access; this can help teams apply a one-off configuration command to all affected managed instances, but the reported workflow needs to repair noncompliant security group rules after policy evaluation. It does not perform that required function.

D:

That service solves a different operating problem: the need to restore a resource's intended IaC state after manual infrastructure changes; its behavior is that a reviewed stack update can bring supported drifted resources back toward declared template state; the requested outcome remains repair noncompliant security group rules after policy evaluation.

Question 989

An internal reliability review requests these controls: (1) trace which principal and resource action caused a failed automation request; (2) find which dependency slows a distributed API request. Which TWO proposed actions belong in the implementation? Choose TWO.

  1. Inspect X-Ray traces for downstream service latency
  2. Review CodeBuild CloudWatch logs and build phase status
  3. Use CloudTrail events to identify the caller behind an AccessDenied API action
  4. Inspect RDS failover events and connection retry handling
  5. Check Auto Scaling scaling activities and launch failures
  6. Inspect ECS service events and stopped-task reasons

Explanation

Correct Answers

A:

The corresponding obligation is to find which dependency slows a distributed API request. X-Ray traces expose service dependencies and timing across instrumented operations; that behavior is the reason this action belongs in the selected answer set.

C:

This covers the specific result to trace which principal and resource action caused a failed automation request: CloudTrail supported management events can show the assumed role, action, and error context. The audit must distinguish caller identity, API action, and request context.

Incorrect Answers

B:

It supports a separate administrative task, namely to identify the first shell command or dependency failure in a failing build. CodeBuild build logs and phase contexts expose command errors and environment failures. The prompt's required outcomes are not achieved by substituting this control.

D:

RDS event timelines and application connection behavior help diagnose managed failover recovery; that would be appropriate to explain a brief application database interruption after a Multi-AZ failover, but this is a different objective from the numbered obligations in the stem.

E:

This mechanism supports the ability 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; it would not satisfy a different obligation just by appearing in the same workflow; the specified requirement instead is to find which dependency slows a distributed API request.

F:

It supports a separate administrative task, namely to diagnose an ECS service unable to reach steady state. ECS service events and stopped task metadata describe placement and startup failures. The prompt's required outcomes are not achieved by substituting this control.

Question 990

After a configuration change, the release manager sees this issue: A staging deployment succeeds but the endpoint health tests are never required before approval. What best restores the ability to fail a promotion flow based on smoke-test results for the deployed service?

  1. Use a CodePipeline test action after deployment to staging
  2. Use pull request events to start a pre-merge validation build
  3. Use CodeBuild batch builds for a supported test matrix
  4. Run acceptance tests after staging deployment and before approval

Explanation

Correct Answer

A:

A pipeline test action turns post-deployment health verification into an enforceable promotion gate; in this case the control is appropriate because it supports fail a promotion flow based on smoke-test results for the deployed service. The test stage must consume the staged endpoint and block the next stage if it fails.

Incorrect Answers

B:

That service solves a different operating problem: the need to evaluate a proposed change before it merges into a protected branch. Its behavior is that PR-triggered builds can test changes earlier than post-merge releases and support branch protection workflows. The requested outcome remains fail a promotion flow based on smoke-test results for the deployed service.

C:

The choice is useful when engineers need to run compatible test variations in parallel and consolidate their outcomes: batch builds support coordinated multiple build configurations and associated aggregate status. It would not establish the control needed to fail a promotion flow based on smoke-test results for the deployed service.

D:

Acceptance checks validate end-to-end expected behavior and can fail the pipeline before production; this is a reasonable option when the requirement is to verify business workflows on a deployed candidate before production promotion, but it operates at a different workflow boundary from the stated need to fail a promotion flow based on smoke-test results for the deployed service.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests