Question 330

The platform engineering team selects this control: Place CloudFront caching ahead of read-heavy static content origins. What associated scope or dependency matters most when using it to offload geographically distributed static requests from the origin?

  1. Preinitialized instances should be available for faster activation
  2. Scaling should change replicas rather than only increase a container resource limit
  3. Application cache invalidation and expiration must be designed explicitly
  4. The edge cache should respect origin cache headers and invalidation decisions

Explanation

Correct Answer

D:

The requested behavior is to offload geographically distributed static requests from the origin, and the edge cache should respect origin cache headers and invalidation decisions. The underlying AWS behavior is that CloudFront caches eligible objects at edge locations to reduce repeated origin requests and user latency.

Incorrect Answers

A:

The proposed condition makes sense in an implementation designed to reduce scale-out readiness time for an application with lengthy initialization; it concerns an Auto Scaling warm pool holds initialized instances in a supported state for later scale-out, whereas this question tests the prerequisite of the named control; the specified requirement instead is to offload geographically distributed static requests from the origin.

B:

This proposed constraint belongs to a separate objective: scaling should change replicas rather than only increase a container resource limit. The corresponding goal is to scale pod replicas for demand without changing each pod's compute limits, not the selected architecture's goal to offload geographically distributed static requests from the origin.

C:

This condition governs the different mechanism used to 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; for the selected control, the relevant boundary is instead that the edge cache should respect origin cache headers and invalidation decisions.

Question 331

The architecture record specifies: Use AWS IAM policy evaluation tests for deployment-role assumptions. To support the goal to verify the release role cannot perform actions outside its approved scope, which consideration should the engineer validate?

  1. Coverage is an informative measure, not a substitute for scenario validation
  2. Authorization checks must include explicit denied or ungranted actions
  3. The test stage must consume the staged endpoint and block the next stage if it fails
  4. Fast deterministic tests must block downstream promotion when they fail

Explanation

Correct Answer

B:

Authorization checks must include explicit denied or ungranted actions. That is the governing deployment boundary for the selected control: IAM policy simulation and access analysis can help test whether planned principal actions are allowed. If the boundary is missed, the design can fail to verify the release role cannot perform actions outside its approved scope.

Incorrect Answers

A:

This proposed constraint belongs to a separate objective: coverage is an informative measure, not a substitute for scenario validation. The corresponding goal is to track executed source coverage while retaining assertions-based acceptance gates, not the selected architecture's goal to verify the release role cannot perform actions outside its approved scope.

C:

A pipeline test action turns post-deployment health verification into an enforceable promotion gate; its own dependency is that the test stage must consume the staged endpoint and block the next stage if it fails. Those details concern the separate objective of being able to fail a promotion flow based on smoke-test results for the deployed service, rather than to the named control required to verify the release role cannot perform actions outside its approved scope.

D:

The proposed condition makes sense in an implementation designed to reject code-level regressions rapidly before creating production artifacts; it concerns unit tests in an early build action reduce feedback latency and stop faulty revisions before expensive stages, whereas this question tests the prerequisite of the named control; the specified requirement instead is to verify the release role cannot perform actions outside its approved scope.

Question 332

A cross-team infrastructure plan specifies 2 measurable outcomes: (1) apply a narrow automated containment action after an unsafe resource change event; (2) review the actual resource mutations before applying a critical IaC patch. Which TWO solutions address them? Choose TWO.

  1. Use an AWS AppConfig deployment strategy with automatic rollback alarms
  2. Use State Manager associations to prevent recurring OS configuration drift
  3. Use a CloudFormation Change Set for emergency infrastructure adjustments
  4. Configure an EventBridge-triggered Lambda to quarantine a newly exposed resource
  5. Trigger SSM Automation from EventBridge for a specific incident event

Explanation

Correct Answers

C:

CloudFormation Change Sets preview resource actions including potential replacements before execution; among the listed outcomes, it addresses review the actual resource mutations before applying a critical IaC patch, rather than merely contributing a related signal or support step.

D:

This covers the specific result to apply a narrow automated containment action after an unsafe resource change event: EventBridge invokes a Lambda target whose code can apply scoped AWS API changes when a rule matches. The handler must verify event identity and use least-privilege remediation permissions.

Incorrect Answers

A:

AppConfig can roll back a configuration deployment when monitored CloudWatch alarms indicate failure; that would be appropriate to revert a dynamic feature flag after application health degrades, but this is a different objective from the numbered obligations in the stem.

B:

This mechanism supports the ability to restore approved daemon settings when a node falls out of compliance: state Manager continuously applies declared configurations to matching managed instances. It would not satisfy a different obligation just by appearing in the same workflow.

E:

An EventBridge rule can start Systems Manager Automation documents as supported targets; that would be appropriate to run a documented multi-step configuration repair after a matching event, but this is a different objective from the numbered obligations in the stem.

Question 333

An engineer is addressing a two-part platform requirement: reapply a required host configuration whenever nodes drift, without losing the ability to scan and install operating-system updates according to approved patch classifications. Which set of actions is suitable?

  1. Use State Manager to enforce a recurring configuration association; use Systems Manager Patch Manager and patch baselines
  2. Use State Manager to enforce a recurring configuration association; use Systems Manager Inventory to collect managed-node software metadata
  3. Use State Manager to enforce a recurring configuration association; use Systems Manager Session Manager for audited interactive access
  4. Use Systems Manager Run Command for scoped remote command execution; use a Step Functions Map state for bounded parallel processing
  5. Use an SQS dead-letter queue for repeatedly failing asynchronous work; use Systems Manager Patch Manager and patch baselines

Explanation

Correct Answer

A:

The first outcome depends on the behavior that state Manager associations run specified documents against targets according to defined schedules. Separately, patch Manager applies selected baselines to supported managed nodes for scan or install operations; together these meet the two requested outcomes, with the operational limits that desired state must be enforced repeatedly on matching managed nodes and approved and rejected patch criteria should be managed centrally.

Incorrect Answers

B:

Systems Manager Inventory collects supported software and configuration metadata for fleet reporting; that alternative supports the ability to report installed applications and instance configuration across the managed fleet, but it is not the requested second outcome (scan and install operating-system updates according to approved patch classifications). Even though the first half addresses reapply a required host configuration whenever nodes drift, this pair is incomplete.

C:

Combining a suitable first control with this second one misses the secondary acceptance criterion; session Manager provides managed interactive sessions through Systems Manager connectivity and IAM controls; it helps troubleshoot managed EC2 hosts without opening SSH ports or distributing key pairs rather than scan and install operating-system updates according to approved patch classifications.

D:

Neither control directly supplies both requested behaviors. Run Command dispatches supported command documents to selected managed nodes and records execution results; map states can apply a defined workflow to collections with configurable concurrency. Those mechanisms address different objectives. The specified capabilities are to reapply a required host configuration whenever nodes drift and to scan and install operating-system updates according to approved patch classifications.

E:

The second implementation is relevant; the problem is the first. SQS redrive policies move repeatedly unsuccessfully processed messages to a designated dead-letter queue; it can help isolate messages that exceed the permitted receive-attempt count, whereas the stated first requirement is to reapply a required host configuration whenever nodes drift.

Question 334

The architecture record specifies: Set appropriate ECS deployment minimum healthy percent and maximum percent. To support the goal to control the capacity margin during rolling task replacement, which consideration should the engineer validate?

  1. The deployment must leave a configured minimum number of healthy hosts
  2. The service scheduler must be told which task definition revision to run
  3. The release must preserve enough healthy tasks while permitting replacements
  4. The success condition is customer-path health rather than artifact transfer

Explanation

Correct Answer

C:

The release must preserve enough healthy tasks while permitting replacements. That is the governing deployment boundary for the selected control: ECS deployment percentages bound the numbers of running and pending tasks during a rolling update. If the boundary is missed, the design can fail to control the capacity margin during rolling task replacement.

Incorrect Answers

A:

The proposed condition makes sense in an implementation designed to update an existing EC2 fleet in batches while preserving required available capacity; it concerns CodeDeploy EC2 in-place configurations control host update concurrency using healthy-host thresholds, whereas this question tests the prerequisite of the named control; the specified requirement instead is to control the capacity margin during rolling task replacement.

B:

This proposed constraint belongs to a separate objective: the service scheduler must be told which task definition revision to run; the corresponding goal is to roll out a changed container image while retaining the previous task definition, not the selected architecture's goal to control the capacity margin during rolling task replacement.

D:

A smoke test targets live application behavior after rollout and can trigger deployment failure handling; its own dependency is that the success condition is customer-path health rather than artifact transfer; those details concern the separate objective of being able to validate that a new service release responds correctly before ending the deployment, rather than to the named control required to control the capacity margin during rolling task replacement.

Question 335

Investigators observe: Operators manually start the same approved runbook whenever a specific alert is raised. Engineers still need to launch a defined remediation runbook when a matching service event occurs. Which corrective action is most appropriate?

  1. Use a CloudWatch metric filter and alarm for unusual log events
  2. Configure CloudWatch alarm notifications through an SNS topic
  3. Use a CloudWatch alarm action for supported EC2 automatic recovery
  4. Configure an EventBridge rule with an SSM Automation target

Explanation

Correct Answer

D:

EventBridge can invoke supported Systems Manager Automation runbooks from matching events. It restores the ability to launch a defined remediation runbook when a matching service event occurs, provided the implementation also observes that the target needs an appropriate invocation role and bounded event selection.

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 launch a defined remediation runbook when a matching service event occurs, which is a separate responsibility.

B:

CloudWatch alarms can publish state-change notifications to SNS topics and subscribed endpoints; this can help teams notify multiple responder endpoints when a service metric breaches its threshold, but the reported workflow needs to launch a defined remediation runbook when a matching service event occurs. It does not perform that required function.

C:

That service solves a different operating problem: the need to recover an eligible impaired instance when a system-status check indicates host failure. Its behavior is that supported CloudWatch alarm actions can request EC2 instance recovery for qualifying status-check failures. The requested outcome remains launch a defined remediation runbook when a matching service event occurs.

Question 336

A technical change review names the selected control as follows: Deploy AWS Network Firewall for stateful VPC traffic inspection. To enforce centralized network-layer filtering across selected VPC traffic paths, which constraint must be addressed for this design?

  1. The rule should attach to the workload network interface boundary
  2. The ALB should use a managed public certificate with a valid domain validation path
  3. Traffic must actually traverse the configured firewall endpoints by appropriate routing
  4. Security monitoring must cover accounts through organization administration
  5. Return traffic requires matching stateless rules for ephemeral ports where applicable

Explanation

Correct Answer

C:

Traffic must actually traverse the configured firewall endpoints by appropriate routing. Without this, choosing the named service is not enough to produce the promised outcome. Network Firewall inspects routed VPC traffic using stateless and stateful rule groups.

Incorrect Answers

A:

This condition governs the different mechanism used to restrict inbound application ports while permitting corresponding return traffic. Security groups apply stateful allow rules to supported network interfaces and resources; for the selected control, the relevant boundary is instead that traffic must actually traverse the configured firewall endpoints by appropriate routing.

B:

AWS Certificate Manager provisions and renews eligible certificates for integrated AWS services; its own dependency is that the ALB should use a managed public certificate with a valid domain validation path. Those details concern the separate objective of being able to automate TLS certificate provisioning for an AWS-managed load balancer, rather than to the named control required to enforce centralized network-layer filtering across selected VPC traffic paths.

D:

This proposed constraint belongs to a separate objective: security monitoring must cover accounts through organization administration. The corresponding goal is to surface suspicious credentials and network behavior without building a custom detector, not the selected architecture's goal to enforce centralized network-layer filtering across selected VPC traffic paths.

E:

This condition governs the different mechanism used to apply explicit allow and deny network rules at a subnet boundary. Network ACLs are stateless ordered rules applied to traffic entering and leaving subnets; for the selected control, the relevant boundary is instead that traffic must actually traverse the configured firewall endpoints by appropriate routing.

Question 337

During root-cause analysis, the team identifies the following: A second push replaces the prod-approved image behind the same release tag. To prevent existing release tags from silently being overwritten, what should be configured?

  1. Use EC2 Image Builder distribution settings for target Regions and accounts
  2. Store deployment bundles in an encrypted versioned S3 artifact bucket
  3. Configure an ECR lifecycle policy to expire unwanted image versions
  4. Enable ECR image tag immutability for release repositories
  5. Enable ECR scan-on-push or enhanced scanning according to policy
  6. Apply S3 Object Lock retention when required by evidence policy

Explanation

Correct Answer

D:

ECR tag immutability prevents image tags from being overwritten in repositories configured for it; in this case the control is appropriate because it supports prevent existing release tags from silently being overwritten. Approved deployment references must not be retargeted through tag updates.

Incorrect Answers

A:

That service solves a different operating problem: the need to publish a validated AMI to workloads outside its build account; its behavior is that image Builder distribution configurations control supported AMI copies and sharing after creation; the requested outcome remains prevent existing release tags from silently being overwritten.

B:

The choice is useful when engineers need to retain retrievable, auditable application bundles for instance deployments: S3 versioning preserves object versions; bucket encryption and scoped policies protect deployment bundles. It would not establish the control needed to prevent existing release tags from silently being overwritten.

C:

ECR lifecycle rules automate image expiration according to matching criteria. This is a reasonable option when the requirement is to remove unneeded old images without deleting current release references, but it operates at a different workflow boundary from the stated need to prevent existing release tags from silently being overwritten.

E:

Although ECR scanning integrates container vulnerability findings with repository images and security workflows, the scenario does not ask for surface vulnerable container packages before images are approved. It requires the ability to prevent existing release tags from silently being overwritten, which is a separate responsibility.

F:

S3 Object Lock protects eligible versioned objects under governance or compliance retention modes; this can help teams prevent modification or deletion of archived release artifacts for a mandated period, but the reported workflow needs to prevent existing release tags from silently being overwritten. It does not perform that required function.

Question 338

The production plan uses this approach: Enable ALB target-group health checks with a representative health path. The goal is to stop sending new traffic to application instances that fail readiness checks. Which prerequisite or limitation should receive focused review?

  1. A planned regional recovery strategy must account for replication lag and switchover behavior
  2. The front door should retain stable global IPs while adjusting endpoint routing
  3. DNS failover must rely on health evaluation and account for cache TTL behavior
  4. The health endpoint should reflect readiness for the routed workload
  5. The design must reconcile multi-Region replicated changes rather than use a read-only replica

Explanation

Correct Answer

D:

The requested behavior is to stop sending new traffic to application instances that fail readiness checks, and the health endpoint should reflect readiness for the routed workload. The underlying AWS behavior is that target group health checks determine which registered targets receive load balancer traffic.

Incorrect Answers

A:

The proposed condition makes sense in an implementation designed to provide low-latency cross-Region database reads and a regional recovery path. It concerns aurora Global Database replicates from a primary cluster to secondary regional clusters for reads and recovery, whereas this question tests the prerequisite of the named control.

B:

This proposed constraint belongs to a separate objective: the front door should retain stable global IPs while adjusting endpoint routing. The corresponding goal is to provide static anycast entry points and health-aware regional application routing, not the selected architecture's goal to stop sending new traffic to application instances that fail readiness checks.

C:

This condition governs the different mechanism used to route clients to a standby endpoint when the primary endpoint becomes unhealthy; Route 53 failover routing selects primary or secondary records according to configured health status; for the selected control, the relevant boundary is instead that the health endpoint should reflect readiness for the routed workload.

E:

The proposed condition makes sense in an implementation designed to allow application writes in more than one AWS Region with replication. It concerns DynamoDB global tables replicate data among participating Regions and support multi-Region writes, whereas this question tests the prerequisite of the named control.

Question 339

A team is designing a reusable platform pattern. It must standardize security finding aggregation and enabled standards across accounts; it must also view resource compliance and configuration state from a central operations account. Which paired configuration is appropriate?

  1. Use Organizations tag policies to standardize supported resource tags; enable AWS Config aggregators across organization accounts and Regions
  2. Use centralized VPC Flow Logs delivery to an approved log destination; use an S3 bucket policy that denies insecure transport for organization logs
  3. Configure Security Hub organization integration and central settings policies; enable AWS Config aggregators across organization accounts and Regions
  4. Configure Security Hub organization integration and central settings policies; use Control Tower landing-zone controls for preventive and detective governance

Explanation

Correct Answer

C:

The first outcome depends on the behavior that Security Hub central configuration can apply supported policies across an organization hierarchy. Separately, a configuration aggregator consolidates supported AWS Config configuration and compliance data; together these meet the two requested outcomes, with the operational limits that security monitoring policy should be managed from the security administration model and central reporting should aggregate source data without changing each source configuration.

Incorrect Answers

A:

Tag policies define permitted capitalization and values and can enforce supported tagging operations; that is intended to report and enforce valid tag keys or values across organizational accounts where supported, not to standardize security finding aggregation and enabled standards across accounts. The second half can meet the requirement to view resource compliance and configuration state from a central operations account, but the first is still missing.

B:

These are legitimate AWS controls for different outcomes: VPC Flow Logs capture metadata for selected interfaces, subnets, or VPCs and deliver to supported destinations, whereas a bucket policy can deny requests when the aws:SecureTransport context indicates an insecure connection. The problem instead requires the ability to standardize security finding aggregation and enabled standards across accounts and to view resource compliance and configuration state from a central operations account.

D:

The first half is appropriate: Security Hub central configuration can apply supported policies across an organization hierarchy. However, control Tower controls can enforce or detect supported rules across enrolled organizational units; that serves a different objective (establish managed governance expectations when onboarding accounts) and leaves the explicit need to view resource compliance and configuration state from a central operations account unmet.

Question 340

During root-cause analysis, the team identifies the following: A Lambda production alias is immediately updated to route all requests to untested code. To expose a small percentage of Lambda invocations to a new version before full promotion, what should be configured?

  1. Use a weighted Lambda alias for gradual traffic migration
  2. Use CodeDeploy Lambda canary deployment with an alias
  3. Publish a Lambda version and route clients through an alias
  4. Choose a supported ECS canary traffic-shift configuration

Explanation

Correct Answer

B:

To expose a small percentage of Lambda invocations to a new version before full promotion, the architecture relies on this AWS behavior: CodeDeploy can update Lambda alias traffic weights using canary configurations. A timed first increment is required before the rest of traffic shifts.

Incorrect Answers

A:

Choosing this would aim to split invocation traffic between two published Lambda versions without changing callers instead of expose a small percentage of Lambda invocations to a new version before full promotion; a Lambda alias can distribute invocations between its primary and additional published version; it cannot replace the mechanism specified by the incident evidence.

C:

A published Lambda version snapshots code and configuration; an alias can reference the selected version; this can help teams release immutable Lambda code while keeping callers on a stable function reference, but the reported workflow needs to expose a small percentage of Lambda invocations to a new version before full promotion. It does not perform that required function.

D:

That service solves a different operating problem: the need to send a small fraction of user traffic to a replacement task set before full cutover. Its behavior is that canary deployment configurations shift an initial percentage before the remaining cutover. The requested outcome remains expose a small percentage of Lambda invocations to a new version before full promotion.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests