SOA-C02 Monitoring, Logging, and Remediation Practice Question
An application running on EC2 instances in an Auto Scaling group is experiencing intermittent errors. The errors correlate with periods of high memory usage. The SysOps administrator wants to set up a CloudWatch alarm to scale out when memory usage exceeds 80%. What should the administrator do to enable monitoring of memory usage?
⚠ Common exam trap
Candidates often assume memory metrics are automatically available in CloudWatch like CPU utilization, but AWS intentionally excludes guest-level metrics (memory, disk, swap) by default, requiring the CloudWatch agent to be installed and configured.
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
✓
Install the CloudWatch agent on the EC2 instances to publish memory metrics.
The CloudWatch agent is required to publish custom memory metrics from EC2 instances because memory utilization is not a standard metric provided by default. By installing and configuring the agent, the administrator can collect memory usage data and create a CloudWatch alarm to trigger Auto Scaling actions when usage exceeds 80%.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Enable detailed monitoring on the Auto Scaling group.
Why it's wrong here
Detailed monitoring on an Auto Scaling group only increases the reporting frequency of existing EC2 metrics from five minutes to one minute. It does not add any new metric categories, because memory utilization is a guest-OS counter that the hypervisor cannot observe. Enabling it would provide faster polling of CPU or network metrics but would never expose memory usage, so the core monitoring gap remains unaddressed.
- ✓
Install the CloudWatch agent on the EC2 instances to publish memory metrics.
Why this is correct
The CloudWatch agent is the recommended mechanism for publishing EC2 guest-level metrics such as memory utilization, swap usage, and disk space to CloudWatch. Running on each instance, it collects counters from the OS and sends them under the CWAgent namespace, making them available for CloudWatch alarms and dashboards. To use it, install the agent on every instance in the Auto Scaling group, typically via user data or a bootstrap script, so that newly launched instances also begin reporting memory metrics.
- ✗
Use the default EC2 memory metric provided by CloudWatch.
Why it's wrong here
CloudWatch does not provide a default EC2 memory metric. The standard AWS/EC2 namespace only contains hypervisor-visible metrics like CPUUtilization, NetworkIn, DiskReadOps, and StatusCheckFailed; memory resides inside the guest OS and is invisible to Amazon's hypervisor. Therefore, there is no out-of-the-box memory metric to select in the CloudWatch console or API. Any memory utilization data must come from an agent that reads OS-level counters and publishes them as custom metrics.
- ✗
Create a Lambda function to pull memory data from the EC2 instances.
Why it's wrong here
A Lambda function can retrieve memory metrics from EC2 instances only if a CloudWatch agent or custom script is already installed and publishing those metrics to CloudWatch, which the scenario does not specify. The question requires a solution that enables monitoring of memory usage, not merely pulls existing data. This option is tempting because Lambda is commonly used to process or aggregate CloudWatch metrics after they are collected, and in a scenario where memory data is already being published, a Lambda function could transform or alert on it.
Go deeper
Related to this question
About these practice questions
Courseiva writes every SOA-C02 question from scratch — 1,169 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 SOA-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 SOA-C02 exam.