AWS Certified Cloud Practitioner — Question 563
An application is running on multiple Amazon EC2 instances. The company wants to make the application highly available by configuring a load balancer with requests forwarded to the EC2 instances based on URL paths.
Which AWS load balancer will meet these requirements and take the LEAST amount of effort to deploy?
Answer options
- A. Network Load Balancer
- B. Application Load Balancer
- C. AWS OpsWorks Load Balancer
- D. Custom Load Balancer on Amazon EC2
Correct answer: B
Explanation
An Application Load Balancer (ALB) operates at Layer 7 and natively supports path-based routing, making it the easiest solution to deploy for these requirements. A Network Load Balancer (NLB) operates at Layer 4 and cannot route traffic based on URL paths. Setting up a custom load balancer on Amazon EC2 would require significant manual configuration and maintenance, failing the requirement for least effort.