Question 40

A technical change review names the selected control as follows: Use AWS Private CA for an organization-managed private certificate authority. To issue short-lived internal TLS certificates for private service identities, which constraint must be addressed for this design?

  1. Detection should inspect eligible S3 object content and report discovered data categories
  2. The team accepts the operational burden of key management and cluster availability
  3. The corrective runbook must execute with narrowly authorized permissions
  4. The organization must govern internal CA policies and certificate trust distribution

Explanation

Correct Answer

D:

The implementation has to honor the exact constraint: the organization must govern internal CA policies and certificate trust distribution; AWS Private CA creates and operates private certificate authorities for issuing and managing private certificates.

Incorrect Answers

A:

This condition governs the different mechanism used to identify S3 objects that potentially contain sensitive information; Macie uses automated discovery and classification to identify sensitive data in supported S3 objects; for the selected control, the relevant boundary is instead that the organization must govern internal CA policies and certificate trust distribution.

B:

CloudHSM offers dedicated hardware security modules operated under the customer's control plane; its own dependency is that the team accepts the operational burden of key management and cluster availability. Those details concern the separate objective of being able to meet a specialized cryptographic requirement needing dedicated customer-managed HSMs, rather than to the named control required to issue short-lived internal TLS certificates for private service identities.

C:

The proposed condition makes sense in an implementation designed to restore supported misconfigured resource settings when drift is detected. It concerns AWS Config rules evaluate configurations and can integrate with Systems Manager remediation, whereas this question tests the prerequisite of the named control.

Question 41

A technical change review names the selected control as follows: Use multi-Region KMS keys where the supported encryption workflow needs related keys. To manage related KMS key material for supported multi-Region cryptographic operations, which constraint must be addressed for this design?

  1. Controls must count matching web requests over a configured evaluation interval
  2. The ALB should use a managed public certificate with a valid domain validation path
  3. Findings should identify affected software and resources for triage
  4. The account must prevent public access through ACL and policy paths where configured
  5. The design should keep plaintext data keys controlled and protect their encrypted form
  6. Key replication, key policy, and regional resource configuration still require explicit management

Explanation

Correct Answer

F:

Key replication, key policy, and regional resource configuration still require explicit management; without this, choosing the named service is not enough to produce the promised outcome. Multi-Region KMS keys allow related keys in selected Regions but do not make every AWS service resource global.

Incorrect Answers

A:

WAF rate-based rules track request rates for defined aggregation keys and act on matching excess traffic; its own dependency is that controls must count matching web requests over a configured evaluation interval. Those details concern the separate objective of being able to limit repeated HTTP requests from sources that exceed an approved threshold, rather than to the named control required to manage related KMS key material for supported multi-Region cryptographic operations.

B:

The proposed condition makes sense in an implementation designed to automate TLS certificate provisioning for an AWS-managed load balancer. It concerns AWS Certificate Manager provisions and renews eligible certificates for integrated AWS services, whereas this question tests the prerequisite of the named control.

C:

This proposed constraint belongs to a separate objective: findings should identify affected software and resources for triage; the corresponding goal is to identify vulnerable software packages in running compute and container images, not the selected architecture's goal to manage related KMS key material for supported multi-Region cryptographic operations.

D:

This condition governs the different mechanism used to prevent accidental public grants on sensitive S3 buckets. S3 Block Public Access settings override relevant public permissions for supported access paths; for the selected control, the relevant boundary is instead that key replication, key policy, and regional resource configuration still require explicit management.

E:

Envelope encryption uses a data key for bulk data and KMS to protect or generate that key. Its own dependency is that the design should keep plaintext data keys controlled and protect their encrypted form. Those details concern the separate objective of being able to encrypt bulk data using data keys protected by an AWS managed cryptographic boundary, rather than to the named control required to manage related KMS key material for supported multi-Region cryptographic operations.

Question 42

An AWS design review will approve a solution only if it meets these criteria: (1) automatically replace failed instances without requiring manual restarts; (2) repair noncompliant security group rules after policy evaluation; (3) review the actual resource mutations before applying a critical IaC patch. Select the THREE needed changes. Choose THREE.

  1. Apply CloudFormation drift remediation through a reviewed template update
  2. Use EC2 Auto Scaling health replacement for unhealthy fleet members
  3. Use a CloudFormation Change Set for emergency infrastructure adjustments
  4. Configure an EventBridge-triggered Lambda to quarantine a newly exposed resource
  5. Attach an AWS Config remediation configuration to an SSM Automation runbook
  6. Require a Systems Manager Change Manager approval for high-risk production automation

Explanation

Correct Answers

B:

This covers the specific result to automatically replace failed instances without requiring manual restarts: EC2 Auto Scaling can terminate and replace unhealthy instances to meet desired capacity. Instance health evaluation must drive desired-capacity reconciliation.

C:

CloudFormation Change Sets preview resource actions including potential replacements before execution; this fulfills the stated requirement to review the actual resource mutations before applying a critical IaC patch. The operational limitation is that the change must be inspectable before stack update execution.

E:

Config remediation can invoke Systems Manager Automation to correct supported rule findings. Among the listed outcomes, it addresses repair noncompliant security group rules after policy evaluation, rather than merely contributing a related signal or support step.

Incorrect Answers

A:

It supports a separate administrative task, namely to restore a resource's intended IaC state after manual infrastructure changes; a reviewed stack update can bring supported drifted resources back toward declared template state; the prompt's required outcomes are not achieved by substituting this control.

D:

This mechanism supports the ability to apply a narrow automated containment action after an unsafe resource change event: EventBridge invokes a Lambda target whose code can apply scoped AWS API changes when a rule matches. It would not satisfy a different obligation just by appearing in the same workflow.

F:

Change Manager supports governed change requests and approval workflows for operations. If the requirement were to review a sensitive operational change before executing its runbook, that would matter. The requested outcomes are separate from the one this option addresses.

Question 43

An engineer will implement the following change: Use IAM roles and temporary credentials for CodeBuild service integration. Which operational boundary most directly applies to the intended outcome to prevent CI workers from embedding persistent AWS keys in build scripts?

  1. Certificate trust anchors and profile scopes must be explicitly managed
  2. Corporate authentication and AWS account assignments must work together
  3. Per-workload identity should restrict permissions to the required AWS APIs
  4. The build project role should authorize only required artifact and deployment operations
  5. Consumers must retrieve the current secret value and rotation must preserve application availability

Explanation

Correct Answer

D:

The build project role should authorize only required artifact and deployment operations. Without this, choosing the named service is not enough to produce the promised outcome; CodeBuild obtains temporary service-role credentials to call authorized AWS APIs during builds.

Incorrect Answers

A:

This proposed constraint belongs to a separate objective: certificate trust anchors and profile scopes must be explicitly managed; the corresponding goal is to provide temporary AWS credentials to on-premises workloads without storing IAM user keys, not the selected architecture's goal to prevent CI workers from embedding persistent AWS keys in build scripts.

B:

This condition governs the different mechanism used to centralize workforce lifecycle while retaining the corporate identity provider; IAM Identity Center integrates with supported identity providers for federated workforce access; for the selected control, the relevant boundary is instead that the build project role should authorize only required artifact and deployment operations.

C:

EKS workload identity mechanisms associate an AWS IAM role with a Kubernetes service account or pod; its own dependency is that per-workload identity should restrict permissions to the required AWS APIs; those details concern the separate objective of being able to grant a Kubernetes workload AWS permissions without using the node IAM role, rather than to the named control required to prevent CI workers from embedding persistent AWS keys in build scripts.

E:

This proposed constraint belongs to a separate objective: consumers must retrieve the current secret value and rotation must preserve application availability. The corresponding goal is to rotate an application database password without manual quarterly updates, not the selected architecture's goal to prevent CI workers from embedding persistent AWS keys in build scripts.

Question 44

The current plan covers only one side of the security operating model. It needs to limit repeated HTTP requests from sources that exceed an approved threshold as well as restore supported misconfigured resource settings when drift is detected. Which paired changes complete the design?

  1. Use an AWS WAF rate-based rule for abusive clients; use AWS Config rule evaluations with automatic remediation for policy violations
  2. Use an AWS WAF rate-based rule for abusive clients; use an S3 gateway VPC endpoint and appropriate bucket policy constraints
  3. Use security group rules for stateful instance or ENI traffic control; use AWS Config rule evaluations with automatic remediation for policy violations
  4. Request an ACM-issued public certificate for a supported HTTPS endpoint; use CloudHSM when exclusive customer control of HSM key management is required

Explanation

Correct Answer

A:

WAF rate-based rules track request rates for defined aggregation keys and act on matching excess traffic; AWS Config rules evaluate configurations and can integrate with Systems Manager remediation. The first control satisfies the need to limit repeated HTTP requests from sources that exceed an approved threshold; the second addresses the need to restore supported misconfigured resource settings when drift is detected. Controls must count matching web requests over a configured evaluation interval; the corrective runbook must execute with narrowly authorized permissions.

Incorrect Answers

B:

Combining a suitable first control with this second one misses the secondary acceptance criterion; S3 gateway endpoints use VPC route entries to access S3 privately from eligible subnets; it helps allow private subnet workloads to reach S3 without NAT for supported traffic rather than restore supported misconfigured resource settings when drift is detected.

C:

Security groups apply stateful allow rules to supported network interfaces and resources. That is intended to restrict inbound application ports while permitting corresponding return traffic, not to limit repeated HTTP requests from sources that exceed an approved threshold. The second half can meet the requirement to restore supported misconfigured resource settings when drift is detected, but the first is still missing.

D:

These are legitimate AWS controls for different outcomes: AWS Certificate Manager provisions and renews eligible certificates for integrated AWS services, whereas cloudHSM offers dedicated hardware security modules operated under the customer's control plane. The problem instead requires the ability to limit repeated HTTP requests from sources that exceed an approved threshold and to restore supported misconfigured resource settings when drift is detected.

Question 45

The cloud operations group proposes this implementation: Use EC2 Image Builder pipelines to produce hardened AMIs. Its intended result is to automate repeatable golden-image builds with validation tests. Which implementation consideration is most specific to that choice?

  1. Repository access should be controlled by IAM and scoped package versions
  2. Published instance images must undergo defined components and tests
  3. Image availability must be arranged across destination accounts and Regions
  4. The image build should follow a repeatable managed pipeline

Explanation

Correct Answer

B:

Published instance images must undergo defined components and tests. Without this, choosing the named service is not enough to produce the promised outcome; image Builder creates, customizes, tests, and distributes repeatable machine images from recipes.

Incorrect Answers

A:

CodeArtifact hosts versioned package repositories with upstream connections and permission policies; its own dependency is that repository access should be controlled by IAM and scoped package versions. Those details concern the separate objective of being able to centrally share approved Maven or npm packages across build projects, rather than to the named control required to automate repeatable golden-image builds with validation tests.

C:

This proposed constraint belongs to a separate objective: image availability must be arranged across destination accounts and Regions; the corresponding goal is to publish a validated AMI to workloads outside its build account, not the selected architecture's goal to automate repeatable golden-image builds with validation tests.

D:

This condition governs the different mechanism used to automate container base-image patching and validation for approved images; image Builder supports container recipes and workflows to build and test image outputs; for the selected control, the relevant boundary is instead that published instance images must undergo defined components and tests.

Question 46

The current plan covers only one side of the delivery operating model. It needs to send a small fraction of user traffic to a replacement task set before full cutover as well as halt an EC2 release when service health violates a CloudWatch alarm. Which paired changes complete the design?

  1. Choose a supported ECS canary traffic-shift configuration; use immutable AMI replacement through an Auto Scaling instance refresh
  2. Set termination wait time for a CodeDeploy ECS blue/green deployment; use CodeDeploy Lambda canary deployment with an alias
  3. Choose a supported ECS canary traffic-shift configuration; attach CodeDeploy deployment alarms for automatic stop or rollback
  4. Run a post-deploy smoke test against an ALB health-checked endpoint; attach CodeDeploy deployment alarms for automatic stop or rollback

Explanation

Correct Answer

C:

Canary deployment configurations shift an initial percentage before the remaining cutover; CodeDeploy can monitor CloudWatch alarms and stop or roll back deployments based on configured criteria. The first control satisfies the need to send a small fraction of user traffic to a replacement task set before full cutover; the second addresses the need to halt an EC2 release when service health violates a CloudWatch alarm. The new task set must be evaluated on limited live traffic first; rollback must be linked to an explicit monitored deployment failure condition.

Incorrect Answers

A:

Combining a suitable first control with this second one misses the secondary acceptance criterion; auto Scaling instance refresh replaces instances according to an updated launch template and health controls; it helps replace outdated instances with a tested image instead of mutating running systems rather than halt an EC2 release when service health violates a CloudWatch alarm.

B:

Neither control directly supplies both requested behaviors. CodeDeploy blue/green termination settings control how long the original ECS task set remains after success; CodeDeploy can update Lambda alias traffic weights using canary configurations. Those mechanisms address different objectives. The specified capabilities are to send a small fraction of user traffic to a replacement task set before full cutover and to halt an EC2 release when service health violates a CloudWatch alarm.

D:

This combination solves only the latter acceptance test. The substituted first control supports validate that a new service release responds correctly before ending the deployment: a smoke test targets live application behavior after rollout and can trigger deployment failure handling; it does not implement send a small fraction of user traffic to a replacement task set before full cutover.

Question 47

An engineer is addressing a two-part delivery requirement: run compatible test variations in parallel and consolidate their outcomes, without losing the ability to expose test-suite pass rates and failing cases for each build execution. Which set of actions is suitable?

  1. Use CodeBuild batch builds for a supported test matrix; configure CodeBuild test reports with the supported report-file format
  2. Publish code coverage in CodeBuild reports without treating it as proof of behavior; configure CodeBuild test reports with the supported report-file format
  3. Use CodeBuild batch builds for a supported test matrix; use canary synthetic checks against a published test endpoint
  4. Separate performance threshold checks from functional correctness tests; run dependency and container image scanning before artifact promotion
  5. Use CodeBuild batch builds for a supported test matrix; use AWS IAM policy evaluation tests for deployment-role assumptions

Explanation

Correct Answer

A:

Batch builds support coordinated multiple build configurations and associated aggregate status; this handles the first acceptance condition, subject to the boundary that the matrix results must be tied to one reviewable build request. The remaining condition is handled separately: CodeBuild reads supported report files from configured paths and associates results with report groups, with 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 track executed source coverage while retaining assertions-based acceptance gates: coverage reports show which code paths execute; they cannot prove that behavior or assertions are correct. It does not implement run compatible test variations in parallel and consolidate their outcomes.

C:

The first half is appropriate: Batch builds support coordinated multiple build configurations and associated aggregate status. 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 expose test-suite pass rates and failing cases for each build execution unmet.

D:

These are legitimate AWS controls for different outcomes: performance testing assesses response-time and throughput targets distinct from pass or fail functionality, whereas an automated scanning gate blocks releases when risk findings breach the defined security policy. The problem instead requires the ability to run compatible test variations in parallel and consolidate their outcomes and to expose test-suite pass rates and failing cases for each build execution.

E:

Combining a suitable first control with this second one misses the secondary acceptance criterion; IAM policy simulation and access analysis can help test whether planned principal actions are allowed; it helps verify the release role cannot perform actions outside its approved scope rather than expose test-suite pass rates and failing cases for each build execution.

Question 48

An operations runbook has 2 acceptance criteria: (1) measure throughput and latency under expected concurrency without degrading production; (2) detect incompatible API schema changes without requiring full production rollout. Which TWO AWS actions satisfy these requirements? Choose TWO.

  1. Use pull request events to start a pre-merge validation build
  2. Configure CodeBuild test reports with the supported report-file format
  3. Use a CodePipeline test action after deployment to staging
  4. Use contract tests to validate interface compatibility between independently deployed services
  5. Use CodeBuild batch builds for a supported test matrix
  6. Run controlled load tests in a dedicated performance environment

Explanation

Correct Answers

D:

This covers the specific result to detect incompatible API schema changes without requiring full production rollout: contract tests assert expected interface behavior, revealing breaking integration changes before both services ship. Compatibility must be verified at the producer-consumer boundary.

F:

The corresponding obligation is to measure throughput and latency under expected concurrency without degrading production. Dedicated performance testing reveals scale and bottleneck behavior while isolating intentional high load; that behavior is the reason this action belongs in the selected answer set.

Incorrect Answers

A:

PR-triggered builds can test changes earlier than post-merge releases and support branch protection workflows; that would be appropriate to evaluate a proposed change before it merges into a protected branch, but this is a different objective from the numbered obligations in the stem.

B:

This mechanism supports the ability 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. It would not satisfy a different obligation just by appearing in the same workflow.

C:

It supports a separate administrative task, namely 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; the prompt's required outcomes are not achieved by substituting this control.

E:

Batch builds support coordinated multiple build configurations and associated aggregate status; that would be appropriate to run compatible test variations in parallel and consolidate their outcomes, but this is a different objective from the numbered obligations in the stem.

Question 49

A team is designing a reusable security pattern. It must reduce confused-deputy risk when a SaaS vendor assumes customer roles; it must also centralize workforce lifecycle while retaining the corporate identity provider. Which paired configuration is appropriate?

  1. Require MFA for privileged human sign-in and sensitive actions; use EKS IAM Roles for Service Accounts or supported EKS Pod Identity
  2. Configure IAM role trust conditions with an external ID for a third-party provider; use an ECS task IAM role rather than the ECS task execution role for application API access
  3. Use IAM database authentication for a supported RDS engine and client; use IAM Identity Center with an external identity provider federation
  4. Configure IAM role trust conditions with an external ID for a third-party provider; use IAM Identity Center with an external identity provider federation

Explanation

Correct Answer

D:

The sts:ExternalId condition helps a provider distinguish authorized cross-account assume-role requests; IAM Identity Center integrates with supported identity providers for federated workforce access. The first control satisfies the need to reduce confused-deputy risk when a SaaS vendor assumes customer roles; the second addresses the need to centralize workforce lifecycle while retaining the corporate identity provider. The customer role should verify an agreed external identifier supplied by the trusted provider; corporate authentication and AWS account assignments must work together.

Incorrect Answers

A:

The pair changes the problem instead of completing it. One option addresses add possession-based verification to administrator authentication; the other addresses grant a Kubernetes workload AWS permissions without using the node IAM role. The release, however, needs to reduce confused-deputy risk when a SaaS vendor assumes customer roles as well as centralize workforce lifecycle while retaining the corporate identity provider.

B:

The first half is appropriate: The sts:ExternalId condition helps a provider distinguish authorized cross-account assume-role requests. However, ECS task roles grant permissions to containers; execution roles support image pulls, logs, and task startup; that serves a different objective (authorize container business logic to read only its specific AWS resources) and leaves the explicit need to centralize workforce lifecycle while retaining the corporate identity provider unmet.

C:

The second implementation is relevant; the problem is the first. IAM database authentication generates short-lived authentication tokens for supported RDS database engines; it can help reduce reliance on stored passwords for supported database connections, whereas the stated first requirement is to reduce confused-deputy risk when a SaaS vendor assumes customer roles.

Question 50

After a configuration change, the delivery engineering team sees this issue: A credential embedded in buildspec files has been committed and is now exposed to contributors. What best restores the ability to supply a rotating database credential to CI jobs without placing the secret in source control?

  1. Use an immutable artifact identifier when promoting a release
  2. Restrict build credentials to a CodeBuild service role with least privilege
  3. Use a customer managed KMS key and grant the target deployment role decrypt permission
  4. Resolve runtime secrets from Secrets Manager during the build

Explanation

Correct Answer

D:

Secrets Manager stores secret values and supports managed rotation integrations; runtime retrieval avoids committing values; it restores the ability to supply a rotating database credential to CI jobs without placing the secret in source control, provided the implementation also observes that the value must be retrieved at execution time by an authorized build role.

Incorrect Answers

A:

The choice is useful when engineers need to promote the exact tested package between environments rather than rebuilding source independently: promoting a fixed artifact identity prevents environment-specific rebuilds from silently changing the delivered bytes. It would not establish the control needed to supply a rotating database credential to CI jobs without placing the secret in source control.

B:

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 supply a rotating database credential to CI jobs without placing the secret in source control.

C:

Choosing this would aim to make encrypted CodePipeline artifacts usable by an authorized cross-account action instead of supply a rotating database credential to CI jobs without placing the secret in source control. A customer managed key with suitable key policy and IAM permission supports cross-account decrypt access; it cannot replace the mechanism specified by the incident evidence.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests