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.

Question 741

Before the next release, the approved AWS design must address 3 obligations: (1) inspect the proposed resource replacements and updates before executing infrastructure changes; (2) identify unmanaged configuration changes made outside the IaC deployment; (3) let application teams self-service compliant infrastructure without broad template authoring access. Which THREE actions should be included? Choose THREE.

  1. Publish approved infrastructure products through AWS Service Catalog
  2. Use Systems Manager Parameter Store hierarchical paths for application settings
  3. Use Systems Manager State Manager associations for desired-state enforcement
  4. Use AWS CloudFormation Change Sets before updating a stack
  5. Enable CloudFormation drift detection on supported stack resources
  6. Deploy dynamic configuration using AWS AppConfig gradual rollout

Explanation

Correct Answers

A:

The corresponding obligation is to let application teams self-service compliant infrastructure without broad template authoring access; service Catalog portfolios expose governed infrastructure products to authorized consumers; that behavior is the reason this action belongs in the selected answer set.

D:

A change set previews how CloudFormation intends to modify or replace resources before execution; this fulfills the stated requirement to inspect the proposed resource replacements and updates before executing infrastructure changes. The operational limitation is that reviewers must approve a predicted resource change list without executing it.

E:

The corresponding obligation is to identify unmanaged configuration changes made outside the IaC deployment. Drift detection compares actual and expected configurations for supported resources and properties; that behavior is the reason this action belongs in the selected answer set.

Incorrect Answers

B:

It supports a separate administrative task, namely to organize nonsecret configuration keys by environment and application namespace; parameter Store names can use hierarchies and IAM permissions for managed configuration lookup; the prompt's required outcomes are not achieved by substituting this control; the specified requirement instead is to let application teams self-service compliant infrastructure without broad template authoring access.

C:

State Manager associations apply a defined configuration on a schedule to selected managed resources; if the requirement were to keep managed instances configured with a prescribed agent and operating setting, that would matter; the requested outcomes are separate from the one this option addresses.

F:

It supports a separate administrative task, namely to release feature flags independently from application code with automatic rollback on alarms. AppConfig deployment strategies gradually distribute hosted or sourced configuration and can roll back on alarms; the prompt's required outcomes are not achieved by substituting this control.

Question 742

The infrastructure automation group proposes this implementation: Use CloudFormation rollback triggers wired to CloudWatch alarms. Its intended result is to roll back a stack update when a monitored service alarm fires during its monitoring period. Which implementation consideration is most specific to that choice?

  1. Accounts that enter or leave a target OU should follow explicit stack lifecycle policy
  2. Application alarm state must influence infrastructure update success
  3. The consumer should use an explicit stack export instead of hard-coded values
  4. Reviewers must approve a predicted resource change list without executing it

Explanation

Correct Answer

B:

The implementation has to honor the exact constraint: application alarm state must influence infrastructure update success; rollback triggers monitor configured CloudWatch alarms and can initiate rollback when a trigger alarms.

Incorrect Answers

A:

The proposed condition makes sense in an implementation designed to apply baseline stacks when new accounts join a targeted organizational unit. It concerns stackSet automatic deployment creates or removes managed instances as accounts move into or out of targeted OUs, whereas this question tests the prerequisite of the named control.

C:

This condition governs the different mechanism used 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; for the selected control, the relevant boundary is instead that application alarm state must influence infrastructure update success.

D:

A change set previews how CloudFormation intends to modify or replace resources before execution; its own dependency is that reviewers must approve a predicted resource change list without executing it; those details concern the separate objective of being able to inspect the proposed resource replacements and updates before executing infrastructure changes, rather than to the named control required to roll back a stack update when a monitored service alarm fires during its monitoring period.

Question 743

A production change is expected to combine approvals, API actions, branching, and rollback-aware tasks in a repeatable runbook. The same change must also run an approved automation document under a dedicated role rather than a user's permissions. Which paired implementation meets both acceptance criteria?

  1. Use Systems Manager Automation runbooks for multi-step operational remediation; use Systems Manager Run Command for scoped remote command execution
  2. Use AWS Config custom or managed rules for compliance evaluation; use State Manager to enforce a recurring configuration association
  3. Use Systems Manager Automation runbooks for multi-step operational remediation; use Systems Manager Automation assumeRole for scoped API execution
  4. Use conditional writes or deduplication keys to make a remediation handler idempotent; use Systems Manager Automation assumeRole for scoped API execution

Explanation

Correct Answer

C:

The first outcome depends on the behavior that automation runbooks execute structured steps and AWS service operations with defined permissions. Separately, automation can assume an assigned IAM role to run documented steps with explicit API permissions; together these meet the two requested outcomes, with the operational limits that the workflow needs controlled execution steps and an assumable automation role and the automation identity must be declared and trusted independently of its triggering user.

Incorrect Answers

A:

Run Command dispatches supported command documents to selected managed nodes and records execution results; that alternative supports the ability to run a one-time script against a tagged fleet without SSH access, but it is not the requested second outcome (run an approved automation document under a dedicated role rather than a user's permissions). Even though the first half addresses combine approvals, API actions, branching, and rollback-aware tasks in a repeatable runbook, this pair is incomplete.

B:

The pair changes the problem instead of completing it. One option addresses detect resources that diverge from a defined account-level configuration policy; the other addresses reapply a required host configuration whenever nodes drift. The release, however, needs to combine approvals, API actions, branching, and rollback-aware tasks in a repeatable runbook as well as run an approved automation document under a dedicated role rather than a user's permissions.

D:

The second implementation is relevant; the problem is the first. Idempotency controls make repeated executions converge on the same intended side effect. It can help prevent repeated event delivery from causing duplicate infrastructure changes, whereas the stated first requirement is to combine approvals, API actions, branching, and rollback-aware tasks in a repeatable runbook.

Question 744

An engineer will implement the following change: Configure EC2 target tracking scaling on an application-relevant metric. Which operational boundary most directly applies to the intended outcome to automatically change fleet capacity to maintain a target utilization level?

  1. Compute scale-out must track container placement demand
  2. Node provisioning must respond to Kubernetes scheduling constraints
  3. The capacity mechanism must update ECS desired task count
  4. The metric should correlate with per-instance capacity and stable control behavior

Explanation

Correct Answer

D:

The implementation has to honor the exact constraint: the metric should correlate with per-instance capacity and stable control behavior. Target tracking policies adjust desired capacity around a configured metric target.

Incorrect Answers

A:

This condition governs the different mechanism used to coordinate ECS service task placement with managed EC2 capacity. ECS capacity providers can couple task placement and managed scaling of EC2 Auto Scaling capacity; for the selected control, the relevant boundary is instead that the metric should correlate with per-instance capacity and stable control behavior.

B:

Node autoscalers provision or adjust worker capacity in response to pending pods and cluster constraints; its own dependency is that node provisioning must respond to Kubernetes scheduling constraints. Those details concern the separate objective of being able to add cluster nodes when pods cannot schedule due to insufficient capacity, rather than to the named control required to automatically change fleet capacity to maintain a target utilization level.

C:

The proposed condition makes sense in an implementation designed to adjust running service task capacity based on a CloudWatch target metric; it concerns application Auto Scaling can control ECS service desired count from target tracking or step policies, whereas this question tests the prerequisite of the named control; the specified requirement instead is to automatically change fleet capacity to maintain a target utilization level.

Question 745

A production ticket contains this symptom: An application requires gradual transition but every caller invokes a hard-coded version ARN. The desired behavior is to split invocation traffic between two published Lambda versions without changing callers. What should be fixed?

  1. Use a weighted Lambda alias for gradual traffic migration
  2. Publish a Lambda version and route clients through an alias
  3. Use CodeDeploy blue/green deployment with a replacement EC2 Auto Scaling group
  4. Enable provisioned concurrency on the Lambda alias or published version

Explanation

Correct Answer

A:

A Lambda alias can distribute invocations between its primary and additional published version; in this case the control is appropriate because it supports split invocation traffic between two published Lambda versions without changing callers. The invoking application must retain a stable endpoint throughout the migration.

Incorrect Answers

B:

The choice is useful when engineers need to release immutable Lambda code while keeping callers on a stable function reference: a published Lambda version snapshots code and configuration; an alias can reference the selected version. It would not establish the control needed to split invocation traffic between two published Lambda versions without changing callers.

C:

CodeDeploy blue/green can provision replacement EC2 instances and reroute traffic after health checks; this is a reasonable option when the requirement is to replace an entire instance release without modifying the current live fleet, but it operates at a different workflow boundary from the stated need to split invocation traffic between two published Lambda versions without changing callers.

D:

Choosing this would aim to reduce cold-start latency for a predictable high-priority request path instead of split invocation traffic between two published Lambda versions without changing callers; provisioned concurrency keeps initialized Lambda execution environments ready for supported versions or aliases; it cannot replace the mechanism specified by the incident evidence.

Question 746

The release manager selects this control: Use an IAM role with STS temporary credentials for cross-account operations. What associated scope or dependency matters most when using it to avoid distributing durable access keys for central administration in member accounts?

  1. Human credentials need additional authentication safeguards beyond a static password
  2. Trust and permission policies must explicitly govern the destination role
  3. Cross-account access must be permitted by the relevant resource authorization model
  4. The build project role should authorize only required artifact and deployment operations

Explanation

Correct Answer

B:

The implementation has to honor the exact constraint: trust and permission policies must explicitly govern the destination role; STS AssumeRole issues expiring credentials for a trusted role rather than persistent user secrets.

Incorrect Answers

A:

The proposed condition makes sense in an implementation designed to add possession-based verification to administrator authentication; it concerns MFA adds a second factor and can be required through identity provider settings or IAM policy conditions, whereas this question tests the prerequisite of the named control.

C:

This condition governs the different mechanism used to authorize a designated external role to access a narrow set of objects. An S3 bucket policy can grant a specified external principal access to selected object ARNs. For the selected control, the relevant boundary is instead that trust and permission policies must explicitly govern the destination role.

D:

CodeBuild obtains temporary service-role credentials to call authorized AWS APIs during builds; its own dependency is that the build project role should authorize only required artifact and deployment operations. Those details concern the separate objective of being able to prevent CI workers from embedding persistent AWS keys in build scripts, rather than to the named control required to avoid distributing durable access keys for central administration in member accounts.

Question 747

A production change is expected to further limit temporary role credentials to the resources needed by one execution. The same change must also give an EC2 application temporary credentials to call an AWS API. Which paired implementation meets both acceptance criteria?

  1. Use session policies when assuming a role for a narrowly scoped job; use IAM Identity Center with an external identity provider federation
  2. Use a Lambda execution role scoped to required AWS APIs; use IAM roles and temporary credentials for CodeBuild service integration
  3. Use session policies when assuming a role for a narrowly scoped job; require MFA for privileged human sign-in and sensitive actions
  4. Use IAM ABAC conditions based on principal and resource tags; attach an instance profile with a scoped IAM role to EC2
  5. Use session policies when assuming a role for a narrowly scoped job; attach an instance profile with a scoped IAM role to EC2

Explanation

Correct Answer

E:

STS session policies intersect with the role's permissions to further restrict an assumed-role session; this handles the first acceptance condition, subject to the boundary that the assumed session must not gain permissions beyond the base role. The remaining condition is handled separately: an EC2 instance profile provides temporary role credentials to applications running on the instance, with credentials must rotate automatically and be available through supported instance metadata.

Incorrect Answers

A:

The first half is appropriate: STS session policies intersect with the role's permissions to further restrict an assumed-role session. However, IAM Identity Center integrates with supported identity providers for federated workforce access; that serves a different objective (centralize workforce lifecycle while retaining the corporate identity provider) and leaves the explicit need to give an EC2 application temporary credentials to call an AWS API unmet.

B:

These are legitimate AWS controls for different outcomes: Lambda execution roles grant the AWS API permissions used by the running function, whereas CodeBuild obtains temporary service-role credentials to call authorized AWS APIs during builds. The problem instead requires the ability to further limit temporary role credentials to the resources needed by one execution and to give an EC2 application temporary credentials to call an AWS API.

C:

Combining a suitable first control with this second one misses the secondary acceptance criterion; MFA adds a second factor and can be required through identity provider settings or IAM policy conditions; it helps add possession-based verification to administrator authentication rather than give an EC2 application temporary credentials to call an AWS API.

D:

Attribute-based access control evaluates policy conditions using attributes such as tags. That is intended to grant access to project-matching resources without enumerating every resource ARN, not to further limit temporary role credentials to the resources needed by one execution; the second half can meet the requirement to give an EC2 application temporary credentials to call an AWS API, but the first is still missing.

Question 748

The cloud operations group proposes this implementation: Use AWS WAF logging to analyze blocked HTTP requests. Its intended result is to investigate which web ACL rule is denying legitimate client requests. Which implementation consideration is most specific to that choice?

  1. Rules should be bundled with any supported remediation definitions as a deployable unit
  2. Audit log retention must be governed by an account separate from routine workload admins
  3. The report should focus on IAM users and key use rather than role session credentials
  4. Evidence must include web ACL match context rather than host CPU metrics
  5. The filter and alarm must use a stable field pattern and relevant count threshold

Explanation

Correct Answer

D:

The implementation has to honor the exact constraint: evidence must include web ACL match context rather than host CPU metrics; AWS WAF logs contain supported request and rule evaluation information for configured web ACLs.

Incorrect Answers

A:

This condition governs the different mechanism used to evaluate a collection of resource configuration controls against a standard; conformance packs package AWS Config rules and supported remediation actions for consistent evaluation; for the selected control, the relevant boundary is instead that evidence must include web ACL match context rather than host CPU metrics.

B:

An organization trail delivers supported account activity events centrally for member accounts; its own dependency is that audit log retention must be governed by an account separate from routine workload admins. Those details concern the separate objective of being able to retain management API events from all AWS Organizations member accounts, rather than to the named control required to investigate which web ACL rule is denying legitimate client requests.

C:

The proposed condition makes sense in an implementation designed to identify aging IAM user credentials that require rotation or removal; it concerns IAM credential reports and access-key usage metadata support audits of IAM user authentication materials, whereas this question tests the prerequisite of the named control; the specified requirement instead is to investigate which web ACL rule is denying legitimate client requests.

E:

This condition governs the different mechanism used 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; for the selected control, the relevant boundary is instead that evidence must include web ACL match context rather than host CPU metrics.

Question 749

During the rollout of a governed environment, engineers are required to emit high-cardinality application measurements together with diagnostic context and, separately, count specific error patterns without changing application metric instrumentation. Which combination meets the specification?

  1. Use CloudWatch Embedded Metric Format in structured JSON logs; use CloudWatch Logs Insights for interactive log analysis
  2. Configure CloudTrail data events for selected sensitive S3 buckets; configure CloudWatch metric filters for structured application log events
  3. Associate a customer managed KMS key with a CloudWatch Logs log group; configure CloudWatch Logs subscription filters to stream events to an eligible destination
  4. Use CloudWatch Embedded Metric Format in structured JSON logs; configure CloudWatch metric filters for structured application log events

Explanation

Correct Answer

D:

Embedded Metric Format embeds metric definitions in structured log events for CloudWatch extraction; metric filters evaluate incoming CloudWatch Logs records and emit metrics for matching patterns. The first control satisfies the need to emit high-cardinality application measurements together with diagnostic context; the second addresses the need to count specific error patterns without changing application metric instrumentation. The log payload must follow the EMF schema for metrics extraction; the log event pattern is consistent enough to extract a metric value.

Incorrect Answers

A:

CloudWatch Logs Insights runs interactive queries over selected CloudWatch log groups. That alternative supports the ability to query structured error events across log groups during incidents, but it is not the requested second outcome (count specific error patterns without changing application metric instrumentation). Even though the first half addresses emit high-cardinality application measurements together with diagnostic context, this pair is incomplete.

B:

This combination solves only the latter acceptance test. The substituted first control supports record relevant object-level API activity rather than only account management events: CloudTrail data events capture selected data-plane operations, such as S3 object API calls. It does not implement emit high-cardinality application measurements together with diagnostic context.

C:

Neither control directly supplies both requested behaviors. CloudWatch Logs supports customer-managed KMS key association for eligible log groups; subscription filters route new matching CloudWatch Logs events to supported streaming or processing destinations. Those mechanisms address different objectives. The specified capabilities are to emit high-cardinality application measurements together with diagnostic context and to count specific error patterns without changing application metric instrumentation.

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.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests