
Ultimate access to all questions.
As an AWS Certified Developer Associate, you are tasked with designing an efficient auto-scaling strategy for a fleet of Amazon EC2 instances that are part of an Auto Scaling group. Your main objective is to ensure that the Auto Scaling group automatically scales in or out based on the 'average RAM usage' metric of the EC2 instances.
Which option provides the best solution?
A
Create a custom alarm for your ASG and make your instances trigger the alarm using PutAlarmData API
B
Enable detailed monitoring for EC2 and ASG to get the RAM usage data and create a CloudWatch Alarm on top of it
C
Migrate your application to AWS Lambda
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