Which of the following components effectively allows a user to set up AutoScaling on EC2 instances for a web-based application? (Select TWO)
Click on the arrows to vote for the correct answer
A. B. C. D.Answer: A and C.
Option A is correct.
A launch configuration specifies the type of EC2 instance that Amazon EC2 Auto Scaling creates for you.
You create the launch configuration by including information such as the ID of the Amazon Machine Image (AMI) to use, the instance type, the key pair, security groups, and block device mapping.
https://docs.aws.amazon.com/autoscaling/ec2/userguide/LaunchConfiguration.htmlOption B is incorrect.
Lambda functions are not required to set up auto-scaling for EC2 instances.
Option C is correct.
An Auto Scaling group is a collection of EC2 instances and the core of Amazon EC2 Auto Scaling.
When you create an Auto Scaling group, you include information such as the subnets for the instances and the number of instances the group must maintain at all times.
https://docs.aws.amazon.com/autoscaling/ec2/userguide/AutoScalingGroup.htmlOption D is incorrect.
Elastic IP is nowhere used to set up auto-scaling for EC2 instances.
The correct answers are A. Launch Configuration and C. Auto Scaling Group.
Auto Scaling is an AWS service that allows you to automatically adjust the number of EC2 instances in an Auto Scaling group based on the demand for your application. The purpose of Auto Scaling is to maintain the application's performance, availability, and cost-effectiveness by automatically adding or removing EC2 instances as needed.
Here's how Launch Configuration and Auto Scaling Group enable Auto Scaling for a web-based application:
Launch Configuration: A Launch Configuration is a template that defines the configuration settings for a set of EC2 instances, including the AMI (Amazon Machine Image), instance type, security groups, and block device mappings. When you create a Launch Configuration, you specify the number of instances to be launched in the Auto Scaling Group, and the Launch Configuration is used to launch new instances as needed.
Auto Scaling Group: An Auto Scaling Group is a collection of EC2 instances that are created from a common Launch Configuration. When you create an Auto Scaling Group, you specify the minimum and maximum number of instances that you want to have running, and the desired capacity for the group. The Auto Scaling Group then launches instances from the Launch Configuration as needed to maintain the desired capacity.
Together, Launch Configuration and Auto Scaling Group enable you to set up Auto Scaling for a web-based application. When traffic to your application increases, the Auto Scaling Group will automatically launch new EC2 instances based on the Launch Configuration, and when traffic decreases, it will terminate instances to maintain the desired capacity.
AWS Lambda is a serverless computing service that allows you to run code without provisioning or managing servers. While it can be used to trigger Auto Scaling actions, it does not directly enable Auto Scaling on EC2 instances.
Elastic IP is a static, public IP address that you can assign to your EC2 instances. While it can be useful for creating a static endpoint for your application, it does not enable Auto Scaling on EC2 instances.