
Ultimate access to all questions.
Deep dive into the quiz with AI chat providers.
We prepare a focused prompt with your quiz and certificate details so each AI can offer a more tailored, in-depth explanation.
A company hosts a web application on AWS. The company has improved the availability of its application by provisioning multiple Amazon EC2 instances. The company wants to distribute its traffic across the EC2 instances while providing a single point of contact to the web clients. Which AWS service can distribute the traffic to multiple EC2 instances as targets?
A
VPC endpoints
B
Application Load Balancer
C
NAT gateway
D
Internet gateway
Explanation:
The correct answer is Application Load Balancer.
Traffic Distribution: Application Load Balancer (ALB) is specifically designed to distribute incoming application traffic across multiple targets, such as EC2 instances, containers, and IP addresses, in one or more Availability Zones.
Single Point of Contact: ALB provides a single DNS endpoint that clients can use to access the application, abstracting the complexity of multiple backend instances.
High Availability: ALB automatically routes traffic only to healthy targets, improving application availability.
Layer 7 Load Balancing: ALB operates at the application layer (HTTP/HTTPS), making it ideal for web applications.
VPC endpoints: These enable private connectivity between your VPC and supported AWS services without requiring an internet gateway, NAT device, VPN connection, or AWS Direct Connect. They don't distribute traffic across EC2 instances.
NAT gateway: This allows instances in a private subnet to connect to the internet or other AWS services while preventing the internet from initiating connections with those instances. It's for outbound traffic, not inbound load balancing.
Internet gateway: This enables communication between resources in your VPC and the internet. It's a VPC component that allows inbound and outbound internet access but doesn't perform load balancing.
Application Load Balancer: Distributes HTTP/HTTPS traffic to multiple targets
Network Load Balancer: Distributes TCP/UDP traffic
Gateway Load Balancer: For deploying and managing third-party virtual appliances
For this scenario with a web application and multiple EC2 instances, Application Load Balancer is the appropriate service to distribute traffic while providing a single point of contact.