Q30 — AWS SAA-C03 Ch.1

Question 30 of 65 | ← Chapter 1

Q30. A company provides an API to its users that automates inquiries for tax complutations based on item prices. The company experiences a larger number of inquires during the holiday season only that cause slower response times. A solution architect needs to design a solution that is scalable and elastic. What should the solutions architect do to accomplish this?

Correct Answer: B. Design a REST API using Amazon API Gateway that accepts the item names, API Gateway passes item names to AWS Lambada for tax computations.

Explanation

This is the most scalable and elastic solution for this use case. Using API Gateway reduces the load on the backend by handling incoming requests and only passing relevant information to AWS Lambda as required. AWS Lambda also allows for automatic scaling and can handle thousands of concurrent requests without requiring additional infrastructure setup or maintenance. This ensures that response times remain fast even during peak traffic periods. Option A is incorrect because hosting an API on an EC2 instance may result in scalability issues during peak traffic times. It also requires manual scaling and maintenance, which may not be cost-effective. Option C is also incorrect because while using an Application Load Balancer with EC2 instances behind it can provide some level of scalability, it does not provide the elasticity needed to automatically scale in response to increased traffic. Additionally, managing the EC2 instances requires manual scaling and maintenance. Option D is less optimal than Option B because connecting a REST API on API Gateway to an API hosted on an EC2 instance adds another layer of complexity and potential points of failure. It also requires manual scaling and maintenance.