cert
cert-1
cert-2

Pass Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Exam in First Attempt Guaranteed!

Get 100% Latest Exam Questions, Accurate & Verified Answers to Pass the Actual Exam!
30 Days Free Updates, Instant Download!

cert-5
cert-6
AWS Certified DevOps Engineer - Professional DOP-C02 Exam - Verified By Experts
AWS Certified DevOps Engineer - Professional DOP-C02 Premium Bundle
$14.99

AWS Certified DevOps Engineer - Professional DOP-C02 Premium Bundle

$74.99
$89.98
  • Premium File 480 Questions & Answers. Last update: Nov 08, 2026
  • Training Course 242 Video Lectures
 
$89.98
$74.99
accept 62 downloads in last 7 days
block-screenshots
Purchase Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Exam Training Products Individually
Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Premium File
Premium File 480 Q&A
$76.99$69.99
Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Video Training Course
Training Course 242 Lectures
$21.99 $19.99
Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Practice Test 5

Question 40

The DevOps team must resolve this scenario: A delivery pipeline in a tooling account must deploy CloudFormation into isolated production accounts without storing long-term access keys. Which engineering change is MOST appropriate?

  1. Run integration tests in a segregated account with constrained resource access.
  2. Introduce contract testing and backward-compatible staged promotion between affected pipelines.
  3. Configure a target-account deployment role trusted by the tooling role, with minimum required actions.
  4. Integrate deployment alarms and an automated rollback path for failed acceptance windows.

Explanation

Correct Answer

C:

Configure a target-account deployment role trusted by the tooling role, with minimum required actions. Its validation is: A controlled execution deploys in the intended account and fails in an unauthorized account. The principle is: Cross-account delivery should assume narrowly scoped roles in each target account.

Incorrect Answers

A:

Run integration tests in a segregated account with constrained resource access. This instead addresses a different case: Integration tests frequently overwrite production queues because staging jobs use a copied production endpoint variable. For the stated situation (A delivery pipeline in a tooling account must deploy CloudFormation into isolated production accounts without storing long-term access keys.), the better engineering action is: Configure a target-account deployment role trusted by the tooling role, with minimum required actions. The deciding distinction is: Cross-account delivery should assume narrowly scoped roles in each target account.

B:

Introduce contract testing and backward-compatible staged promotion between affected pipelines. This instead addresses a different case: A customer checkout API and its consumer contract must change together, but independent pipelines deploy incompatible revisions without a compatibility gate. For the stated situation (A delivery pipeline in a tooling account must deploy CloudFormation into isolated production accounts without storing long-term access keys.), the better engineering action is: Configure a target-account deployment role trusted by the tooling role, with minimum required actions. The deciding distinction is: Cross-account delivery should assume narrowly scoped roles in each target account.

D:

Integrate deployment alarms and an automated rollback path for failed acceptance windows. This instead addresses a different case: A production delivery pipeline remains green after a deployment even though health checks fail during post-deploy traffic. For the stated situation (A delivery pipeline in a tooling account must deploy CloudFormation into isolated production accounts without storing long-term access keys.), the better engineering action is: Configure a target-account deployment role trusted by the tooling role, with minimum required actions. The deciding distinction is: Cross-account delivery should assume narrowly scoped roles in each target account.

Question 41

A DevOps team is reviewing: A company provisions AWS accounts manually and regularly forgets baseline logging and governance settings. Which TWO complementary actions should it take? Select TWO answers.

  1. Inspect Control Tower landing zone, Account Factory templates and detective guardrails.
  2. Automate onboarding through approved Account Factory or supported account vending controls.
  3. Configure central Security Hub administration and cross-Region aggregation as appropriate.
  4. Inspect organizational SCPs, permitted global-service exceptions and deployment destinations.
  5. Implement a durable idempotency key and conditional write or transaction guard.

Explanation

Correct Answers

A:

Inspect Control Tower landing zone, Account Factory templates and detective guardrails. This is a required diagnostic evidence step for the stated situation: A company provisions AWS accounts manually and regularly forgets baseline logging and governance settings. The complementary correct action is: Automate onboarding through approved Account Factory or supported account vending controls. Both follow the principle: Account vending should create standardized governed accounts through an approved landing-zone process.

B:

Automate onboarding through approved Account Factory or supported account vending controls. This is a required controlled engineering action for the stated situation: A company provisions AWS accounts manually and regularly forgets baseline logging and governance settings. The complementary correct action is: Inspect Control Tower landing zone, Account Factory templates and detective guardrails. Both follow the principle: Account vending should create standardized governed accounts through an approved landing-zone process.

Incorrect Answers

C:

Configure central Security Hub administration and cross-Region aggregation as appropriate. This is suitable for another situation: Security Hub findings remain isolated in 40 member accounts and security operations cannot reliably track enterprise-wide exposure. In this case, engineers instead need the paired investigation (Inspect Control Tower landing zone, Account Factory templates and detective guardrails.) and design change (Automate onboarding through approved Account Factory or supported account vending controls.). These two steps address: A company provisions AWS accounts manually and regularly forgets baseline logging and governance settings.

D:

Inspect organizational SCPs, permitted global-service exceptions and deployment destinations. This is suitable for another situation: A multinational OU has a data residency rule, but new accounts can deploy regulated S3 resources in arbitrary Regions. In this case, engineers instead need the paired investigation (Inspect Control Tower landing zone, Account Factory templates and detective guardrails.) and design change (Automate onboarding through approved Account Factory or supported account vending controls.). These two steps address: A company provisions AWS accounts manually and regularly forgets baseline logging and governance settings.

E:

Implement a durable idempotency key and conditional write or transaction guard. This is suitable for another situation: An S3 ObjectCreated event invokes a Lambda that retries a billing update after a transient error and charges the same customer twice. In this case, engineers instead need the paired investigation (Inspect Control Tower landing zone, Account Factory templates and detective guardrails.) and design change (Automate onboarding through approved Account Factory or supported account vending controls.). These two steps address: A company provisions AWS accounts manually and regularly forgets baseline logging and governance settings.

Question 42

Before changing production, engineers find: A diagnostic CodeBuild command prints an authentication token to CloudWatch Logs before fetching a private package. Which investigation should the engineer perform FIRST?

  1. Review instance user data, launch template versions, AMIs and out-of-band modifications.
  2. Inspect package manager configuration, external connections and CodeArtifact permissions.
  3. Review bucket policy, encryption settings, KMS grants and pipeline roles.
  4. Inspect command verbosity, secret injection, log visibility and token usage.

Explanation

Correct Answer

D:

Inspect command verbosity, secret injection, log visibility and token usage. The governing principle is: Artifact build pipelines must prevent credential disclosure in stdout and artifacts. The next controlled engineering decision is: Remove token-printing commands and use scoped secret injection with safe diagnostics.

Incorrect Answers

A:

Review instance user data, launch template versions, AMIs and out-of-band modifications. This instead addresses a different case: An operations team changes configuration in running EC2 instances manually, and Auto Scaling replacement instances lose those changes. For the stated situation (A diagnostic CodeBuild command prints an authentication token to CloudWatch Logs before fetching a private package.), the better investigation is: Inspect command verbosity, secret injection, log visibility and token usage. The deciding distinction is: Artifact build pipelines must prevent credential disclosure in stdout and artifacts.

B:

Inspect package manager configuration, external connections and CodeArtifact permissions. This instead addresses a different case: A CodeBuild project downloads packages from unrestricted public registries even though an internal vetted package repository is required. For the stated situation (A diagnostic CodeBuild command prints an authentication token to CloudWatch Logs before fetching a private package.), the better investigation is: Inspect command verbosity, secret injection, log visibility and token usage. The deciding distinction is: Artifact build pipelines must prevent credential disclosure in stdout and artifacts.

C:

Review bucket policy, encryption settings, KMS grants and pipeline roles. This instead addresses a different case: Deployment artifacts containing sensitive configuration are stored in an S3 bucket with broad read access and no enforced encryption policy. For the stated situation (A diagnostic CodeBuild command prints an authentication token to CloudWatch Logs before fetching a private package.), the better investigation is: Inspect command verbosity, secret injection, log visibility and token usage. The deciding distinction is: Artifact build pipelines must prevent credential disclosure in stdout and artifacts.

Question 43

Before changing production, engineers find: A public application faces high-volume abusive HTTP requests that pass the ALB security group and overwhelm login processing. Which investigation should the engineer perform FIRST?

  1. Inspect request patterns, rule priorities, WAF logs and legitimate traffic impact.
  2. Inspect Inspector scanning coverage, asset inventory, findings and patch deployment.
  3. Review subnet NACL rules, ephemeral ports, security group and VPC flow logs.
  4. Inspect image layers, secret storage, runtime mounts and certificate rotation.

Explanation

Correct Answer

A:

Inspect request patterns, rule priorities, WAF logs and legitimate traffic impact. The governing principle is: AWS WAF application-layer rules can reduce abusive requests independently of network ACLs. The next controlled engineering decision is: Attach a tuned WAF web ACL with suitable rate-based or managed protections.

Incorrect Answers

B:

Inspect Inspector scanning coverage, asset inventory, findings and patch deployment. This instead addresses a different case: A new AMI enters production with an outdated system package, but the organization runs vulnerability assessments only once annually. For the stated situation (A public application faces high-volume abusive HTTP requests that pass the ALB security group and overwhelm login processing.), the better investigation is: Inspect request patterns, rule priorities, WAF logs and legitimate traffic impact. The deciding distinction is: AWS WAF application-layer rules can reduce abusive requests independently of network ACLs.

C:

Review subnet NACL rules, ephemeral ports, security group and VPC flow logs. This instead addresses a different case: A service needs stateful application access, but network engineers rely on one stateless NACL inbound allow rule and response traffic is blocked. For the stated situation (A public application faces high-volume abusive HTTP requests that pass the ALB security group and overwhelm login processing.), the better investigation is: Inspect request patterns, rule priorities, WAF logs and legitimate traffic impact. The deciding distinction is: AWS WAF application-layer rules can reduce abusive requests independently of network ACLs.

D:

Inspect image layers, secret storage, runtime mounts and certificate rotation. This instead addresses a different case: A custom TLS termination service stores its private key in an unencrypted public container image layer. For the stated situation (A public application faces high-volume abusive HTTP requests that pass the ALB security group and overwhelm login processing.), the better investigation is: Inspect request patterns, rule priorities, WAF logs and legitimate traffic impact. The deciding distinction is: AWS WAF application-layer rules can reduce abusive requests independently of network ACLs.

Question 44

After implementing a proposed fix, the team reviews: An EKS rolling deployment scales down all API pods at once, causing requests to fail despite multiple nodes. Which result would BEST confirm that the risk is addressed?

  1. An unrelated change does not deploy billing, while a relevant shared component still triggers required tests.
  2. The corrected ApplicationStart hook exits successfully and target health becomes normal.
  3. A simulated rollout maintains minimum ready pods and passes service availability thresholds.
  4. Peak deployment traffic stays within database connection limits with recoverable rollback.

Explanation

Correct Answer

C:

A simulated rollout maintains minimum ready pods and passes service availability thresholds. The approved action is: Set appropriate rolling update bounds, readiness probes and availability policies. The risk principle is: Kubernetes update strategy must preserve ready capacity and respect disruption limits.

Incorrect Answers

A:

An unrelated change does not deploy billing, while a relevant shared component still triggers required tests. This instead addresses a different case: A monorepo contains infrastructure, mobile and billing folders, but every README edit launches all three expensive production pipelines. For the stated situation (An EKS rolling deployment scales down all API pods at once, causing requests to fail despite multiple nodes.), the better verification is: A simulated rollout maintains minimum ready pods and passes service availability thresholds. The deciding distinction is: Kubernetes update strategy must preserve ready capacity and respect disruption limits.

B:

The corrected ApplicationStart hook exits successfully and target health becomes normal. This instead addresses a different case: A CodeDeploy in-place EC2 release fails during ApplicationStart, but the team incorrectly treats the issue as an Auto Scaling failure. For the stated situation (An EKS rolling deployment scales down all API pods at once, causing requests to fail despite multiple nodes.), the better verification is: A simulated rollout maintains minimum ready pods and passes service availability thresholds. The deciding distinction is: Kubernetes update strategy must preserve ready capacity and respect disruption limits.

D:

Peak deployment traffic stays within database connection limits with recoverable rollback. This instead addresses a different case: A deployment immediately starts hundreds of Lambda workers, exhausting relational database connections and making rollback harder. For the stated situation (An EKS rolling deployment scales down all API pods at once, causing requests to fail despite multiple nodes.), the better verification is: A simulated rollout maintains minimum ready pods and passes service availability thresholds. The deciding distinction is: Kubernetes update strategy must preserve ready capacity and respect disruption limits.

Question 45

Before changing production, engineers find: A disaster-recovery copy process creates unencrypted EC2 volumes from old snapshots even though the production baseline requires encryption. Which investigation should the engineer perform FIRST?

  1. Review IAM users, IAM Identity Center assignments and HR identity lifecycle.
  2. Review Object Lock configuration, retention mode, versioning and legal obligations.
  3. Inspect key usage, aliases, pending deletion, backup dependencies and retention policy.
  4. Inspect account default EBS encryption, snapshot copy settings and KMS keys.

Explanation

Correct Answer

D:

Inspect account default EBS encryption, snapshot copy settings and KMS keys. The governing principle is: Encryption standards should apply to restored volumes and associated snapshot workflows. The next controlled engineering decision is: Enforce default EBS encryption and approved KMS use for restore workflows.

Incorrect Answers

A:

Review IAM users, IAM Identity Center assignments and HR identity lifecycle. This instead addresses a different case: Developers in 25 AWS accounts authenticate with individually created IAM users whose credentials remain active after termination. For the stated situation (A disaster-recovery copy process creates unencrypted EC2 volumes from old snapshots even though the production baseline requires encryption.), the better investigation is: Inspect account default EBS encryption, snapshot copy settings and KMS keys. The deciding distinction is: Encryption standards should apply to restored volumes and associated snapshot workflows.

B:

Review Object Lock configuration, retention mode, versioning and legal obligations. This instead addresses a different case: An organization must retain regulatory audit evidence for seven years, but administrators can remove every copy using ordinary DeleteObject. For the stated situation (A disaster-recovery copy process creates unencrypted EC2 volumes from old snapshots even though the production baseline requires encryption.), the better investigation is: Inspect account default EBS encryption, snapshot copy settings and KMS keys. The deciding distinction is: Encryption standards should apply to restored volumes and associated snapshot workflows.

C:

Inspect key usage, aliases, pending deletion, backup dependencies and retention policy. This instead addresses a different case: An automated cleanup tool schedules deletion of a KMS key that encrypts backups needed to satisfy long retention. For the stated situation (A disaster-recovery copy process creates unencrypted EC2 volumes from old snapshots even though the production baseline requires encryption.), the better investigation is: Inspect account default EBS encryption, snapshot copy settings and KMS keys. The deciding distinction is: Encryption standards should apply to restored volumes and associated snapshot workflows.

Question 46

An AWS platform team investigates this condition: A production delivery pipeline remains green after a deployment even though health checks fail during post-deploy traffic. Which DevOps principle BEST explains the core problem?

  1. Performance acceptance must use representative concurrency and measured service-level thresholds.
  2. Multi-service releases need explicit interface compatibility, version and rollout coordination.
  3. Release success should depend on monitored application health and recoverable deployment state.
  4. Build-once promotion reduces environment drift and strengthens artifact provenance.

Explanation

Correct Answer

C:

Release success should depend on monitored application health and recoverable deployment state. Relevant first evidence: Review deployment alarm configuration, canary outcomes, rollback settings and traffic metrics. The resulting controlled response is: Integrate deployment alarms and an automated rollback path for failed acceptance windows.

Incorrect Answers

A:

Performance acceptance must use representative concurrency and measured service-level thresholds. This instead addresses a different case: A service passes one-user functional tests yet violates its 99th percentile latency target at peak checkout demand. For the stated situation (A production delivery pipeline remains green after a deployment even though health checks fail during post-deploy traffic.), the better principle is: Release success should depend on monitored application health and recoverable deployment state. The deciding distinction is: Release success should depend on monitored application health and recoverable deployment state.

B:

Multi-service releases need explicit interface compatibility, version and rollout coordination. This instead addresses a different case: A customer checkout API and its consumer contract must change together, but independent pipelines deploy incompatible revisions without a compatibility gate. For the stated situation (A production delivery pipeline remains green after a deployment even though health checks fail during post-deploy traffic.), the better principle is: Release success should depend on monitored application health and recoverable deployment state. The deciding distinction is: Release success should depend on monitored application health and recoverable deployment state.

D:

Build-once promotion reduces environment drift and strengthens artifact provenance. This instead addresses a different case: Each environment rebuilds an application from its Git branch, making production binaries differ from staging even when the commit matches. For the stated situation (A production delivery pipeline remains green after a deployment even though health checks fail during post-deploy traffic.), the better principle is: Release success should depend on monitored application health and recoverable deployment state. The deciding distinction is: Release success should depend on monitored application health and recoverable deployment state.

Question 47

A DevOps team is reviewing: A production security group unexpectedly allows SSH from the internet, and teams disagree who changed it. Which TWO complementary actions should it take? Select TWO answers.

  1. Query structured log events grouped by revision and error pattern using Logs Insights.
  2. Query trusted CloudTrail records and correlate with approved change records.
  3. Inspect CloudWatch namespaces, dimensions, function names and alarm aggregation.
  4. Inspect Inspector finding resources, image digests, package versions and exposure.
  5. Review eventName, principal identity, request parameters, source IP and timestamp.

Explanation

Correct Answers

B:

Query trusted CloudTrail records and correlate with approved change records. This is a required controlled engineering action for the stated situation: A production security group unexpectedly allows SSH from the internet, and teams disagree who changed it. The complementary correct action is: Review eventName, principal identity, request parameters, source IP and timestamp. Both follow the principle: CloudTrail management events can attribute configuration changes when logged and retained appropriately.

E:

Review eventName, principal identity, request parameters, source IP and timestamp. This is a required diagnostic evidence step for the stated situation: A production security group unexpectedly allows SSH from the internet, and teams disagree who changed it. The complementary correct action is: Query trusted CloudTrail records and correlate with approved change records. Both follow the principle: CloudTrail management events can attribute configuration changes when logged and retained appropriately.

Incorrect Answers

A:

Query structured log events grouped by revision and error pattern using Logs Insights. This is suitable for another situation: A burst of HTTP 500s appears in logs, but operators query raw text and cannot correlate failures by deployment revision. In this case, engineers instead need the paired investigation (Review eventName, principal identity, request parameters, source IP and timestamp.) and design change (Query trusted CloudTrail records and correlate with approved change records.). These two steps address: A production security group unexpectedly allows SSH from the internet, and teams disagree who changed it.

C:

Inspect CloudWatch namespaces, dimensions, function names and alarm aggregation. This is suitable for another situation: A dashboard aggregates all Lambda error counts into one line and cannot reveal which function causes the failures. In this case, engineers instead need the paired investigation (Review eventName, principal identity, request parameters, source IP and timestamp.) and design change (Query trusted CloudTrail records and correlate with approved change records.). These two steps address: A production security group unexpectedly allows SSH from the internet, and teams disagree who changed it.

D:

Inspect Inspector finding resources, image digests, package versions and exposure. This is suitable for another situation: Amazon Inspector reports a critical package CVE on a small set of container images, but the security board assumes all images are affected. In this case, engineers instead need the paired investigation (Review eventName, principal identity, request parameters, source IP and timestamp.) and design change (Query trusted CloudTrail records and correlate with approved change records.). These two steps address: A production security group unexpectedly allows SSH from the internet, and teams disagree who changed it.

Question 48

An AWS platform team investigates this condition: Security Hub findings remain isolated in 40 member accounts and security operations cannot reliably track enterprise-wide exposure. Which DevOps principle BEST explains the core problem?

  1. Organization controls should constrain sensitive service actions to approved Regions where practical.
  2. Multi-account security governance needs centralized delegated administration and aggregated visibility.
  3. Workforce access should be federated and provisioned centrally with time-limited account sessions.
  4. Critical stateful stacks need deletion safeguards independent of ordinary deployment success.

Explanation

Correct Answer

B:

Multi-account security governance needs centralized delegated administration and aggregated visibility. Relevant first evidence: Review Organizations integration, delegated administrator, enabled standards and aggregation regions. The resulting controlled response is: Configure central Security Hub administration and cross-Region aggregation as appropriate.

Incorrect Answers

A:

Organization controls should constrain sensitive service actions to approved Regions where practical. This instead addresses a different case: A multinational OU has a data residency rule, but new accounts can deploy regulated S3 resources in arbitrary Regions. For the stated situation (Security Hub findings remain isolated in 40 member accounts and security operations cannot reliably track enterprise-wide exposure.), the better principle is: Multi-account security governance needs centralized delegated administration and aggregated visibility. The deciding distinction is: Multi-account security governance needs centralized delegated administration and aggregated visibility.

C:

Workforce access should be federated and provisioned centrally with time-limited account sessions. This instead addresses a different case: An enterprise manually creates duplicate IAM users in dozens of accounts for employees, creating slow offboarding. For the stated situation (Security Hub findings remain isolated in 40 member accounts and security operations cannot reliably track enterprise-wide exposure.), the better principle is: Multi-account security governance needs centralized delegated administration and aggregated visibility. The deciding distinction is: Multi-account security governance needs centralized delegated administration and aggregated visibility.

D:

Critical stateful stacks need deletion safeguards independent of ordinary deployment success. This instead addresses a different case: A production database is managed in a stack whose deletion could be triggered by an overly broad cleanup pipeline. For the stated situation (Security Hub findings remain isolated in 40 member accounts and security operations cannot reliably track enterprise-wide exposure.), the better principle is: Multi-account security governance needs centralized delegated administration and aggregated visibility. The deciding distinction is: Multi-account security governance needs centralized delegated administration and aggregated visibility.

Question 49

Before changing production, engineers find: An ECS application task fails health checks every few minutes, and the team restarts the same failing task manually without identifying a dependency outage. Which investigation should the engineer perform FIRST?

  1. Review alarm condition, transaction criticality, runbook approvals and current service health.
  2. Inspect EventBridge event pattern, action-induced events and invocation counts.
  3. Inspect relevant AWS Health notices, affected resources, deploy timestamps and CloudWatch metrics.
  4. Inspect ECS service events, target health, logs, dependency reachability and restart rate.

Explanation

Correct Answer

D:

Inspect ECS service events, target health, logs, dependency reachability and restart rate. The governing principle is: Automated recovery must distinguish replaceable task failure from persistent systemic causes. The next controlled engineering decision is: Use ECS service reconciliation with alarms and root-cause escalation for repeated failures.

Incorrect Answers

A:

Review alarm condition, transaction criticality, runbook approvals and current service health. This instead addresses a different case: A production alarm starts an infrastructure rebuild immediately even during a payroll settlement window where failover can corrupt in-flight transactions. For the stated situation (An ECS application task fails health checks every few minutes, and the team restarts the same failing task manually without identifying a dependency outage.), the better investigation is: Inspect ECS service events, target health, logs, dependency reachability and restart rate. The deciding distinction is: Automated recovery must distinguish replaceable task failure from persistent systemic causes.

B:

Inspect EventBridge event pattern, action-induced events and invocation counts. This instead addresses a different case: An event rule starts a Lambda that tags an EC2 resource, and the resulting CloudTrail tagging event triggers the same Lambda repeatedly. For the stated situation (An ECS application task fails health checks every few minutes, and the team restarts the same failing task manually without identifying a dependency outage.), the better investigation is: Inspect ECS service events, target health, logs, dependency reachability and restart rate. The deciding distinction is: Automated recovery must distinguish replaceable task failure from persistent systemic causes.

C:

Inspect relevant AWS Health notices, affected resources, deploy timestamps and CloudWatch metrics. This instead addresses a different case: Following an AWS service impairment, application timeouts increase in one Region but operators repeatedly redeploy healthy code. For the stated situation (An ECS application task fails health checks every few minutes, and the team restarts the same failing task manually without identifying a dependency outage.), the better investigation is: Inspect ECS service events, target health, logs, dependency reachability and restart rate. The deciding distinction is: Automated recovery must distinguish replaceable task failure from persistent systemic causes.

Question 50

The DevOps team must resolve this scenario: Multiple environments share unqualified /db/password parameter names and a production application accidentally reads a staging secret. Which engineering change is MOST appropriate?

  1. Use service-managed StackSets with appropriate OU targets and automatic deployment where supported.
  2. Use scoped paths or separate accounts with least-privilege parameter read access.
  3. Enable termination protection and suitable resource retention or backup controls with restricted delete rights.
  4. Use explicit account/OU boundaries, safe tags, dry-run records and approval for destructive operations.

Explanation

Correct Answer

B:

Use scoped paths or separate accounts with least-privilege parameter read access. Its validation is: The production role reads only its approved parameter and denies staging reads. The principle is: Parameter naming and permissions must isolate environment configuration.

Incorrect Answers

A:

Use service-managed StackSets with appropriate OU targets and automatic deployment where supported. This instead addresses a different case: A central platform team needs to roll out an approved Config rule to newly joined accounts across multiple Regions without manual role creation each time. For the stated situation (Multiple environments share unqualified /db/password parameter names and a production application accidentally reads a staging secret.), the better engineering action is: Use scoped paths or separate accounts with least-privilege parameter read access. The deciding distinction is: Parameter naming and permissions must isolate environment configuration.

C:

Enable termination protection and suitable resource retention or backup controls with restricted delete rights. This instead addresses a different case: A production database is managed in a stack whose deletion could be triggered by an overly broad cleanup pipeline. For the stated situation (Multiple environments share unqualified /db/password parameter names and a production application accidentally reads a staging secret.), the better engineering action is: Use scoped paths or separate accounts with least-privilege parameter read access. The deciding distinction is: Parameter naming and permissions must isolate environment configuration.

D:

Use explicit account/OU boundaries, safe tags, dry-run records and approval for destructive operations. This instead addresses a different case: A Lambda cleans abandoned development stacks nightly but occasionally deletes shared production KMS keys due to an imprecise tag query. For the stated situation (Multiple environments share unqualified /db/password parameter names and a production application accidentally reads a staging secret.), the better engineering action is: Use scoped paths or separate accounts with least-privilege parameter read access. The deciding distinction is: Parameter naming and permissions must isolate environment configuration.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests