‹ All DOP-C02 questions

DOP-C02 Practice Question 8: EventBridge SSM Automation Remediation

AWS Certified DevOps Engineer – Professional (DOP-C02) · Test 1 · question 8 of 10

Incident and Event Responsemedium

On-call engineers are paged several times a week because a fleet of EC2 instances fills its /var/log volume. The documented fix is a fixed six-step procedure: capture a diagnostic bundle, truncate the offending logs, restart the agent, and tag the instance. The team wants EventBridge to run this procedure automatically the moment a disk-usage CloudWatch alarm fires, and wants the run history and each step's output retained and auditable.

Which implementation should be used?

Select one answer
Show answer and explanation

Answer:

  • D. Author a Systems Manager Automation runbook containing the six steps, then create an EventBridge rule on the alarm's state change to ALARM with the runbook as the target, using an EventBridge role that permits ssm:StartAutomationExecution and iam:PassRole on the runbook's AutomationAssumeRole

Systems Manager Automation is purpose-built for multi-step operational runbooks: each step is recorded with its inputs, outputs, and status, and the execution history is retained and queryable, which is what the audit requirement is asking for. EventBridge supports an SSM Automation runbook directly as a rule target, so a CloudWatch alarm state-change event triggers it with no intermediate compute. Two IAM roles are involved and both matter: the rule's target role needs ssm:StartAutomationExecution plus iam:PassRole on the AutomationAssumeRole, and the AutomationAssumeRole is what Automation itself assumes to act on the instance.

Option A introduces an unnecessary and fragile hop through SNS to an HTTPS endpoint the team must now operate and secure. A single SendCommand shell script also collapses six auditable steps into one opaque script whose per-step outcomes are not individually recorded.

Option B replaces event-driven response with polling, adding up to five minutes of latency to every incident and running needlessly the rest of the time. Run Command executes commands on instances but has no notion of a multi-step workflow with branching or per-step output the way Automation does.

Option C uses the wrong service for the trigger. AWS Config evaluates *resource configuration* compliance; disk utilization inside a guest OS is a runtime metric, not a configuration item, so there is nothing for a Config rule to evaluate. Config remediation is also driven by configuration-change or periodic evaluations, not by an alarm firing.

Reference: Run automations based on EventBridge events

Practice Test 1 ›

Study guides for DOP-C02

AWS Service Control Policies Explained: SCPs and DenialsAWS service control policies explained: how SCPs cap permissions, why admins still get access denied, inheritance, deny vs allow lists and the exam traps.
How AI Is Changing Software Jobs: Where to PrepareHow AI is changing software jobs: what history shows, the evidence on junior developers, what Klarna learned, new AI roles and five domains to prepare for.
How AWS Certification Exams Work: Scoring and RenewalHow AWS certification exams work: levels, booking, question types, unscored questions, scaled scores, pass marks, validity and how recertification works.
What Is Amazon RDS? Multi-AZ, Read Replicas and BackupsWhat is Amazon RDS? Engines, Multi-AZ, read replicas, backups, RDS Proxy, Aurora and pricing explained, with the traps that AWS exams set around each one.
Best DevOps certification: AWS, Azure, Google or CKAThe best DevOps certification for your stack: AWS DOP-C02, Azure AZ-400, Google Cloud DevOps Engineer and CKA compared on cost, level and prerequisites.
What Is AWS Lambda? Triggers, Concurrency and Cold StartsWhat is AWS Lambda? How functions run, cold starts, triggers vs event source mappings, concurrency, layers, aliases, pricing and the exam traps.
AWS CloudOps Engineer Associate (SOA-C03) exam guideAWS Certified CloudOps Engineer – Associate (SOA-C03) replaced SysOps Administrator. Format, cost, the five domains, what changed and how to prepare.
Which AWS certification should you get? 2026 roadmapWhich AWS certification to get first, by role and experience, with each exam's status in October 2026, what is changing, and prices in USD and INR.
What Is Amazon EC2? Instances, AMIs, EBS and Auto ScalingAmazon EC2 explained: instances, AMIs, instance types, security groups, EBS, Auto Scaling groups and pricing options, with the traps AWS exams set.
SQS vs SNS vs EventBridge on AWSWhen to use an SQS queue, an SNS topic or an EventBridge bus, plus fan-out, FIFO ordering, visibility timeouts and dead-letter queues for AWS exams.