Deployment, Provisioning, and Automation

An EC2 maintenance workflow must obtain approval before stopping an instance, create an EBS snapshot before updating software, and restart the instance if the update fails. The team wants one auditable Systems Manager workflow with minimal custom orchestration; which design is BEST?

Show the answer

Correct answerA. Create an Automation runbook with approval, ordered actions, and a failure branch to restart.

AWhy this is right: Automation combines approval, ordered operations, execution history, and explicit failure routing in one runbook.

BWhy not this: Separate command invocations require additional orchestration to coordinate approval, dependencies, and failure recovery.

CWhy not this: Separate associations enforce configurations rather than coordinate an approval-gated transactional workflow.

DWhy not this: Task priority controls ordering but does not provide the required conditional failure-recovery workflow.

An Automation runbook supports approval steps, ordered AWS API actions, and failure routing to recovery steps in one execution. Maintenance window task priorities provide scheduling order, not conditional recovery based on an earlier task's result.