DOP-C02 Incident and Event Response Practice Question
A DevOps engineer receives an alert that an EC2 instance's CPU utilization has been above 90% for the last 30 minutes. The engineer needs to investigate the root cause. Which AWS service should the engineer use to get OS-level process details and identify which process is consuming the CPU?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
AWS Systems Manager Run Command
AWS Systems Manager Run Command allows you to run commands (e.g., 'top', 'ps') remotely on EC2 instances to obtain OS-level process details and identify which process is consuming CPU. Option A is wrong because AWS Config records configuration changes, not OS-level processes. Option B is wrong because AWS CloudTrail logs API calls, not system-level metrics. Option D is wrong because Amazon CloudWatch provides aggregated CPU utilization metrics but cannot provide process-level details.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
AWS Config
Why it's wrong here
AWS Config is a resource inventory and compliance service that records configuration changes to AWS resources (e.g., security groups, instance types, AMI IDs) and evaluates them against rules. It does not have an agent that captures OS-level runtime state like active processes, nor does it provide a means to execute commands on the instance. Even with the EC2 instance configured for detailed monitoring, Config remains at the infrastructure configuration level, not the guest OS process level. Therefore it cannot answer what process is crashing the instance.
- ✗
AWS CloudTrail
Why it's wrong here
AWS CloudTrail records AWS API calls made by users, roles, or AWS services, capturing who called what, from where, and when. It operates at the control plane level, auditing actions like RunInstances, StopInstances, or AttachVolume, but it never sees inside the guest OS. A process crashing on the instance generates no CloudTrail event, so CloudTrail cannot provide details about running processes or their resource consumption. It is about accountability and security auditing of the AWS API, not OS telemetry.
- ✓
AWS Systems Manager Run Command
Why this is correct
AWS Systems Manager Run Command is part of AWS Systems Manager and lets you remotely and securely execute shell commands or PowerShell scripts on EC2 instances (and on-premises machines) via the SSM Agent. You can run a command like `ps aux` or `Get-Process` to enumerate running processes, capture output, and store it in S3 or CloudWatch Logs. Because the SSM Agent runs inside the instance as a guest process, it has direct access to OS-level state, making it the appropriate service for collecting process-level data. It also supports rate control and error handling for fleet-wide execution.
- ✗
Amazon CloudWatch
Why it's wrong here
Amazon CloudWatch collects and stores metrics such as CPUUtilization, NetworkIn/Out, and DiskRead/Write from the EC2 hypervisor (or from the CloudWatch agent if installed), but by default these are instance-level aggregates, not per-process breakdowns. Even with the unified CloudWatch agent, you must explicitly configure custom metrics for processes, and it doesn't offer an ad-hoc way to list currently running processes on demand. CloudWatch is for monitoring and alerting on trends, not for interactive investigation like running a top command. To answer the alert, you need to query the OS, which CloudWatch doesn't natively do.
Go deeper
Related to this question
About these practice questions
Courseiva writes every DOP-C02 question from scratch — 1,339 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This DOP-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DOP-C02 exam.