Question 180

An operations runbook has 2 acceptance criteria: (1) correlate requests across independent container services in a central log search; (2) protect exported audit objects with a controlled at-rest encryption boundary. Which TWO AWS actions satisfy these requirements? Choose TWO.

  1. Publish PutMetricData custom metrics with stable dimensions
  2. Use CloudWatch Embedded Metric Format in structured JSON logs
  3. Publish application logs in structured JSON with stable correlation identifiers
  4. Encrypt long-term S3 log objects with a customer managed KMS key
  5. Install and configure the unified CloudWatch agent on EC2

Explanation

Correct Answers

C:

Structured log fields and propagated request IDs enable targeted multi-service incident investigation; among the listed outcomes, it addresses correlate requests across independent container services in a central log search, rather than merely contributing a related signal or support step.

D:

This covers the specific result to protect exported audit objects with a controlled at-rest encryption boundary: S3 SSE-KMS encrypts objects using AWS KMS keys with separate data and key-access controls. Writers and readers must be authorized by both storage and KMS policies.

Incorrect Answers

A:

CloudWatch custom metrics accept namespace, metric name, dimensions, values, and timestamps for aggregation; that would be appropriate to track a domain-specific success count broken down by deployed service, but this is a different objective from the numbered obligations in the stem.

B:

This mechanism supports the ability to emit high-cardinality application measurements together with diagnostic context: embedded Metric Format embeds metric definitions in structured log events for CloudWatch extraction. It would not satisfy a different obligation just by appearing in the same workflow.

E:

The CloudWatch agent collects supported host metrics and logs beyond the standard EC2 metric set; that would be appropriate to publish guest memory and disk-usage metrics not available from default EC2 metrics, but this is a different objective from the numbered obligations in the stem.

Question 181

Two technical outcomes must be delivered together: reduce reliance on stored passwords for supported database connections and grant a Kubernetes workload AWS permissions without using the node IAM role. Which pair of controls is sufficient for the stated outcomes?

  1. Use IAM database authentication for a supported RDS engine and client; use EKS IAM Roles for Service Accounts or supported EKS Pod Identity
  2. Require MFA for privileged human sign-in and sensitive actions; use an Organizations service control policy as an account-wide permission guardrail
  3. Use IAM database authentication for a supported RDS engine and client; attach an instance profile with a scoped IAM role to EC2
  4. Use an ECS task IAM role rather than the ECS task execution role for application API access; use EKS IAM Roles for Service Accounts or supported EKS Pod Identity

Explanation

Correct Answer

A:

The first outcome depends on the behavior that IAM database authentication generates short-lived authentication tokens for supported RDS database engines. Separately, EKS workload identity mechanisms associate an AWS IAM role with a Kubernetes service account or pod. Together these meet the two requested outcomes, with the operational limits that the database and client must support IAM authentication and TLS requirements and per-workload identity should restrict permissions to the required AWS APIs.

Incorrect Answers

B:

Neither control directly supplies both requested behaviors. MFA adds a second factor and can be required through identity provider settings or IAM policy conditions; SCPs set maximum available permissions for member-account principals but do not themselves allow actions. Those mechanisms address different objectives. The specified capabilities are to reduce reliance on stored passwords for supported database connections and to grant a Kubernetes workload AWS permissions without using the node IAM role.

C:

An EC2 instance profile provides temporary role credentials to applications running on the instance; that alternative supports the ability to give an EC2 application temporary credentials to call an AWS API, but it is not the requested second outcome (grant a Kubernetes workload AWS permissions without using the node IAM role). Even though the first half addresses reduce reliance on stored passwords for supported database connections, this pair is incomplete.

D:

This combination solves only the latter acceptance test. The substituted first control supports authorize container business logic to read only its specific AWS resources: ECS task roles grant permissions to containers; execution roles support image pulls, logs, and task startup. It does not implement reduce reliance on stored passwords for supported database connections.

Question 182

The platform team's change record lists two distinct deliverables: reference a networking stack's output from an application stack in the same Region and identify unmanaged configuration changes made outside the IaC deployment. Which combination covers both deliverables?

  1. Define an AWS CDK construct for a reusable platform pattern; use AWS SAM transform resources for Lambda and API infrastructure
  2. Enable automatic deployment for an OU-targeted CloudFormation StackSet; enable CloudFormation drift detection on supported stack resources
  3. Use CloudFormation cross-stack exports and imports for shared output values; enable CloudFormation drift detection on supported stack resources
  4. Use CloudFormation cross-stack exports and imports for shared output values; use CloudFormation DeletionPolicy Retain on a stateful resource

Explanation

Correct Answer

C:

CloudFormation exports and Fn::ImportValue share supported values between stacks within the same account and Region; drift detection compares actual and expected configurations for supported resources and properties. The first control satisfies the need to reference a networking stack's output from an application stack in the same Region; the second addresses the need to identify unmanaged configuration changes made outside the IaC deployment. The consumer should use an explicit stack export instead of hard-coded values; the audit must compare actual supported resource properties with expected template state.

Incorrect Answers

A:

These are legitimate AWS controls for different outcomes: CDK constructs encapsulate infrastructure resources and synthesize AWS CloudFormation definitions, whereas AWS SAM expands serverless resource declarations into supported CloudFormation resources during transformation. The problem instead requires the ability to reference a networking stack's output from an application stack in the same Region and to identify unmanaged configuration changes made outside the IaC deployment.

B:

This combination solves only the latter acceptance test. The substituted first control supports apply baseline stacks when new accounts join a targeted organizational unit: stackSet automatic deployment creates or removes managed instances as accounts move into or out of targeted OUs. It does not implement reference a networking stack's output from an application stack in the same Region.

D:

The Retain policy keeps a supported resource after CloudFormation removes its stack ownership. That alternative supports the ability to prevent a persistent data resource from being removed when its stack is deleted, but it is not the requested second outcome (identify unmanaged configuration changes made outside the IaC deployment). Even though the first half addresses reference a networking stack's output from an application stack in the same Region, this pair is incomplete.

Question 183

An engineer will implement the following change: Configure Kubernetes Horizontal Pod Autoscaler with relevant metrics. Which operational boundary most directly applies to the intended outcome to scale pod replicas for demand without changing each pod's compute limits?

  1. The database storage ceiling must remain within budget and service limits
  2. Concurrency must be constrained at the function boundary
  3. Scaling should change replicas rather than only increase a container resource limit
  4. The solution must adjust RCU and WCU settings rather than compute nodes

Explanation

Correct Answer

C:

The requested behavior is to scale pod replicas for demand without changing each pod's compute limits, and scaling should change replicas rather than only increase a container resource limit. The underlying AWS behavior is that HPA adjusts the replica count of supported Kubernetes workloads from configured metrics.

Incorrect Answers

A:

This proposed constraint belongs to a separate objective: the database storage ceiling must remain within budget and service limits; the corresponding goal is to grow database storage as data expands without frequent manual storage modifications, not the selected architecture's goal to scale pod replicas for demand without changing each pod's compute limits.

B:

This condition governs the different mechanism used to cap parallel invocations before a sensitive backend is saturated; reserved concurrency caps simultaneously executing Lambda instances for the configured function; for the selected control, the relevant boundary is instead that scaling should change replicas rather than only increase a container resource limit.

D:

The proposed condition makes sense in an implementation designed to adapt provisioned throughput targets to changing demand; it concerns DynamoDB Application Auto Scaling can change provisioned read or write capacity based on utilization targets, whereas this question tests the prerequisite of the named control; the specified requirement instead is to scale pod replicas for demand without changing each pod's compute limits.

Question 184

An observability review exposes two requirements in the same release: detect insufficient or overloaded request capacity before clients fail broadly; in addition, raise an incident when a known error token appears repeatedly in application logs. Which paired set of AWS controls meets both requirements?

  1. Use CloudWatch alarm actions to invoke supported Auto Scaling policies; use a CloudWatch metric filter and alarm for unusual log events
  2. Use CloudWatch alarms on DynamoDB throttled requests; use a CloudWatch metric filter and alarm for unusual log events
  3. Use CloudWatch alarms on DynamoDB throttled requests; attach automatic AWS Config remediation to an SSM Automation document
  4. Use a CloudWatch alarm action for supported EC2 automatic recovery; configure CloudWatch alarm notifications through an SNS topic

Explanation

Correct Answer

B:

The first outcome depends on the behavior that DynamoDB CloudWatch metrics expose throttled requests and relevant read or write capacity behavior. Separately, a metric filter emits values from matching logs that a CloudWatch alarm can evaluate. Together these meet the two requested outcomes, with the operational limits that the alarm should use service-reported throttling data rather than EC2 CPU and the filter pattern must match the incoming event shape.

Incorrect Answers

A:

This combination solves only the latter acceptance test. The substituted first control supports 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 does not implement detect insufficient or overloaded request capacity before clients fail broadly.

C:

Config automatic remediation can invoke Systems Manager Automation for noncompliant resources. That alternative supports the ability to correct an eligible configuration violation soon after detection, but it is not the requested second outcome (raise an incident when a known error token appears repeatedly in application logs). Even though the first half addresses detect insufficient or overloaded request capacity before clients fail broadly, this pair is incomplete.

D:

The pair changes the problem instead of completing it. One option addresses recover an eligible impaired instance when a system-status check indicates host failure; the other addresses notify multiple responder endpoints when a service metric breaches its threshold. The release, however, needs to detect insufficient or overloaded request capacity before clients fail broadly as well as raise an incident when a known error token appears repeatedly in application logs.

Question 185

The next AWS platform release needs to provide off-Region read capacity and a possible promotion-based recovery option while also being able to keep cacheable web content reachable if the primary origin fails. Which pairing best supports that release?

  1. Use an RDS cross-Region read replica where the engine supports it; use CloudFront origins with origin failover for eligible requests
  2. Use an RDS cross-Region read replica where the engine supports it; use AWS Global Accelerator with healthy regional endpoint groups
  3. Deploy an Application Load Balancer across at least two Availability Zones; enable ALB target-group health checks with a representative health path
  4. Configure Route 53 failover records with appropriate health checks; use CloudFront origins with origin failover for eligible requests

Explanation

Correct Answer

A:

The first outcome depends on the behavior that cross-Region read replicas copy database changes asynchronously and can be promoted under supported conditions. Separately, CloudFront origin groups can switch eligible requests to a secondary origin on configured primary failures. Together these meet the two requested outcomes, with the operational limits that replication may be asynchronous and failover requires appropriate application orchestration and failover should work within the supported origin group request types and status codes.

Incorrect Answers

B:

Combining a suitable first control with this second one misses the secondary acceptance criterion; global Accelerator routes TCP or UDP traffic through static anycast addresses to healthy configured endpoints; it helps provide static anycast entry points and health-aware regional application routing rather than keep cacheable web content reachable if the primary origin fails.

C:

Neither control directly supplies both requested behaviors. An ALB can distribute requests to healthy registered targets across enabled Availability Zones; target group health checks determine which registered targets receive load balancer traffic. Those mechanisms address different objectives. The specified capabilities are to provide off-Region read capacity and a possible promotion-based recovery option and to keep cacheable web content reachable if the primary origin fails.

D:

The second implementation is relevant; the problem is the first. Route 53 failover routing selects primary or secondary records according to configured health status; it can help route clients to a standby endpoint when the primary endpoint becomes unhealthy, whereas the stated first requirement is to provide off-Region read capacity and a possible promotion-based recovery option.

Question 186

The cloud operations group selects this control: Use Security Hub findings to correlate security signals from enabled integrations. What associated scope or dependency matters most when using it to prioritize security risks across multiple supported detection services?

  1. Error counts must be normalized by matching request volume
  2. Investigators need event identity, timestamp, request parameters, and source context
  3. Aggregated findings must retain product identity, severity, and resource details
  4. Request context must correlate latency across service boundaries

Explanation

Correct Answer

C:

Aggregated findings must retain product identity, severity, and resource details. That is the governing deployment boundary for the selected control: Security Hub normalizes supported security findings and provides centralized prioritization workflows. If the boundary is missed, the design can fail to prioritize security risks across multiple supported detection services.

Incorrect Answers

A:

The proposed condition makes sense in an implementation designed to detect user-visible error-rate regression independent of total request volume; it concerns CloudWatch metric math combines compatible metrics to evaluate derived rates or ratios, whereas this question tests the prerequisite of the named control.

B:

This proposed constraint belongs to a separate objective: investigators need event identity, timestamp, request parameters, and source context. The corresponding goal is to identify the principal and API call that modified a security policy, not the selected architecture's goal to prioritize security risks across multiple supported detection services.

D:

X-Ray traces and segments expose timing and dependencies across instrumented service calls. Its own dependency is that request context must correlate latency across service boundaries. Those details concern the separate objective of being able to identify which downstream call dominates end-to-end request latency, rather than to the named control required to prioritize security risks across multiple supported detection services.

Question 187

A production-readiness assessment calls out two missing capabilities: run a documented multi-step configuration repair after a matching event and limit the changes an automated incident runbook can make. Choose the AWS implementation that explicitly addresses both.

  1. Use AWS Backup event notifications and a bounded retry workflow; attach an AWS Config remediation configuration to an SSM Automation runbook
  2. Trigger SSM Automation from EventBridge for a specific incident event; configure an EventBridge-triggered Lambda to quarantine a newly exposed resource
  3. Apply CloudFormation drift remediation through a reviewed template update; use an SSM Automation role with a permissions boundary or narrow IAM policy
  4. Trigger SSM Automation from EventBridge for a specific incident event; use an SSM Automation role with a permissions boundary or narrow IAM policy

Explanation

Correct Answer

D:

For the requirement to run a documented multi-step configuration repair after a matching event, an EventBridge rule can start Systems Manager Automation documents as supported targets; for the requirement to limit the changes an automated incident runbook can make, dedicated execution roles and least-privilege policies bound the authority of automated changes. Both mechanisms are necessary; implementing only the first would leave the second unsatisfied.

Incorrect Answers

A:

The pair changes the problem instead of completing it. One option addresses respond when a scheduled backup job fails before the recovery point objective is exceeded; the other addresses repair noncompliant security group rules after policy evaluation. The release, however, needs to run a documented multi-step configuration repair after a matching event as well as limit the changes an automated incident runbook can make.

B:

The first half is appropriate: An EventBridge rule can start Systems Manager Automation documents as supported targets. However, EventBridge invokes a Lambda target whose code can apply scoped AWS API changes when a rule matches; that serves a different objective (apply a narrow automated containment action after an unsafe resource change event) and leaves the explicit need to limit the changes an automated incident runbook can make unmet.

C:

The second implementation is relevant; the problem is the first. A reviewed stack update can bring supported drifted resources back toward declared template state; it can help restore a resource's intended IaC state after manual infrastructure changes, whereas the stated first requirement is to run a documented multi-step configuration repair after a matching event.

Question 188

Investigators observe: A single Lambda-based release controller times out while awaiting several independent checks. Engineers still need to orchestrate multiple release checks with retries, branches, and explicit failure states. Which corrective action is most appropriate?

  1. Use an AWS Step Functions state machine to coordinate conditional release tasks
  2. Use distinct CodePipeline stages with a separate integration test action
  3. Use a CodePipeline approval stage with a designated SNS notification
  4. Connect a CodePipeline source action to an approved Git provider through CodeConnections
  5. Add an explicit manual approval action before the production deploy stage

Explanation

Correct Answer

A:

Step Functions models a durable workflow with service integrations, conditional paths, waits, and retries; it restores the ability to orchestrate multiple release checks with retries, branches, and explicit failure states, provided the implementation also observes that the process needs persisted execution state and branching outcomes.

Incorrect Answers

B:

A failed test action makes the stage fail and prevents subsequent deployment stages from proceeding; this is a reasonable option when the requirement is to stop an unsafe revision before it can reach the deployment stage, but it operates at a different workflow boundary from the stated need to orchestrate multiple release checks with retries, branches, and explicit failure states.

C:

Choosing this would aim to notify release owners that production is awaiting an approval action instead of orchestrate multiple release checks with retries, branches, and explicit failure states; the manual approval action can publish an approval notification to an SNS topic for human review; it cannot replace the mechanism specified by the incident evidence.

D:

Although the source connection supplies authorized repository events and revisions to a pipeline source action, the scenario does not ask for start pipeline executions from commits on the approved application branch; it requires the ability to orchestrate multiple release checks with retries, branches, and explicit failure states, which is a separate responsibility.

E:

A CodePipeline manual approval action pauses stage progression until approval, rejection, or timeout; this can help teams require a human release decision after staging tests and before production changes, but the reported workflow needs to orchestrate multiple release checks with retries, branches, and explicit failure states. It does not perform that required function.

Question 189

The release manager reports the following failure: Incident responders can investigate only one workload account at a time. Which action directly restores the requirement to retain management API events from all AWS Organizations member accounts?

  1. Enable CloudTrail log file integrity validation and validate digest signatures
  2. Run SQL queries against existing CloudTrail Lake event data stores
  3. Use Amazon Detective for investigation of related security activity
  4. Create an organization CloudTrail trail to a separately secured S3 logging bucket

Explanation

Correct Answer

D:

An organization trail delivers supported account activity events centrally for member accounts; that directly addresses the observed failure in the scenario. The configuration still has to respect this constraint: audit log retention must be governed by an account separate from routine workload admins.

Incorrect Answers

A:

CloudTrail integrity validation supports cryptographic verification of delivered log file digests; this is a reasonable option when the requirement is to prove whether delivered trail log objects have been tampered with, but it operates at a different workflow boundary from the stated need to retain management API events from all AWS Organizations member accounts.

B:

Choosing this would aim to query retained CloudTrail events without first building a custom S3 query pipeline instead of retain management API events from all AWS Organizations member accounts; CloudTrail Lake ingests supported events into queryable event data stores; it cannot replace the mechanism specified by the incident evidence.

C:

Although detective assists security investigations by correlating supported activity and entity relationships, the scenario does not ask for explore linked entity behaviors around a suspicious IAM principal. It requires the ability to retain management API events from all AWS Organizations member accounts, which is a separate responsibility.

Question 190

An operational design is incomplete until it can identify buckets and objects that contain potentially regulated data and attribute reads or deletes of sensitive bucket objects to a principal. Which two-part implementation fills both gaps?

  1. Use Amazon Macie sensitive-data findings for S3 exposure investigations; create an organization CloudTrail trail to a separately secured S3 logging bucket
  2. Use IAM Access Analyzer unused-access analysis for stale privileges; enable CloudTrail data events for selected S3 object operations
  3. Use Amazon Macie sensitive-data findings for S3 exposure investigations; use AWS Config conformance packs for grouped compliance evaluation
  4. Use IAM credential reports and access-key last-used data for periodic access review; use CloudFormation drift detection to spot out-of-band stack edits
  5. Use Amazon Macie sensitive-data findings for S3 exposure investigations; enable CloudTrail data events for selected S3 object operations

Explanation

Correct Answer

E:

For the requirement to identify buckets and objects that contain potentially regulated data, Macie analyzes supported S3 objects and reports sensitive-data discovery findings. For the requirement to attribute reads or deletes of sensitive bucket objects to a principal, CloudTrail data event selectors record eligible object-level activity beyond management events. Both mechanisms are necessary; implementing only the first would leave the second unsatisfied.

Incorrect Answers

A:

Combining a suitable first control with this second one misses the secondary acceptance criterion; an organization trail delivers supported account activity events centrally for member accounts; it helps retain management API events from all AWS Organizations member accounts rather than attribute reads or deletes of sensitive bucket objects to a principal.

B:

Unused access findings help identify unused IAM roles or unused permissions for least-privilege review; that is intended to find roles or permissions that have not been used within the configured scope, not to identify buckets and objects that contain potentially regulated data. The second half can meet the requirement to attribute reads or deletes of sensitive bucket objects to a principal, but the first is still missing.

C:

Conformance packs package AWS Config rules and supported remediation actions for consistent evaluation; that alternative supports the ability to evaluate a collection of resource configuration controls against a standard, but it is not the requested second outcome (attribute reads or deletes of sensitive bucket objects to a principal). Even though the first half addresses identify buckets and objects that contain potentially regulated data, this pair is incomplete.

D:

The pair changes the problem instead of completing it. One option addresses identify aging IAM user credentials that require rotation or removal; the other addresses identify resource properties that no longer match the approved template. The release, however, needs to identify buckets and objects that contain potentially regulated data as well as attribute reads or deletes of sensitive bucket objects to a principal.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests