AWS Certified Solutions Architect – Associate (SAA-C02) — Question 492
A company has a website hosted on AWS. The website is behind an Application Load Balancer (ALB) that is configured to handle HTTP and HTTPS separately.
The company wants to forward all requests to the website so that the requests will use HTTPS.
What solution should a solutions architect do to meet this requirement?
Answer options
- A. Update the ALB's network ACL to accept only HTTPS traffic.
- B. Create a rule that replaces the HTTP in the URL with HTTPS.
- C. Create a listener rule on the ALB to redirect HTTP traffic to HTTPS.
- D. Replace the ALB with a Network Load Balancer configured to use Server Name Indication (SNI).
Correct answer: C
Explanation
Application Load Balancers (ALBs) natively support redirect actions within listener rules, allowing administrators to easily redirect HTTP requests on port 80 to HTTPS on port 443. Modifying network ACLs would simply block HTTP traffic rather than redirecting it, while replacing the load balancer with an NLB is unnecessary and does not address the redirection requirement.