Topic 1 Question 1008
A company hosts a website analytics application on a single Amazon EC2 On-Demand Instance. The analytics application is highly resilient and is designed to run in stateless mode.
The company notices that the application is showing signs of performance degradation during busy times and is presenting 5xx errors. The company needs to make the application scale seamlessly.
Which solution will meet these requirements MOST cost-effectively?
Create an Amazon Machine Image (AMI) of the web application. Use the AMI to launch a second EC2 On-Demand Instance. Use an Application Load Balancer to distribute the load across the two EC2 instances.
Create an Amazon Machine Image (AMI) of the web application. Use the AMI to launch a second EC2 On-Demand Instance. Use Amazon Route 53 weighted routing to distribute the load across the two EC2 instances.
Create an AWS Lambda function to stop the EC2 instance and change the instance type. Create an Amazon CloudWatch alarm to invoke the Lambda function when CPU utilization is more than 75%.
Create an Amazon Machine Image (AMI) of the web application. Apply the AMI to a launch template. Create an Auto Scaling group that includes the launch template. Configure the launch template to use a Spot Fleet. Attach an Application Load Balancer to the Auto Scaling group.
ユーザの投票
コメント(3)
- 正解だと思う選択肢: D
With auto scalling group it can also scale down on low demand (costs saved)
👍 4Razvan_C2024/10/28 - 正解だと思う選択肢: D
A - This can't scale automatically during peak times. B - Weighted routing is not ideal for seamless scaling because it requires manual intervention to adjust weights or add new instances. C - It introduces downtime during instance type changes, let alone scaling. D - (1) ASG dynamically adjusts the number of instances based on demand. (2) Spot Instances reduces costs significantly compared to On-Demand Instances. (3) ALB + ASG ensures efficient traffic routing to healthy instances.
👍 3LeonSauveterre2025/01/10 - 正解だと思う選択肢: D
3 reasons why I will choose Option D:
Scalability: Auto Scaling groups are designed to automatically scale up or down the number of instances based on demand, which is ideal for handling fluctuating traffic during busy periods.
Cost-effectiveness: Using a Spot Fleet allows you to leverage unused EC2 capacity at significantly lower costs compared to On-Demand instances.
Stateless Application: Since the application is stateless, it can easily be scaled horizontally with multiple instances behind an Application Load Balancer without any data consistency issues
👍 2JA20182024/12/02
シャッフルモード