SAP-C02 exam dumps

SAP-C02 practice question 371 of 678

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

SAP-C02 Question 371

Select 3

Your organization is building a highly available and scalable web application that runs on Amazon EC2 instances within an Auto Scaling group across multiple Availability Zones. The application needs to handle sudden spikes in traffic with minimal latency. Which combination of options would provide the most cost-effective and reliable solution for distributing traffic to the application?

  1. A

    Use an Application Load Balancer (ALB) to distribute traffic across the EC2 instances in the Auto Scaling group.

  2. B

    Enable Elastic Load Balancing cross-zone load balancing for the ALB.

  3. C

    Use an Elastic IP address to directly route traffic to one of the EC2 instances.

  4. D

    Configure an Amazon Route 53 Weighted Routing policy to route traffic evenly across all Availability Zones.

  5. E

    Set up an Amazon CloudFront distribution in front of the ALB to cache content and reduce latency for users.

Show answer and explanation

Correct answers: A, B, E

Explanation

To build a cost-effective and reliable solution, you should use an Application Load Balancer (ALB) to distribute traffic across EC2 instances in the Auto Scaling group. Enabling cross-zone load balancing ensures that traffic is evenly distributed across all Availability Zones, improving reliability. Additionally, using Amazon CloudFront in front of the ALB further reduces latency and improves performance by caching content closer to users. These combined options provide a scalable, highly available, and cost-effective solution for handling sudden spikes in traffic.

  • A. Correct.

    An Application Load Balancer (ALB) is ideal for distributing HTTP/HTTPS traffic to EC2 instances in an Auto Scaling group. It offers advanced routing features and integrates well with the Auto Scaling group to ensure traffic is evenly distributed across healthy instances.

  • B. Correct.

    Enabling cross-zone load balancing ensures that traffic is evenly distributed across all EC2 instances in all Availability Zones, improving reliability and resource utilization.

  • C. Incorrect.

    Using an Elastic IP address to route traffic directly to a single EC2 instance is not a scalable or reliable solution, as it creates a single point of failure and doesn't utilize the Auto Scaling group effectively.

  • D. Incorrect.

    While Route 53 Weighted Routing can distribute traffic across Availability Zones, it is not the most effective solution for handling sudden traffic spikes or ensuring cross-zone load balancing. The ALB is better suited for this use case.

  • E. Correct.

    Setting up an Amazon CloudFront distribution in front of the ALB helps cache content at edge locations, reducing latency for users and minimizing the load on the backend servers. This enhances application performance and cost efficiency.

Timed practice exam

Take a SAP-C02 practice test under exam conditions

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

Start timed exam