SAP-C02 exam dumps

SAP-C02 practice question 301 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 301

Single answer

A company is running a global e-commerce platform hosted on Amazon EC2 instances behind an Application Load Balancer (ALB). They recently observed a significant increase in HTTP 502 errors during peak traffic hours. Upon investigation, the team found that the issue is related to the backend EC2 instances becoming overwhelmed during traffic spikes. The company wants to ensure high availability and scalability while minimizing costs. What is the MOST appropriate solution to address this issue?

  1. A

    Increase the instance sizes of the backend EC2 instances to handle more traffic.

  2. B

    Configure an Auto Scaling group with appropriate scaling policies for the backend EC2 instances.

  3. C

    Enable HTTP/2 support on the Application Load Balancer to reduce load on backend instances.

  4. D

    Use an AWS Global Accelerator to redirect traffic to a less loaded AWS Region.

Show answer and explanation

Correct answer: B

Explanation

The issue arises due to backend EC2 instances being unable to handle traffic spikes. Using an Auto Scaling group with appropriate scaling policies ensures that the number of instances can dynamically adjust based on traffic, providing both scalability and cost optimization. Other options either temporarily address the problem or do not directly solve the issue of overwhelmed backend instances.

  • A. Incorrect.

    Increasing the instance sizes may temporarily resolve the issue but does not provide elasticity or cost optimization for fluctuating traffic. This is not the best solution as it does not scale dynamically with demand.

  • B. Correct.

    Configuring an Auto Scaling group with scaling policies allows the backend EC2 instances to scale out during traffic spikes and scale in during low traffic, ensuring high availability and cost efficiency. This is the most appropriate solution.

  • C. Incorrect.

    Enabling HTTP/2 support on the ALB improves performance by reducing latency between the client and the load balancer, but it does not address the issue of backend EC2 instances being overwhelmed.

  • D. Incorrect.

    AWS Global Accelerator improves global performance by routing traffic to the nearest region, but it does not solve the problem of backend EC2 instances being overwhelmed in a single region.

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