Question 780

Investigators observe: An autoscaled fleet routes users to new instances that lack the previous instance's memory state. Engineers still need to allow requests to move among instances without losing user session context. Which corrective action is most appropriate?

  1. Implement stateless application nodes with session state in a shared store
  2. Use Route 53 latency routing for healthy regional endpoints
  3. Use an Aurora Global Database with secondary Region clusters
  4. Enable ALB target-group health checks with a representative health path
  5. Use CloudFront origins with origin failover for eligible requests

Explanation

Correct Answer

A:

Externalizing session data removes per-instance affinity as a correctness requirement for request handling; in this case the control is appropriate because it supports allow requests to move among instances without losing user session context. Application sessions must survive instance replacement and Availability Zone movement.

Incorrect Answers

B:

That service solves a different operating problem: the need to direct global clients toward the Region with better measured network latency; its behavior is that Route 53 latency policies select records based on measured latency among configured Regions; the requested outcome remains allow requests to move among instances without losing user session context.

C:

The choice is useful when engineers need to provide low-latency cross-Region database reads and a regional recovery path: aurora Global Database replicates from a primary cluster to secondary regional clusters for reads and recovery. It would not establish the control needed to allow requests to move among instances without losing user session context.

D:

Target group health checks determine which registered targets receive load balancer traffic. This is a reasonable option when the requirement is to stop sending new traffic to application instances that fail readiness checks, but it operates at a different workflow boundary from the stated need to allow requests to move among instances without losing user session context.

E:

Choosing this would aim to keep cacheable web content reachable if the primary origin fails instead of allow requests to move among instances without losing user session context; CloudFront origin groups can switch eligible requests to a secondary origin on configured primary failures; it cannot replace the mechanism specified by the incident evidence.

Question 781

During the rollout of a governed environment, engineers are required to create new workload accounts with standardized landing-zone controls and, separately, set a maximum permission boundary for member-account principals. Which combination meets the specification?

  1. Use AWS Organizations CreateAccount automation for programmatic member creation; attach an Organizations SCP to a production OU
  2. Configure Security Hub organization integration and central settings policies; use Organizations tag policies to standardize supported resource tags
  3. Use AWS Control Tower Account Factory to provision governed accounts; configure organization-wide GuardDuty management through a delegated security account
  4. Use AWS Control Tower Account Factory to provision governed accounts; attach an Organizations SCP to a production OU

Explanation

Correct Answer

D:

Account Factory provisions accounts under a landing-zone structure using configured account baselines; service control policies limit the maximum permissions of affected account principals but do not grant rights. The first control satisfies the need to create new workload accounts with standardized landing-zone controls; the second addresses the need to set a maximum permission boundary for member-account principals. Provisioning must follow the organization's Control Tower governance model; the restriction must apply above individual IAM identity policy grants.

Incorrect Answers

A:

This combination solves only the latter acceptance test. The substituted first control supports automate account creation and consolidate billing within an organization: organizations supports asynchronous member account creation through its account APIs; it does not implement create new workload accounts with standardized landing-zone controls.

B:

Neither control directly supplies both requested behaviors. Security Hub central configuration can apply supported policies across an organization hierarchy; tag policies define permitted capitalization and values and can enforce supported tagging operations. Those mechanisms address different objectives. The specified capabilities are to create new workload accounts with standardized landing-zone controls and to set a maximum permission boundary for member-account principals.

C:

GuardDuty organization administration can automatically manage protection enrollment across eligible members; that alternative supports the ability to enable consistent threat detection coverage for member accounts, but it is not the requested second outcome (set a maximum permission boundary for member-account principals). Even though the first half addresses create new workload accounts with standardized landing-zone controls, this pair is incomplete.

Question 782

The release manager reports the following failure: One malformed work item is repeatedly retried and blocks normal investigation. Which action directly restores the requirement to isolate messages that exceed the permitted receive-attempt count?

  1. Use Systems Manager OpsCenter OpsItems for operational work tracking
  2. Use a Step Functions Map state for bounded parallel processing
  3. Use Systems Manager Run Command for scoped remote command execution
  4. Use an SQS dead-letter queue for repeatedly failing asynchronous work

Explanation

Correct Answer

D:

SQS redrive policies move repeatedly unsuccessfully processed messages to a designated dead-letter queue; in this case the control is appropriate because it supports isolate messages that exceed the permitted receive-attempt count. Poison messages must remain available for later diagnosis outside the main queue.

Incorrect Answers

A:

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 isolate messages that exceed the permitted receive-attempt count.

B:

Map states can apply a defined workflow to collections with configurable concurrency. This is a reasonable option when the requirement is to run a repeatable remediation step against multiple independent work items, but it operates at a different workflow boundary from the stated need to isolate messages that exceed the permitted receive-attempt count.

C:

Choosing this would aim to run a one-time script against a tagged fleet without SSH access instead of isolate messages that exceed the permitted receive-attempt count. Run Command dispatches supported command documents to selected managed nodes and records execution results; it cannot replace the mechanism specified by the incident evidence.

Question 783

An incident record says: Static instance counts produce excess queueing during demand spikes and waste during quiet periods. To restore the capability to automatically change fleet capacity to maintain a target utilization level, which change addresses the root cause?

  1. Enable ECS Service Auto Scaling for task count
  2. Configure Auto Scaling warm pools for slow-starting instances
  3. Use DynamoDB auto scaling for provisioned read and write capacity
  4. Configure EC2 target tracking scaling on an application-relevant metric
  5. Use SQS backlog per worker as a target tracking metric
  6. Use scheduled scaling for recurring predictable demand

Explanation

Correct Answer

D:

To automatically change fleet capacity to maintain a target utilization level, the architecture relies on this AWS behavior: target tracking policies adjust desired capacity around a configured metric target. The metric should correlate with per-instance capacity and stable control behavior.

Incorrect Answers

A:

Application Auto Scaling can control ECS service desired count from target tracking or step policies; this is a reasonable option when the requirement is to adjust running service task capacity based on a CloudWatch target metric, but it operates at a different workflow boundary from the stated need to automatically change fleet capacity to maintain a target utilization level.

B:

Choosing this would aim to reduce scale-out readiness time for an application with lengthy initialization instead of automatically change fleet capacity to maintain a target utilization level. An Auto Scaling warm pool holds initialized instances in a supported state for later scale-out; it cannot replace the mechanism specified by the incident evidence.

C:

Although DynamoDB Application Auto Scaling can change provisioned read or write capacity based on utilization targets, the scenario does not ask for adapt provisioned throughput targets to changing demand; it requires the ability to automatically change fleet capacity to maintain a target utilization level, which is a separate responsibility.

E:

That service solves a different operating problem: the need to scale message-processing workers with the backlog relative to active capacity. Its behavior is that backlog per instance estimates the pressure on worker capacity for queue-driven scaling. The requested outcome remains automatically change fleet capacity to maintain a target utilization level.

F:

The choice is useful when engineers need to preprovision EC2 capacity before a known daily traffic increase: scheduled actions change Auto Scaling desired or min and max capacity at specified times; it would not establish the control needed to automatically change fleet capacity to maintain a target utilization level.

Question 784

A platform migration has these separately testable requirements: (1) stop an unsafe revision before it can reach the deployment stage; (2) restore a known successful release when a new stage execution fails. Choose TWO actions that satisfy the requirements. Choose TWO.

  1. Enable CodeBuild report groups for automated test results
  2. Use an immutable artifact identifier when promoting a release
  3. Restrict build credentials to a CodeBuild service role with least privilege
  4. Configure stage-level failure handling to stop and roll back supported pipeline executions
  5. Use distinct CodePipeline stages with a separate integration test action

Explanation

Correct Answers

D:

This covers the specific result to restore a known successful release when a new stage execution fails: CodePipeline supports stage failure actions including rollback for eligible pipeline types and stages. Rollback must use supported pipeline stage behavior and prior successful executions.

E:

A failed test action makes the stage fail and prevents subsequent deployment stages from proceeding; this fulfills the stated requirement to stop an unsafe revision before it can reach the deployment stage. The operational limitation is that failure must prevent later actions rather than merely send a notification.

Incorrect Answers

A:

CodeBuild report groups ingest supported test and code-coverage files generated during a build; that would be appropriate to publish structured test reports that reviewers can inspect after a CI run, but this is a different objective from the numbered obligations in the stem.

B:

This mechanism supports the ability to promote the exact tested package between environments rather than rebuilding source independently: promoting a fixed artifact identity prevents environment-specific rebuilds from silently changing the delivered bytes. It would not satisfy a different obligation just by appearing in the same workflow.

C:

It supports a separate administrative task, namely to let automated builds read only the required inputs and publish expected outputs; CodeBuild runs under its assigned IAM service role, which needs access to referenced buckets, logs, and relevant keys; the prompt's required outcomes are not achieved by substituting this control; the specified requirement instead is to restore a known successful release when a new stage execution fails.

Question 785

An incident-response review exposes two requirements in the same release: invoke a follow-up check at a precise future time after an initial event; in addition, reprocess a historical event period after a corrected incident workflow is deployed. Which paired set of AWS controls meets both requirements?

  1. Use Step Functions Choice states for severity-dependent incident routing; use EventBridge archive and replay for selected critical events
  2. Use an EventBridge Scheduler one-time schedule for delayed remediation; use EventBridge archive and replay for selected critical events
  3. Use SQS visibility timeouts aligned to consumer processing; use SNS with appropriate subscription filter policies
  4. Use an EventBridge Scheduler one-time schedule for delayed remediation; use EventBridge Pipes to filter and enrich events from a supported source

Explanation

Correct Answer

B:

For the requirement to invoke a follow-up check at a precise future time after an initial event, EventBridge Scheduler can invoke supported targets at specified one-time or recurring times; for the requirement to reprocess a historical event period after a corrected incident workflow is deployed, EventBridge archives can retain selected events for later replay to an event bus; both mechanisms are necessary; implementing only the first would leave the second unsatisfied.

Incorrect Answers

A:

The second implementation is relevant; the problem is the first. Choice states route state machine execution according to supported data conditions. It can help branch remediation based on incident severity and resource classification, whereas the stated first requirement is to invoke a follow-up check at a precise future time after an initial event.

C:

Neither control directly supplies both requested behaviors. SQS visibility timeouts temporarily hide received messages until deletion or timeout expiration; SNS subscription filters select which published messages each subscriber receives. Those mechanisms address different objectives. The specified capabilities are to invoke a follow-up check at a precise future time after an initial event and to reprocess a historical event period after a corrected incident workflow is deployed.

D:

EventBridge Pipes connects supported sources to targets with optional filter and enrichment steps; that alternative supports the ability to connect a managed stream or queue to a target with transformation and optional enrichment, but it is not the requested second outcome (reprocess a historical event period after a corrected incident workflow is deployed). Even though the first half addresses invoke a follow-up check at a precise future time after an initial event, this pair is incomplete.

Question 786

An engineer is addressing a two-part platform requirement: collect network flow metadata from selected workload VPCs for audit analysis, without losing the ability to prevent log upload and retrieval over unencrypted transport. Which set of actions is suitable?

  1. Use AWS Organizations CreateAccount automation for programmatic member creation; use an S3 bucket policy that denies insecure transport for organization logs
  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. Use Organizations tag policies to standardize supported resource tags; enable AWS Config aggregators across organization accounts and Regions
  4. Use centralized VPC Flow Logs delivery to an approved log destination; configure Security Hub organization integration and central settings policies

Explanation

Correct Answer

B:

VPC Flow Logs capture metadata for selected interfaces, subnets, or VPCs and deliver to supported destinations; this handles the first acceptance condition, subject to the boundary that delivery roles and destinations must be scoped and protected centrally. The remaining condition is handled separately: a bucket policy can deny requests when the aws:SecureTransport context indicates an insecure connection, with the control must operate at the resource boundary for all requesting principals.

Incorrect Answers

A:

Organizations supports asynchronous member account creation through its account APIs. That is intended to automate account creation and consolidate billing within an organization, not to collect network flow metadata from selected workload VPCs for audit analysis. The second half can meet the requirement to prevent log upload and retrieval over unencrypted transport, but the first is still missing.

C:

The pair changes the problem instead of completing it. One option addresses report and enforce valid tag keys or values across organizational accounts where supported; the other addresses view resource compliance and configuration state from a central operations account. The release, however, needs to collect network flow metadata from selected workload VPCs for audit analysis as well as prevent log upload and retrieval over unencrypted transport.

D:

The first half is appropriate: VPC Flow Logs capture metadata for selected interfaces, subnets, or VPCs and deliver to supported destinations. However, Security Hub central configuration can apply supported policies across an organization hierarchy; that serves a different objective (standardize security finding aggregation and enabled standards across accounts) and leaves the explicit need to prevent log upload and retrieval over unencrypted transport unmet.

Question 787

A platform change request has linked acceptance tests: the system must organize nonsecret configuration keys by environment and application namespace, and it must avoid hardcoding a sensitive input in reusable infrastructure templates. Which two controls should the engineers combine?

  1. Apply CloudFormation Conditions to optional template resources; use CloudFormation dynamic references for protected parameter values
  2. Use Systems Manager Parameter Store hierarchical paths for application settings; use CloudFormation dynamic references for protected parameter values
  3. Use Systems Manager Parameter Store hierarchical paths for application settings; use CloudFormation cross-stack exports and imports for shared output values
  4. Use CloudFormation DeletionPolicy Retain on a stateful resource; use AWS SAM transform resources for Lambda and API infrastructure

Explanation

Correct Answer

B:

Parameter Store names can use hierarchies and IAM permissions for managed configuration lookup; dynamic references let CloudFormation retrieve supported values from SSM Parameter Store or Secrets Manager. The first control satisfies the need to organize nonsecret configuration keys by environment and application namespace; the second addresses the need to avoid hardcoding a sensitive input in reusable infrastructure templates. Consumers need path-scoped access rather than duplicating values in source; CloudFormation should resolve the protected value from its secret or parameter store.

Incorrect Answers

A:

This combination solves only the latter acceptance test. The substituted first control supports 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. It does not implement organize nonsecret configuration keys by environment and application namespace.

C:

CloudFormation exports and Fn::ImportValue share supported values between stacks within the same account and Region; that alternative supports the ability to reference a networking stack's output from an application stack in the same Region, but it is not the requested second outcome (avoid hardcoding a sensitive input in reusable infrastructure templates); even though the first half addresses organize nonsecret configuration keys by environment and application namespace, this pair is incomplete.

D:

The pair changes the problem instead of completing it. One option addresses prevent a persistent data resource from being removed when its stack is deleted; the other addresses describe serverless functions and their event sources concisely in an IaC template. The release, however, needs to organize nonsecret configuration keys by environment and application namespace as well as avoid hardcoding a sensitive input in reusable infrastructure templates.

Question 788

A production ticket contains this symptom: A central audit bucket accepts requests that do not require TLS. The desired behavior is to prevent log upload and retrieval over unencrypted transport. What should be fixed?

  1. Use an S3 bucket policy that denies insecure transport for organization logs
  2. Create an organization-wide CloudTrail trail to a protected logging account
  3. Enable AWS Config aggregators across organization accounts and Regions
  4. Configure organization-wide GuardDuty management through a delegated security account
  5. Use delegated administrator registration for supported organization-wide services

Explanation

Correct Answer

A:

A bucket policy can deny requests when the aws:SecureTransport context indicates an insecure connection; it restores the ability to prevent log upload and retrieval over unencrypted transport, provided the implementation also observes that the control must operate at the resource boundary for all requesting principals.

Incorrect Answers

B:

An organization trail covers member accounts with centralized delivery and separately controlled storage; this is a reasonable option when the requirement is to collect supported account activity centrally across an AWS organization, but it operates at a different workflow boundary from the stated need to prevent log upload and retrieval over unencrypted transport.

C:

Choosing this would aim to view resource compliance and configuration state from a central operations account instead of prevent log upload and retrieval over unencrypted transport. A configuration aggregator consolidates supported AWS Config configuration and compliance data; it cannot replace the mechanism specified by the incident evidence.

D:

Although GuardDuty organization administration can automatically manage protection enrollment across eligible members, the scenario does not ask for enable consistent threat detection coverage for member accounts. It requires the ability to prevent log upload and retrieval over unencrypted transport, which is a separate responsibility.

E:

Delegated administration allows a registered member account to manage eligible service functions organization-wide; this can help teams let a security account administer a supported service for organization members, but the reported workflow needs to prevent log upload and retrieval over unencrypted transport. It does not perform that required function.

Question 789

A production-readiness assessment calls out two missing capabilities: allow a Lambda handler to read a specific secret and publish required logs and give an EC2 application temporary credentials to call an AWS API. Choose the AWS implementation that explicitly addresses both.

  1. Use a resource-based policy on an S3 bucket for a cross-account principal; attach an instance profile with a scoped IAM role to EC2
  2. Use a Lambda execution role scoped to required AWS APIs; attach an instance profile with a scoped IAM role to EC2
  3. Use a Lambda execution role scoped to required AWS APIs; use EKS IAM Roles for Service Accounts or supported EKS Pod Identity
  4. Use IAM ABAC conditions based on principal and resource tags; use IAM Identity Center with an external identity provider federation
  5. Use a Lambda execution role scoped to required AWS APIs; use an IAM role with STS temporary credentials for cross-account operations

Explanation

Correct Answer

B:

For the requirement to allow a Lambda handler to read a specific secret and publish required logs, Lambda execution roles grant the AWS API permissions used by the running function. For the requirement to give an EC2 application temporary credentials to call an AWS API, an EC2 instance profile provides temporary role credentials to applications running on the instance. Both mechanisms are necessary; implementing only the first would leave the second unsatisfied.

Incorrect Answers

A:

An S3 bucket policy can grant a specified external principal access to selected object ARNs. That is intended to authorize a designated external role to access a narrow set of objects, not to allow a Lambda handler to read a specific secret and publish required logs; 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.

C:

Combining a suitable first control with this second one misses the secondary acceptance criterion; EKS workload identity mechanisms associate an AWS IAM role with a Kubernetes service account or pod; it helps grant a Kubernetes workload AWS permissions without using the node IAM role rather than give an EC2 application temporary credentials to call an AWS API.

D:

Neither control directly supplies both requested behaviors. Attribute-based access control evaluates policy conditions using attributes such as tags; IAM Identity Center integrates with supported identity providers for federated workforce access. Those mechanisms address different objectives. The specified capabilities are to allow a Lambda handler to read a specific secret and publish required logs and to give an EC2 application temporary credentials to call an AWS API.

E:

STS AssumeRole issues expiring credentials for a trusted role rather than persistent user secrets; that alternative supports the ability to avoid distributing durable access keys for central administration in member accounts, but it is not the requested second outcome (give an EC2 application temporary credentials to call an AWS API). Even though the first half addresses allow a Lambda handler to read a specific secret and publish required logs, this pair is incomplete.

Question 790

The architecture record specifies: Return a nonzero exit code when a blocking automated test fails. To support the goal to stop a pipeline build action when the test runner detects a regression, which consideration should the engineer validate?

  1. User-journey availability should be measured beyond instance resource metrics
  2. The matrix results must be tied to one reviewable build request
  3. The report file path and test report format must match buildspec configuration
  4. Fast deterministic tests must block downstream promotion when they fail
  5. Later deployment stages must not run after a failing quality gate

Explanation

Correct Answer

E:

Later deployment stages must not run after a failing quality gate. Without this, choosing the named service is not enough to produce the promised outcome; CodeBuild determines command success from process exit status unless buildspec failure handling overrides it.

Incorrect Answers

A:

The proposed condition makes sense in an implementation designed to exercise a critical HTTP journey regularly with externally visible outcomes; it concerns CloudWatch Synthetics canaries run scheduled scripts against endpoints and report pass or failure measurements, whereas this question tests the prerequisite of the named control; the specified requirement instead is to stop a pipeline build action when the test runner detects a regression.

B:

This proposed constraint belongs to a separate objective: the matrix results must be tied to one reviewable build request; the corresponding goal is to run compatible test variations in parallel and consolidate their outcomes, not the selected architecture's goal to stop a pipeline build action when the test runner detects a regression.

C:

This condition governs the different mechanism used to expose test-suite pass rates and failing cases for each build execution; CodeBuild reads supported report files from configured paths and associates results with report groups; for the selected control, the relevant boundary is instead that later deployment stages must not run after a failing quality gate.

D:

Unit tests in an early build action reduce feedback latency and stop faulty revisions before expensive stages; its own dependency is that fast deterministic tests must block downstream promotion when they fail. Those details concern the separate objective of being able to reject code-level regressions rapidly before creating production artifacts, rather than to the named control required to stop a pipeline build action when the test runner detects a regression.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests