Question 1000

A team is designing a reusable security pattern. It must allow private subnet workloads to reach S3 without NAT for supported traffic; it must also prevent accidental public grants on sensitive S3 buckets. Which paired configuration is appropriate?

  1. Use Amazon Macie for sensitive-data discovery in S3; apply S3 Block Public Access at the account or bucket scope
  2. Use CloudHSM when exclusive customer control of HSM key management is required; use an AWS WAF rate-based rule for abusive clients
  3. Use an S3 gateway VPC endpoint and appropriate bucket policy constraints; use subnet network ACL rules for stateless subnet-edge filtering
  4. Use an S3 gateway VPC endpoint and appropriate bucket policy constraints; apply S3 Block Public Access at the account or bucket scope

Explanation

Correct Answer

D:

S3 gateway endpoints use VPC route entries to access S3 privately from eligible subnets. This handles the first acceptance condition, subject to the boundary that routing and endpoint policy must match the supported S3 gateway endpoint model. The remaining condition is handled separately: S3 Block Public Access settings override relevant public permissions for supported access paths, with the account must prevent public access through ACL and policy paths where configured.

Incorrect Answers

A:

This combination solves only the latter acceptance test. The substituted first control supports identify S3 objects that potentially contain sensitive information: Macie uses automated discovery and classification to identify sensitive data in supported S3 objects. It does not implement allow private subnet workloads to reach S3 without NAT for supported traffic.

B:

Neither control directly supplies both requested behaviors. CloudHSM offers dedicated hardware security modules operated under the customer's control plane; WAF rate-based rules track request rates for defined aggregation keys and act on matching excess traffic. Those mechanisms address different objectives. The specified capabilities are to allow private subnet workloads to reach S3 without NAT for supported traffic and to prevent accidental public grants on sensitive S3 buckets.

C:

Network ACLs are stateless ordered rules applied to traffic entering and leaving subnets. That alternative supports the ability to apply explicit allow and deny network rules at a subnet boundary, but it is not the requested second outcome (prevent accidental public grants on sensitive S3 buckets). Even though the first half addresses allow private subnet workloads to reach S3 without NAT for supported traffic, this pair is incomplete.

Question 1001

A production change is expected to track executed source coverage while retaining assertions-based acceptance gates. The same change must also expose test-suite pass rates and failing cases for each build execution. Which paired implementation meets both acceptance criteria?

  1. Publish code coverage in CodeBuild reports without treating it as proof of behavior; configure CodeBuild test reports with the supported report-file format
  2. Use CodeBuild batch builds for a supported test matrix; configure CodeBuild test reports with the supported report-file format
  3. Execute integration tests against an isolated ephemeral test stack; use pull request events to start a pre-merge validation build
  4. Publish code coverage in CodeBuild reports without treating it as proof of behavior; use a CodePipeline test action after deployment to staging

Explanation

Correct Answer

A:

The first outcome depends on the behavior that coverage reports show which code paths execute; they cannot prove that behavior or assertions are correct. Separately, CodeBuild reads supported report files from configured paths and associates results with report groups. Together these meet the two requested outcomes, with the operational limits that coverage is an informative measure, not a substitute for scenario validation and the report file path and test report format must match buildspec configuration.

Incorrect Answers

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 track executed source coverage while retaining assertions-based acceptance gates.

C:

Neither control directly supplies both requested behaviors. An integration environment exercises actual API and infrastructure interactions that unit mocks do not cover; PR-triggered builds can test changes earlier than post-merge releases and support branch protection workflows. Those mechanisms address different objectives. The specified capabilities are to track executed source coverage while retaining assertions-based acceptance gates and to expose test-suite pass rates and failing cases for each build execution.

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 (expose test-suite pass rates and failing cases for each build execution). Even though the first half addresses track executed source coverage while retaining assertions-based acceptance gates, this pair is incomplete.

Question 1002

The architecture record specifies: Configure Karpenter or a supported EKS node autoscaler for unschedulable pods. To support the goal to add cluster nodes when pods cannot schedule due to insufficient capacity, which consideration should the engineer validate?

  1. Node provisioning must respond to Kubernetes scheduling constraints
  2. Concurrency must be constrained at the function boundary
  3. The capacity mechanism must update ECS desired task count
  4. The solution must adjust RCU and WCU settings rather than compute nodes

Explanation

Correct Answer

A:

Node provisioning must respond to Kubernetes scheduling constraints. Without this, choosing the named service is not enough to produce the promised outcome; node autoscalers provision or adjust worker capacity in response to pending pods and cluster constraints.

Incorrect Answers

B:

This proposed constraint belongs to a separate objective: concurrency must be constrained at the function boundary; the corresponding goal is to cap parallel invocations before a sensitive backend is saturated, not the selected architecture's goal to add cluster nodes when pods cannot schedule due to insufficient capacity.

C:

This condition governs the different mechanism used to adjust running service task capacity based on a CloudWatch target metric. Application Auto Scaling can control ECS service desired count from target tracking or step policies; for the selected control, the relevant boundary is instead that node provisioning must respond to Kubernetes scheduling constraints.

D:

DynamoDB Application Auto Scaling can change provisioned read or write capacity based on utilization targets; its own dependency is that the solution must adjust RCU and WCU settings rather than compute nodes; those details concern the separate objective of being able to adapt provisioned throughput targets to changing demand, rather than to the named control required to add cluster nodes when pods cannot schedule due to insufficient capacity.

Question 1003

The site reliability team reports the following failure: The production action fails because the central pipeline role has no authorized path into its target account. Which action directly restores the requirement to deploy an artifact from the delivery account into a separately governed workload account?

  1. Restrict build credentials to a CodeBuild service role with least privilege
  2. Grant the target-account role access through the S3 artifact bucket policy
  3. Configure a cross-account deploy action with an assumable target-account role
  4. Use a deployment action with a production-account IAM role
  5. Resolve runtime secrets from Secrets Manager during the build
  6. Use a customer managed KMS key and grant the target deployment role decrypt permission

Explanation

Correct Answer

C:

A trusted IAM role in the destination account authorizes the pipeline to perform scoped deployment actions via STS; in this case the control is appropriate because it supports deploy an artifact from the delivery account into a separately governed workload account. The target account must retain control over the deployment role permissions.

Incorrect Answers

A:

That service solves a different operating problem: the need to let automated builds read only the required inputs and publish expected outputs. Its behavior is that CodeBuild runs under its assigned IAM service role, which needs access to referenced buckets, logs, and relevant keys. The requested outcome remains deploy an artifact from the delivery account into a separately governed workload account.

B:

The choice is useful when engineers need to permit a cross-account deployment action to retrieve the intended pipeline artifact objects: a resource-based bucket policy can authorize the trusted destination principal to read specific artifact objects. It would not establish the control needed to deploy an artifact from the delivery account into a separately governed workload account.

D:

Choosing this would aim to isolate permissions between staging and production delivery instead of deploy an artifact from the delivery account into a separately governed workload account; role separation allows each pipeline action to run under the permissions approved for its target environment; it cannot replace the mechanism specified by the incident evidence.

E:

Although Secrets Manager stores secret values and supports managed rotation integrations; runtime retrieval avoids committing values, the scenario does not ask for supply a rotating database credential to CI jobs without placing the secret in source control. It requires the ability to deploy an artifact from the delivery account into a separately governed workload account, which is a separate responsibility.

F:

A customer managed key with suitable key policy and IAM permission supports cross-account decrypt access; this can help teams make encrypted CodePipeline artifacts usable by an authorized cross-account action, but the reported workflow needs to deploy an artifact from the delivery account into a separately governed workload account. It does not perform that required function.

Question 1004

The delivery engineering group cannot close its release review until both of these are possible: measure throughput and latency under expected concurrency without degrading production; fail a release when latency regresses even though all APIs still return successful status codes. Which implementation pair satisfies the review?

  1. Run dependency and container image scanning before artifact promotion; separate performance threshold checks from functional correctness tests
  2. Publish code coverage in CodeBuild reports without treating it as proof of behavior; use AWS Fault Injection Service in a controlled resilience test
  3. Run controlled load tests in a dedicated performance environment; use canary synthetic checks against a published test endpoint
  4. Run controlled load tests in a dedicated performance environment; separate performance threshold checks from functional correctness tests

Explanation

Correct Answer

D:

Dedicated performance testing reveals scale and bottleneck behavior while isolating intentional high load; this handles the first acceptance condition, subject to the boundary that representative load must be applied without competing with customer traffic. The remaining condition is handled separately: performance testing assesses response-time and throughput targets distinct from pass or fail functionality, with the gate must compare measurements against a specific performance baseline.

Incorrect Answers

A:

The second implementation is relevant; the problem is the first. An automated scanning gate blocks releases when risk findings breach the defined security policy; it can help reject packages containing prohibited vulnerable dependencies before production, whereas the stated first requirement is to measure throughput and latency under expected concurrency without degrading production.

B:

The pair changes the problem instead of completing it. One option addresses track executed source coverage while retaining assertions-based acceptance gates; the other addresses validate that a multi-AZ application survives a deliberately introduced infrastructure fault. The release, however, needs to measure throughput and latency under expected concurrency without degrading production as well as fail a release when latency regresses even though all APIs still return successful status codes.

C:

The first half is appropriate: Dedicated performance testing reveals scale and bottleneck behavior while isolating intentional high load. However, CloudWatch Synthetics canaries run scheduled scripts against endpoints and report pass or failure measurements; that serves a different objective (exercise a critical HTTP journey regularly with externally visible outcomes) and leaves the explicit need to fail a release when latency regresses even though all APIs still return successful status codes unmet.

Question 1005

One team is accountable for the AWS workflow to isolate permissions between staging and production delivery. A second acceptance condition requires it to promote the exact tested package between environments rather than rebuilding source independently. Which combination should be approved?

  1. Use distinct CodePipeline stages with a separate integration test action; use an immutable artifact identifier when promoting a release
  2. Use a deployment action with a production-account IAM role; enable CodeBuild local caching for reusable build dependencies
  3. Use a CodePipeline execution mode suited to parallel release frequency; use a CodePipeline approval stage with a designated SNS notification
  4. Use a deployment action with a production-account IAM role; configure an EventBridge rule for an event-driven pipeline execution
  5. Use a deployment action with a production-account IAM role; use an immutable artifact identifier when promoting a release

Explanation

Correct Answer

E:

The first outcome depends on the behavior that role separation allows each pipeline action to run under the permissions approved for its target environment. Separately, promoting a fixed artifact identity prevents environment-specific rebuilds from silently changing the delivered bytes. Together these meet the two requested outcomes, with the operational limits that production permissions must be assumed only by the designated production action and release provenance must refer to a single versioned artifact or image digest.

Incorrect Answers

A:

A failed test action makes the stage fail and prevents subsequent deployment stages from proceeding; that is intended to stop an unsafe revision before it can reach the deployment stage, not to isolate permissions between staging and production delivery; the second half can meet the requirement to promote the exact tested package between environments rather than rebuilding source independently, but the first is still missing.

B:

Local caches can reuse permitted source or dependency data on a build host, subject to environment and cache limitations; that alternative supports the ability to reduce time spent re-fetching dependencies in repeated builds on compatible environments, but it is not the requested second outcome (promote the exact tested package between environments rather than rebuilding source independently). Even though the first half addresses isolate permissions between staging and production delivery, this pair is incomplete.

C:

The pair changes the problem instead of completing it. One option addresses prevent newer revisions from unexpectedly superseding a release requiring sequential review; the other addresses notify release owners that production is awaiting an approval action. The release, however, needs to isolate permissions between staging and production delivery as well as promote the exact tested package between environments rather than rebuilding source independently.

D:

The first half is appropriate: Role separation allows each pipeline action to run under the permissions approved for its target environment. However, EventBridge event patterns select the desired events and route them to a supported automation target; that serves a different objective (trigger a deployment workflow when a matching AWS service event occurs) and leaves the explicit need to promote the exact tested package between environments rather than rebuilding source independently unmet.

Question 1006

Investigators observe: Production guardrails are accidentally applied to sandbox environments and vice versa. Engineers still need to separate development and production accounts into different policy inheritance scopes. Which corrective action is most appropriate?

  1. Use an S3 bucket policy that denies insecure transport for organization logs
  2. Place accounts into purpose-specific organizational units
  3. Use Control Tower Account Factory for Terraform where supported by the enterprise workflow
  4. Use Control Tower landing-zone controls for preventive and detective governance

Explanation

Correct Answer

B:

Organizational units group accounts and establish boundaries for inherited organization policies; that directly addresses the observed failure in the scenario. The configuration still has to respect this constraint: governance must attach to account groups rather than individual IAM users.

Incorrect Answers

A:

Choosing this would aim to prevent log upload and retrieval over unencrypted transport instead of separate development and production accounts into different policy inheritance scopes; a bucket policy can deny requests when the aws:SecureTransport context indicates an insecure connection; it cannot replace the mechanism specified by the incident evidence.

C:

Account Factory for Terraform integrates account-vending workflows with Control Tower governance; this can help teams integrate governed account provisioning with existing Terraform-based request automation, but the reported workflow needs to separate development and production accounts into different policy inheritance scopes. It does not perform that required function.

D:

That service solves a different operating problem: the need to establish managed governance expectations when onboarding accounts; its behavior is that control Tower controls can enforce or detect supported rules across enrolled organizational units; the requested outcome remains separate development and production accounts into different policy inheritance scopes.

Question 1007

The production support team reports the following failure: The test runner exits correctly but the CodeBuild reports tab shows no parsed test files. Which action directly restores the requirement to expose test-suite pass rates and failing cases for each build execution?

  1. Run unit tests in the first CodeBuild stage before packaging
  2. Use pull request events to start a pre-merge validation build
  3. Configure CodeBuild test reports with the supported report-file format
  4. Use a CodePipeline test action after deployment to staging

Explanation

Correct Answer

C:

CodeBuild reads supported report files from configured paths and associates results with report groups; it enables the necessary capability to expose test-suite pass rates and failing cases for each build execution rather than only providing an adjacent operational control. The report file path and test report format must match buildspec configuration.

Incorrect Answers

A:

Although unit tests in an early build action reduce feedback latency and stop faulty revisions before expensive stages, the scenario does not ask for reject code-level regressions rapidly before creating production artifacts. It requires the ability to expose test-suite pass rates and failing cases for each build execution, which is a separate responsibility.

B:

PR-triggered builds can test changes earlier than post-merge releases and support branch protection workflows; this can help teams evaluate a proposed change before it merges into a protected branch, but the reported workflow needs to expose test-suite pass rates and failing cases for each build execution. It does not perform that required function.

D:

The choice is useful when engineers need to fail a promotion flow based on smoke-test results for the deployed service: a pipeline test action turns post-deployment health verification into an enforceable promotion gate; it would not establish the control needed to expose test-suite pass rates and failing cases for each build execution.

Question 1008

The architecture record specifies: Use CloudFormation drift detection to spot out-of-band stack edits. To support the goal to identify resource properties that no longer match the approved template, which consideration should the engineer validate?

  1. The comparison should focus on supported declared CloudFormation properties
  2. The analysis should examine resource-level external access rather than package CVEs
  3. Content discovery should determine whether supported S3 objects contain sensitive information
  4. Audit log retention must be governed by an account separate from routine workload admins

Explanation

Correct Answer

A:

The comparison should focus on supported declared CloudFormation properties. That is the governing deployment boundary for the selected control: drift detection checks supported stack resource configuration against the declared IaC state. If the boundary is missed, the design can fail to identify resource properties that no longer match the approved template.

Incorrect Answers

B:

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 resource properties that no longer match the approved template.

C:

The proposed condition makes sense in an implementation designed to identify buckets and objects that contain potentially regulated data; it concerns Macie analyzes supported S3 objects and reports sensitive-data discovery findings, whereas this question tests the prerequisite of the named control.

D:

This proposed constraint belongs to a separate objective: audit log retention must be governed by an account separate from routine workload admins; the corresponding goal is to retain management API events from all AWS Organizations member accounts, not the selected architecture's goal to identify resource properties that no longer match the approved template.

Question 1009

After a configuration change, the security engineering team sees this issue: An application stays reachable only while its single-AZ load balancer targets remain healthy. What best restores the ability to maintain HTTP routing to healthy targets when an application Availability Zone fails?

  1. Use Aurora reader instances in separate Availability Zones
  2. Use DynamoDB on-demand capacity for variable request demand
  3. Deploy an Application Load Balancer across at least two Availability Zones
  4. Use Route 53 latency routing for healthy regional endpoints

Explanation

Correct Answer

C:

To maintain HTTP routing to healthy targets when an application Availability Zone fails, the architecture relies on this AWS behavior: an ALB can distribute requests to healthy registered targets across enabled Availability Zones. The web endpoint should use health-aware routing across independently failing zones.

Incorrect Answers

A:

That service solves a different operating problem: the need to improve Aurora read availability and provide additional managed failover candidates. Its behavior is that aurora Replicas share cluster storage and can serve reads or be promoted during supported failovers. The requested outcome remains maintain HTTP routing to healthy targets when an application Availability Zone fails.

B:

The choice is useful when engineers need to avoid manual throughput planning when read and write request rates change sharply: DynamoDB on-demand mode automatically manages throughput capacity for variable workloads within service limits. It would not establish the control needed to maintain HTTP routing to healthy targets when an application Availability Zone fails.

D:

Choosing this would aim to direct global clients toward the Region with better measured network latency instead of maintain HTTP routing to healthy targets when an application Availability Zone fails. Route 53 latency policies select records based on measured latency among configured Regions; it cannot replace the mechanism specified by the incident evidence.

Question 1010

A release design adopts this mechanism: Use EventBridge rules to route AWS Health account events to response automation. Which implementation detail is most relevant to its proposed use to notify the operations account when an AWS service issue affects the workload?

  1. The target needs an appropriate invocation role and bounded event selection
  2. The message must preserve event ID, resource, and state fields while removing noise
  3. The system must evaluate resource configuration against a known rule
  4. Health checks should use an endpoint and thresholds suited to the backend
  5. The rule must match the relevant event type and route only useful events

Explanation

Correct Answer

E:

The rule must match the relevant event type and route only useful events. Without this, choosing the named service is not enough to produce the promised outcome; EventBridge receives supported AWS Health events and routes matching events to configured targets.

Incorrect Answers

A:

The proposed condition makes sense in an implementation designed to launch a defined remediation runbook when a matching service event occurs. It concerns EventBridge can invoke supported Systems Manager Automation runbooks from matching events, whereas this question tests the prerequisite of the named control.

B:

This proposed constraint belongs to a separate objective: the message must preserve event ID, resource, and state fields while removing noise; the corresponding goal is to send only relevant event details to responders rather than an entire event payload, not the selected architecture's goal to notify the operations account when an AWS service issue affects the workload.

C:

This condition governs the different mechanism used to identify noncompliant resources without depending on log-string alerts; config rules assess supported resource settings and publish compliant or noncompliant evaluations; for the selected control, the relevant boundary is instead that the rule must match the relevant event type and route only useful events.

D:

ALB target groups mark eligible targets unhealthy and exclude them from normal request routing; its own dependency is that health checks should use an endpoint and thresholds suited to the backend. Those details concern the separate objective of being able to exclude backend nodes that cannot serve required application requests, rather than to the named control required to notify the operations account when an AWS service issue affects the workload.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests