Question 750

An incident record says: A message reappears while the first worker still executes its remediation. To restore the capability to prevent a valid long-running worker task from being processed concurrently, which change addresses the root cause?

  1. Use an SQS redrive policy and dead-letter queue for failed events
  2. Use an SNS topic with independent SQS subscriptions for event fan-out
  3. Use EventBridge Pipes to filter and enrich events from a supported source
  4. Use SQS visibility timeouts aligned to consumer processing

Explanation

Correct Answer

D:

SQS visibility timeouts temporarily hide received messages until deletion or timeout expiration; it restores the ability to prevent a valid long-running worker task from being processed concurrently, provided the implementation also observes that visibility must exceed normal handling time or be extended during processing.

Incorrect Answers

A:

An SQS redrive policy sends messages to a DLQ after the receive count exceeds its threshold. This can help teams isolate repeatedly unprocessable events without blocking successful work, but the reported workflow needs to prevent a valid long-running worker task from being processed concurrently. It does not perform that required function.

B:

That service solves a different operating problem: the need to deliver each incident notification to separate durable processing teams. Its behavior is that SNS fan-out to multiple SQS queues gives each subscribed queue an independent message stream. The requested outcome remains prevent a valid long-running worker task from being processed concurrently.

C:

The choice is useful when engineers need to connect a managed stream or queue to a target with transformation and optional enrichment: EventBridge Pipes connects supported sources to targets with optional filter and enrichment steps; it would not establish the control needed to prevent a valid long-running worker task from being processed concurrently.

Question 751

The site reliability team proposes this implementation: Use an EventBridge rule matching a specific CloudTrail API event pattern. Its intended result is to start an incident workflow after a restricted AWS configuration API call. Which implementation consideration is most specific to that choice?

  1. Rules must filter on the desired API event fields and target an authorized workflow
  2. The managed route must support the source, filtering, and target integration
  3. Account health events need event-driven notification and contextual routing
  4. Every subscribed processing system needs its own durable copy of the event

Explanation

Correct Answer

A:

The implementation has to honor the exact constraint: rules must filter on the desired API event fields and target an authorized workflow. EventBridge matches supported API activity events and invokes selected event targets.

Incorrect Answers

B:

This condition governs the different mechanism used to connect a managed stream or queue to a target with transformation and optional enrichment. EventBridge Pipes connects supported sources to targets with optional filter and enrichment steps; for the selected control, the relevant boundary is instead that rules must filter on the desired API event fields and target an authorized workflow.

C:

Supported AWS Health events appear on EventBridge and can trigger notification or workflows. Its own dependency is that account health events need event-driven notification and contextual routing; those details concern the separate objective of being able to initiate targeted response to an AWS-managed service event affecting the account, rather than to the named control required to start an incident workflow after a restricted AWS configuration API call.

D:

The proposed condition makes sense in an implementation designed to deliver each incident notification to separate durable processing teams; it concerns SNS fan-out to multiple SQS queues gives each subscribed queue an independent message stream, whereas this question tests the prerequisite of the named control.

Question 752

The infrastructure automation group selects this control: Configure pipeline variables for explicitly parameterized executions. What associated scope or dependency matters most when using it to pass an approved environment-specific value into a reusable pipeline action?

  1. A release operator must choose from controlled parameters without altering source files
  2. Repository authorization must use a managed provider connection rather than embedded credentials
  3. Artifact storage must be available in every Region where pipeline actions require it
  4. Only the matching event type should start the automation without polling

Explanation

Correct Answer

A:

A release operator must choose from controlled parameters without altering source files. That is the governing deployment boundary for the selected control: pipeline variables expose execution-specific values to actions that support variable substitution. If the boundary is missed, the design can fail to pass an approved environment-specific value into a reusable pipeline action.

Incorrect Answers

B:

The source connection supplies authorized repository events and revisions to a pipeline source action; its own dependency is that repository authorization must use a managed provider connection rather than embedded credentials. Those details concern the separate objective of being able to start pipeline executions from commits on the approved application branch, rather than to the named control required to pass an approved environment-specific value into a reusable pipeline action.

C:

The proposed condition makes sense in an implementation designed to run a deployment action in a different AWS Region from its pipeline; it concerns cross-Region CodePipeline actions need an artifact store in each relevant action Region, whereas this question tests the prerequisite of the named control; the specified requirement instead is to pass an approved environment-specific value into a reusable pipeline action.

D:

This proposed constraint belongs to a separate objective: only the matching event type should start the automation without polling. The corresponding goal is to trigger a deployment workflow when a matching AWS service event occurs, not the selected architecture's goal to pass an approved environment-specific value into a reusable pipeline action.

Question 753

Investigators observe: A service prints JSON measurement fields but dashboards cannot query them as CloudWatch metrics. Engineers still need to emit high-cardinality application measurements together with diagnostic context. Which corrective action is most appropriate?

  1. Publish application logs in structured JSON with stable correlation identifiers
  2. Use CloudWatch Embedded Metric Format in structured JSON logs
  3. Use CloudWatch agent StatsD or collectd integrations for supported workloads
  4. Install and configure the unified CloudWatch agent on EC2

Explanation

Correct Answer

B:

Embedded Metric Format embeds metric definitions in structured log events for CloudWatch extraction; it enables the necessary capability to emit high-cardinality application measurements together with diagnostic context rather than only providing an adjacent operational control. The log payload must follow the EMF schema for metrics extraction.

Incorrect Answers

A:

Structured log fields and propagated request IDs enable targeted multi-service incident investigation; this is a reasonable option when the requirement is to correlate requests across independent container services in a central log search, but it operates at a different workflow boundary from the stated need to emit high-cardinality application measurements together with diagnostic context.

C:

Although the unified CloudWatch agent supports collection from compatible metrics protocols and export to CloudWatch, the scenario does not ask for bridge existing application metric protocols into CloudWatch; it requires the ability to emit high-cardinality application measurements together with diagnostic context, which is a separate responsibility.

D:

The CloudWatch agent collects supported host metrics and logs beyond the standard EC2 metric set; this can help teams publish guest memory and disk-usage metrics not available from default EC2 metrics, but the reported workflow needs to emit high-cardinality application measurements together with diagnostic context. It does not perform that required function.

Question 754

The production plan uses this approach: Use CloudFormation stack policies to protect critical resources from updates. The goal is to block unintended replacement or deletion of protected resources during stack updates. Which prerequisite or limitation should receive focused review?

  1. The migration must preserve the physical resource while creating IaC ownership
  2. Validation must run as part of CloudFormation resource operation evaluation
  3. Reviewers must approve a predicted resource change list without executing it
  4. Protection should constrain update operations while allowing approved stack updates elsewhere

Explanation

Correct Answer

D:

The requested behavior is to block unintended replacement or deletion of protected resources during stack updates, and protection should constrain update operations while allowing approved stack updates elsewhere. The underlying AWS behavior is that a stack policy can deny update actions on selected logical resources unless appropriately overridden.

Incorrect Answers

A:

The proposed condition makes sense in an implementation designed to bring an already-created resource under stack management without rebuilding it; it concerns resource import associates supported existing resources with logical resources in a stack template, whereas this question tests the prerequisite of the named control; the specified requirement instead is to block unintended replacement or deletion of protected resources during stack updates.

B:

This proposed constraint belongs to a separate objective: validation must run as part of CloudFormation resource operation evaluation. The corresponding goal is to intercept stack resource operations that violate central deployment rules, not the selected architecture's goal to block unintended replacement or deletion of protected resources during stack updates.

C:

This condition governs the different mechanism used to inspect the proposed resource replacements and updates before executing infrastructure changes. A change set previews how CloudFormation intends to modify or replace resources before execution; for the selected control, the relevant boundary is instead that protection should constrain update operations while allowing approved stack updates elsewhere.

Question 755

During the rollout of a governed environment, engineers are required to count specific error patterns without changing application metric instrumentation and, separately, expire routine log events after the approved operating retention period. Which combination meets the specification?

  1. Deliver S3 server access logs or application exports through lifecycle-managed buckets; associate a customer managed KMS key with a CloudWatch Logs log group
  2. Configure CloudWatch metric filters for structured application log events; configure CloudWatch Logs retention per application log group
  3. Configure CloudWatch metric filters for structured application log events; encrypt long-term S3 log objects with a customer managed KMS key
  4. Enable CloudTrail log file integrity validation for audit log chains; configure CloudWatch Logs retention per application log group
  5. Configure CloudWatch metric filters for structured application log events; use CloudWatch Logs Insights for interactive log analysis

Explanation

Correct Answer

B:

Metric filters evaluate incoming CloudWatch Logs records and emit metrics for matching patterns; log-group retention settings automatically expire data beyond the configured retention interval. The first control satisfies the need to count specific error patterns without changing application metric instrumentation; the second addresses the need to expire routine log events after the approved operating retention period. The log event pattern is consistent enough to extract a metric value; retention periods should vary by data classification and compliance obligations.

Incorrect Answers

A:

These are legitimate AWS controls for different outcomes: S3 lifecycle rules transition or expire suitable log objects based on approved retention requirements, whereas CloudWatch Logs supports customer-managed KMS key association for eligible log groups. The problem instead requires the ability to count specific error patterns without changing application metric instrumentation and to expire routine log events after the approved operating retention period.

C:

The first half is appropriate: Metric filters evaluate incoming CloudWatch Logs records and emit metrics for matching patterns. However, S3 SSE-KMS encrypts objects using AWS KMS keys with separate data and key-access controls; that serves a different objective (protect exported audit objects with a controlled at-rest encryption boundary) and leaves the explicit need to expire routine log events after the approved operating retention period unmet.

D:

The second implementation is relevant; the problem is the first. CloudTrail log file integrity validation delivers digest files that can verify delivered logs. It can help detect tampering with delivered CloudTrail log files, whereas the stated first requirement is to count specific error patterns without changing application metric instrumentation.

E:

Combining a suitable first control with this second one misses the secondary acceptance criterion; CloudWatch Logs Insights runs interactive queries over selected CloudWatch log groups; it helps query structured error events across log groups during incidents rather than expire routine log events after the approved operating retention period.

Question 756

The site reliability team reports the following failure: An EventBridge notification reaches engineers but no reproducible repair is initiated. Which action directly restores the requirement to run a documented multi-step configuration repair after a matching event?

  1. Use an AWS AppConfig deployment strategy with automatic rollback alarms
  2. Attach an AWS Config remediation configuration to an SSM Automation runbook
  3. Use State Manager associations to prevent recurring OS configuration drift
  4. Use an SSM Automation role with a permissions boundary or narrow IAM policy
  5. Trigger SSM Automation from EventBridge for a specific incident event

Explanation

Correct Answer

E:

An EventBridge rule can start Systems Manager Automation documents as supported targets. In this case the control is appropriate because it supports run a documented multi-step configuration repair after a matching event. The event rule should invoke a scoped runbook instead of an unmanaged shell script.

Incorrect Answers

A:

AppConfig can roll back a configuration deployment when monitored CloudWatch alarms indicate failure; this can help teams revert a dynamic feature flag after application health degrades, but the reported workflow needs to run a documented multi-step configuration repair after a matching event. It does not perform that required function.

B:

That service solves a different operating problem: the need to repair noncompliant security group rules after policy evaluation. Its behavior is that config remediation can invoke Systems Manager Automation to correct supported rule findings. The requested outcome remains run a documented multi-step configuration repair after a matching event.

C:

The choice is useful when engineers need 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 establish the control needed to run a documented multi-step configuration repair after a matching event.

D:

Dedicated execution roles and least-privilege policies bound the authority of automated changes; this is a reasonable option when the requirement is to limit the changes an automated incident runbook can make, but it operates at a different workflow boundary from the stated need to run a documented multi-step configuration repair after a matching event.

Question 757

A security engineer is responsible for a compound requirement: (1) surface suspicious credentials and network behavior without building a custom detector; (2) restrict inbound application ports while permitting corresponding return traffic. Which TWO controls provide the requested functions? Choose TWO.

  1. Enable GuardDuty across organization accounts to detect suspicious activity
  2. Use AWS Private CA for an organization-managed private certificate authority
  3. Use customer managed KMS keys with explicitly scoped key policies
  4. Use security group rules for stateful instance or ENI traffic control
  5. Use CloudHSM when exclusive customer control of HSM key management is required

Explanation

Correct Answers

A:

The corresponding obligation is to surface suspicious credentials and network behavior without building a custom detector. GuardDuty analyzes supported telemetry and uses threat detection to generate security findings; that behavior is the reason this action belongs in the selected answer set.

D:

Security groups apply stateful allow rules to supported network interfaces and resources. This fulfills the stated requirement to restrict inbound application ports while permitting corresponding return traffic. The operational limitation is that the rule should attach to the workload network interface boundary.

Incorrect Answers

B:

It supports a separate administrative task, namely to issue short-lived internal TLS certificates for private service identities. AWS Private CA creates and operates private certificate authorities for issuing and managing private certificates; the prompt's required outcomes are not achieved by substituting this control.

C:

KMS key policies and grants determine who can use a protected customer managed key. If the requirement were to separate encryption key management from broad object storage administration, that would matter. The requested outcomes are separate from the one this option addresses.

E:

This mechanism supports the ability to meet a specialized cryptographic requirement needing dedicated customer-managed HSMs: cloudHSM offers dedicated hardware security modules operated under the customer's control plane; it would not satisfy a different obligation just by appearing in the same workflow; the specified requirement instead is to surface suspicious credentials and network behavior without building a custom detector.

Question 758

A technical change review names the selected control as follows: Define build phases and commands in the CodeBuild buildspec. To run ordered install, pre-build, build, and post-build commands as part of CI, which constraint must be addressed for this design?

  1. Commands and artifact declarations must be versioned with the source repository
  2. Release provenance must refer to a single versioned artifact or image digest
  3. Artifact storage must be available in every Region where pipeline actions require it
  4. The value must be retrieved at execution time by an authorized build role
  5. Infrastructure deployments must be reproducible from version control
  6. Results must remain associated with their build executions

Explanation

Correct Answer

A:

Commands and artifact declarations must be versioned with the source repository. Without this, choosing the named service is not enough to produce the promised outcome; a buildspec documents lifecycle phases, shell commands, outputs, and optional reports for CodeBuild.

Incorrect Answers

B:

This proposed constraint belongs to a separate objective: release provenance must refer to a single versioned artifact or image digest. The corresponding goal is to promote the exact tested package between environments rather than rebuilding source independently, not the selected architecture's goal to run ordered install, pre-build, build, and post-build commands as part of CI.

C:

This condition governs the different mechanism used to run a deployment action in a different AWS Region from its pipeline; cross-Region CodePipeline actions need an artifact store in each relevant action Region; for the selected control, the relevant boundary is instead that commands and artifact declarations must be versioned with the source repository.

D:

Secrets Manager stores secret values and supports managed rotation integrations; runtime retrieval avoids committing values; its own dependency is that the value must be retrieved at execution time by an authorized build role. Those details concern the separate objective of being able to supply a rotating database credential to CI jobs without placing the secret in source control, rather than to the named control required to run ordered install, pre-build, build, and post-build commands as part of CI.

E:

The proposed condition makes sense in an implementation designed to automate build and deployment of CDK infrastructure changes with reviewable application source; it concerns CDK Pipelines synthesize application definitions into cloud assemblies and orchestrate subsequent stack deployments, whereas this question tests the prerequisite of the named control; the specified requirement instead is to run ordered install, pre-build, build, and post-build commands as part of CI.

F:

This proposed constraint belongs to a separate objective: results must remain associated with their build executions; the corresponding goal is to publish structured test reports that reviewers can inspect after a CI run, not the selected architecture's goal to run ordered install, pre-build, build, and post-build commands as part of CI.

Question 759

The architecture record specifies: Use SNS with appropriate subscription filter policies. To support the goal to send only security-relevant messages to the security response queue, which consideration should the engineer validate?

  1. Message attributes or supported bodies should drive routing to subscribers
  2. Delivery failures must be captured without silently dropping critical events
  3. Ordering must be preserved within each identified message group
  4. The managed route must support the source, filtering, and target integration

Explanation

Correct Answer

A:

The implementation has to honor the exact constraint: message attributes or supported bodies should drive routing to subscribers. SNS subscription filters select which published messages each subscriber receives.

Incorrect Answers

B:

This condition governs the different mechanism used to retain failed event delivery attempts for later investigation; EventBridge rules can use retry policies and DLQ targets to preserve failed deliveries; for the selected control, the relevant boundary is instead that message attributes or supported bodies should drive routing to subscribers.

C:

SQS FIFO queues preserve order within message groups with managed deduplication semantics. Its own dependency is that ordering must be preserved within each identified message group. Those details concern the separate objective of being able to process change events in order for each governed resource, rather than to the named control required to send only security-relevant messages to the security response queue.

D:

The proposed condition makes sense in an implementation designed to connect a managed stream or queue to a target with transformation and optional enrichment. It concerns EventBridge Pipes connects supported sources to targets with optional filter and enrichment steps, whereas this question tests the prerequisite of the named control.

Question 760

Investigators observe: A high-risk internet service needs protection beyond the default included infrastructure layer. Engineers still need to apply additional DDoS protection and response capabilities to critical endpoints. Which corrective action is most appropriate?

  1. Use AWS Firewall Manager organization security policies for WAF protections
  2. Use AWS WAF managed rules on the web-facing ALB
  3. Use security group rules for stateful instance or ENI traffic control
  4. Use AWS Shield Advanced for enhanced DDoS protection of eligible public resources

Explanation

Correct Answer

D:

Shield Advanced offers enhanced detection, response capabilities, and protections for supported resources; it restores the ability to apply additional DDoS protection and response capabilities to critical endpoints, provided the implementation also observes that the service owner is prepared to enable a paid advanced protection subscription.

Incorrect Answers

A:

Choosing this would aim to enforce an approved web ACL policy on supported public application endpoints across member accounts instead of apply additional DDoS protection and response capabilities to critical endpoints. Firewall Manager manages supported security policies across accounts and can apply WAF protections to in-scope resources; it cannot replace the mechanism specified by the incident evidence.

B:

Although AWS WAF web ACLs evaluate HTTP requests against configured rules and can block matching traffic, the scenario does not ask for filter common malicious HTTP request patterns before they reach the application; it requires the ability to apply additional DDoS protection and response capabilities to critical endpoints, which is a separate responsibility.

C:

Security groups apply stateful allow rules to supported network interfaces and resources. This can help teams restrict inbound application ports while permitting corresponding return traffic, but the reported workflow needs to apply additional DDoS protection and response capabilities to critical endpoints. It does not perform that required function.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests