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 72

Question 710

The DevOps team must resolve this scenario: A production alarm starts an infrastructure rebuild immediately even during a payroll settlement window where failover can corrupt in-flight transactions. Which engineering change is MOST appropriate?

  1. Create selective event patterns matching only approved incident conditions.
  2. Use conditional automation and human approval for high-risk stateful remediation.
  3. Use a controlled approved remediation action or rollback of the unauthorized rule.
  4. Filter relevant state transitions and check desired state before mutating resources.

Explanation

Correct Answer

B:

Use conditional automation and human approval for high-risk stateful remediation. Its validation is: The workflow defers unsafe destruction during critical processing and records authorization. The principle is: Remediation decisions must respect approved change safety, business state and rollback constraints.

Incorrect Answers

A:

Create selective event patterns matching only approved incident conditions. This instead addresses a different case: A security automation rule currently runs for every CloudTrail event, flooding a response Lambda with unrelated calls. For the stated situation (A production alarm starts an infrastructure rebuild immediately even during a payroll settlement window where failover can corrupt in-flight transactions.), the better engineering action is: Use conditional automation and human approval for high-risk stateful remediation. The deciding distinction is: Remediation decisions must respect approved change safety, business state and rollback constraints.

C:

Use a controlled approved remediation action or rollback of the unauthorized rule. This instead addresses a different case: Operations edits a firewall security group to add temporary unrestricted access but forgets to remove it after an emergency. For the stated situation (A production alarm starts an infrastructure rebuild immediately even during a payroll settlement window where failover can corrupt in-flight transactions.), the better engineering action is: Use conditional automation and human approval for high-risk stateful remediation. The deciding distinction is: Remediation decisions must respect approved change safety, business state and rollback constraints.

D:

Filter relevant state transitions and check desired state before mutating resources. 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 (A production alarm starts an infrastructure rebuild immediately even during a payroll settlement window where failover can corrupt in-flight transactions.), the better engineering action is: Use conditional automation and human approval for high-risk stateful remediation. The deciding distinction is: Remediation decisions must respect approved change safety, business state and rollback constraints.

Question 711

The DevOps team must resolve this scenario: Message consumers regularly process tasks longer than the SQS visibility timeout, causing duplicate deliveries while the first worker is active. Which engineering change is MOST appropriate?

  1. Adjust visibility timeout or extend it safely, with idempotent task handling.
  2. Use reserved concurrency or queue buffering and controlled backpressure.
  3. Introduce an appropriate cache or replicated read path with clear invalidation rules.
  4. Provision and test a suitably sized standby baseline with controlled scale-up on failover.

Explanation

Correct Answer

A:

Adjust visibility timeout or extend it safely, with idempotent task handling. Its validation is: A long-running task avoids unintended simultaneous processing and duplicates are safe. The principle is: Queue consumer visibility and processing design must account for task duration and idempotency.

Incorrect Answers

B:

Use reserved concurrency or queue buffering and controlled backpressure. This instead addresses a different case: A public API invokes Lambda and saturates an external payment service when automatic concurrency grows after a marketing event. For the stated situation (Message consumers regularly process tasks longer than the SQS visibility timeout, causing duplicate deliveries while the first worker is active.), the better engineering action is: Adjust visibility timeout or extend it safely, with idempotent task handling. The deciding distinction is: Queue consumer visibility and processing design must account for task duration and idempotency.

C:

Introduce an appropriate cache or replicated read path with clear invalidation rules. This instead addresses a different case: An authenticated read-heavy API repeatedly queries a database for identical catalog metadata, exhausting database read capacity. For the stated situation (Message consumers regularly process tasks longer than the SQS visibility timeout, causing duplicate deliveries while the first worker is active.), the better engineering action is: Adjust visibility timeout or extend it safely, with idempotent task handling. The deciding distinction is: Queue consumer visibility and processing design must account for task duration and idempotency.

D:

Provision and test a suitably sized standby baseline with controlled scale-up on failover. This instead addresses a different case: A standby Region has copied AMIs but no provisioned database capacity and cannot accept traffic for hours. For the stated situation (Message consumers regularly process tasks longer than the SQS visibility timeout, causing duplicate deliveries while the first worker is active.), the better engineering action is: Adjust visibility timeout or extend it safely, with idempotent task handling. The deciding distinction is: Queue consumer visibility and processing design must account for task duration and idempotency.

Question 712

After implementing a proposed fix, the team reviews: A dashboard aggregates all Lambda error counts into one line and cannot reveal which function causes the failures. Which result would BEST confirm that the risk is addressed?

  1. The incident-period public access state is established from timestamped evidence.
  2. A single failing function is identified without incorrectly flagging every Lambda service.
  3. A generated test error reaches the target with original timestamp and source.
  4. A test log group expires data according to its authorized retention policy.

Explanation

Correct Answer

B:

A single failing function is identified without incorrectly flagging every Lambda service. The approved action is: Create per-function metric queries and alarms using appropriate dimensions. The risk principle is: Metrics must preserve useful dimensions for diagnostic isolation.

Incorrect Answers

A:

The incident-period public access state is established from timestamped evidence. This instead addresses a different case: A tagged production S3 bucket is currently private, but auditors need to know whether it was public during a past incident window. For the stated situation (A dashboard aggregates all Lambda error counts into one line and cannot reveal which function causes the failures.), the better verification is: A single failing function is identified without incorrectly flagging every Lambda service. The deciding distinction is: Metrics must preserve useful dimensions for diagnostic isolation.

C:

A generated test error reaches the target with original timestamp and source. This instead addresses a different case: CloudWatch Logs receives application errors but the incident analytics system never sees them because the log stream is not forwarded. For the stated situation (A dashboard aggregates all Lambda error counts into one line and cannot reveal which function causes the failures.), the better verification is: A single failing function is identified without incorrectly flagging every Lambda service. The deciding distinction is: Metrics must preserve useful dimensions for diagnostic isolation.

D:

A test log group expires data according to its authorized retention policy. This instead addresses a different case: A development application sends verbose logs to CloudWatch Logs indefinitely, creating growing cost and a retention-policy exception. For the stated situation (A dashboard aggregates all Lambda error counts into one line and cannot reveal which function causes the failures.), the better verification is: A single failing function is identified without incorrectly flagging every Lambda service. The deciding distinction is: Metrics must preserve useful dimensions for diagnostic isolation.

Question 713

Before changing production, engineers find: A critical single EC2 instance occasionally fails hardware health checks, but operators discover the outage only when customers complain. Which investigation should the engineer perform FIRST?

  1. Inspect installed CloudWatch agent, metric namespace, dimensions and memory alarms.
  2. Inspect CloudWatch Synthetics canary steps, credential handling and network reachability.
  3. Inspect AWS Health event source, EventBridge rules, targets and account aggregation.
  4. Inspect instance type support, status-check metrics and automated action requirements.

Explanation

Correct Answer

D:

Inspect instance type support, status-check metrics and automated action requirements. The governing principle is: Supported EC2 recovery alarms can automate appropriate recovery responses to infrastructure issues. The next controlled engineering decision is: Configure a CloudWatch alarm with supported EC2 recovery action where appropriate.

Incorrect Answers

A:

Inspect installed CloudWatch agent, metric namespace, dimensions and memory alarms. This instead addresses a different case: An EC2 application runs out of memory while CPU remains low, but CloudWatch dashboards contain only default EC2 CPU metrics. For the stated situation (A critical single EC2 instance occasionally fails hardware health checks, but operators discover the outage only when customers complain.), the better investigation is: Inspect instance type support, status-check metrics and automated action requirements. The deciding distinction is: Supported EC2 recovery alarms can automate appropriate recovery responses to infrastructure issues.

B:

Inspect CloudWatch Synthetics canary steps, credential handling and network reachability. This instead addresses a different case: An external application returns 200 for its home page even as the login endpoint has expired certificates and cannot authenticate users. For the stated situation (A critical single EC2 instance occasionally fails hardware health checks, but operators discover the outage only when customers complain.), the better investigation is: Inspect instance type support, status-check metrics and automated action requirements. The deciding distinction is: Supported EC2 recovery alarms can automate appropriate recovery responses to infrastructure issues.

C:

Inspect AWS Health event source, EventBridge rules, targets and account aggregation. This instead addresses a different case: A regional AWS Health event indicates maintenance of a service used by five accounts, but no on-call team receives it. For the stated situation (A critical single EC2 instance occasionally fails hardware health checks, but operators discover the outage only when customers complain.), the better investigation is: Inspect instance type support, status-check metrics and automated action requirements. The deciding distinction is: Supported EC2 recovery alarms can automate appropriate recovery responses to infrastructure issues.

Question 714

A DevOps team is reviewing: An operations team changes configuration in running EC2 instances manually, and Auto Scaling replacement instances lose those changes. Which TWO complementary actions should it take? Select TWO answers.

  1. Create and inspect a change set before controlled production execution.
  2. Build a verified image and roll the Auto Scaling group with instance refresh or a controlled deployment.
  3. Inspect CodeDeploy ECS deployment config, target groups, listener routes and alarm settings.
  4. Review instance user data, launch template versions, AMIs and out-of-band modifications.
  5. Inspect AppSpec hook scripts, CodeDeploy agent logs, file permissions and deployment events.

Explanation

Correct Answers

B:

Build a verified image and roll the Auto Scaling group with instance refresh or a controlled deployment. This is a required controlled engineering action for the stated situation: An operations team changes configuration in running EC2 instances manually, and Auto Scaling replacement instances lose those changes. The complementary correct action is: Review instance user data, launch template versions, AMIs and out-of-band modifications. Both follow the principle: Immutable delivery should replace instances from a versioned launch template and image rather than relying on manual drift.

D:

Review instance user data, launch template versions, AMIs and out-of-band modifications. This is a required diagnostic evidence step for the stated situation: An operations team changes configuration in running EC2 instances manually, and Auto Scaling replacement instances lose those changes. The complementary correct action is: Build a verified image and roll the Auto Scaling group with instance refresh or a controlled deployment. Both follow the principle: Immutable delivery should replace instances from a versioned launch template and image rather than relying on manual drift.

Incorrect Answers

A:

Create and inspect a change set before controlled production execution. This is suitable for another situation: A pipeline applies a template change that silently replaces a stateful database resource during a minor refactor. In this case, engineers instead need the paired investigation (Review instance user data, launch template versions, AMIs and out-of-band modifications.) and design change (Build a verified image and roll the Auto Scaling group with instance refresh or a controlled deployment.). These two steps address: An operations team changes configuration in running EC2 instances manually, and Auto Scaling replacement instances lose those changes.

C:

Inspect CodeDeploy ECS deployment config, target groups, listener routes and alarm settings. This is suitable for another situation: An ECS service release must let QA validate a new task set before production traffic shifts, with rollback if alarms breach a threshold. In this case, engineers instead need the paired investigation (Review instance user data, launch template versions, AMIs and out-of-band modifications.) and design change (Build a verified image and roll the Auto Scaling group with instance refresh or a controlled deployment.). These two steps address: An operations team changes configuration in running EC2 instances manually, and Auto Scaling replacement instances lose those changes.

E:

Inspect AppSpec hook scripts, CodeDeploy agent logs, file permissions and deployment events. This is suitable for another situation: A CodeDeploy in-place EC2 release fails during ApplicationStart, but the team incorrectly treats the issue as an Auto Scaling failure. In this case, engineers instead need the paired investigation (Review instance user data, launch template versions, AMIs and out-of-band modifications.) and design change (Build a verified image and roll the Auto Scaling group with instance refresh or a controlled deployment.). These two steps address: An operations team changes configuration in running EC2 instances manually, and Auto Scaling replacement instances lose those changes.

Question 715

After implementing a proposed fix, the team reviews: A critical single EC2 instance occasionally fails hardware health checks, but operators discover the outage only when customers complain. Which result would BEST confirm that the risk is addressed?

  1. A deliberately failing message is isolated and material backlog delay triggers alerting.
  2. A simulated supported infrastructure impairment triggers the documented recovery workflow.
  3. A failing test release restores healthy tasks while recording the rollback reason.
  4. A stopped publisher produces a timely actionable signal rather than false healthy status.

Explanation

Correct Answer

B:

A simulated supported infrastructure impairment triggers the documented recovery workflow. The approved action is: Configure a CloudWatch alarm with supported EC2 recovery action where appropriate. The risk principle is: Supported EC2 recovery alarms can automate appropriate recovery responses to infrastructure issues.

Incorrect Answers

A:

A deliberately failing message is isolated and material backlog delay triggers alerting. This instead addresses a different case: A queue's depth remains modest but its oldest message waits 40 minutes because one poison message repeatedly fails processing. For the stated situation (A critical single EC2 instance occasionally fails hardware health checks, but operators discover the outage only when customers complain.), the better verification is: A simulated supported infrastructure impairment triggers the documented recovery workflow. The deciding distinction is: Supported EC2 recovery alarms can automate appropriate recovery responses to infrastructure issues.

C:

A failing test release restores healthy tasks while recording the rollback reason. This instead addresses a different case: A new ECS task definition produces errors after traffic shift, but the deployment continues to completion because alarms are not associated with the release. For the stated situation (A critical single EC2 instance occasionally fails hardware health checks, but operators discover the outage only when customers complain.), the better verification is: A simulated supported infrastructure impairment triggers the documented recovery workflow. The deciding distinction is: Supported EC2 recovery alarms can automate appropriate recovery responses to infrastructure issues.

D:

A stopped publisher produces a timely actionable signal rather than false healthy status. This instead addresses a different case: A high-severity payment error alarm stays green when the application stops publishing error metrics during an outage. For the stated situation (A critical single EC2 instance occasionally fails hardware health checks, but operators discover the outage only when customers complain.), the better verification is: A simulated supported infrastructure impairment triggers the documented recovery workflow. The deciding distinction is: Supported EC2 recovery alarms can automate appropriate recovery responses to infrastructure issues.

Question 716

After implementing a proposed fix, the team reviews: A monorepo contains infrastructure, mobile and billing folders, but every README edit launches all three expensive production pipelines. Which result would BEST confirm that the risk is addressed?

  1. A rolling deployment preserves end-to-end checkout while old and new versions briefly coexist.
  2. Unauthorized promotion is blocked and an approved release proceeds with a traceable reviewer.
  3. A broken checkout fails release validation despite a healthy root URL response.
  4. An unrelated change does not deploy billing, while a relevant shared component still triggers required tests.

Explanation

Correct Answer

D:

An unrelated change does not deploy billing, while a relevant shared component still triggers required tests. The approved action is: Use appropriate source change triggers and path filters with explicit handling of shared dependencies. The risk principle is: Pipeline triggers should select relevant branch and file changes without missing dependencies.

Incorrect Answers

A:

A rolling deployment preserves end-to-end checkout while old and new versions briefly coexist. 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 monorepo contains infrastructure, mobile and billing folders, but every README edit launches all three expensive production pipelines.), the better verification is: An unrelated change does not deploy billing, while a relevant shared component still triggers required tests. The deciding distinction is: Pipeline triggers should select relevant branch and file changes without missing dependencies.

B:

Unauthorized promotion is blocked and an approved release proceeds with a traceable reviewer. This instead addresses a different case: A critical payments service is automatically promoted from a successful staging build directly into production without business acceptance. For the stated situation (A monorepo contains infrastructure, mobile and billing folders, but every README edit launches all three expensive production pipelines.), the better verification is: An unrelated change does not deploy billing, while a relevant shared component still triggers required tests. The deciding distinction is: Pipeline triggers should select relevant branch and file changes without missing dependencies.

C:

A broken checkout fails release validation despite a healthy root URL response. This instead addresses a different case: After a deployment, the homepage returns HTTP 200 while checkout is broken for authenticated customers. For the stated situation (A monorepo contains infrastructure, mobile and billing folders, but every README edit launches all three expensive production pipelines.), the better verification is: An unrelated change does not deploy billing, while a relevant shared component still triggers required tests. The deciding distinction is: Pipeline triggers should select relevant branch and file changes without missing dependencies.

Question 717

After implementing a proposed fix, the team reviews: A critical payments service is automatically promoted from a successful staging build directly into production without business acceptance. Which result would BEST confirm that the risk is addressed?

  1. An authorized dry run produces no token in captured logs and fetch still succeeds.
  2. A rolling deployment preserves end-to-end checkout while old and new versions briefly coexist.
  3. Unauthorized promotion is blocked and an approved release proceeds with a traceable reviewer.
  4. A deliberately unhealthy release triggers rollback to the prior verified revision.

Explanation

Correct Answer

C:

Unauthorized promotion is blocked and an approved release proceeds with a traceable reviewer. The approved action is: Insert a manual approval action between verified staging tests and the production deployment. The risk principle is: Production promotion can require an explicit accountable approval without breaking automation.

Incorrect Answers

A:

An authorized dry run produces no token in captured logs and fetch still succeeds. This instead addresses a different case: A diagnostic CodeBuild command prints an authentication token to CloudWatch Logs before fetching a private package. For the stated situation (A critical payments service is automatically promoted from a successful staging build directly into production without business acceptance.), the better verification is: Unauthorized promotion is blocked and an approved release proceeds with a traceable reviewer. The deciding distinction is: Production promotion can require an explicit accountable approval without breaking automation.

B:

A rolling deployment preserves end-to-end checkout while old and new versions briefly coexist. 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 critical payments service is automatically promoted from a successful staging build directly into production without business acceptance.), the better verification is: Unauthorized promotion is blocked and an approved release proceeds with a traceable reviewer. The deciding distinction is: Production promotion can require an explicit accountable approval without breaking automation.

D:

A deliberately unhealthy release triggers rollback to the prior verified revision. 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 critical payments service is automatically promoted from a successful staging build directly into production without business acceptance.), the better verification is: Unauthorized promotion is blocked and an approved release proceeds with a traceable reviewer. The deciding distinction is: Production promotion can require an explicit accountable approval without breaking automation.

Question 718

After implementing a proposed fix, the team reviews: A manual checklist coordinates data migration, validation, and customer notification, but operators skip steps when a Lambda function times out. Which result would BEST confirm that the risk is addressed?

  1. A simulated timeout follows the expected recovery or compensation path without skipped stages.
  2. Actual installed package inventory reconciles to approved software baseline.
  3. A test run affects only approved instances and stops within the configured error threshold.
  4. An authorized test role can access permitted buckets, and disallowed actions remain blocked.

Explanation

Correct Answer

A:

A simulated timeout follows the expected recovery or compensation path without skipped stages. The approved action is: Orchestrate tasks with Step Functions including bounded retries and catch paths. The risk principle is: Complex automation benefits from explicit state transitions, retries, timeouts and compensation.

Incorrect Answers

B:

Actual installed package inventory reconciles to approved software baseline. This instead addresses a different case: Operations estimates patch compliance from EC2 tags but has no verified installed software inventory. For the stated situation (A manual checklist coordinates data migration, validation, and customer notification, but operators skip steps when a Lambda function times out.), the better verification is: A simulated timeout follows the expected recovery or compensation path without skipped stages. The deciding distinction is: Complex automation benefits from explicit state transitions, retries, timeouts and compensation.

C:

A test run affects only approved instances and stops within the configured error threshold. This instead addresses a different case: A fleet automation document runs shell commands as root across all tagged instances with no peer review or limit on execution concurrency. For the stated situation (A manual checklist coordinates data migration, validation, and customer notification, but operators skip steps when a Lambda function times out.), the better verification is: A simulated timeout follows the expected recovery or compensation path without skipped stages. The deciding distinction is: Complex automation benefits from explicit state transitions, retries, timeouts and compensation.

D:

An authorized test role can access permitted buckets, and disallowed actions remain blocked. This instead addresses a different case: A team attaches an AWS Organizations SCP allowing S3 access and assumes member-account workloads now have permission to list all buckets. For the stated situation (A manual checklist coordinates data migration, validation, and customer notification, but operators skip steps when a Lambda function times out.), the better verification is: A simulated timeout follows the expected recovery or compensation path without skipped stages. The deciding distinction is: Complex automation benefits from explicit state transitions, retries, timeouts and compensation.

Question 719

An AWS platform team investigates this condition: AWS Config finds an EC2 instance without the approved monitoring agent, but the repair Lambda has permission to modify every resource in the account. Which DevOps principle BEST explains the core problem?

  1. Certificate lifecycle automation must match certificate origin and supported renewal method.
  2. Event-based remediation should be scoped to the affected resource and run with least privilege.
  3. Workflows dependent on resource arrivals should use suitable events and readiness checks.
  4. Resource adjustment should respond to measured demand with bounded Auto Scaling behavior.

Explanation

Correct Answer

B:

Event-based remediation should be scoped to the affected resource and run with least privilege. Relevant first evidence: Inspect Config evaluation detail, remediation automation document and IAM target permissions. The resulting controlled response is: Use a controlled Systems Manager automation targeted only to eligible noncompliant nodes.

Incorrect Answers

A:

Certificate lifecycle automation must match certificate origin and supported renewal method. This instead addresses a different case: An ACM-managed certificate is nearing expiration, but an application relies on manually imported certificates whose renewal notifications are ignored. For the stated situation (AWS Config finds an EC2 instance without the approved monitoring agent, but the repair Lambda has permission to modify every resource in the account.), the better principle is: Event-based remediation should be scoped to the affected resource and run with least privilege. The deciding distinction is: Event-based remediation should be scoped to the affected resource and run with least privilege.

C:

Workflows dependent on resource arrivals should use suitable events and readiness checks. This instead addresses a different case: An automation starts on a fixed schedule even though the required S3 data file often arrives late, causing incomplete daily reports. For the stated situation (AWS Config finds an EC2 instance without the approved monitoring agent, but the repair Lambda has permission to modify every resource in the account.), the better principle is: Event-based remediation should be scoped to the affected resource and run with least privilege. The deciding distinction is: Event-based remediation should be scoped to the affected resource and run with least privilege.

D:

Resource adjustment should respond to measured demand with bounded Auto Scaling behavior. This instead addresses a different case: A consumer service has rapidly increasing queue lag, and responders manually launch instances rather than using a safe dynamic policy. For the stated situation (AWS Config finds an EC2 instance without the approved monitoring agent, but the repair Lambda has permission to modify every resource in the account.), the better principle is: Event-based remediation should be scoped to the affected resource and run with least privilege. The deciding distinction is: Event-based remediation should be scoped to the affected resource and run with least privilege.

Question 720

The DevOps team must resolve this scenario: A datacenter fleet and EC2 instances need the same audited patch procedure, but offline servers are not in Systems Manager inventory. Which engineering change is MOST appropriate?

  1. Use explicit account/OU boundaries, safe tags, dry-run records and approval for destructive operations.
  2. Register supported hybrid nodes in Systems Manager and assign compliant patch baselines.
  3. Split work into durable Step Functions state transitions or supported managed operations.
  4. Use scoped paths or separate accounts with least-privilege parameter read access.

Explanation

Correct Answer

B:

Register supported hybrid nodes in Systems Manager and assign compliant patch baselines. Its validation is: A selected on-premises node reports patch status through the central approved console. The principle is: Hybrid systems can be managed through supported SSM activation and scoped policies where reachable.

Incorrect Answers

A:

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 (A datacenter fleet and EC2 instances need the same audited patch procedure, but offline servers are not in Systems Manager inventory.), the better engineering action is: Register supported hybrid nodes in Systems Manager and assign compliant patch baselines. The deciding distinction is: Hybrid systems can be managed through supported SSM activation and scoped policies where reachable.

C:

Split work into durable Step Functions state transitions or supported managed operations. This instead addresses a different case: A Lambda invoked for a multi-hour infrastructure migration times out before tasks finish and loses progress. For the stated situation (A datacenter fleet and EC2 instances need the same audited patch procedure, but offline servers are not in Systems Manager inventory.), the better engineering action is: Register supported hybrid nodes in Systems Manager and assign compliant patch baselines. The deciding distinction is: Hybrid systems can be managed through supported SSM activation and scoped policies where reachable.

D:

Use scoped paths or separate accounts with least-privilege parameter read access. This instead addresses a different case: Multiple environments share unqualified /db/password parameter names and a production application accidentally reads a staging secret. For the stated situation (A datacenter fleet and EC2 instances need the same audited patch procedure, but offline servers are not in Systems Manager inventory.), the better engineering action is: Register supported hybrid nodes in Systems Manager and assign compliant patch baselines. The deciding distinction is: Hybrid systems can be managed through supported SSM activation and scoped policies where reachable.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests