Question 1

An engineer is addressing a two-part observability requirement: exclude backend nodes that cannot serve required application requests, without losing the ability to reflect the combined state of several application dependencies in DNS failover decisions. Which set of actions is suitable?

  1. Use an ALB target group health check for backend service readiness; use Route 53 calculated health checks for composite regional availability
  2. Use CloudWatch alarm actions to invoke supported Auto Scaling policies; use Route 53 calculated health checks for composite regional availability
  3. Use an ALB target group health check for backend service readiness; use CloudWatch Contributor Insights for supported high-cardinality usage analysis
  4. Use an ALB target group health check for backend service readiness; use EventBridge input transformation before notifying an operations target
  5. Configure CloudWatch alarm notifications through an SNS topic; attach automatic AWS Config remediation to an SSM Automation document

Explanation

Correct Answer

A:

The first outcome depends on the behavior that ALB target groups mark eligible targets unhealthy and exclude them from normal request routing. Separately, calculated Route 53 health checks can evaluate a configured number of healthy child checks. Together these meet the two requested outcomes, with the operational limits that health checks should use an endpoint and thresholds suited to the backend and availability policy must combine relevant child checks rather than a single TCP probe.

Incorrect Answers

B:

Step or simple scaling policies can be driven by CloudWatch alarm transitions. That is intended to adjust worker fleet capacity when a workload metric crosses a defined level, not to exclude backend nodes that cannot serve required application requests. The second half can meet the requirement to reflect the combined state of several application dependencies in DNS failover decisions, but the first is still missing.

C:

Contributor Insights rules analyze supported log or metric inputs to identify top contributing entities; that alternative supports the ability to identify the top contributors to a metric or structured log workload, but it is not the requested second outcome (reflect the combined state of several application dependencies in DNS failover decisions). Even though the first half addresses exclude backend nodes that cannot serve required application requests, this pair is incomplete.

D:

Combining a suitable first control with this second one misses the secondary acceptance criterion; EventBridge input transformers construct custom target payloads from matched event fields; it helps send only relevant event details to responders rather than an entire event payload rather than reflect the combined state of several application dependencies in DNS failover decisions.

E:

Neither control directly supplies both requested behaviors. CloudWatch alarms can publish state-change notifications to SNS topics and subscribed endpoints; config automatic remediation can invoke Systems Manager Automation for noncompliant resources. Those mechanisms address different objectives. The specified capabilities are to exclude backend nodes that cannot serve required application requests and to reflect the combined state of several application dependencies in DNS failover decisions.

Question 2

An engineer is addressing a two-part delivery requirement: verify business workflows on a deployed candidate before production promotion, without losing the ability to reject packages containing prohibited vulnerable dependencies before production. Which set of actions is suitable?

  1. Execute integration tests against an isolated ephemeral test stack; configure CodeBuild test reports with the supported report-file format
  2. Use CodeBuild batch builds for a supported test matrix; run dependency and container image scanning before artifact promotion
  3. Run acceptance tests after staging deployment and before approval; run dependency and container image scanning before artifact promotion
  4. Run acceptance tests after staging deployment and before approval; use a CodePipeline test action after deployment to staging
  5. Run acceptance tests after staging deployment and before approval; use canary synthetic checks against a published test endpoint

Explanation

Correct Answer

C:

Acceptance checks validate end-to-end expected behavior and can fail the pipeline before production; an automated scanning gate blocks releases when risk findings breach the defined security policy. The first control satisfies the need to verify business workflows on a deployed candidate before production promotion; the second addresses the need to reject packages containing prohibited vulnerable dependencies before production. Release acceptance criteria need a blocking quality gate on a live candidate; security scanning must evaluate the built artifact or dependency manifest prior to deployment.

Incorrect Answers

A:

These are legitimate AWS controls for different outcomes: an integration environment exercises actual API and infrastructure interactions that unit mocks do not cover, whereas CodeBuild reads supported report files from configured paths and associates results with report groups. The problem instead requires the ability to verify business workflows on a deployed candidate before production promotion and to reject packages containing prohibited vulnerable dependencies before production.

B:

This combination solves only the latter acceptance test. The substituted first control supports run compatible test variations in parallel and consolidate their outcomes: batch builds support coordinated multiple build configurations and associated aggregate status; it does not implement verify business workflows on a deployed candidate before production promotion.

D:

A pipeline test action turns post-deployment health verification into an enforceable promotion gate; that alternative supports the ability to fail a promotion flow based on smoke-test results for the deployed service, but it is not the requested second outcome (reject packages containing prohibited vulnerable dependencies before production). Even though the first half addresses verify business workflows on a deployed candidate before production promotion, this pair is incomplete.

E:

Combining a suitable first control with this second one misses the secondary acceptance criterion; CloudWatch Synthetics canaries run scheduled scripts against endpoints and report pass or failure measurements; it helps exercise a critical HTTP journey regularly with externally visible outcomes rather than reject packages containing prohibited vulnerable dependencies before production.

Question 3

The next production deployment needs 3 specific capabilities: (1) find roles or permissions that have not been used within the configured scope; (2) retain management API events from all AWS Organizations member accounts; (3) alert when repeated access-denied or suspicious authentication events enter central logs. Select the THREE most directly applicable actions. Choose THREE.

  1. Use CloudFormation drift detection to spot out-of-band stack edits
  2. Use IAM Access Analyzer unused-access analysis for stale privileges
  3. Use CloudWatch metric filters with alarms on sensitive security log patterns
  4. Run SQL queries against existing CloudTrail Lake event data stores
  5. Use VPC Flow Logs to investigate rejected network flows
  6. Create an organization CloudTrail trail to a separately secured S3 logging bucket

Explanation

Correct Answers

B:

Unused access findings help identify unused IAM roles or unused permissions for least-privilege review; this fulfills the stated requirement to find roles or permissions that have not been used within the configured scope; the operational limitation is that review should use recorded access evidence and defined analysis scope.

C:

The corresponding obligation is 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; that behavior is the reason this action belongs in the selected answer set.

F:

An organization trail delivers supported account activity events centrally for member accounts; this fulfills the stated requirement to retain management API events from all AWS Organizations member accounts. The operational limitation is that audit log retention must be governed by an account separate from routine workload admins.

Incorrect Answers

A:

Drift detection checks supported stack resource configuration against the declared IaC state; if the requirement were to identify resource properties that no longer match the approved template, that would matter; the requested outcomes are separate from the one this option addresses.

D:

It supports a separate administrative task, namely to query retained CloudTrail events without first building a custom S3 query pipeline; CloudTrail Lake ingests supported events into queryable event data stores; the prompt's required outcomes are not achieved by substituting this control.

E:

VPC Flow Logs record accepted and rejected flow metadata without capturing full packet payloads; if the requirement were to identify source, destination, and action details for a suspected network denial, that would matter; the requested outcomes are separate from the one this option addresses.

Question 4

The cloud operations group proposes this implementation: Use pull request events to start a pre-merge validation build. Its intended result is to evaluate a proposed change before it merges into a protected branch. Which implementation consideration is most specific to that choice?

  1. The report file path and test report format must match buildspec configuration
  2. The test environment must be disposable and separated from production state
  3. Validation must execute for proposed revisions and feed status to the review process
  4. Release acceptance criteria need a blocking quality gate on a live candidate

Explanation

Correct Answer

C:

Validation must execute for proposed revisions and feed status to the review process. Without this, choosing the named service is not enough to produce the promised outcome; PR-triggered builds can test changes earlier than post-merge releases and support branch protection workflows.

Incorrect Answers

A:

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 validation must execute for proposed revisions and feed status to the review process.

B:

An integration environment exercises actual API and infrastructure interactions that unit mocks do not cover; its own dependency is that the test environment must be disposable and separated from production state. Those details concern the separate objective of being able to validate service-to-service interactions against real deployed dependencies before approval, rather than to the named control required to evaluate a proposed change before it merges into a protected branch.

D:

This proposed constraint belongs to a separate objective: release acceptance criteria need a blocking quality gate on a live candidate; the corresponding goal is to verify business workflows on a deployed candidate before production promotion, not the selected architecture's goal to evaluate a proposed change before it merges into a protected branch.

Question 5

A technical change review names the selected control as follows: Configure an EventBridge rule for an event-driven pipeline execution. To trigger a deployment workflow when a matching AWS service event occurs, which constraint must be addressed for this design?

  1. Artifact storage must be available in every Region where pipeline actions require it
  2. A release operator must choose from controlled parameters without altering source files
  3. The process needs persisted execution state and branching outcomes
  4. Failure must prevent later actions rather than merely send a notification
  5. Only the matching event type should start the automation without polling

Explanation

Correct Answer

E:

The requested behavior is to trigger a deployment workflow when a matching AWS service event occurs, and only the matching event type should start the automation without polling. The underlying AWS behavior is that EventBridge event patterns select the desired events and route them to a supported automation target.

Incorrect Answers

A:

Cross-Region CodePipeline actions need an artifact store in each relevant action Region. Its own dependency is that artifact storage must be available in every Region where pipeline actions require it; those details concern the separate objective of being able to run a deployment action in a different AWS Region from its pipeline, rather than to the named control required to trigger a deployment workflow when a matching AWS service event occurs.

B:

The proposed condition makes sense in an implementation designed to pass an approved environment-specific value into a reusable pipeline action. It concerns pipeline variables expose execution-specific values to actions that support variable substitution, whereas this question tests the prerequisite of the named control.

C:

This proposed constraint belongs to a separate objective: the process needs persisted execution state and branching outcomes. The corresponding goal is to orchestrate multiple release checks with retries, branches, and explicit failure states, not the selected architecture's goal to trigger a deployment workflow when a matching AWS service event occurs.

D:

This condition governs the different mechanism used to stop an unsafe revision before it can reach the deployment stage. A failed test action makes the stage fail and prevents subsequent deployment stages from proceeding; for the selected control, the relevant boundary is instead that only the matching event type should start the automation without polling.

Question 6

After a configuration change, the infrastructure automation group sees this issue: A queue consumer Lambda does nothing except filter messages and forward them elsewhere. What best restores the ability to connect a managed stream or queue to a target with transformation and optional enrichment?

  1. Use an EventBridge Scheduler one-time schedule for delayed remediation
  2. Use AWS Health events through EventBridge for account-impact notifications
  3. Use an EventBridge organization event bus with cross-account permissions
  4. Use EventBridge Pipes to filter and enrich events from a supported source

Explanation

Correct Answer

D:

EventBridge Pipes connects supported sources to targets with optional filter and enrichment steps; it enables the necessary capability to connect a managed stream or queue to a target with transformation and optional enrichment rather than only providing an adjacent operational control. The managed route must support the source, filtering, and target integration.

Incorrect Answers

A:

EventBridge Scheduler can invoke supported targets at specified one-time or recurring times. This can help teams invoke a follow-up check at a precise future time after an initial event, but the reported workflow needs to connect a managed stream or queue to a target with transformation and optional enrichment. It does not perform that required function.

B:

That service solves a different operating problem: the need to initiate targeted response to an AWS-managed service event affecting the account. Its behavior is that supported AWS Health events appear on EventBridge and can trigger notification or workflows. The requested outcome remains connect a managed stream or queue to a target with transformation and optional enrichment.

C:

The choice is useful when engineers need to 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 would not establish the control needed to connect a managed stream or queue to a target with transformation and optional enrichment.

Question 7

During root-cause analysis, the team identifies the following: The service has a valid alarm but no subscribed responders ever receive an incident alert. To notify multiple responder endpoints when a service metric breaches its threshold, what should be configured?

  1. Configure CloudWatch alarm notifications through an SNS topic
  2. Use CloudWatch alarm actions to invoke supported Auto Scaling policies
  3. Use a CloudWatch alarm action for supported EC2 automatic recovery
  4. Use EventBridge rules to route AWS Health account events to response automation

Explanation

Correct Answer

A:

CloudWatch alarms can publish state-change notifications to SNS topics and subscribed endpoints; that directly addresses the observed failure in the scenario. The configuration still has to respect this constraint: recipients need subscriptions independent of the monitored resource.

Incorrect Answers

B:

The choice is useful when engineers need to adjust worker fleet capacity when a workload metric crosses a defined level: step or simple scaling policies can be driven by CloudWatch alarm transitions; it would not establish the control needed to notify multiple responder endpoints when a service metric breaches its threshold.

C:

Supported CloudWatch alarm actions can request EC2 instance recovery for qualifying status-check failures; this is a reasonable option when the requirement is to recover an eligible impaired instance when a system-status check indicates host failure, but it operates at a different workflow boundary from the stated need to notify multiple responder endpoints when a service metric breaches its threshold.

D:

Choosing this would aim to notify the operations account when an AWS service issue affects the workload instead of notify multiple responder endpoints when a service metric breaches its threshold; EventBridge receives supported AWS Health events and routes matching events to configured targets; it cannot replace the mechanism specified by the incident evidence.

Question 8

A team is designing a reusable incident-response pattern. It must trace which principal and resource action caused a failed automation request; it must also identify the underlying resource error that triggered a stack rollback. Which paired configuration is appropriate?

  1. Use CloudTrail events to identify the caller behind an AccessDenied API action; inspect CloudFormation stack events for the first failed resource
  2. Use CloudTrail events to identify the caller behind an AccessDenied API action; inspect DynamoDB throttling and consumed capacity metrics
  3. Check Auto Scaling scaling activities and launch failures; inspect CloudFormation stack events for the first failed resource
  4. Check ALB target-group health reason codes and the configured health path; inspect EKS pod events and describe output for Pending pods

Explanation

Correct Answer

A:

CloudTrail supported management events can show the assumed role, action, and error context; CloudFormation stack events show per-resource transitions and service error messages. The first control satisfies the need to trace which principal and resource action caused a failed automation request; the second addresses the need to identify the underlying resource error that triggered a stack rollback. The audit must distinguish caller identity, API action, and request context; the first CREATE_FAILED or UPDATE_FAILED event is more informative than later rollback messages.

Incorrect Answers

B:

Combining a suitable first control with this second one misses the secondary acceptance criterion; DynamoDB metrics identify throttled reads and writes and provisioned or consumed capacity behavior; it helps determine whether database request limits cause application retry storms 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 is intended to discover why an EC2 fleet fails to add replacement capacity, not to trace which principal and resource action caused a failed automation request. The second half can meet the requirement to identify the underlying resource error that triggered a stack rollback, but the first is still missing.

D:

These are legitimate AWS controls for different outcomes: ALB target-group status reason codes and health settings show why endpoints fail checks, whereas kubernetes scheduling events explain why pending pods cannot be assigned to nodes. The problem instead requires the ability to trace which principal and resource action caused a failed automation request and to identify the underlying resource error that triggered a stack rollback.

Question 9

The acceptance criteria require the site reliability team to start an incident workflow after a restricted AWS configuration API call. Rules must filter on the desired API event fields and target an authorized workflow. Which option is the best fit?

  1. Use EventBridge Pipes to filter and enrich events from a supported source
  2. Use an EventBridge rule matching a specific CloudTrail API event pattern
  3. Use an EventBridge Scheduler one-time schedule for delayed remediation
  4. Use an EventBridge organization event bus with cross-account permissions
  5. Use EventBridge archive and replay for selected critical events

Explanation

Correct Answer

B:

EventBridge matches supported API activity events and invokes selected event targets. In this case the control is appropriate because it supports start an incident workflow after a restricted AWS configuration API call. Rules must filter on the desired API event fields and target an authorized workflow.

Incorrect Answers

A:

EventBridge Pipes connects supported sources to targets with optional filter and enrichment steps; this is a reasonable option when the requirement is to connect a managed stream or queue to a target with transformation and optional enrichment, but it operates at a different workflow boundary from the stated need to start an incident workflow after a restricted AWS configuration API call.

C:

Although EventBridge Scheduler can invoke supported targets at specified one-time or recurring times, the scenario does not ask for invoke a follow-up check at a precise future time after an initial event. It requires the ability to start an incident workflow after a restricted AWS configuration API call, which is a separate responsibility.

D:

EventBridge event bus resource policies control cross-account event ingestion and routing. This can help teams accept operational events from multiple workload accounts into a central responder account, but the reported workflow needs to start an incident workflow after a restricted AWS configuration API call. It does not perform that required function.

E:

That service solves a different operating problem: the need to reprocess a historical event period after a corrected incident workflow is deployed; its behavior is that EventBridge archives can retain selected events for later replay to an event bus; the requested outcome remains start an incident workflow after a restricted AWS configuration API call.

Question 10

An automated check detects: Operators require an emergency shell but the security team forbids inbound bastion SSH. Which remediation directly supports the requirement to troubleshoot managed EC2 hosts without opening SSH ports or distributing key pairs?

  1. Use State Manager to enforce a recurring configuration association
  2. Attach an SSM Automation remediation action to an AWS Config rule
  3. Use Systems Manager Run Command for scoped remote command execution
  4. Use Systems Manager Distributor for controlled software-package deployment
  5. Use Systems Manager Session Manager for audited interactive access

Explanation

Correct Answer

E:

Session Manager provides managed interactive sessions through Systems Manager connectivity and IAM controls; it enables the necessary capability to troubleshoot managed EC2 hosts without opening SSH ports or distributing key pairs rather than only providing an adjacent operational control. Connection authorization should be IAM-based and session activity governed.

Incorrect Answers

A:

Choosing this would aim to reapply a required host configuration whenever nodes drift instead of troubleshoot managed EC2 hosts without opening SSH ports or distributing key pairs. State Manager associations run specified documents against targets according to defined schedules; it cannot replace the mechanism specified by the incident evidence.

B:

Although config remediation configurations can invoke Systems Manager Automation documents for matching findings, the scenario does not ask for remediate eligible noncompliant resources using a controlled runbook. It requires the ability to troubleshoot managed EC2 hosts without opening SSH ports or distributing key pairs, which is a separate responsibility.

C:

Run Command dispatches supported command documents to selected managed nodes and records execution results; this can help teams run a one-time script against a tagged fleet without SSH access, but the reported workflow needs to troubleshoot managed EC2 hosts without opening SSH ports or distributing key pairs. It does not perform that required function.

D:

That service solves a different operating problem: the need to publish an internal agent package and distribute it to managed nodes. Its behavior is that distributor manages software packages that can be installed or updated through Systems Manager workflows. The requested outcome remains troubleshoot managed EC2 hosts without opening SSH ports or distributing key pairs.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests