QuestionQ39

Monitoring, Logging, Analysis, Remediation, and Performance Optimization

A company runs an application on memory-optimized Amazon EC2 instances behind a Network Load Balancer (NLB). The company launched the EC2 instances from an AWS-provided Red Hat Enterprise Linux (RHEL) Amazon Machine Image (AMI).

A CloudOps engineer needs to monitor RAM utilization at 5-minute intervals. The CloudOps engineer must make sure that the EC2 instances scale in and out correctly according to incoming load.

Which solution meets these requirements?

Explanation

Amazon EC2 basic monitoring supplies its built-in metrics in 5-minute periods. RAM utilization is an operating-system-level metric rather than a standard EC2 metric, so the Amazon CloudWatch agent must collect it on the RHEL instances. The agent publishes mem_used_percent, which is the percentage of memory currently in use, and an IAM role must authorize the agent to publish those metrics. An EC2 Auto Scaling policy can use that metric to adjust capacity.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!