A Solutions Architect is designing a highly-available website that is served by multiple…
- User
A Solutions Architect is designing a highly-available website that is served by multiple web servers hosted outside of AWS. If an instance becomes unresponsive, the Architect needs to remove it from the rotation. What is the MOST efficient way to fulfill this requirement? Use Amazon API Gateway to monitor availability Use an Amazon Elastic Load Balancer Use Amazon Route 53 health checks Use Amazon CloudWatch to monitor utilization
Assistant
The most efficient way to fulfill the requirement of removing an unresponsive web server from the rotation in a highly available website design would be to use an Amazon Elastic Load Balancer.
An Elastic Load Balancer can automatically check the health of your instances and route traffic only to those that are healthy. This ensures that any instance that becomes unresponsive will not receive new connections until it becomes healthy again. There are different types of Elastic Load Balancers (Application Load Balancer, Network Load Balancer, and Classic Load Balancer), each suitable for different use cases, but all capable of performing health checks on the backend instances.
While the other services mentioned (Amazon API Gateway, Amazon Route 53 health checks, and Amazon CloudWatch) can also play roles in monitoring and managing traffic, they are not as directly suited to the task of load balancing and health checking web servers as an Elastic Load Balancer is. For instance:
- User
A Solutions Architect is designing a highly-available website that is served by multiple web servers hosted outside of AWS. If an instance becomes unresponsive, the Architect needs to remove it from the rotation. What is the MOST efficient way to fulfill this requirement? Use Amazon API Gateway to monitor availability Use an Amazon Elastic Load Balancer Use Amazon Route 53 health checks Use Amazon CloudWatch to monitor utilization
Assistant
To efficiently handle situations where an instance becomes unresponsive and needs to be removed from the rotation in a highly available website setup, the best solution among the options provided would be to use an Amazon Elastic Load Balancer.
An Elastic Load Balancer can distribute incoming application traffic across multiple targets, such as Amazon EC2 instances, containers, IP addresses, and Lambda functions. It provides health checks to monitor the availability of the targets and automatically routes traffic only to the healthy ones. When an instance becomes unresponsive, the Elastic Load Balancer detects this through its health checks and stops sending traffic to that instance until it becomes healthy again.