Question 230

An incident record says: Several commits arrive quickly and executions interfere with the required stage progression. To restore the capability to prevent newer revisions from unexpectedly superseding a release requiring sequential review, which change addresses the root cause?

  1. Use a CodePipeline execution mode suited to parallel release frequency
  2. Configure pipeline variables for explicitly parameterized executions
  3. Connect a CodePipeline source action to an approved Git provider through CodeConnections
  4. Use a CodePipeline approval stage with a designated SNS notification

Explanation

Correct Answer

A:

Pipeline execution modes determine whether newer runs supersede, queue behind, or coexist with active executions; in this case the control is appropriate because it supports prevent newer revisions from unexpectedly superseding a release requiring sequential review. A release policy must choose superseded, queued, or parallel execution behavior deliberately.

Incorrect Answers

B:

Pipeline variables expose execution-specific values to actions that support variable substitution; this is a reasonable option when the requirement is to pass an approved environment-specific value into a reusable pipeline action, but it operates at a different workflow boundary from the stated need to prevent newer revisions from unexpectedly superseding a release requiring sequential review.

C:

Choosing this would aim to start pipeline executions from commits on the approved application branch instead of prevent newer revisions from unexpectedly superseding a release requiring sequential review. The source connection supplies authorized repository events and revisions to a pipeline source action; it cannot replace the mechanism specified by the incident evidence.

D:

Although the manual approval action can publish an approval notification to an SNS topic for human review, the scenario does not ask for notify release owners that production is awaiting an approval action; it requires the ability to prevent newer revisions from unexpectedly superseding a release requiring sequential review, which is a separate responsibility.

Question 231

Investigators observe: An unencrypted storage resource is identified in a compliance audit but remains unchanged. Engineers still need to restore supported misconfigured resource settings when drift is detected. Which corrective action is most appropriate?

  1. Use AWS Config rule evaluations with automatic remediation for policy violations
  2. Enable GuardDuty across organization accounts to detect suspicious activity
  3. Use an S3 gateway VPC endpoint and appropriate bucket policy constraints
  4. Use Amazon Macie for sensitive-data discovery in S3
  5. Use AWS Firewall Manager organization security policies for WAF protections

Explanation

Correct Answer

A:

To restore supported misconfigured resource settings when drift is detected, the architecture relies on this AWS behavior: AWS Config rules evaluate configurations and can integrate with Systems Manager remediation. The corrective runbook must execute with narrowly authorized permissions.

Incorrect Answers

B:

Choosing this would aim to surface suspicious credentials and network behavior without building a custom detector instead of restore supported misconfigured resource settings when drift is detected. GuardDuty analyzes supported telemetry and uses threat detection to generate security findings; it cannot replace the mechanism specified by the incident evidence.

C:

Although S3 gateway endpoints use VPC route entries to access S3 privately from eligible subnets, the scenario does not ask for allow private subnet workloads to reach S3 without NAT for supported traffic. It requires the ability to restore supported misconfigured resource settings when drift is detected, which is a separate responsibility.

D:

Macie uses automated discovery and classification to identify sensitive data in supported S3 objects; this can help teams identify S3 objects that potentially contain sensitive information, but the reported workflow needs to restore supported misconfigured resource settings when drift is detected. It does not perform that required function.

E:

That service solves a different operating problem: the need to enforce an approved web ACL policy on supported public application endpoints across member accounts; its behavior is that firewall Manager manages supported security policies across accounts and can apply WAF protections to in-scope resources; the requested outcome remains restore supported misconfigured resource settings when drift is detected.

Question 232

A reliability architecture decision must satisfy two different outcomes, not just choose one AWS feature: improve availability of supported Redis or Valkey cache workloads and improve Aurora read availability and provide additional managed failover candidates. Which implementation does that?

  1. Use ElastiCache replication groups spanning multiple Availability Zones; use Aurora reader instances in separate Availability Zones
  2. Use ElastiCache replication groups spanning multiple Availability Zones; implement stateless application nodes with session state in a shared store
  3. Use DynamoDB on-demand capacity for variable request demand; use Aurora reader instances in separate Availability Zones
  4. Use a multi-AZ EC2 Auto Scaling group behind a target group; use an Aurora Global Database with secondary Region clusters

Explanation

Correct Answer

A:

