Question 10

An automated check detects: Operators require an emergency shell but the security team forbids inbound bastion SSH. Which remediation directly supports the requirement to troubleshoot managed EC2 hosts without opening SSH ports or distributing key pairs?

  1. Use State Manager to enforce a recurring configuration association
  2. Attach an SSM Automation remediation action to an AWS Config rule
  3. Use Systems Manager Run Command for scoped remote command execution
  4. Use Systems Manager Distributor for controlled software-package deployment
  5. Use Systems Manager Session Manager for audited interactive access

Explanation

Correct Answer

E:

Session Manager provides managed interactive sessions through Systems Manager connectivity and IAM controls; it enables the necessary capability to troubleshoot managed EC2 hosts without opening SSH ports or distributing key pairs rather than only providing an adjacent operational control. Connection authorization should be IAM-based and session activity governed.

Incorrect Answers

A:

Choosing this would aim to reapply a required host configuration whenever nodes drift instead of troubleshoot managed EC2 hosts without opening SSH ports or distributing key pairs. State Manager associations run specified documents against targets according to defined schedules; it cannot replace the mechanism specified by the incident evidence.

B:

Although config remediation configurations can invoke Systems Manager Automation documents for matching findings, the scenario does not ask for remediate eligible noncompliant resources using a controlled runbook. It requires the ability to troubleshoot managed EC2 hosts without opening SSH ports or distributing key pairs, which is a separate responsibility.

C:

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 troubleshoot managed EC2 hosts without opening SSH ports or distributing key pairs. It does not perform that required function.

D:

That service solves a different operating problem: the need to publish an internal agent package and distribute it to managed nodes. Its behavior is that distributor manages software packages that can be installed or updated through Systems Manager workflows. The requested outcome remains troubleshoot managed EC2 hosts without opening SSH ports or distributing key pairs.

Question 11

The production plan uses this approach: Attach automatic AWS Config remediation to an SSM Automation document. The goal is to correct an eligible configuration violation soon after detection. Which prerequisite or limitation should receive focused review?

  1. The filter pattern must match the incoming event shape
  2. The rule must match the relevant event type and route only useful events
  3. The remediation action needs authorized and bounded automated permissions
  4. The target instance and alarm must meet EC2 recovery requirements

Explanation

Correct Answer

C:

The requested behavior is to correct an eligible configuration violation soon after detection, and the remediation action needs authorized and bounded automated permissions. The underlying AWS behavior is that config automatic remediation can invoke Systems Manager Automation for noncompliant resources.

Incorrect Answers

A:

This proposed constraint belongs to a separate objective: the filter pattern must match the incoming event shape. The corresponding goal is to raise an incident when a known error token appears repeatedly in application logs, not the selected architecture's goal to correct an eligible configuration violation soon after detection.

B:

This condition governs the different mechanism used to notify the operations account when an AWS service issue affects the workload; EventBridge receives supported AWS Health events and routes matching events to configured targets; for the selected control, the relevant boundary is instead that the remediation action needs authorized and bounded automated permissions.

D:

The proposed condition makes sense in an implementation designed to recover an eligible impaired instance when a system-status check indicates host failure; it concerns supported CloudWatch alarm actions can request EC2 instance recovery for qualifying status-check failures, whereas this question tests the prerequisite of the named control.

Question 12

A delivery change request has linked acceptance tests: the system must orchestrate multiple release checks with retries, branches, and explicit failure states, and it must promote the exact tested package between environments rather than rebuilding source independently. Which two controls should the engineers combine?

  1. Connect a CodePipeline source action to an approved Git provider through CodeConnections; use an immutable artifact identifier when promoting a release
  2. Use an AWS Step Functions state machine to coordinate conditional release tasks; use a customer managed KMS key and grant the target deployment role decrypt permission
  3. Use an AWS Step Functions state machine to coordinate conditional release tasks; configure stage-level failure handling to stop and roll back supported pipeline executions
  4. Define build phases and commands in the CodeBuild buildspec; configure an EventBridge rule for an event-driven pipeline execution
  5. Use an AWS Step Functions state machine to coordinate conditional release tasks; use an immutable artifact identifier when promoting a release

Explanation

Correct Answer

E:

Step Functions models a durable workflow with service integrations, conditional paths, waits, and retries; promoting a fixed artifact identity prevents environment-specific rebuilds from silently changing the delivered bytes. The first control satisfies the need to orchestrate multiple release checks with retries, branches, and explicit failure states; the second addresses the need to promote the exact tested package between environments rather than rebuilding source independently. The process needs persisted execution state and branching outcomes; release provenance must refer to a single versioned artifact or image digest.

Incorrect Answers

A:

The source connection supplies authorized repository events and revisions to a pipeline source action; that is intended to start pipeline executions from commits on the approved application branch, not to orchestrate multiple release checks with retries, branches, and explicit failure states; the second half can meet the requirement to promote the exact tested package between environments rather than rebuilding source independently, but the first is still missing.

B:

A customer managed key with suitable key policy and IAM permission supports cross-account decrypt access; that alternative supports the ability to make encrypted CodePipeline artifacts usable by an authorized cross-account action, but it is not the requested second outcome (promote the exact tested package between environments rather than rebuilding source independently). Even though the first half addresses orchestrate multiple release checks with retries, branches, and explicit failure states, this pair is incomplete.

C:

Combining a suitable first control with this second one misses the secondary acceptance criterion; CodePipeline supports stage failure actions including rollback for eligible pipeline types and stages; it helps restore a known successful release when a new stage execution fails rather than promote the exact tested package between environments rather than rebuilding source independently.

D:

Neither control directly supplies both requested behaviors. A buildspec documents lifecycle phases, shell commands, outputs, and optional reports for CodeBuild; EventBridge event patterns select the desired events and route them to a supported automation target. Those mechanisms address different objectives. The specified capabilities are to orchestrate multiple release checks with retries, branches, and explicit failure states and to promote the exact tested package between environments rather than rebuilding source independently.

Question 13

A production change is expected to diagnose a deployment that can assume a role but cannot fetch its release bundle. The same change must also diagnose artifact decryption failure after S3 object access succeeds. Which paired implementation meets both acceptance criteria?

  1. Evaluate resource and identity policies for a cross-account S3 artifact read; inspect X-Ray traces for downstream service latency
  2. Evaluate resource and identity policies for a cross-account S3 artifact read; check Auto Scaling scaling activities and launch failures
  3. Evaluate resource and identity policies for a cross-account S3 artifact read; inspect KMS key policies and grants for cross-account decrypt failures
  4. Inspect EKS pod events and describe output for Pending pods; inspect DynamoDB throttling and consumed capacity metrics
  5. Inspect CodePipeline stage and action execution history; inspect KMS key policies and grants for cross-account decrypt failures

Explanation

Correct Answer

C:

Cross-account S3 access can require compatible IAM and resource policy permissions for the object; this handles the first acceptance condition, subject to the boundary that the authorization path must include both principal permissions and bucket resource policy. The remaining condition is handled separately: customer managed KMS key policies and principal permissions govern who may decrypt encrypted artifacts, with decryption authorization must be separate from S3 GetObject permission.

Incorrect Answers

A:

Combining a suitable first control with this second one misses the secondary acceptance criterion; x-Ray traces expose service dependencies and timing across instrumented operations; it helps find which dependency slows a distributed API request rather than diagnose artifact decryption failure after S3 object access succeeds.

B:

The first half is appropriate: Cross-account S3 access can require compatible IAM and resource policy permissions for the object. However, auto Scaling activity history records scaling requests and instance launch or health-related failures; that serves a different objective (discover why an EC2 fleet fails to add replacement capacity) and leaves the explicit need to diagnose artifact decryption failure after S3 object access succeeds unmet.

D:

The pair changes the problem instead of completing it. One option addresses diagnose Kubernetes scheduling constraints rather than application code failure; the other addresses determine whether database request limits cause application retry storms. The release, however, needs to diagnose a deployment that can assume a role but cannot fetch its release bundle as well as diagnose artifact decryption failure after S3 object access succeeds.

E:

CodePipeline records stage and action execution statuses and detailed links for troubleshooting; that is intended to find which pipeline action failed and review its detailed external execution link, not to diagnose a deployment that can assume a role but cannot fetch its release bundle. The second half can meet the requirement to diagnose artifact decryption failure after S3 object access succeeds, but the first is still missing.

Question 14

An incident record says: An administrator fixes a configuration once but new instances later drift from the approved state. To restore the capability to keep managed instances configured with a prescribed agent and operating setting, which change addresses the root cause?

  1. Use CloudFormation StackSets with service-managed permissions
  2. Use CloudFormation dynamic references for protected parameter values
  3. Use Systems Manager Parameter Store hierarchical paths for application settings
  4. Use Systems Manager State Manager associations for desired-state enforcement

Explanation

Correct Answer

D:

State Manager associations apply a defined configuration on a schedule to selected managed resources; that directly addresses the observed failure in the scenario. The configuration still has to respect this constraint: the fix must recur against tagged managed nodes without opening inbound SSH.

Incorrect Answers

A:

The choice is useful when engineers need to deploy a common baseline across organization accounts and selected Regions: service-managed StackSets use AWS Organizations integration to provision stack instances across eligible accounts. It would not establish the control needed to keep managed instances configured with a prescribed agent and operating setting.

B:

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 keep managed instances configured with a prescribed agent and operating setting.

C:

Choosing this would aim to organize nonsecret configuration keys by environment and application namespace instead of keep managed instances configured with a prescribed agent and operating setting. Parameter Store names can use hierarchies and IAM permissions for managed configuration lookup; it cannot replace the mechanism specified by the incident evidence.

Question 15

The production plan uses this approach: Use predictive scaling with EC2 Auto Scaling for suitable historical patterns. The goal is to anticipate regular load variations using observed historical demand. Which prerequisite or limitation should receive focused review?

  1. Compute scale-out must track container placement demand
  2. The feature must have suitable load history and an appropriate forecasting configuration
  3. Capacity must be ready shortly before the recurring workload starts
  4. The solution must adjust RCU and WCU settings rather than compute nodes

Explanation

Correct Answer

B:

The feature must have suitable load history and an appropriate forecasting configuration. That is the governing deployment boundary for the selected control: predictive scaling forecasts capacity demand from load history and can schedule scaling ahead of it. If the boundary is missed, the design can fail to anticipate regular load variations using observed historical demand.

Incorrect Answers

A:

This proposed constraint belongs to a separate objective: compute scale-out must track container placement demand; the corresponding goal is to coordinate ECS service task placement with managed EC2 capacity, not the selected architecture's goal to anticipate regular load variations using observed historical demand.

C:

Scheduled actions change Auto Scaling desired or min and max capacity at specified times. Its own dependency is that capacity must be ready shortly before the recurring workload starts. Those details concern the separate objective of being able to preprovision EC2 capacity before a known daily traffic increase, rather than to the named control required to anticipate regular load variations using observed historical demand.

D:

The proposed condition makes sense in an implementation designed to adapt provisioned throughput targets to changing demand; it concerns DynamoDB Application Auto Scaling can change provisioned read or write capacity based on utilization targets, whereas this question tests the prerequisite of the named control.

Question 16

An incident record says: The same event is delivered twice and the automation creates two replacement resources. To restore the capability to prevent repeated event delivery from causing duplicate infrastructure changes, which change addresses the root cause?

  1. Use EventBridge Scheduler for per-task scheduled API invocations
  2. Use Systems Manager Patch Manager and patch baselines
  3. Use a Step Functions Map state for bounded parallel processing
  4. Use conditional writes or deduplication keys to make a remediation handler idempotent

Explanation

Correct Answer

D:

Idempotency controls make repeated executions converge on the same intended side effect. It enables the necessary capability to prevent repeated event delivery from causing duplicate infrastructure changes rather than only providing an adjacent operational control. The response must remain safe under at-least-once delivery semantics.

Incorrect Answers

A:

Choosing this would aim to invoke a service API at a one-time or recurring schedule without hosting a cron instance instead of prevent repeated event delivery from causing duplicate infrastructure changes; EventBridge Scheduler manages time-based invocation schedules with supported targets and retry policies; it cannot replace the mechanism specified by the incident evidence.

B:

Although patch Manager applies selected baselines to supported managed nodes for scan or install operations, the scenario does not ask for scan and install operating-system updates according to approved patch classifications. It requires the ability to prevent repeated event delivery from causing duplicate infrastructure changes, which is a separate responsibility.

C:

Map states can apply a defined workflow to collections with configurable concurrency. This can help teams run a repeatable remediation step against multiple independent work items, but the reported workflow needs to prevent repeated event delivery from causing duplicate infrastructure changes. It does not perform that required function.

Question 17

Two technical outcomes must be delivered together: authorize container business logic to read only its specific AWS resources and allow a Lambda handler to read a specific secret and publish required logs. Which pair of controls is sufficient for the stated outcomes?

  1. Use IAM Identity Center with an external identity provider federation; use a Lambda execution role scoped to required AWS APIs
  2. Attach an instance profile with a scoped IAM role to EC2; use session policies when assuming a role for a narrowly scoped job
  3. Use an ECS task IAM role rather than the ECS task execution role for application API access; use IAM Access Analyzer policy validation and least-privilege findings
  4. Use an ECS task IAM role rather than the ECS task execution role for application API access; use a Lambda execution role scoped to required AWS APIs

Explanation

Correct Answer

D:

ECS task roles grant permissions to containers; execution roles support image pulls, logs, and task startup; Lambda execution roles grant the AWS API permissions used by the running function. The first control satisfies the need to authorize container business logic to read only its specific AWS resources; the second addresses the need to allow a Lambda handler to read a specific secret and publish required logs. Runtime application privileges should be isolated from ECS agent execution privileges; the function's execution identity should avoid global administrator actions.

Incorrect Answers

A:

The second implementation is relevant; the problem is the first. IAM Identity Center integrates with supported identity providers for federated workforce access; it can help centralize workforce lifecycle while retaining the corporate identity provider, whereas the stated first requirement is to authorize container business logic to read only its specific AWS resources.

B:

The pair changes the problem instead of completing it. One option addresses give an EC2 application temporary credentials to call an AWS API; the other addresses further limit temporary role credentials to the resources needed by one execution. The release, however, needs to authorize container business logic to read only its specific AWS resources as well as allow a Lambda handler to read a specific secret and publish required logs.

C:

The first half is appropriate: ECS task roles grant permissions to containers; execution roles support image pulls, logs, and task startup. However, IAM Access Analyzer validates policies and can surface security and best-practice findings; that serves a different objective (identify broad or risky IAM policy patterns before deployment) and leaves the explicit need to allow a Lambda handler to read a specific secret and publish required logs unmet.

Question 18

The architecture record specifies: Use a CloudWatch alarm for ECS CPU or memory utilization with service scaling. To support the goal to adjust container capacity as aggregate task load grows, which consideration should the engineer validate?

  1. The filter pattern must match the incoming event shape
  2. Alarm thresholds must correspond to the associated scaling-policy behavior
  3. The alarm should use service-reported throttling data rather than EC2 CPU
  4. The scaling control must operate on service desired task count
  5. Availability policy must combine relevant child checks rather than a single TCP probe

Explanation

Correct Answer

D:

The requested behavior is to adjust container capacity as aggregate task load grows, and the scaling control must operate on service desired task count. The underlying AWS behavior is that application Auto Scaling policies can use CloudWatch service metrics to scale ECS task replicas.

Incorrect Answers

A:

The proposed condition makes sense in an implementation designed to raise an incident when a known error token appears repeatedly in application logs. It concerns a metric filter emits values from matching logs that a CloudWatch alarm can evaluate, whereas this question tests the prerequisite of the named control.

B:

This proposed constraint belongs to a separate objective: alarm thresholds must correspond to the associated scaling-policy behavior; the corresponding goal is to adjust worker fleet capacity when a workload metric crosses a defined level, not the selected architecture's goal to adjust container capacity as aggregate task load grows.

C:

This condition governs the different mechanism used to detect insufficient or overloaded request capacity before clients fail broadly. DynamoDB CloudWatch metrics expose throttled requests and relevant read or write capacity behavior; for the selected control, the relevant boundary is instead that the scaling control must operate on service desired task count.

E:

The proposed condition makes sense in an implementation designed to reflect the combined state of several application dependencies in DNS failover decisions; it concerns calculated Route 53 health checks can evaluate a configured number of healthy child checks, whereas this question tests the prerequisite of the named control.

Question 19

Before approving an automated rollout, the reliability team must scale pod replicas for demand without changing each pod's compute limits and add cluster nodes when pods cannot schedule due to insufficient capacity. Which combination covers the two distinct controls?

  1. Configure Kubernetes Horizontal Pod Autoscaler with relevant metrics; use DynamoDB auto scaling for provisioned read and write capacity
  2. Use SQS to buffer bursts between request intake and worker processing; run stateless burst workloads on AWS Fargate
  3. Configure Kubernetes Horizontal Pod Autoscaler with relevant metrics; configure Karpenter or a supported EKS node autoscaler for unschedulable pods
  4. Place CloudFront caching ahead of read-heavy static content origins; configure Karpenter or a supported EKS node autoscaler for unschedulable pods

Explanation

Correct Answer

C:

The first outcome depends on the behavior that HPA adjusts the replica count of supported Kubernetes workloads from configured metrics. Separately, node autoscalers provision or adjust worker capacity in response to pending pods and cluster constraints. Together these meet the two requested outcomes, with the operational limits that scaling should change replicas rather than only increase a container resource limit and node provisioning must respond to Kubernetes scheduling constraints.

Incorrect Answers

A:

Combining a suitable first control with this second one misses the secondary acceptance criterion; DynamoDB Application Auto Scaling can change provisioned read or write capacity based on utilization targets; it helps adapt provisioned throughput targets to changing demand rather than add cluster nodes when pods cannot schedule due to insufficient capacity.

B:

Neither control directly supplies both requested behaviors. SQS queues hold pending work and let consumers process it asynchronously with retry semantics; fargate provides managed compute capacity for compatible ECS tasks and EKS pods. Those mechanisms address different objectives. The specified capabilities are to scale pod replicas for demand without changing each pod's compute limits and to add cluster nodes when pods cannot schedule due to insufficient capacity.

D:

This combination solves only the latter acceptance test. The substituted first control supports offload geographically distributed static requests from the origin: CloudFront caches eligible objects at edge locations to reduce repeated origin requests and user latency. It does not implement scale pod replicas for demand without changing each pod's compute limits.

Question 20

After a configuration change, the platform engineering team sees this issue: New instances take several minutes to bootstrap after a target tracking scale-out decision. What best restores the ability to reduce scale-out readiness time for an application with lengthy initialization?

  1. Use scheduled scaling for recurring predictable demand
  2. Configure Kubernetes Horizontal Pod Autoscaler with relevant metrics
  3. Use predictive scaling with EC2 Auto Scaling for suitable historical patterns
  4. Configure Auto Scaling warm pools for slow-starting instances

Explanation

Correct Answer

D:

An Auto Scaling warm pool holds initialized instances in a supported state for later scale-out; it restores the ability to reduce scale-out readiness time for an application with lengthy initialization, provided the implementation also observes that preinitialized instances should be available for faster activation.

Incorrect Answers

A:

The choice is useful when engineers need to preprovision EC2 capacity before a known daily traffic increase: scheduled actions change Auto Scaling desired or min and max capacity at specified times; it would not establish the control needed to reduce scale-out readiness time for an application with lengthy initialization.

B:

HPA adjusts the replica count of supported Kubernetes workloads from configured metrics. This is a reasonable option when the requirement is to scale pod replicas for demand without changing each pod's compute limits, but it operates at a different workflow boundary from the stated need to reduce scale-out readiness time for an application with lengthy initialization.

C:

Choosing this would aim to anticipate regular load variations using observed historical demand instead of reduce scale-out readiness time for an application with lengthy initialization. Predictive scaling forecasts capacity demand from load history and can schedule scaling ahead of it; it cannot replace the mechanism specified by the incident evidence.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests