Exams / SOA-C03 / CloudWatch agent and log collection / Question 1
SOA-C03 practice question: CloudWatch agent and log collection (1 of 2)
Monitoring, Logging, Analysis, Remediation, and Performance Optimization A free question from our original SOA-C03 practice exam. Try it, then open the answer to see why each option is right or wrong.
A solar installer runs its quoting application on 40 Amazon Linux EC2 instances. The operations team needs to alarm when memory utilization or root-volume disk usage passes 85 percent. They notice that these metrics are not in the AWS/EC2 namespace, even with detailed monitoring turned on. The instances are already managed by AWS Systems Manager. Which TWO actions will provide the metrics? (Choose two.)
Choose two answers.
- AA. Attach the CloudWatchAgentServerPolicy managed policy to the IAM role in the instances' instance profile.
- BB. Turn on Systems Manager Inventory on the instances so that it collects memory and disk usage and publishes them to CloudWatch.
- CC. Turn on Compute Optimizer enhanced infrastructure metrics so that memory and disk usage appear in CloudWatch for each instance.
- DD. Install the CloudWatch agent on all instances with Systems Manager, and configure it to collect mem_used_percent and disk_used_percent.
- EE. Create a CloudWatch Logs metric filter on /var/log/messages that extracts memory and disk usage values into custom metrics.
Show the answer and explanation
Answers: A, D
Explanation
Memory and disk usage are guest operating system metrics, so EC2 cannot report them from outside the instance. The CloudWatch agent collects them and publishes them to the CWAgent namespace, using an instance role that includes CloudWatchAgentServerPolicy. Systems Manager makes installing and configuring the agent on 40 instances a single operation.
Study
Keep practicing
Answer questions with a score at the end, or practice just this topic with the explanation after each one. No sign-up needed.