SAA-C03 exam dumps

SAA-C03 practice question 535 of 553

AWS Certified Solutions Architect - Associate. Associate level, Amazon Web Services. Free question with the correct answer and a full explanation.

SAA-C03 Question 535

Single answer

A company is running a web application on Amazon EC2 instances behind an Application Load Balancer (ALB). The application serves both HTTP and HTTPS traffic. The company wants to redirect all HTTP requests to HTTPS to enhance security. What is the best way to configure this using the ALB?

  1. A

    Create a listener rule on the ALB to return a fixed response for HTTP requests.

  2. B

    Configure the ALB to use a target group that listens only on HTTPS.

  3. C

    Set up a listener rule on the ALB to redirect HTTP traffic to HTTPS.

  4. D

    Update the security group of the ALB to block HTTP traffic.

Show answer and explanation

Correct answer: C

Explanation

The best way to redirect HTTP traffic to HTTPS with an Application Load Balancer is to configure a listener rule to perform the redirection. ALBs natively support this functionality, allowing you to enforce HTTPS while providing a seamless experience for end users. Other options like blocking HTTP traffic or using fixed responses do not achieve the desired behavior of redirecting traffic.

  • A. Incorrect.

    This option is incorrect because returning a fixed response does not redirect traffic. It only sends a predefined response back to the client.

  • B. Incorrect.

    This option is incorrect because configuring the ALB to use a target group that listens only on HTTPS will not redirect HTTP traffic. It will simply cause HTTP requests to fail.

  • C. Correct.

    This option is correct because Application Load Balancers support listener rules to redirect HTTP traffic to HTTPS, ensuring secure communication.

  • D. Incorrect.

    This option is incorrect because blocking HTTP traffic at the security group level would prevent any HTTP requests from reaching the ALB, instead of redirecting them to HTTPS.

Timed practice exam

Take a SAA-C03 practice test under exam conditions

65 questions in 130 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam