Question 730

The security engineering team selects this control: Instrument the actual application error path with structured logs and trace IDs. What associated scope or dependency matters most when using it to diagnose which business operation produces sporadic application exceptions?

  1. An engineer must find failing request fields without exposing sensitive payloads
  2. Flow metadata does not include full packet payloads or application semantics
  3. A trace identifier should flow through supported service integrations and headers
  4. Queries should extract stable fields rather than rely on visual scrolling

Explanation

Correct Answer

A:

An engineer must find failing request fields without exposing sensitive payloads. Without this, choosing the named service is not enough to produce the promised outcome; application tracing and correlated structured logs reveal failures not expressed by host utilization metrics.

Incorrect Answers

B:

This proposed constraint belongs to a separate objective: flow metadata does not include full packet payloads or application semantics. The corresponding goal is to determine whether recorded network flows were accepted or rejected at an interface, not the selected architecture's goal to diagnose which business operation produces sporadic application exceptions.

C:

This condition governs the different mechanism used to link asynchronous or downstream operations to the originating request trace. Trace context propagation relates spans across a distributed request path. For the selected control, the relevant boundary is instead that an engineer must find failing request fields without exposing sensitive payloads.

D:

Logs Insights provides parsing, filtering, statistics, and time grouping for log data. Its own dependency is that queries should extract stable fields rather than rely on visual scrolling; those details concern the separate objective of being able to filter application logs by request ID and aggregate failing endpoint counts, rather than to the named control required to diagnose which business operation produces sporadic application exceptions.

Question 731

The site reliability team proposes this implementation: Use CDK Aspects to apply organization-wide checks or tags to constructs. Its intended result is to enforce consistent tagging and validation across an application's CDK construct tree. Which implementation consideration is most specific to that choice?

  1. AWS Organizations integration should avoid manually creating cross-account IAM roles
  2. One parameterized template should selectively include appropriate resources
  3. Policy should traverse constructs before the application is synthesized
  4. Validation must run as part of CloudFormation resource operation evaluation

Explanation

Correct Answer

C:

The requested behavior is to enforce consistent tagging and validation across an application's CDK construct tree, and policy should traverse constructs before the application is synthesized. The underlying AWS behavior is that CDK Aspects visit construct nodes to apply checks or modifications throughout a CDK application.

Incorrect Answers

A:

This proposed constraint belongs to a separate objective: AWS Organizations integration should avoid manually creating cross-account IAM roles; the corresponding goal is to deploy a common baseline across organization accounts and selected Regions, not the selected architecture's goal to enforce consistent tagging and validation across an application's CDK construct tree.

B:

This condition governs the different mechanism used to provision a resource only when an environment parameter meets a defined requirement. Conditions can determine resource creation and property values based on template parameters and functions; for the selected control, the relevant boundary is instead that policy should traverse constructs before the application is synthesized.

D:

The proposed condition makes sense in an implementation designed to intercept stack resource operations that violate central deployment rules; it concerns CloudFormation hooks can enforce pre-provisioning or operation-time checks for supported resource types, whereas this question tests the prerequisite of the named control; the specified requirement instead is to enforce consistent tagging and validation across an application's CDK construct tree.

Question 732

After a configuration change, the security engineering team sees this issue: A Lambda loop sequentially processes hundreds of account findings until it times out. What best restores the ability to run a repeatable remediation step against multiple independent work items?

  1. Use a Step Functions Map state for bounded parallel processing
  2. Use conditional writes or deduplication keys to make a remediation handler idempotent
  3. Use Systems Manager OpsCenter OpsItems for operational work tracking
  4. Use Systems Manager Run Command for scoped remote command execution
  5. Use EventBridge Scheduler for per-task scheduled API invocations

Explanation

Correct Answer

A:

Map states can apply a defined workflow to collections with configurable concurrency; that directly addresses the observed failure in the scenario. The configuration still has to respect this constraint: parallelism must be controlled and failures handled per workflow item.

Incorrect Answers

B:

That service solves a different operating problem: the need to prevent repeated event delivery from causing duplicate infrastructure changes. Its behavior is that idempotency controls make repeated executions converge on the same intended side effect. The requested outcome remains run a repeatable remediation step against multiple independent work items.

C:

The choice is useful when engineers need to collect recurring operational issues with linked resource context and status: OpsCenter OpsItems group investigation context and operational metadata for issue management; it would not establish the control needed to run a repeatable remediation step against multiple independent work items.

D:

Run Command dispatches supported command documents to selected managed nodes and records execution results; this is a reasonable option when the requirement is to run a one-time script against a tagged fleet without SSH access, but it operates at a different workflow boundary from the stated need to run a repeatable remediation step against multiple independent work items.

E:

Choosing this would aim to invoke a service API at a one-time or recurring schedule without hosting a cron instance instead of run a repeatable remediation step against multiple independent work items; EventBridge Scheduler manages time-based invocation schedules with supported targets and retry policies; it cannot replace the mechanism specified by the incident evidence.

Question 733

An engineer is addressing a two-part incident-response requirement: diagnose Kubernetes scheduling constraints rather than application code failure, without losing the ability to identify the underlying resource error that triggered a stack rollback. Which set of actions is suitable?

  1. Inspect EKS pod events and describe output for Pending pods; inspect X-Ray traces for downstream service latency
  2. Inspect EKS pod events and describe output for Pending pods; inspect CloudFormation stack events for the first failed resource
  3. Inspect EKS pod events and describe output for Pending pods; check Auto Scaling scaling activities and launch failures
  4. Inspect Lambda CloudWatch logs for timeout and initialization errors; inspect CloudFormation stack events for the first failed resource
  5. Inspect KMS key policies and grants for cross-account decrypt failures; check ALB target-group health reason codes and the configured health path

Explanation

Correct Answer

B:

For the requirement to diagnose Kubernetes scheduling constraints rather than application code failure, kubernetes scheduling events explain why pending pods cannot be assigned to nodes. For the requirement to identify the underlying resource error that triggered a stack rollback, CloudFormation stack events show per-resource transitions and service error messages. Both mechanisms are necessary; implementing only the first would leave the second unsatisfied.

Incorrect Answers

A:

Combining a suitable first control with this second one misses the secondary acceptance criterion; x-Ray traces expose service dependencies and timing across instrumented operations; it helps find which dependency slows a distributed API request rather than identify the underlying resource error that triggered a stack rollback.

C:

Auto Scaling activity history records scaling requests and instance launch or health-related failures; that alternative supports the ability to discover why an EC2 fleet fails to add replacement capacity, but it is not the requested second outcome (identify the underlying resource error that triggered a stack rollback). Even though the first half addresses diagnose Kubernetes scheduling constraints rather than application code failure, this pair is incomplete.

D:

This combination solves only the latter acceptance test. The substituted first control supports explain missing API responses from a new Lambda deployment: Lambda logs include invocation results, duration, timeout messages, and runtime failures. It does not implement diagnose Kubernetes scheduling constraints rather than application code failure.

E:

Neither control directly supplies both requested behaviors. Customer managed KMS key policies and principal permissions govern who may decrypt encrypted artifacts; ALB target-group status reason codes and health settings show why endpoints fail checks. Those mechanisms address different objectives. The specified capabilities are to diagnose Kubernetes scheduling constraints rather than application code failure and to identify the underlying resource error that triggered a stack rollback.

Question 734

The architecture record specifies: Use an IAM policy condition on aws:SourceVpce for eligible AWS service requests. To support the goal to deny access to a sensitive resource unless requests use an approved VPC endpoint, which consideration should the engineer validate?

  1. The condition must apply to supported request paths and account for AWS service-to-service exceptions
  2. Per-workload identity should restrict permissions to the required AWS APIs
  3. The assumed session must not gain permissions beyond the base role
  4. Credentials must rotate automatically and be available through supported instance metadata
  5. The cap must apply independently from member account IAM role grants

Explanation

Correct Answer

A:

The condition must apply to supported request paths and account for AWS service-to-service exceptions; without this, choosing the named service is not enough to produce the promised outcome. The source VPC endpoint condition can constrain eligible requests to a designated private endpoint path.

Incorrect Answers

B:

This proposed constraint belongs to a separate objective: per-workload identity should restrict permissions to the required AWS APIs; the corresponding goal is to grant a Kubernetes workload AWS permissions without using the node IAM role, not the selected architecture's goal to deny access to a sensitive resource unless requests use an approved VPC endpoint.

C:

This condition governs the different mechanism used 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; for the selected control, the relevant boundary is instead that the condition must apply to supported request paths and account for AWS service-to-service exceptions.

D:

An EC2 instance profile provides temporary role credentials to applications running on the instance; its own dependency is that credentials must rotate automatically and be available through supported instance metadata. Those details concern the separate objective of being able to give an EC2 application temporary credentials to call an AWS API, rather than to the named control required to deny access to a sensitive resource unless requests use an approved VPC endpoint.

E:

The proposed condition makes sense in an implementation designed to prevent all affected principals in a production OU from performing prohibited service actions. It concerns SCPs set maximum available permissions for member-account principals but do not themselves allow actions, whereas this question tests the prerequisite of the named control.

Question 735

During root-cause analysis, the team identifies the following: A remediation document succeeds manually but fails from a Config integration due to missing privileges. To run an approved automation document under a dedicated role rather than a user's permissions, what should be configured?

  1. Use an SQS dead-letter queue for repeatedly failing asynchronous work
  2. Use Systems Manager Automation assumeRole for scoped API execution
  3. Use Systems Manager Automation runbooks for multi-step operational remediation
  4. Use Systems Manager OpsCenter OpsItems for operational work tracking
  5. Use EventBridge Scheduler for per-task scheduled API invocations

Explanation

Correct Answer

B:

To run an approved automation document under a dedicated role rather than a user's permissions, the architecture relies on this AWS behavior: automation can assume an assigned IAM role to run documented steps with explicit API permissions. The automation identity must be declared and trusted independently of its triggering user.

Incorrect Answers

A:

SQS redrive policies move repeatedly unsuccessfully processed messages to a designated dead-letter queue; this is a reasonable option when the requirement is to isolate messages that exceed the permitted receive-attempt count, but it operates at a different workflow boundary from the stated need to run an approved automation document under a dedicated role rather than a user's permissions.

C:

Although automation runbooks execute structured steps and AWS service operations with defined permissions, the scenario does not ask for combine approvals, API actions, branching, and rollback-aware tasks in a repeatable runbook. It requires the ability to run an approved automation document under a dedicated role rather than a user's permissions, which is a separate responsibility.

D:

OpsCenter OpsItems group investigation context and operational metadata for issue management. This can help teams collect recurring operational issues with linked resource context and status, but the reported workflow needs to run an approved automation document under a dedicated role rather than a user's permissions. It does not perform that required function.

E:

That service solves a different operating problem: the need to invoke a service API at a one-time or recurring schedule without hosting a cron instance. Its behavior is that EventBridge Scheduler manages time-based invocation schedules with supported targets and retry policies. The requested outcome remains run an approved automation document under a dedicated role rather than a user's permissions.

Question 736

The observability team's change record lists two distinct deliverables: link asynchronous or downstream operations to the originating request trace and diagnose which business operation produces sporadic application exceptions. Which combination covers both deliverables?

  1. Use AWS Config resource timelines to inspect configuration history; instrument the actual application error path with structured logs and trace IDs
  2. Use CloudWatch Synthetics canaries to validate a customer workflow; use Athena to query partitioned CloudTrail records stored in S3
  3. Propagate trace context between microservices; use Security Hub findings to correlate security signals from enabled integrations
  4. Propagate trace context between microservices; enable AWS X-Ray tracing across supported API and Lambda components
  5. Propagate trace context between microservices; instrument the actual application error path with structured logs and trace IDs

Explanation

Correct Answer

E:

Trace context propagation relates spans across a distributed request path; application tracing and correlated structured logs reveal failures not expressed by host utilization metrics. The first control satisfies the need to link asynchronous or downstream operations to the originating request trace; the second addresses the need to diagnose which business operation produces sporadic application exceptions. A trace identifier should flow through supported service integrations and headers; an engineer must find failing request fields without exposing sensitive payloads.

Incorrect Answers

A:

This combination solves only the latter acceptance test. The substituted first control supports find when an infrastructure resource drifted from its previous configuration: AWS Config configuration history tracks supported resource state changes over time; it does not implement link asynchronous or downstream operations to the originating request trace.

B:

Neither control directly supplies both requested behaviors. Synthetics canaries execute scripts and publish availability and step-level results; Athena can query compatible S3-based log data using SQL and suitable tables or partitions. Those mechanisms address different objectives. The specified capabilities are to link asynchronous or downstream operations to the originating request trace and to diagnose which business operation produces sporadic application exceptions.

C:

Security Hub normalizes supported security findings and provides centralized prioritization workflows; that alternative supports the ability to prioritize security risks across multiple supported detection services, but it is not the requested second outcome (diagnose which business operation produces sporadic application exceptions). Even though the first half addresses link asynchronous or downstream operations to the originating request trace, this pair is incomplete.

D:

Combining a suitable first control with this second one misses the secondary acceptance criterion; x-Ray traces and segments expose timing and dependencies across instrumented service calls; it helps identify which downstream call dominates end-to-end request latency rather than diagnose which business operation produces sporadic application exceptions.

Question 737

A technical change review names the selected control as follows: Use Organizations tag policies to standardize supported resource tags. To report and enforce valid tag keys or values across organizational accounts where supported, which constraint must be addressed for this design?

  1. The restriction must apply above individual IAM identity policy grants
  2. Human federation and account-level entitlements must be centrally managed
  3. The policy must govern tag conventions rather than grant IAM access
  4. Supported security administration should be separated from the management account
  5. Data protection governance must be applied through supported organization policy mechanisms
  6. Controls should be applied through the landing-zone governance system

Explanation

Correct Answer

C:

The implementation has to honor the exact constraint: the policy must govern tag conventions rather than grant IAM access; tag policies define permitted capitalization and values and can enforce supported tagging operations.

Incorrect Answers

A:

Service control policies limit the maximum permissions of affected account principals but do not grant rights; its own dependency is that the restriction must apply above individual IAM identity policy grants; those details concern the separate objective of being able to set a maximum permission boundary for member-account principals, rather than to the named control required to report and enforce valid tag keys or values across organizational accounts where supported.

B:

The proposed condition makes sense in an implementation designed to assign consistent workforce roles to many accounts through one identity portal. It concerns IAM Identity Center permission sets provision corresponding account roles for entitled users or groups, whereas this question tests the prerequisite of the named control.

D:

This condition governs the different mechanism used to let a security account administer a supported service for organization members. Delegated administration allows a registered member account to manage eligible service functions organization-wide; for the selected control, the relevant boundary is instead that the policy must govern tag conventions rather than grant IAM access.

E:

Organizations backup policies help coordinate AWS Backup plans and selections across member accounts; its own dependency is that data protection governance must be applied through supported organization policy mechanisms. Those details concern the separate objective of being able to distribute common backup policy requirements to eligible member accounts, rather than to the named control required to report and enforce valid tag keys or values across organizational accounts where supported.

F:

The proposed condition makes sense in an implementation designed to establish managed governance expectations when onboarding accounts; it concerns control Tower controls can enforce or detect supported rules across enrolled organizational units, whereas this question tests the prerequisite of the named control; the specified requirement instead is to report and enforce valid tag keys or values across organizational accounts where supported.

Question 738

An automated check detects: A regulated investigation cannot verify the authenticity of stored audit log files. Which remediation directly supports the requirement to prove whether delivered trail log objects have been tampered with?

  1. Create an organization CloudTrail trail to a separately secured S3 logging bucket
  2. Use CloudFormation drift detection to spot out-of-band stack edits
  3. Use CloudWatch metric filters with alarms on sensitive security log patterns
  4. Enable CloudTrail log file integrity validation and validate digest signatures
  5. Run SQL queries against existing CloudTrail Lake event data stores

Explanation

Correct Answer

D:

To prove whether delivered trail log objects have been tampered with, the architecture relies on this AWS behavior: CloudTrail integrity validation supports cryptographic verification of delivered log file digests. Integrity verification must use signed digest files, not only S3 checksums.

Incorrect Answers

A:

An organization trail delivers supported account activity events centrally for member accounts; this can help teams retain management API events from all AWS Organizations member accounts, but the reported workflow needs to prove whether delivered trail log objects have been tampered with. It does not perform that required function.

B:

That service solves a different operating problem: the need to identify resource properties that no longer match the approved template. Its behavior is that drift detection checks supported stack resource configuration against the declared IaC state. The requested outcome remains prove whether delivered trail log objects have been tampered with.

C:

The choice is useful when engineers need to alert when repeated access-denied or suspicious authentication events enter central logs: metric filters turn matching log events into CloudWatch measurements that can trigger alarms. It would not establish the control needed to prove whether delivered trail log objects have been tampered with.

E:

Choosing this would aim to query retained CloudTrail events without first building a custom S3 query pipeline instead of prove whether delivered trail log objects have been tampered with; CloudTrail Lake ingests supported events into queryable event data stores; it cannot replace the mechanism specified by the incident evidence.

Question 739

After a configuration change, the platform engineering team sees this issue: A failed deployment leaves a bad revision selected for the production stage. What best restores the ability to restore a known successful release when a new stage execution fails?

  1. Use a CodePipeline approval stage with a designated SNS notification
  2. Use a deployment action with a production-account IAM role
  3. Use a CodePipeline execution mode suited to parallel release frequency
  4. Use an AWS Step Functions state machine to coordinate conditional release tasks
  5. Configure stage-level failure handling to stop and roll back supported pipeline executions

Explanation

Correct Answer

E:

CodePipeline supports stage failure actions including rollback for eligible pipeline types and stages; it restores the ability to restore a known successful release when a new stage execution fails, provided the implementation also observes that rollback must use supported pipeline stage behavior and prior successful executions.

Incorrect Answers

A:

That service solves a different operating problem: the need to notify release owners that production is awaiting an approval action. Its behavior is that the manual approval action can publish an approval notification to an SNS topic for human review. The requested outcome remains restore a known successful release when a new stage execution fails.

B:

The choice is useful when engineers need to isolate permissions between staging and production delivery: role separation allows each pipeline action to run under the permissions approved for its target environment. It would not establish the control needed to restore a known successful release when a new stage execution fails.

C:

Pipeline execution modes determine whether newer runs supersede, queue behind, or coexist with active executions; this is a reasonable option when the requirement is to prevent newer revisions from unexpectedly superseding a release requiring sequential review, but it operates at a different workflow boundary from the stated need to restore a known successful release when a new stage execution fails.

D:

Choosing this would aim to orchestrate multiple release checks with retries, branches, and explicit failure states instead of restore a known successful release when a new stage execution fails; Step Functions models a durable workflow with service integrations, conditional paths, waits, and retries; it cannot replace the mechanism specified by the incident evidence.

Question 740

A release design adopts this mechanism: Use Systems Manager Session Manager for audited interactive access. Which implementation detail is most relevant to its proposed use to troubleshoot managed EC2 hosts without opening SSH ports or distributing key pairs?

  1. Desired state must be enforced repeatedly on matching managed nodes
  2. Targets need SSM connectivity and permissions rather than inbound administrative ports
  3. Connection authorization should be IAM-based and session activity governed
  4. Findings should reflect resource configuration rather than instance command status
  5. Retries and dead-letter delivery need managed scheduling controls

Explanation

Correct Answer

C:

Connection authorization should be IAM-based and session activity governed. Without this, choosing the named service is not enough to produce the promised outcome; session Manager provides managed interactive sessions through Systems Manager connectivity and IAM controls.

Incorrect Answers

A:

This condition governs the different mechanism used to reapply a required host configuration whenever nodes drift. State Manager associations run specified documents against targets according to defined schedules; for the selected control, the relevant boundary is instead that connection authorization should be IAM-based and session activity governed.

B:

Run Command dispatches supported command documents to selected managed nodes and records execution results; its own dependency is that targets need SSM connectivity and permissions rather than inbound administrative ports; those details concern the separate objective of being able to run a one-time script against a tagged fleet without SSH access, rather than to the named control required to troubleshoot managed EC2 hosts without opening SSH ports or distributing key pairs.

D:

This proposed constraint belongs to a separate objective: findings should reflect resource configuration rather than instance command status. The corresponding goal is to detect resources that diverge from a defined account-level configuration policy, not the selected architecture's goal to troubleshoot managed EC2 hosts without opening SSH ports or distributing key pairs.

E:

This condition governs the different mechanism used to invoke a service API at a one-time or recurring schedule without hosting a cron instance. EventBridge Scheduler manages time-based invocation schedules with supported targets and retry policies; for the selected control, the relevant boundary is instead that connection authorization should be IAM-based and session activity governed.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests