A user has created a launch configuration for Auto Scaling where CloudWatch detailed monitoring is disabled. The user wants to now enable detailed monitoring. How can the user achieve this?
A.
Update the Launch config with CLI to set InstanceMonitoringDisabled = false
B.
The user should change the Auto Scaling group from the AWS console to enable detailed monitoring
C.
Update the Launch config with CLI to set InstanceMonitoring.Enabled = true
D.
Create a new Launch Config with detail monitoring enabled and update the Auto Scaling group
Suggested Answer:D🗳️
CloudWatch is used to monitor AWS as well as the custom services. To enable detailed instance monitoring for a new Auto Scaling group, the user does not need to take any extra steps. When the user creates the AutoScaling launch config as the first step for creating an Auto Scaling group, each launch configuration contains a flag named InstanceMonitoring.Enabled. The default value of this flag is true. When the user has created a launch configuration with InstanceMonitoring.Enabled = false it will involve multiple steps to enable detail monitoring. The steps are: Create a new Launch config with detailed monitoring enabled Update the Auto Scaling group with a new launch config Enable detail monitoring on each EC2 instance
Create a new Launch Configuration with detailed monitoring enabled:
aws autoscaling create-launch-configuration --launch-configuration-name NewLaunchConfig --instance-type <InstanceType> --instance-monitoring Enabled=true --key-name <KeyName> --image-id <ImageId>
Update the Auto Scaling group to use the new Launch Configuration:
aws autoscaling update-auto-scaling-group --auto-scaling-group-name <AutoScalingGroupName> --launch-configuration-name NewLaunchConfig
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
albert_kuo
8 months, 3 weeks agoTroyMcLure
2 years, 6 months agoawscertified
2 years, 6 months ago