Question 950

A new AWS operations standard requires the ability to scan and install operating-system updates according to approved patch classifications and combine approvals, API actions, branching, and rollback-aware tasks in a repeatable runbook in the same operating environment. Which proposed pair delivers both?

  1. Use Systems Manager Patch Manager and patch baselines; use Systems Manager Session Manager for audited interactive access
  2. Use Systems Manager Patch Manager and patch baselines; use Systems Manager Automation runbooks for multi-step operational remediation
  3. Use State Manager to enforce a recurring configuration association; use an SQS dead-letter queue for repeatedly failing asynchronous work
  4. Use EventBridge Scheduler for per-task scheduled API invocations; use Systems Manager Automation runbooks for multi-step operational remediation

Explanation

Correct Answer

B:

Patch Manager applies selected baselines to supported managed nodes for scan or install operations; this handles the first acceptance condition, subject to the boundary that approved and rejected patch criteria should be managed centrally. The remaining condition is handled separately: automation runbooks execute structured steps and AWS service operations with defined permissions, with the workflow needs controlled execution steps and an assumable automation role.

Incorrect Answers

A:

Session Manager provides managed interactive sessions through Systems Manager connectivity and IAM controls; that alternative supports the ability to troubleshoot managed EC2 hosts without opening SSH ports or distributing key pairs, but it is not the requested second outcome (combine approvals, API actions, branching, and rollback-aware tasks in a repeatable runbook). Even though the first half addresses scan and install operating-system updates according to approved patch classifications, this pair is incomplete.

C:

Neither control directly supplies both requested behaviors. State Manager associations run specified documents against targets according to defined schedules; SQS redrive policies move repeatedly unsuccessfully processed messages to a designated dead-letter queue. Those mechanisms address different objectives. The specified capabilities are to scan and install operating-system updates according to approved patch classifications and to combine approvals, API actions, branching, and rollback-aware tasks in a repeatable runbook.

D:

The second implementation is relevant; the problem is the first. EventBridge Scheduler manages time-based invocation schedules with supported targets and retry policies; it can help invoke a service API at a one-time or recurring schedule without hosting a cron instance, whereas the stated first requirement is to scan and install operating-system updates according to approved patch classifications.

Question 951

An operational design is incomplete until it can scale message-processing workers with the backlog relative to active capacity and decouple transient producer spikes from a bounded worker fleet. Which two-part implementation fills both gaps?

  1. Use scheduled scaling for recurring predictable demand; enable ECS Service Auto Scaling for task count
  2. Use SQS backlog per worker as a target tracking metric; run stateless burst workloads on AWS Fargate
  3. Use ElastiCache for repeated hot-key application lookups; use SQS to buffer bursts between request intake and worker processing
  4. Use SQS backlog per worker as a target tracking metric; use SQS to buffer bursts between request intake and worker processing

Explanation

Correct Answer

D:

For the requirement to scale message-processing workers with the backlog relative to active capacity, backlog per instance estimates the pressure on worker capacity for queue-driven scaling. For the requirement to decouple transient producer spikes from a bounded worker fleet, SQS queues hold pending work and let consumers process it asynchronously with retry semantics. Both mechanisms are necessary; implementing only the first would leave the second unsatisfied.

Incorrect Answers

A:

Neither control directly supplies both requested behaviors. Scheduled actions change Auto Scaling desired or min and max capacity at specified times; application Auto Scaling can control ECS service desired count from target tracking or step policies. Those mechanisms address different objectives. The specified capabilities are to scale message-processing workers with the backlog relative to active capacity and to decouple transient producer spikes from a bounded worker fleet.

B:

Fargate provides managed compute capacity for compatible ECS tasks and EKS pods. That alternative supports the ability to launch containers without managing EC2 hosts for short-lived jobs, but it is not the requested second outcome (decouple transient producer spikes from a bounded worker fleet). Even though the first half addresses scale message-processing workers with the backlog relative to active capacity, this pair is incomplete.

C:

This combination solves only the latter acceptance test. The substituted first control supports reduce database read pressure for frequently requested reusable data: an in-memory cache serves hot keys without a round trip to the primary database for every read. It does not implement scale message-processing workers with the backlog relative to active capacity.

Question 952

A platform migration has these separately testable requirements: (1) provide temporary AWS credentials to on-premises workloads without storing IAM user keys; (2) rotate an application database password without manual quarterly updates; (3) deny access to a sensitive resource unless requests use an approved VPC endpoint. Choose THREE actions that satisfy the requirements. Choose THREE.

  1. Require MFA for privileged human sign-in and sensitive actions
  2. Use IAM Roles Anywhere for eligible external workloads with X.509 identities
  3. Apply an IAM permissions boundary to delegated role creation
  4. Use an IAM policy condition on aws:SourceVpce for eligible AWS service requests
  5. Assign AWS IAM Identity Center permission sets to workforce groups
  6. Enable Secrets Manager rotation with a supported rotation strategy

Explanation

Correct Answers

B:

The corresponding obligation is to provide temporary AWS credentials to on-premises workloads without storing IAM user keys. IAM Roles Anywhere uses trusted X.509 certificates to obtain temporary role credentials for external workloads; that behavior is the reason this action belongs in the selected answer set.

D:

This covers the specific result to deny access to a sensitive resource unless requests use an approved VPC endpoint: the source VPC endpoint condition can constrain eligible requests to a designated private endpoint path; the condition must apply to supported request paths and account for AWS service-to-service exceptions.

F:

The corresponding obligation is to rotate an application database password without manual quarterly updates. Secrets Manager rotation workflows update stored credentials and, with integration, the underlying service credential; that behavior is the reason this action belongs in the selected answer set.

Incorrect Answers

A:

MFA adds a second factor and can be required through identity provider settings or IAM policy conditions; that would be appropriate to add possession-based verification to administrator authentication, but this is a different objective from the numbered obligations in the stem.

C:

It supports a separate administrative task, namely to allow a development platform team to create roles without granting unlimited privileges. Permissions boundaries constrain the effective identity permissions of a user or role without granting access; the prompt's required outcomes are not achieved by substituting this control.

E:

IAM Identity Center provisions account roles through permission-set assignments to users and groups; that would be appropriate to provide centrally managed access to many AWS accounts for federated employees, but this is a different objective from the numbered obligations in the stem; the specified requirement instead is to provide temporary AWS credentials to on-premises workloads without storing IAM user keys.

Question 953

The infrastructure automation group selects this control: Use Systems Manager Parameter Store hierarchical paths for application settings. What associated scope or dependency matters most when using it to organize nonsecret configuration keys by environment and application namespace?

  1. Consumers need path-scoped access rather than duplicating values in source
  2. The consumer should use an explicit stack export instead of hard-coded values
  3. Configuration rollout must be gradual with monitored safety checks
  4. The fix must recur against tagged managed nodes without opening inbound SSH
  5. One parameterized template should selectively include appropriate resources

Explanation

Correct Answer

A:

The requested behavior is to organize nonsecret configuration keys by environment and application namespace, and consumers need path-scoped access rather than duplicating values in source. The underlying AWS behavior is that parameter Store names can use hierarchies and IAM permissions for managed configuration lookup.

Incorrect Answers

B:

The proposed condition makes sense in an implementation designed to reference a networking stack's output from an application stack in the same Region. It concerns CloudFormation exports and Fn::ImportValue share supported values between stacks within the same account and Region, whereas this question tests the prerequisite of the named control.

C:

This proposed constraint belongs to a separate objective: configuration rollout must be gradual with monitored safety checks. The corresponding goal is to release feature flags independently from application code with automatic rollback on alarms, not the selected architecture's goal to organize nonsecret configuration keys by environment and application namespace.

D:

This condition governs the different mechanism used to keep managed instances configured with a prescribed agent and operating setting; state Manager associations apply a defined configuration on a schedule to selected managed resources; for the selected control, the relevant boundary is instead that consumers need path-scoped access rather than duplicating values in source.

E:

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 organize nonsecret configuration keys by environment and application namespace.

Question 954

An observability change request has linked acceptance tests: the system must reflect the combined state of several application dependencies in DNS failover decisions, and it must notify the operations account when an AWS service issue affects the workload. Which two controls should the engineers combine?

  1. Use Route 53 calculated health checks for composite regional availability; use an ALB target group health check for backend service readiness
  2. Configure an EventBridge rule with an SSM Automation target; use an AWS Config managed rule to detect a specific resource misconfiguration
  3. Use a CloudWatch alarm for ECS CPU or memory utilization with service scaling; use EventBridge rules to route AWS Health account events to response automation
  4. Use Route 53 calculated health checks for composite regional availability; use EventBridge rules to route AWS Health account events to response automation

Explanation

Correct Answer

D:

The first outcome depends on the behavior that calculated Route 53 health checks can evaluate a configured number of healthy child checks. Separately, EventBridge receives supported AWS Health events and routes matching events to configured targets. Together these meet the two requested outcomes, with the operational limits that availability policy must combine relevant child checks rather than a single TCP probe and the rule must match the relevant event type and route only useful events.

Incorrect Answers

A:

The first half is appropriate: Calculated Route 53 health checks can evaluate a configured number of healthy child checks. However, ALB target groups mark eligible targets unhealthy and exclude them from normal request routing; that serves a different objective (exclude backend nodes that cannot serve required application requests) and leaves the explicit need to notify the operations account when an AWS service issue affects the workload unmet.

B:

These are legitimate AWS controls for different outcomes: EventBridge can invoke supported Systems Manager Automation runbooks from matching events, whereas config rules assess supported resource settings and publish compliant or noncompliant evaluations. The problem instead requires the ability to reflect the combined state of several application dependencies in DNS failover decisions and to notify the operations account when an AWS service issue affects the workload.

C:

This combination solves only the latter acceptance test. The substituted first control supports adjust container capacity as aggregate task load grows: application Auto Scaling policies can use CloudWatch service metrics to scale ECS task replicas. It does not implement reflect the combined state of several application dependencies in DNS failover decisions.

Question 955

A release readiness review identifies 2 distinct controls to implement: (1) coordinate ECS service task placement with managed EC2 capacity; (2) adapt provisioned throughput targets to changing demand. Select the TWO actions that jointly cover them. Choose TWO.

  1. Configure Auto Scaling warm pools for slow-starting instances
  2. Configure EC2 target tracking scaling on an application-relevant metric
  3. Use DynamoDB auto scaling for provisioned read and write capacity
  4. Use predictive scaling with EC2 Auto Scaling for suitable historical patterns
  5. Use SQS backlog per worker as a target tracking metric
  6. Use an ECS capacity provider strategy for EC2 cluster capacity

Explanation

Correct Answers

C:

The corresponding obligation is to adapt provisioned throughput targets to changing demand. DynamoDB Application Auto Scaling can change provisioned read or write capacity based on utilization targets; that behavior is the reason this action belongs in the selected answer set.

F:

ECS capacity providers can couple task placement and managed scaling of EC2 Auto Scaling capacity; this fulfills the stated requirement to coordinate ECS service task placement with managed EC2 capacity. The operational limitation is that compute scale-out must track container placement demand.

Incorrect Answers

A:

An Auto Scaling warm pool holds initialized instances in a supported state for later scale-out; if the requirement were to reduce scale-out readiness time for an application with lengthy initialization, that would matter. The requested outcomes are separate from the one this option addresses.

B:

Target tracking policies adjust desired capacity around a configured metric target. That would be appropriate to automatically change fleet capacity to maintain a target utilization level, but this is a different objective from the numbered obligations in the stem.

D:

It supports a separate administrative task, namely to anticipate regular load variations using observed historical demand. Predictive scaling forecasts capacity demand from load history and can schedule scaling ahead of it; the prompt's required outcomes are not achieved by substituting this control.

E:

Backlog per instance estimates the pressure on worker capacity for queue-driven scaling. If the requirement were to scale message-processing workers with the backlog relative to active capacity, that would matter. The requested outcomes are separate from the one this option addresses.

Question 956

A cross-team infrastructure plan specifies 2 measurable outcomes: (1) identify S3 objects that potentially contain sensitive information; (2) enforce centralized network-layer filtering across selected VPC traffic paths. Which TWO solutions address them? Choose TWO.

  1. Use AWS Private CA for an organization-managed private certificate authority
  2. Apply S3 Block Public Access at the account or bucket scope
  3. Use Amazon Macie for sensitive-data discovery in S3
  4. Deploy AWS Network Firewall for stateful VPC traffic inspection
  5. Use CloudHSM when exclusive customer control of HSM key management is required

Explanation

Correct Answers

C:

Macie uses automated discovery and classification to identify sensitive data in supported S3 objects; among the listed outcomes, it addresses identify S3 objects that potentially contain sensitive information, rather than merely contributing a related signal or support step.

D:

This covers the specific result to enforce centralized network-layer filtering across selected VPC traffic paths: network Firewall inspects routed VPC traffic using stateless and stateful rule groups. Traffic must actually traverse the configured firewall endpoints by appropriate routing.

Incorrect Answers

A:

AWS Private CA creates and operates private certificate authorities for issuing and managing private certificates; that would be appropriate to issue short-lived internal TLS certificates for private service identities, but this is a different objective from the numbered obligations in the stem.

B:

This mechanism supports the ability to prevent accidental public grants on sensitive S3 buckets: S3 Block Public Access settings override relevant public permissions for supported access paths. It would not satisfy a different obligation just by appearing in the same workflow.

E:

CloudHSM offers dedicated hardware security modules operated under the customer's control plane; that would be appropriate to meet a specialized cryptographic requirement needing dedicated customer-managed HSMs, but this is a different objective from the numbered obligations in the stem.

Question 957

An operational design is incomplete until it can avoid distributing durable access keys for central administration in member accounts and reduce confused-deputy risk when a SaaS vendor assumes customer roles. Which two-part implementation fills both gaps?

  1. Use an IAM role with STS temporary credentials for cross-account operations; configure IAM role trust conditions with an external ID for a third-party provider
  2. Use IAM Access Analyzer policy validation and least-privilege findings; use IAM Identity Center with an external identity provider federation
  3. Use an IAM role with STS temporary credentials for cross-account operations; use an ECS task IAM role rather than the ECS task execution role for application API access
  4. Use IAM Roles Anywhere for eligible external workloads with X.509 identities; configure IAM role trust conditions with an external ID for a third-party provider
  5. Use an IAM role with STS temporary credentials for cross-account operations; use a Lambda execution role scoped to required AWS APIs

Explanation

Correct Answer

A:

The first outcome depends on the behavior that STS AssumeRole issues expiring credentials for a trusted role rather than persistent user secrets. Separately, the sts:ExternalId condition helps a provider distinguish authorized cross-account assume-role requests. Together these meet the two requested outcomes, with the operational limits that trust and permission policies must explicitly govern the destination role and the customer role should verify an agreed external identifier supplied by the trusted provider.

Incorrect Answers

B:

These are legitimate AWS controls for different outcomes: IAM Access Analyzer validates policies and can surface security and best-practice findings, whereas IAM Identity Center integrates with supported identity providers for federated workforce access. The problem instead requires the ability to avoid distributing durable access keys for central administration in member accounts and to reduce confused-deputy risk when a SaaS vendor assumes customer roles.

C:

Combining a suitable first control with this second one misses the secondary acceptance criterion; ECS task roles grant permissions to containers; execution roles support image pulls, logs, and task startup; it helps authorize container business logic to read only its specific AWS resources rather than reduce confused-deputy risk when a SaaS vendor assumes customer roles.

D:

IAM Roles Anywhere uses trusted X.509 certificates to obtain temporary role credentials for external workloads; that is intended to provide temporary AWS credentials to on-premises workloads without storing IAM user keys, not to avoid distributing durable access keys for central administration in member accounts. The second half can meet the requirement to reduce confused-deputy risk when a SaaS vendor assumes customer roles, but the first is still missing.

E:

Lambda execution roles grant the AWS API permissions used by the running function. That alternative supports the ability to allow a Lambda handler to read a specific secret and publish required logs, but it is not the requested second outcome (reduce confused-deputy risk when a SaaS vendor assumes customer roles). Even though the first half addresses avoid distributing durable access keys for central administration in member accounts, this pair is incomplete.

Question 958

Investigators observe: An API integration returns gateway errors after a function duration limit is exceeded. Engineers still need to explain missing API responses from a new Lambda deployment. Which corrective action is most appropriate?

  1. Inspect KMS key policies and grants for cross-account decrypt failures
  2. Inspect Lambda CloudWatch logs for timeout and initialization errors
  3. Inspect application retry behavior and SQS ApproximateAgeOfOldestMessage
  4. Inspect X-Ray traces for downstream service latency

Explanation

Correct Answer

B:

Lambda logs include invocation results, duration, timeout messages, and runtime failures. It enables the necessary capability to explain missing API responses from a new Lambda deployment rather than only providing an adjacent operational control. The failing invocation and configured function timeout must be compared.

Incorrect Answers

A:

Choosing this would aim to diagnose artifact decryption failure after S3 object access succeeds instead of explain missing API responses from a new Lambda deployment; customer managed KMS key policies and principal permissions govern who may decrypt encrypted artifacts; it cannot replace the mechanism specified by the incident evidence.

C:

SQS age metrics help reveal processing delay that count metrics alone can obscure. This can help teams identify whether queue-processing latency is growing from a slow consumer, but the reported workflow needs to explain missing API responses from a new Lambda deployment. It does not perform that required function.

D:

That service solves a different operating problem: the need to find which dependency slows a distributed API request. Its behavior is that x-Ray traces expose service dependencies and timing across instrumented operations. The requested outcome remains explain missing API responses from a new Lambda deployment.

Question 959

A production ticket contains this symptom: An event notification includes a large unstructured JSON object that is hard to triage. The desired behavior is to send only relevant event details to responders rather than an entire event payload. What should be fixed?

  1. Use a CloudWatch alarm action for supported EC2 automatic recovery
  2. Use EventBridge rules to route AWS Health account events to response automation
  3. Use EventBridge input transformation before notifying an operations target
  4. Use an ALB target group health check for backend service readiness

Explanation

Correct Answer

C:

To send only relevant event details to responders rather than an entire event payload, the architecture relies on this AWS behavior: EventBridge input transformers construct custom target payloads from matched event fields. The message must preserve event ID, resource, and state fields while removing noise.

Incorrect Answers

A:

Although supported CloudWatch alarm actions can request EC2 instance recovery for qualifying status-check failures, the scenario does not ask for recover an eligible impaired instance when a system-status check indicates host failure; it requires the ability to send only relevant event details to responders rather than an entire event payload, which is a separate responsibility.

B:

EventBridge receives supported AWS Health events and routes matching events to configured targets; this can help teams notify the operations account when an AWS service issue affects the workload, but the reported workflow needs to send only relevant event details to responders rather than an entire event payload. It does not perform that required function.

D:

The choice is useful when engineers need to exclude backend nodes that cannot serve required application requests: ALB target groups mark eligible targets unhealthy and exclude them from normal request routing; it would not establish the control needed to send only relevant event details to responders rather than an entire event payload.

Question 960

Investigators observe: A routine application template update attempts to change a protected database resource. Engineers still need to block unintended replacement or deletion of protected resources during stack updates. Which corrective action is most appropriate?

  1. Use CloudFormation stack policies to protect critical resources from updates
  2. Use CloudFormation rollback triggers wired to CloudWatch alarms
  3. Enable automatic deployment for an OU-targeted CloudFormation StackSet
  4. Use CloudFormation hooks to validate resource configuration during stack operations
  5. Enable CloudFormation drift detection on supported stack resources

Explanation

Correct Answer

A:

A stack policy can deny update actions on selected logical resources unless appropriately overridden; in this case the control is appropriate because it supports block unintended replacement or deletion of protected resources during stack updates. Protection should constrain update operations while allowing approved stack updates elsewhere.

Incorrect Answers

B:

That service solves a different operating problem: the need to roll back a stack update when a monitored service alarm fires during its monitoring period. Its behavior is that rollback triggers monitor configured CloudWatch alarms and can initiate rollback when a trigger alarms. The requested outcome remains block unintended replacement or deletion of protected resources during stack updates.

C:

The choice is useful when engineers need to apply baseline stacks when new accounts join a targeted organizational unit: stackSet automatic deployment creates or removes managed instances as accounts move into or out of targeted OUs. It would not establish the control needed to block unintended replacement or deletion of protected resources during stack updates.

D:

CloudFormation hooks can enforce pre-provisioning or operation-time checks for supported resource types; this is a reasonable option when the requirement is to intercept stack resource operations that violate central deployment rules, but it operates at a different workflow boundary from the stated need to block unintended replacement or deletion of protected resources during stack updates.

E:

Choosing this would aim to identify unmanaged configuration changes made outside the IaC deployment instead of block unintended replacement or deletion of protected resources during stack updates; drift detection compares actual and expected configurations for supported resources and properties; it cannot replace the mechanism specified by the incident evidence.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests