‹ All DOP-C02 questions

DOP-C02 Practice Question 27: CloudWatch Agent Memory Metrics

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

Monitoring and Loggingeasy

An operations team needs CloudWatch alarms on memory utilization and free disk space for a fleet of Amazon EC2 Linux instances. In the CloudWatch console they can find CPUUtilization, NetworkIn, and EBS metrics for every instance, but no memory or disk-space metric appears anywhere.

What should the team do to collect the metrics they need?

Select one answer
Show answer and explanation

Answer:

  • A. Install and configure the CloudWatch agent on the instances so it publishes mem_used_percent and disk_used_percent to the CWAgent namespace, then alarm on those metrics

EC2 publishes only the metrics the hypervisor can see. Memory usage and filesystem usage live inside the guest operating system, so something has to run on the instance to report them. That is the CloudWatch agent: "If you install the agent on an Amazon EC2 instance, the metrics the agent collects are in addition to the metrics enabled by default on Amazon EC2 instances." Its Linux metric list includes mem_used_percent and disk_used_percent, published to the CWAgent namespace by default, and once they are CloudWatch metrics an ordinary alarm works on them.

Option B changes frequency, not coverage. Detailed monitoring moves the existing AWS/EC2 metrics from five-minute to one-minute periods; it does not add any metric that EC2 could not see before, so memory still will not appear.

Option C targets the wrong workloads. Container Insights collects metrics from Amazon ECS, Amazon EKS, and Kubernetes clusters. It is not a way to get host metrics from a fleet of plain EC2 instances running an application directly.

Option D collects the wrong kind of data. Systems Manager Inventory gathers configuration facts (installed applications, packages, network configuration, patch state) as inventory, on a schedule. It does not emit time-series metrics to CloudWatch, so there is nothing to alarm on.

Reference: Metrics collected by the CloudWatch agent

Practice Test 3 ›

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.