Supported ElastiCache replication groups use replicas and automatic failover to recover from primary loss; aurora Replicas share cluster storage and can serve reads or be promoted during supported failovers. The first control satisfies the need to improve availability of supported Redis or Valkey cache workloads; the second addresses the need to improve Aurora read availability and provide additional managed failover candidates. The replication group must be configured for failover and multi-AZ placement; the data tier needs additional instances in independent failure zones.

Incorrect Answers

B:

The first half is appropriate: Supported ElastiCache replication groups use replicas and automatic failover to recover from primary loss. However, externalizing session data removes per-instance affinity as a correctness requirement for request handling; that serves a different objective (allow requests to move among instances without losing user session context) and leaves the explicit need to improve Aurora read availability and provide additional managed failover candidates unmet.

C:

The second implementation is relevant; the problem is the first. DynamoDB on-demand mode automatically manages throughput capacity for variable workloads within service limits; it can help avoid manual throughput planning when read and write request rates change sharply, whereas the stated first requirement is to improve availability of supported Redis or Valkey cache workloads.

D:

The pair changes the problem instead of completing it. One option addresses replace failed web hosts and distribute capacity across Availability Zones; the other addresses provide low-latency cross-Region database reads and a regional recovery path. The release, however, needs to improve availability of supported Redis or Valkey cache workloads as well as improve Aurora read availability and provide additional managed failover candidates.

Question 233

A technical change review names the selected control as follows: Use contract tests to validate interface compatibility between independently deployed services. To detect incompatible API schema changes without requiring full production rollout, which constraint must be addressed for this design?

  1. Authorization checks must include explicit denied or ungranted actions
  2. Representative load must be applied without competing with customer traffic
  3. Compatibility must be verified at the producer-consumer boundary
  4. The test environment must be disposable and separated from production state

Explanation

Correct Answer

C:

The implementation has to honor the exact constraint: compatibility must be verified at the producer-consumer boundary; contract tests assert expected interface behavior, revealing breaking integration changes before both services ship.

Incorrect Answers

A:

IAM policy simulation and access analysis can help test whether planned principal actions are allowed; its own dependency is that authorization checks must include explicit denied or ungranted actions; those details concern the separate objective of being able to verify the release role cannot perform actions outside its approved scope, rather than to the named control required to detect incompatible API schema changes without requiring full production rollout.

B:

The proposed condition makes sense in an implementation designed to measure throughput and latency under expected concurrency without degrading production. It concerns dedicated performance testing reveals scale and bottleneck behavior while isolating intentional high load, whereas this question tests the prerequisite of the named control.

D:

This condition governs the different mechanism used to validate service-to-service interactions against real deployed dependencies before approval; an integration environment exercises actual API and infrastructure interactions that unit mocks do not cover; for the selected control, the relevant boundary is instead that compatibility must be verified at the producer-consumer boundary.

Question 234

An incident record says: The destination role can read the artifact S3 object but receives a KMS AccessDenied error. To restore the capability to make encrypted CodePipeline artifacts usable by an authorized cross-account action, which change addresses the root cause?

  1. Grant the target-account role access through the S3 artifact bucket policy
  2. Use a customer managed KMS key and grant the target deployment role decrypt permission
  3. Use a CodePipeline approval stage with a designated SNS notification
  4. Restrict build credentials to a CodeBuild service role with least privilege

Explanation

Correct Answer

B:

A customer managed key with suitable key policy and IAM permission supports cross-account decrypt access; in this case the control is appropriate because it supports make encrypted CodePipeline artifacts usable by an authorized cross-account action. The shared artifact store must remain encrypted while permitting only designated consumers.

Incorrect Answers

A:

A resource-based bucket policy can authorize the trusted destination principal to read specific artifact objects; this can help teams permit a cross-account deployment action to retrieve the intended pipeline artifact objects, but the reported workflow needs to make encrypted CodePipeline artifacts usable by an authorized cross-account action. It does not perform that required function.

C:

The choice is useful when engineers need to notify release owners that production is awaiting an approval action: the manual approval action can publish an approval notification to an SNS topic for human review. It would not establish the control needed to make encrypted CodePipeline artifacts usable by an authorized cross-account action.

D:

CodeBuild runs under its assigned IAM service role, which needs access to referenced buckets, logs, and relevant keys; this is a reasonable option when the requirement is to let automated builds read only the required inputs and publish expected outputs, but it operates at a different workflow boundary from the stated need to make encrypted CodePipeline artifacts usable by an authorized cross-account action.

Question 235

The production plan uses this approach: Use VPC Flow Logs to investigate rejected network flows. The goal is to identify source, destination, and action details for a suspected network denial. Which prerequisite or limitation should receive focused review?

  1. The investigation must distinguish network accept or reject metadata from application logs
  2. The filter and alarm must use a stable field pattern and relevant count threshold
  3. The analysis should examine resource-level external access rather than package CVEs
  4. The process should adjust supported finding properties based on matching conditions

Explanation

Correct Answer

A:

The implementation has to honor the exact constraint: the investigation must distinguish network accept or reject metadata from application logs; VPC Flow Logs record accepted and rejected flow metadata without capturing full packet payloads.

Incorrect Answers

B:

This condition governs the different mechanism used to alert when repeated access-denied or suspicious authentication events enter central logs; metric filters turn matching log events into CloudWatch measurements that can trigger alarms; for the selected control, the relevant boundary is instead that the investigation must distinguish network accept or reject metadata from application logs.

C:

IAM Access Analyzer can flag supported resources whose policies allow external access. Its own dependency is that the analysis should examine resource-level external access rather than package CVEs; those details concern the separate objective of being able to identify resource-based policies granting access outside the expected trust zone, rather than to the named control required to identify source, destination, and action details for a suspected network denial.

D:

The proposed condition makes sense in an implementation designed to normalize and triage recurring findings according to defined central criteria; it concerns Security Hub automation rules can update selected finding fields when findings match configured criteria, whereas this question tests the prerequisite of the named control.

Question 236

An operational design is incomplete until it can report and enforce valid tag keys or values across organizational accounts where supported and standardize security finding aggregation and enabled standards across accounts. Which two-part implementation fills both gaps?

  1. Use Organizations tag policies to standardize supported resource tags; configure Security Hub organization integration and central settings policies
  2. Use Organizations tag policies to standardize supported resource tags; enable AWS Config aggregators across organization accounts and Regions
  3. Use Organizations tag policies to standardize supported resource tags; use cross-account STS AssumeRole for automated administration
  4. Create an organization-wide CloudTrail trail to a protected logging account; use AWS Organizations CreateAccount automation for programmatic member creation
  5. Configure organization-wide GuardDuty management through a delegated security account; configure Security Hub organization integration and central settings policies

Explanation

Correct Answer

A:

Tag policies define permitted capitalization and values and can enforce supported tagging operations; Security Hub central configuration can apply supported policies across an organization hierarchy. The first control satisfies the need to report and enforce valid tag keys or values across organizational accounts where supported; the second addresses the need to standardize security finding aggregation and enabled standards across accounts. The policy must govern tag conventions rather than grant IAM access; security monitoring policy should be managed from the security administration model.

Incorrect Answers

B:

Combining a suitable first control with this second one misses the secondary acceptance criterion; a configuration aggregator consolidates supported AWS Config configuration and compliance data; it helps view resource compliance and configuration state from a central operations account rather than standardize security finding aggregation and enabled standards across accounts.

C:

The first half is appropriate: Tag policies define permitted capitalization and values and can enforce supported tagging operations. However, STS AssumeRole returns temporary credentials for a trusted role whose permissions constrain the session; that serves a different objective (let central automation perform scoped tasks in governed member accounts) and leaves the explicit need to standardize security finding aggregation and enabled standards across accounts unmet.

D:

These are legitimate AWS controls for different outcomes: an organization trail covers member accounts with centralized delivery and separately controlled storage, whereas organizations supports asynchronous member account creation through its account APIs. The problem instead requires the ability to report and enforce valid tag keys or values across organizational accounts where supported and to standardize security finding aggregation and enabled standards across accounts.

E:

This combination solves only the latter acceptance test. The substituted first control supports enable consistent threat detection coverage for member accounts: GuardDuty organization administration can automatically manage protection enrollment across eligible members. It does not implement report and enforce valid tag keys or values across organizational accounts where supported.

Question 237

A reliability implementation has two separate dependencies: avoid manual throughput planning when read and write request rates change sharply, and allow application writes in more than one AWS Region with replication. Select the combination that addresses both rather than only one.

  1. Use AWS Global Accelerator with healthy regional endpoint groups; use Route 53 latency routing for healthy regional endpoints
  2. Use DynamoDB on-demand capacity for variable request demand; configure Route 53 failover records with appropriate health checks
  3. Enable Amazon RDS Multi-AZ high availability for a supported DB engine; configure DynamoDB global tables for multi-Region active-active access
  4. Use DynamoDB on-demand capacity for variable request demand; configure DynamoDB global tables for multi-Region active-active access

Explanation

Correct Answer

D:

DynamoDB on-demand mode automatically manages throughput capacity for variable workloads within service limits; DynamoDB global tables replicate data among participating Regions and support multi-Region writes. The first control satisfies the need to avoid manual throughput planning when read and write request rates change sharply; the second addresses the need to allow application writes in more than one AWS Region with replication. The database service should adjust capacity without preconfigured RCU and WCU targets; the design must reconcile multi-Region replicated changes rather than use a read-only replica.

Incorrect Answers

A:

Neither control directly supplies both requested behaviors. Global Accelerator routes TCP or UDP traffic through static anycast addresses to healthy configured endpoints; Route 53 latency policies select records based on measured latency among configured Regions. Those mechanisms address different objectives. The specified capabilities are to avoid manual throughput planning when read and write request rates change sharply and to allow application writes in more than one AWS Region with replication.

B:

Route 53 failover routing selects primary or secondary records according to configured health status; that alternative supports the ability to route clients to a standby endpoint when the primary endpoint becomes unhealthy, but it is not the requested second outcome (allow application writes in more than one AWS Region with replication). Even though the first half addresses avoid manual throughput planning when read and write request rates change sharply, this pair is incomplete.

C:

This combination solves only the latter acceptance test. The substituted first control supports provide automatic database failover after a primary Availability Zone outage: RDS Multi-AZ deployments maintain a standby or multi-instance arrangement for managed failover. It does not implement avoid manual throughput planning when read and write request rates change sharply.

Question 238

A production-readiness assessment calls out two missing capabilities: restore a supported relational database to a selected time before an accidental modification and recover an overwritten or deleted application object from an earlier version. Choose the AWS implementation that explicitly addresses both.

  1. Use RDS automated backups for point-in-time recovery within retention; use active-active multi-Region deployment with regional traffic steering
  2. Use Route 53 health-checked failover records for a pretested recovery endpoint; enable S3 versioning and implement recovery for deleted object versions
  3. Implement a pilot-light DR architecture in a secondary Region; copy supported AWS Backup recovery points to another Region
  4. Use RDS automated backups for point-in-time recovery within retention; enable S3 versioning and implement recovery for deleted object versions

Explanation

Correct Answer

D:

The first outcome depends on the behavior that RDS automated backups support point-in-time restore using retained backup data and transaction logs. Separately, S3 versioning preserves prior object versions so authorized users can restore selected versions. Together these meet the two requested outcomes, with the operational limits that recovery needs transaction-log-aware restore within the configured backup retention and object change history needs to be retained according to the bucket retention model.

Incorrect Answers

A:

Combining a suitable first control with this second one misses the secondary acceptance criterion; active-active systems keep multiple regional stacks serving requests, reducing activation time at the cost of complexity; it helps minimize regional failover downtime for workloads designed to accept distributed traffic rather than recover an overwritten or deleted application object from an earlier version.

B:

Failover routing can resolve the standby record based on health state, subject to client caching; that is intended to automate DNS-level cutover after the primary regional endpoint fails, not to restore a supported relational database to a selected time before an accidental modification. The second half can meet the requirement to recover an overwritten or deleted application object from an earlier version, but the first is still missing.

C:

These are legitimate AWS controls for different outcomes: pilot light maintains minimal core components ready and brings up remaining tiers during recovery, whereas AWS Backup copy rules replicate supported recovery points to destination vaults in other Regions. The problem instead requires the ability to restore a supported relational database to a selected time before an accidental modification and to recover an overwritten or deleted application object from an earlier version.

Question 239

A delivery architecture decision must satisfy two different outcomes, not just choose one AWS feature: validate service-to-service interactions against real deployed dependencies before approval and fail a promotion flow based on smoke-test results for the deployed service. Which implementation does that?

  1. Execute integration tests against an isolated ephemeral test stack; return a nonzero exit code when a blocking automated test fails
  2. Use AWS Fault Injection Service in a controlled resilience test; use a CodePipeline test action after deployment to staging
  3. Execute integration tests against an isolated ephemeral test stack; use a CodePipeline test action after deployment to staging
  4. Use canary synthetic checks against a published test endpoint; configure CodeBuild test reports with the supported report-file format
  5. Execute integration tests against an isolated ephemeral test stack; run controlled load tests in a dedicated performance environment

Explanation

Correct Answer

C:

The first outcome depends on the behavior that an integration environment exercises actual API and infrastructure interactions that unit mocks do not cover. Separately, a pipeline test action turns post-deployment health verification into an enforceable promotion gate. Together these meet the two requested outcomes, with the operational limits that the test environment must be disposable and separated from production state and the test stage must consume the staged endpoint and block the next stage if it fails.

Incorrect Answers

A:

CodeBuild determines command success from process exit status unless buildspec failure handling overrides it; that alternative supports the ability to stop a pipeline build action when the test runner detects a regression, but it is not the requested second outcome (fail a promotion flow based on smoke-test results for the deployed service). Even though the first half addresses validate service-to-service interactions against real deployed dependencies before approval, this pair is incomplete.

B:

This combination solves only the latter acceptance test. The substituted first control supports validate that a multi-AZ application survives a deliberately introduced infrastructure fault: fault Injection Service can inject supported disruptions so teams can measure actual resilience behavior; it does not implement validate service-to-service interactions against real deployed dependencies before approval.

D:

These are legitimate AWS controls for different outcomes: CloudWatch Synthetics canaries run scheduled scripts against endpoints and report pass or failure measurements, whereas CodeBuild reads supported report files from configured paths and associates results with report groups. The problem instead requires the ability to validate service-to-service interactions against real deployed dependencies before approval and to fail a promotion flow based on smoke-test results for the deployed service.

E:

Combining a suitable first control with this second one misses the secondary acceptance criterion; dedicated performance testing reveals scale and bottleneck behavior while isolating intentional high load; it helps measure throughput and latency under expected concurrency without degrading production rather than fail a promotion flow based on smoke-test results for the deployed service.

Question 240

The next AWS platform release needs to revert a dynamic feature flag after application health degrades while also being able to reverse a release that triggers the defined customer error alarm. Which pairing best supports that release?

  1. Use an AWS AppConfig deployment strategy with automatic rollback alarms; apply CloudFormation drift remediation through a reviewed template update
  2. Use State Manager associations to prevent recurring OS configuration drift; use CodeDeploy CloudWatch-alarm integration for automatic deployment rollback
  3. Use an AWS AppConfig deployment strategy with automatic rollback alarms; use CodeDeploy CloudWatch-alarm integration for automatic deployment rollback
  4. Configure an EventBridge-triggered Lambda to quarantine a newly exposed resource; require a Systems Manager Change Manager approval for high-risk production automation

Explanation

Correct Answer

C:

For the requirement to revert a dynamic feature flag after application health degrades, AppConfig can roll back a configuration deployment when monitored CloudWatch alarms indicate failure. For the requirement to reverse a release that triggers the defined customer error alarm, CodeDeploy can stop and roll back eligible deployments when configured CloudWatch alarms enter ALARM. Both mechanisms are necessary; implementing only the first would leave the second unsatisfied.

Incorrect Answers

A:

The first half is appropriate: AppConfig can roll back a configuration deployment when monitored CloudWatch alarms indicate failure. However, a reviewed stack update can bring supported drifted resources back toward declared template state; that serves a different objective (restore a resource's intended IaC state after manual infrastructure changes) and leaves the explicit need to reverse a release that triggers the defined customer error alarm unmet.

B:

The second implementation is relevant; the problem is the first. State Manager continuously applies declared configurations to matching managed instances. It can help restore approved daemon settings when a node falls out of compliance, whereas the stated first requirement is to revert a dynamic feature flag after application health degrades.

D:

Neither control directly supplies both requested behaviors. EventBridge invokes a Lambda target whose code can apply scoped AWS API changes when a rule matches; change Manager supports governed change requests and approval workflows for operations. Those mechanisms address different objectives. The specified capabilities are to revert a dynamic feature flag after application health degrades and to reverse a release that triggers the defined customer error alarm.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests