Question 820

A production ticket contains this symptom: An on-premises automation process carries a permanent AWS access key. The desired behavior is to provide temporary AWS credentials to on-premises workloads without storing IAM user keys. What should be fixed?

  1. Use IAM Roles Anywhere for eligible external workloads with X.509 identities
  2. Use a Lambda execution role scoped to required AWS APIs
  3. Use EKS IAM Roles for Service Accounts or supported EKS Pod Identity
  4. Use an IAM policy condition on aws:SourceVpce for eligible AWS service requests

Explanation

Correct Answer

A:

IAM Roles Anywhere uses trusted X.509 certificates to obtain temporary role credentials for external workloads; in this case the control is appropriate because it supports provide temporary AWS credentials to on-premises workloads without storing IAM user keys. Certificate trust anchors and profile scopes must be explicitly managed.

Incorrect Answers

B:

Although Lambda execution roles grant the AWS API permissions used by the running function, the scenario does not ask for allow a Lambda handler to read a specific secret and publish required logs. It requires the ability to provide temporary AWS credentials to on-premises workloads without storing IAM user keys, which is a separate responsibility.

C:

EKS workload identity mechanisms associate an AWS IAM role with a Kubernetes service account or pod; this can help teams grant a Kubernetes workload AWS permissions without using the node IAM role, but the reported workflow needs to provide temporary AWS credentials to on-premises workloads without storing IAM user keys. It does not perform that required function.

D:

That service solves a different operating problem: the need to deny access to a sensitive resource unless requests use an approved VPC endpoint; its behavior is that the source VPC endpoint condition can constrain eligible requests to a designated private endpoint path; the requested outcome remains provide temporary AWS credentials to on-premises workloads without storing IAM user keys.

Question 821

The incident-response team's change record lists two distinct deliverables: recheck an AWS service state after provisioning without busy-waiting and send only security-relevant messages to the security response queue. Which combination covers both deliverables?

  1. Use Step Functions wait and retry policies for delayed dependent checks; use SNS with appropriate subscription filter policies
  2. Use an EventBridge organization event bus with cross-account permissions; use SNS with appropriate subscription filter policies
  3. Use Step Functions wait and retry policies for delayed dependent checks; use EventBridge rule retry settings and an SQS dead-letter queue for failed targets
  4. Use Step Functions Choice states for severity-dependent incident routing; use SQS visibility timeouts aligned to consumer processing

Explanation

Correct Answer

A:

The first outcome depends on the behavior that Step Functions supports Wait states and task retry policies outside a single Lambda runtime. Separately, SNS subscription filters select which published messages each subscriber receives. Together these meet the two requested outcomes, with the operational limits that the workflow needs durable waits and controlled retry intervals and message attributes or supported bodies should drive routing to subscribers.

Incorrect Answers

B:

This combination solves only the latter acceptance test. The substituted first control supports accept operational events from multiple workload accounts into a central responder account: EventBridge event bus resource policies control cross-account event ingestion and routing; it does not implement recheck an AWS service state after provisioning without busy-waiting.

C:

The first half is appropriate: Step Functions supports Wait states and task retry policies outside a single Lambda runtime. However, EventBridge rules can use retry policies and DLQ targets to preserve failed deliveries; that serves a different objective (retain failed event delivery attempts for later investigation) and leaves the explicit need to send only security-relevant messages to the security response queue unmet.

D:

These are legitimate AWS controls for different outcomes: choice states route state machine execution according to supported data conditions, whereas SQS visibility timeouts temporarily hide received messages until deletion or timeout expiration. The problem instead requires the ability to recheck an AWS service state after provisioning without busy-waiting and to send only security-relevant messages to the security response queue.

Question 822

An incident record says: An investigation requires scanning many months of stored audit files in the logging bucket. To restore the capability to investigate historical audit events across a large retained log archive, which change addresses the root cause?

  1. Use Athena to query partitioned CloudTrail records stored in S3
  2. Use AWS Config resource timelines to inspect configuration history
  3. Enable Amazon Inspector findings for supported compute workloads
  4. Use CloudWatch Synthetics canaries to validate a customer workflow

Explanation

Correct Answer

A:

Athena can query compatible S3-based log data using SQL and suitable tables or partitions; that directly addresses the observed failure in the scenario. The configuration still has to respect this constraint: the analysis should avoid downloading every object to a workstation.

Incorrect Answers

B:

That service solves a different operating problem: the need to find when an infrastructure resource drifted from its previous configuration. Its behavior is that AWS Config configuration history tracks supported resource state changes over time. The requested outcome remains investigate historical audit events across a large retained log archive.

C:

The choice is useful when engineers need to identify software package vulnerabilities affecting deployed EC2 or container workloads: inspector assesses supported workloads and produces vulnerability findings with affected-resource context. It would not establish the control needed to investigate historical audit events across a large retained log archive.

D:

Synthetics canaries execute scripts and publish availability and step-level results. This is a reasonable option when the requirement is to detect external failures in a multi-step website journey before users report them, but it operates at a different workflow boundary from the stated need to investigate historical audit events across a large retained log archive.

Question 823

A release readiness review identifies 2 distinct controls to implement: (1) explain a brief application database interruption after a Multi-AZ failover; (2) diagnose artifact decryption failure after S3 object access succeeds. Select the TWO actions that jointly cover them. Choose TWO.

  1. Inspect KMS key policies and grants for cross-account decrypt failures
  2. Inspect RDS failover events and connection retry handling
  3. Review CodeDeploy lifecycle hook logs and agent logs on target EC2 instances
  4. Inspect EKS pod events and describe output for Pending pods
  5. Review CodeBuild CloudWatch logs and build phase status

Explanation

Correct Answers

A:

This covers the specific result to diagnose artifact decryption failure after S3 object access succeeds: customer managed KMS key policies and principal permissions govern who may decrypt encrypted artifacts. Decryption authorization must be separate from S3 GetObject permission.

B:

RDS event timelines and application connection behavior help diagnose managed failover recovery; this fulfills the stated requirement to explain a brief application database interruption after a Multi-AZ failover. The operational limitation is that the app should re-resolve endpoints and retry stale connections appropriately.

Incorrect Answers

C:

This mechanism supports the ability to diagnose why an instance deployment fails during a lifecycle hook: CodeDeploy agent and deployment logs record instance-level lifecycle command behavior. It would not satisfy a different obligation just by appearing in the same workflow.

D:

It supports a separate administrative task, namely to diagnose Kubernetes scheduling constraints rather than application code failure. Kubernetes scheduling events explain why pending pods cannot be assigned to nodes. The prompt's required outcomes are not achieved by substituting this control.

E:

CodeBuild build logs and phase contexts expose command errors and environment failures. If the requirement were to identify the first shell command or dependency failure in a failing build, that would matter. The requested outcomes are separate from the one this option addresses.

Question 824

A security change request has linked acceptance tests: the system must provide centrally managed access to many AWS accounts for federated employees, and it must centralize workforce lifecycle while retaining the corporate identity provider. Which two controls should the engineers combine?

  1. Use IAM roles and temporary credentials for CodeBuild service integration; use an Organizations service control policy as an account-wide permission guardrail
  2. Assign AWS IAM Identity Center permission sets to workforce groups; use IAM Roles Anywhere for eligible external workloads with X.509 identities
  3. Enable Secrets Manager rotation with a supported rotation strategy; use IAM Identity Center with an external identity provider federation
  4. Assign AWS IAM Identity Center permission sets to workforce groups; use IAM Identity Center with an external identity provider federation

Explanation

Correct Answer

D:

IAM Identity Center provisions account roles through permission-set assignments to users and groups; this handles the first acceptance condition, subject to the boundary that access assignments should be revoked centrally when an employee changes teams. The remaining condition is handled separately: IAM Identity Center integrates with supported identity providers for federated workforce access, with corporate authentication and AWS account assignments must work together.

Incorrect Answers

A:

These are legitimate AWS controls for different outcomes: CodeBuild obtains temporary service-role credentials to call authorized AWS APIs during builds, whereas SCPs set maximum available permissions for member-account principals but do not themselves allow actions. The problem instead requires the ability to provide centrally managed access to many AWS accounts for federated employees and to centralize workforce lifecycle while retaining the corporate identity provider.

B:

Combining a suitable first control with this second one misses the secondary acceptance criterion; IAM Roles Anywhere uses trusted X.509 certificates to obtain temporary role credentials for external workloads; it helps provide temporary AWS credentials to on-premises workloads without storing IAM user keys rather than centralize workforce lifecycle while retaining the corporate identity provider.

C:

Secrets Manager rotation workflows update stored credentials and, with integration, the underlying service credential; that is intended to rotate an application database password without manual quarterly updates, not to provide centrally managed access to many AWS accounts for federated employees. The second half can meet the requirement to centralize workforce lifecycle while retaining the corporate identity provider, but the first is still missing.

Question 825

A new AWS operations standard requires the ability to correlate requests across independent container services in a central log search and emit high-cardinality application measurements together with diagnostic context in the same operating environment. Which proposed pair delivers both?

  1. Publish application logs in structured JSON with stable correlation identifiers; use CloudWatch Logs Insights for interactive log analysis
  2. Configure CloudWatch Logs subscription filters to stream events to an eligible destination; create CloudWatch metric streams to Amazon Data Firehose
  3. Use an AWS Config aggregator for resource-compliance reporting; use CloudWatch Embedded Metric Format in structured JSON logs
  4. Publish application logs in structured JSON with stable correlation identifiers; use CloudWatch Embedded Metric Format in structured JSON logs

Explanation

Correct Answer

D:

Structured log fields and propagated request IDs enable targeted multi-service incident investigation; embedded Metric Format embeds metric definitions in structured log events for CloudWatch extraction. The first control satisfies the need to correlate requests across independent container services in a central log search; the second addresses the need to emit high-cardinality application measurements together with diagnostic context. A correlation ID must be propagated consistently through application calls; the log payload must follow the EMF schema for metrics extraction.

Incorrect Answers

A:

The first half is appropriate: Structured log fields and propagated request IDs enable targeted multi-service incident investigation. However, CloudWatch Logs Insights runs interactive queries over selected CloudWatch log groups; that serves a different objective (query structured error events across log groups during incidents) and leaves the explicit need to emit high-cardinality application measurements together with diagnostic context unmet.

B:

These are legitimate AWS controls for different outcomes: subscription filters route new matching CloudWatch Logs events to supported streaming or processing destinations, whereas CloudWatch metric streams continuously send metric data to supported delivery services. The problem instead requires the ability to correlate requests across independent container services in a central log search and to emit high-cardinality application measurements together with diagnostic context.

C:

This combination solves only the latter acceptance test. The substituted first control supports centralize supported configuration and compliance summaries from accounts and Regions: AWS Config aggregators consolidate resource configuration and compliance data from configured sources; it does not implement correlate requests across independent container services in a central log search.

Question 826

An engineer is addressing a two-part delivery requirement: copy versioned release bundles into a secondary Region's artifact bucket, without losing the ability to retain retrievable, auditable application bundles for instance deployments. Which set of actions is suitable?

  1. Configure ECR replication to authorized Regions or accounts; use EC2 Image Builder distribution settings for target Regions and accounts
  2. Enable S3 replication for approved build objects that must be available cross-Region; use EC2 Image Builder pipelines to produce hardened AMIs
  3. Enable S3 replication for approved build objects that must be available cross-Region; store deployment bundles in an encrypted versioned S3 artifact bucket
  4. Push container images to a private Amazon ECR repository; store deployment bundles in an encrypted versioned S3 artifact bucket

Explanation

Correct Answer

C:

S3 replication rules copy eligible objects between versioned buckets with suitable destination and permissions; S3 versioning preserves object versions; bucket encryption and scoped policies protect deployment bundles. The first control satisfies the need to copy versioned release bundles into a secondary Region's artifact bucket; the second addresses the need to retain retrievable, auditable application bundles for instance deployments. Destination encryption and replication roles must be configured for the target bucket; artifact durability and version history must support restoration of approved revisions.

Incorrect Answers

A:

The pair changes the problem instead of completing it. One option addresses preposition container images in the registries used by regional deployments; the other addresses publish a validated AMI to workloads outside its build account. The release, however, needs to copy versioned release bundles into a secondary Region's artifact bucket as well as retain retrievable, auditable application bundles for instance deployments.

B:

The first half is appropriate: S3 replication rules copy eligible objects between versioned buckets with suitable destination and permissions. However, image Builder creates, customizes, tests, and distributes repeatable machine images from recipes; that serves a different objective (automate repeatable golden-image builds with validation tests) and leaves the explicit need to retain retrievable, auditable application bundles for instance deployments unmet.

D:

This combination solves only the latter acceptance test. The substituted first control supports store deployable OCI images with private access for ECS workloads: Amazon ECR stores container image manifests and layers in repositories that can enforce permissions. It does not implement copy versioned release bundles into a secondary Region's artifact bucket.

Question 827

A team is designing a reusable observability pattern. It must centralize supported configuration and compliance summaries from accounts and Regions; it must also record relevant object-level API activity rather than only account management events. Which paired configuration is appropriate?

  1. Use an AWS Config aggregator for resource-compliance reporting; configure CloudWatch metric filters for structured application log events
  2. Encrypt long-term S3 log objects with a customer managed KMS key; install and configure the unified CloudWatch agent on EC2
  3. Use CloudWatch Logs Insights for interactive log analysis; configure CloudTrail data events for selected sensitive S3 buckets
  4. Use an AWS Config aggregator for resource-compliance reporting; configure CloudTrail data events for selected sensitive S3 buckets

Explanation

Correct Answer

D:

For the requirement to centralize supported configuration and compliance summaries from accounts and Regions, AWS Config aggregators consolidate resource configuration and compliance data from configured sources. For the requirement to 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. Both mechanisms are necessary; implementing only the first would leave the second unsatisfied.

Incorrect Answers

A:

Metric filters evaluate incoming CloudWatch Logs records and emit metrics for matching patterns; that alternative supports the ability to count specific error patterns without changing application metric instrumentation, but it is not the requested second outcome (record relevant object-level API activity rather than only account management events). Even though the first half addresses centralize supported configuration and compliance summaries from accounts and Regions, this pair is incomplete.

B:

The pair changes the problem instead of completing it. One option addresses protect exported audit objects with a controlled at-rest encryption boundary; the other addresses publish guest memory and disk-usage metrics not available from default EC2 metrics. The release, however, needs to centralize supported configuration and compliance summaries from accounts and Regions as well as record relevant object-level API activity rather than only account management events.

C:

CloudWatch Logs Insights runs interactive queries over selected CloudWatch log groups. That is intended to query structured error events across log groups during incidents, not to centralize supported configuration and compliance summaries from accounts and Regions. The second half can meet the requirement to record relevant object-level API activity rather than only account management events, but the first is still missing.

Question 828

A team is designing a reusable observability pattern. It must watch incoming application events while reproducing a production issue; it must also query structured error events across log groups during incidents. Which paired configuration is appropriate?

  1. Configure HTTPS or TLS for log delivery clients; configure CloudTrail data events for selected sensitive S3 buckets
  2. Use CloudWatch Logs Live Tail for short-lived streaming troubleshooting; configure CloudWatch Logs retention per application log group
  3. Install and configure the unified CloudWatch agent on EC2; use CloudWatch Logs Insights for interactive log analysis
  4. Use CloudWatch Logs Live Tail for short-lived streaming troubleshooting; use CloudWatch Logs Insights for interactive log analysis

Explanation

Correct Answer

D:

Live Tail streams recently ingested matching log events from supported log groups. This handles the first acceptance condition, subject to the boundary that the observation should focus on newly ingested log events in real time. The remaining condition is handled separately: CloudWatch Logs Insights runs interactive queries over selected CloudWatch log groups, with the response must support a query language over centrally stored log events.

Incorrect Answers

A:

Neither control directly supplies both requested behaviors. TLS protects log transport over supported network paths against plaintext interception; CloudTrail data events capture selected data-plane operations, such as S3 object API calls. Those mechanisms address different objectives. The specified capabilities are to watch incoming application events while reproducing a production issue and to query structured error events across log groups during incidents.

B:

Log-group retention settings automatically expire data beyond the configured retention interval; that alternative supports the ability to expire routine log events after the approved operating retention period, but it is not the requested second outcome (query structured error events across log groups during incidents). Even though the first half addresses watch incoming application events while reproducing a production issue, this pair is incomplete.

C:

This combination solves only the latter acceptance test. The substituted first control supports publish guest memory and disk-usage metrics not available from default EC2 metrics: the CloudWatch agent collects supported host metrics and logs beyond the standard EC2 metric set. It does not implement watch incoming application events while reproducing a production issue.

Question 829

Investigators observe: A single active Region fails and all customer transactions stop until manual environment activation. Engineers still need to minimize regional failover downtime for workloads designed to accept distributed traffic. Which corrective action is most appropriate?

  1. Use active-active multi-Region deployment with regional traffic steering
  2. Use Route 53 health-checked failover records for a pretested recovery endpoint
  3. Use RDS Multi-AZ automatic failover for a local Availability Zone failure
  4. Implement a pilot-light DR architecture in a secondary Region

Explanation

Correct Answer

A:

Active-active systems keep multiple regional stacks serving requests, reducing activation time at the cost of complexity; it enables the necessary capability to minimize regional failover downtime for workloads designed to accept distributed traffic rather than only providing an adjacent operational control. Both Regions must be able to serve production traffic and reconcile state correctly.

Incorrect Answers

B:

The choice is useful when engineers need to automate DNS-level cutover after the primary regional endpoint fails: failover routing can resolve the standby record based on health state, subject to client caching; it would not establish the control needed to minimize regional failover downtime for workloads designed to accept distributed traffic.

C:

RDS Multi-AZ can fail over to a maintained standby in another zone using the managed DB endpoint; this is a reasonable option when the requirement is to restore database service availability without promoting a cross-Region read replica, but it operates at a different workflow boundary from the stated need to minimize regional failover downtime for workloads designed to accept distributed traffic.

D:

Choosing this would aim to maintain replicated core data while minimizing always-on application compute cost instead of minimize regional failover downtime for workloads designed to accept distributed traffic. Pilot light maintains minimal core components ready and brings up remaining tiers during recovery; it cannot replace the mechanism specified by the incident evidence.

Question 830

The security engineering team reports the following failure: A cache node failure removes the only serving node and disrupts session lookups. Which action directly restores the requirement to improve availability of supported Redis or Valkey cache workloads?

  1. Use Aurora reader instances in separate Availability Zones
  2. Use ElastiCache replication groups spanning multiple Availability Zones
  3. Configure DynamoDB global tables for multi-Region active-active access
  4. Enable S3 Cross-Region Replication for selected versioned objects
  5. Use an RDS cross-Region read replica where the engine supports it

Explanation

Correct Answer

B:

To improve availability of supported Redis or Valkey cache workloads, the architecture relies on this AWS behavior: supported ElastiCache replication groups use replicas and automatic failover to recover from primary loss. The replication group must be configured for failover and multi-AZ placement.

Incorrect Answers

A:

The choice is useful when engineers need to improve Aurora read availability and provide additional managed failover candidates: aurora Replicas share cluster storage and can serve reads or be promoted during supported failovers; it would not establish the control needed to improve availability of supported Redis or Valkey cache workloads.

C:

Choosing this would aim to allow application writes in more than one AWS Region with replication instead of improve availability of supported Redis or Valkey cache workloads. DynamoDB global tables replicate data among participating Regions and support multi-Region writes; it cannot replace the mechanism specified by the incident evidence.

D:

Although S3 replication asynchronously copies eligible object versions to configured destination buckets, the scenario does not ask for retain replicated application objects in a separate disaster-recovery Region. It requires the ability to improve availability of supported Redis or Valkey cache workloads, which is a separate responsibility.

E:

Cross-Region read replicas copy database changes asynchronously and can be promoted under supported conditions; this can help teams provide off-Region read capacity and a possible promotion-based recovery option, but the reported workflow needs to improve availability of supported Redis or Valkey cache workloads. It does not perform that required function.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests