Question 350

An automated check detects: A new account joins the OU but lacks the mandatory logging stack until an operator intervenes. Which remediation directly supports the requirement to apply baseline stacks when new accounts join a targeted organizational unit?

  1. Use CloudFormation cross-stack exports and imports for shared output values
  2. Enable CloudFormation drift detection on supported stack resources
  3. Use CloudFormation stack policies to protect critical resources from updates
  4. Enable automatic deployment for an OU-targeted CloudFormation StackSet

Explanation

Correct Answer

D:

StackSet automatic deployment creates or removes managed instances as accounts move into or out of targeted OUs; it restores the ability to apply baseline stacks when new accounts join a targeted organizational unit, provided the implementation also observes that accounts that enter or leave a target OU should follow explicit stack lifecycle policy.

Incorrect Answers

A:

The choice is useful when engineers need 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. It would not establish the control needed to apply baseline stacks when new accounts join a targeted organizational unit.

B:

Drift detection compares actual and expected configurations for supported resources and properties; this is a reasonable option when the requirement is to identify unmanaged configuration changes made outside the IaC deployment, but it operates at a different workflow boundary from the stated need to apply baseline stacks when new accounts join a targeted organizational unit.

C:

Choosing this would aim to block unintended replacement or deletion of protected resources during stack updates instead of apply baseline stacks when new accounts join a targeted organizational unit; a stack policy can deny update actions on selected logical resources unless appropriately overridden; it cannot replace the mechanism specified by the incident evidence.

Question 351

The security engineering team selects this control: Use IAM Roles Anywhere for eligible external workloads with X.509 identities. What associated scope or dependency matters most when using it to provide temporary AWS credentials to on-premises workloads without storing IAM user keys?

  1. The function's execution identity should avoid global administrator actions
  2. Certificate trust anchors and profile scopes must be explicitly managed
  3. Trust and permission policies must explicitly govern the destination role
  4. The condition must apply to supported request paths and account for AWS service-to-service exceptions

Explanation

Correct Answer

B:

Certificate trust anchors and profile scopes must be explicitly managed. That is the governing deployment boundary for the selected control: IAM Roles Anywhere uses trusted X.509 certificates to obtain temporary role credentials for external workloads. If the boundary is missed, the design can fail to provide temporary AWS credentials to on-premises workloads without storing IAM user keys.

Incorrect Answers

A:

This proposed constraint belongs to a separate objective: the function's execution identity should avoid global administrator actions; the corresponding goal is to allow a Lambda handler to read a specific secret and publish required logs, not the selected architecture's goal to provide temporary AWS credentials to on-premises workloads without storing IAM user keys.

C:

STS AssumeRole issues expiring credentials for a trusted role rather than persistent user secrets; its own dependency is that trust and permission policies must explicitly govern the destination role; those details concern the separate objective of being able to avoid distributing durable access keys for central administration in member accounts, rather than to the named control required to provide temporary AWS credentials to on-premises workloads without storing IAM user keys.

D:

The proposed condition makes sense in an implementation designed to deny access to a sensitive resource unless requests use an approved VPC endpoint; it concerns the source VPC endpoint condition can constrain eligible requests to a designated private endpoint path, whereas this question tests the prerequisite of the named control; the specified requirement instead is to provide temporary AWS credentials to on-premises workloads without storing IAM user keys.

Question 352

After a configuration change, the cloud operations group sees this issue: A regional incident leaves the recovery application unable to access required S3 objects. What best restores the ability to retain replicated application objects in a separate disaster-recovery Region?

  1. Use ElastiCache replication groups spanning multiple Availability Zones
  2. Implement stateless application nodes with session state in a shared store
  3. Enable S3 Cross-Region Replication for selected versioned objects
  4. Use an RDS cross-Region read replica where the engine supports it

Explanation

Correct Answer

C:

S3 replication asynchronously copies eligible object versions to configured destination buckets; it enables the necessary capability to retain replicated application objects in a separate disaster-recovery Region rather than only providing an adjacent operational control. Source and destination buckets need versioning and replication configuration.

Incorrect Answers

A:

Choosing this would aim to improve availability of supported Redis or Valkey cache workloads instead of retain replicated application objects in a separate disaster-recovery Region. Supported ElastiCache replication groups use replicas and automatic failover to recover from primary loss; it cannot replace the mechanism specified by the incident evidence.

B:

Although externalizing session data removes per-instance affinity as a correctness requirement for request handling, the scenario does not ask for allow requests to move among instances without losing user session context. It requires the ability to retain replicated application objects in a separate disaster-recovery Region, which is a separate responsibility.

D:

That service solves a different operating problem: the need to provide off-Region read capacity and a possible promotion-based recovery option. Its behavior is that cross-Region read replicas copy database changes asynchronously and can be promoted under supported conditions. The requested outcome remains retain replicated application objects in a separate disaster-recovery Region.

Question 353

An internal reliability review requests these controls: (1) reduce confused-deputy risk when a SaaS vendor assumes customer roles; (2) further limit temporary role credentials to the resources needed by one execution. Which TWO proposed actions belong in the implementation? Choose TWO.

  1. Use IAM database authentication for a supported RDS engine and client
  2. Use EKS IAM Roles for Service Accounts or supported EKS Pod Identity
  3. Attach an instance profile with a scoped IAM role to EC2
  4. Configure IAM role trust conditions with an external ID for a third-party provider
  5. Use session policies when assuming a role for a narrowly scoped job
  6. Enable Secrets Manager rotation with a supported rotation strategy

Explanation

Correct Answers

D:

The sts:ExternalId condition helps a provider distinguish authorized cross-account assume-role requests; this fulfills the stated requirement to reduce confused-deputy risk when a SaaS vendor assumes customer roles; the operational limitation is that the customer role should verify an agreed external identifier supplied by the trusted provider.

E:

The corresponding obligation is to further limit temporary role credentials to the resources needed by one execution. STS session policies intersect with the role's permissions to further restrict an assumed-role session; that behavior is the reason this action belongs in the selected answer set.

Incorrect Answers

A:

This mechanism supports the ability to reduce reliance on stored passwords for supported database connections: IAM database authentication generates short-lived authentication tokens for supported RDS database engines. It would not satisfy a different obligation just by appearing in the same workflow.

B:

It supports a separate administrative task, namely to grant a Kubernetes workload AWS permissions without using the node IAM role. EKS workload identity mechanisms associate an AWS IAM role with a Kubernetes service account or pod; the prompt's required outcomes are not achieved by substituting this control.

C:

An EC2 instance profile provides temporary role credentials to applications running on the instance; if the requirement were to give an EC2 application temporary credentials to call an AWS API, that would matter. The requested outcomes are separate from the one this option addresses.

F:

It supports a separate administrative task, namely to rotate an application database password without manual quarterly updates. Secrets Manager rotation workflows update stored credentials and, with integration, the underlying service credential; the prompt's required outcomes are not achieved by substituting this control.

Question 354

During the rollout of a governed environment, engineers are required to roll back a stack update when a monitored service alarm fires during its monitoring period and, separately, block unintended replacement or deletion of protected resources during stack updates. Which combination meets the specification?

  1. Define an AWS CDK construct for a reusable platform pattern; use CloudFormation DeletionPolicy Retain on a stateful resource
  2. Use AWS SAM transform resources for Lambda and API infrastructure; use CloudFormation stack policies to protect critical resources from updates
  3. Use CloudFormation rollback triggers wired to CloudWatch alarms; use AWS CloudFormation Change Sets before updating a stack
  4. Use SSM document version control for repeatable operational scripts; use CloudFormation stack policies to protect critical resources from updates
  5. Use CloudFormation rollback triggers wired to CloudWatch alarms; use CloudFormation stack policies to protect critical resources from updates
  6. Use CloudFormation rollback triggers wired to CloudWatch alarms; enable automatic deployment for an OU-targeted CloudFormation StackSet

Explanation

Correct Answer

E:

For the requirement to roll back a stack update when a monitored service alarm fires during its monitoring period, rollback triggers monitor configured CloudWatch alarms and can initiate rollback when a trigger alarms. For the requirement to block unintended replacement or deletion of protected resources during stack updates, a stack policy can deny update actions on selected logical resources unless appropriately overridden; both mechanisms are necessary; implementing only the first would leave the second unsatisfied.

Incorrect Answers

A:

Neither control directly supplies both requested behaviors. CDK constructs encapsulate infrastructure resources and synthesize AWS CloudFormation definitions; the Retain policy keeps a supported resource after CloudFormation removes its stack ownership. Those mechanisms address different objectives. The specified capabilities are to roll back a stack update when a monitored service alarm fires during its monitoring period and to block unintended replacement or deletion of protected resources during stack updates.

B:

The second implementation is relevant; the problem is the first. AWS SAM expands serverless resource declarations into supported CloudFormation resources during transformation; it can help describe serverless functions and their event sources concisely in an IaC template, whereas the stated first requirement is to roll back a stack update when a monitored service alarm fires during its monitoring period.

C:

Combining a suitable first control with this second one misses the secondary acceptance criterion; a change set previews how CloudFormation intends to modify or replace resources before execution; it helps inspect the proposed resource replacements and updates before executing infrastructure changes rather than block unintended replacement or deletion of protected resources during stack updates.

D:

SSM documents support versioned content and associations can refer to defined document versions; that is intended to publish a reviewed command document and execute a pinned approved version, not to roll back a stack update when a monitored service alarm fires during its monitoring period. The second half can meet the requirement to block unintended replacement or deletion of protected resources during stack updates, but the first is still missing.

F:

Combining a suitable first control with this second one misses the secondary acceptance criterion; stackSet automatic deployment creates or removes managed instances as accounts move into or out of targeted OUs; it helps apply baseline stacks when new accounts join a targeted organizational unit rather than block unintended replacement or deletion of protected resources during stack updates.

Question 355

During root-cause analysis, the team identifies the following: An event from a member account is published but the operations event bus rejects it. To accept operational events from multiple workload accounts into a central responder account, what should be configured?

  1. Use an EventBridge organization event bus with cross-account permissions
  2. Use EventBridge archive and replay for selected critical events
  3. Use an EventBridge Scheduler one-time schedule for delayed remediation
  4. Use AWS Health events through EventBridge for account-impact notifications

Explanation

Correct Answer

A:

EventBridge event bus resource policies control cross-account event ingestion and routing. In this case the control is appropriate because it supports accept operational events from multiple workload accounts into a central responder account. The receiving bus policy must explicitly permit approved source-account principals.

Incorrect Answers

B:

The choice is useful when engineers need to reprocess a historical event period after a corrected incident workflow is deployed: EventBridge archives can retain selected events for later replay to an event bus. It would not establish the control needed to accept operational events from multiple workload accounts into a central responder account.

C:

EventBridge Scheduler can invoke supported targets at specified one-time or recurring times. This is a reasonable option when the requirement is to invoke a follow-up check at a precise future time after an initial event, but it operates at a different workflow boundary from the stated need to accept operational events from multiple workload accounts into a central responder account.

D:

Choosing this would aim to initiate targeted response to an AWS-managed service event affecting the account instead of accept operational events from multiple workload accounts into a central responder account; supported AWS Health events appear on EventBridge and can trigger notification or workflows; it cannot replace the mechanism specified by the incident evidence.

Question 356

A new AWS operations standard requires the ability to track a domain-specific success count broken down by deployed service and correlate requests across independent container services in a central log search in the same operating environment. Which proposed pair delivers both?

  1. Publish PutMetricData custom metrics with stable dimensions; publish application logs in structured JSON with stable correlation identifiers
  2. Configure HTTPS or TLS for log delivery clients; use CloudWatch Logs Insights for interactive log analysis
  3. Deliver S3 server access logs or application exports through lifecycle-managed buckets; publish application logs in structured JSON with stable correlation identifiers
  4. Publish PutMetricData custom metrics with stable dimensions; create CloudWatch metric streams to Amazon Data Firehose

Explanation

Correct Answer

A:

CloudWatch custom metrics accept namespace, metric name, dimensions, values, and timestamps for aggregation; structured log fields and propagated request IDs enable targeted multi-service incident investigation. The first control satisfies the need to track a domain-specific success count broken down by deployed service; the second addresses the need to correlate requests across independent container services in a central log search. Dimensions must be controlled to avoid excessive custom metric cardinality and cost; a correlation ID must be propagated consistently through application calls.

Incorrect Answers

B:

The pair changes the problem instead of completing it. One option addresses protect sensitive telemetry while it travels from producers to ingestion endpoints; the other addresses query structured error events across log groups during incidents. The release, however, needs to track a domain-specific success count broken down by deployed service as well as correlate requests across independent container services in a central log search.

C:

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 track a domain-specific success count broken down by deployed service. The second half can meet the requirement to correlate requests across independent container services in a central log search, but the first is still missing.

D:

CloudWatch metric streams continuously send metric data to supported delivery services. That alternative supports the ability to continuously export supported metrics to an external observability platform, but it is not the requested second outcome (correlate requests across independent container services in a central log search). Even though the first half addresses track a domain-specific success count broken down by deployed service, this pair is incomplete.

Question 357

A production-readiness assessment calls out two missing capabilities: deploy a common baseline across organization accounts and selected Regions and apply baseline stacks when new accounts join a targeted organizational unit. Choose the AWS implementation that explicitly addresses both.

  1. Use CloudFormation dynamic references for protected parameter values; enable automatic deployment for an OU-targeted CloudFormation StackSet
  2. Use CloudFormation StackSets with service-managed permissions; enable automatic deployment for an OU-targeted CloudFormation StackSet
  3. Use CloudFormation StackSets with service-managed permissions; enable CloudFormation drift detection on supported stack resources
  4. Publish approved infrastructure products through AWS Service Catalog; use CloudFormation cross-stack exports and imports for shared output values

Explanation

Correct Answer

B:

For the requirement 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. For the requirement 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. Both mechanisms are necessary; implementing only the first would leave the second unsatisfied.

Incorrect Answers

A:

Dynamic references let CloudFormation retrieve supported values from SSM Parameter Store or Secrets Manager; that is intended to avoid hardcoding a sensitive input in reusable infrastructure templates, not to deploy a common baseline across organization accounts and selected Regions. The second half can meet the requirement to apply baseline stacks when new accounts join a targeted organizational unit, but the first is still missing.

C:

Combining a suitable first control with this second one misses the secondary acceptance criterion; drift detection compares actual and expected configurations for supported resources and properties; it helps identify unmanaged configuration changes made outside the IaC deployment rather than apply baseline stacks when new accounts join a targeted organizational unit.

D:

Neither control directly supplies both requested behaviors. Service Catalog portfolios expose governed infrastructure products to authorized consumers; CloudFormation exports and Fn::ImportValue share supported values between stacks within the same account and Region. Those mechanisms address different objectives. The specified capabilities are to deploy a common baseline across organization accounts and selected Regions and to apply baseline stacks when new accounts join a targeted organizational unit.

Question 358

An operational design is incomplete until it can respond asynchronously when new diagnostic objects arrive in an S3 bucket and initiate targeted response to an AWS-managed service event affecting the account. Which two-part implementation fills both gaps?

  1. Use an SQS FIFO queue when processing order per message group matters; use an SQS redrive policy and dead-letter queue for failed events
  2. Use S3 Event Notifications to enqueue object-processing work; use AWS Health events through EventBridge for account-impact notifications
  3. Use S3 Event Notifications to enqueue object-processing work; use Step Functions Choice states for severity-dependent incident routing
  4. Use Kinesis Data Streams for ordered partition-based event processing; use AWS Health events through EventBridge for account-impact notifications

Explanation

Correct Answer

B:

S3 event notifications can send selected bucket events to eligible SQS, SNS, or Lambda targets; this handles the first acceptance condition, subject to the boundary that object creation events need a supported notification destination and permissions; the remaining condition is handled separately: supported AWS Health events appear on EventBridge and can trigger notification or workflows, with account health events need event-driven notification and contextual routing.

Incorrect Answers

A:

The pair changes the problem instead of completing it. One option addresses process change events in order for each governed resource; the other addresses isolate repeatedly unprocessable events without blocking successful work. The release, however, needs to respond asynchronously when new diagnostic objects arrive in an S3 bucket as well as initiate targeted response to an AWS-managed service event affecting the account.

C:

Choice states route state machine execution according to supported data conditions. That alternative supports the ability to branch remediation based on incident severity and resource classification, but it is not the requested second outcome (initiate targeted response to an AWS-managed service event affecting the account). Even though the first half addresses respond asynchronously when new diagnostic objects arrive in an S3 bucket, this pair is incomplete.

D:

This combination solves only the latter acceptance test. The substituted first control supports ingest a high-volume event stream with multiple independently scaled consumers: Kinesis Data Streams partitions records by key and retains them for consumers to read over time. It does not implement respond asynchronously when new diagnostic objects arrive in an S3 bucket.

Question 359

An automated check detects: Queue delay rises but capacity only changes through manual fleet updates. Which remediation directly supports the requirement to adjust worker fleet capacity when a workload metric crosses a defined level?

  1. Use a CloudWatch metric filter and alarm for unusual log events
  2. Use an AWS Config managed rule to detect a specific resource misconfiguration
  3. Attach automatic AWS Config remediation to an SSM Automation document
  4. Use a CloudWatch alarm for ECS CPU or memory utilization with service scaling
  5. Use CloudWatch alarm actions to invoke supported Auto Scaling policies

Explanation

Correct Answer

E:

Step or simple scaling policies can be driven by CloudWatch alarm transitions. It restores the ability to adjust worker fleet capacity when a workload metric crosses a defined level, provided the implementation also observes that alarm thresholds must correspond to the associated scaling-policy behavior.

Incorrect Answers

A:

Although a metric filter emits values from matching logs that a CloudWatch alarm can evaluate, the scenario does not ask for raise an incident when a known error token appears repeatedly in application logs; it requires the ability to adjust worker fleet capacity when a workload metric crosses a defined level, which is a separate responsibility.

B:

Config rules assess supported resource settings and publish compliant or noncompliant evaluations; this can help teams identify noncompliant resources without depending on log-string alerts, but the reported workflow needs to adjust worker fleet capacity when a workload metric crosses a defined level. It does not perform that required function.

C:

That service solves a different operating problem: the need to correct an eligible configuration violation soon after detection; its behavior is that config automatic remediation can invoke Systems Manager Automation for noncompliant resources; the requested outcome remains adjust worker fleet capacity when a workload metric crosses a defined level.

D:

The choice is useful when engineers need to adjust container capacity as aggregate task load grows: application Auto Scaling policies can use CloudWatch service metrics to scale ECS task replicas. It would not establish the control needed to adjust worker fleet capacity when a workload metric crosses a defined level.

Question 360

An engineer will implement the following change: Use AWS Global Accelerator with healthy regional endpoint groups. Which operational boundary most directly applies to the intended outcome to provide static anycast entry points and health-aware regional application routing?

  1. The front door should retain stable global IPs while adjusting endpoint routing
  2. The design must reconcile multi-Region replicated changes rather than use a read-only replica
  3. Application sessions must survive instance replacement and Availability Zone movement
  4. A planned regional recovery strategy must account for replication lag and switchover behavior

Explanation

Correct Answer

A:

The front door should retain stable global IPs while adjusting endpoint routing. That is the governing deployment boundary for the selected control: global Accelerator routes TCP or UDP traffic through static anycast addresses to healthy configured endpoints. If the boundary is missed, the design can fail to provide static anycast entry points and health-aware regional application routing.

Incorrect Answers

B:

DynamoDB global tables replicate data among participating Regions and support multi-Region writes; its own dependency is that the design must reconcile multi-Region replicated changes rather than use a read-only replica; those details concern the separate objective of being able to allow application writes in more than one AWS Region with replication, rather than to the named control required to provide static anycast entry points and health-aware regional application routing.

C:

The proposed condition makes sense in an implementation designed to allow requests to move among instances without losing user session context; it concerns externalizing session data removes per-instance affinity as a correctness requirement for request handling, whereas this question tests the prerequisite of the named control; the specified requirement instead is to provide static anycast entry points and health-aware regional application routing.

D:

This proposed constraint belongs to a separate objective: a planned regional recovery strategy must account for replication lag and switchover behavior. The corresponding goal is to provide low-latency cross-Region database reads and a regional recovery path, not the selected architecture's goal to provide static anycast entry points and health-aware regional application routing.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests