(Choose 1 answer)
As a developer, you are looking at creating a custom configuration for Amazon EC2 instances running in an Auto Scaling group. The solution should allow the group to auto-scale based on the metric of 'average RAM usage' for your Amazon EC2 instances.Which option provides the best solution?
A. Enable detailed monitoring for EC2 and ASG to get the RAM usage data and create a CloudWatch Alarm on top of it
B. Migrate your application to AWS Lambda
C. Create a custom alarm for your ASG and make your instances trigger the alarm using PutAlarmData API
D. Create a custom metric in CloudWatch and make your instances send data to it using PutMetricData.Then, create an alarm based on this metric
8