SAP-C02 · Question #300
SAP-C02 Question #300: Real Exam Question with Answer & Explanation
The correct answer is A: Separate the API into individual AWS Lambda functions. Configure an Amazon API Gateway. By breaking down the monolithic API into individual Lambda functions and using API Gateway to handle the incoming requests, the solution can automatically scale to handle the new and varying load without the need for manual scaling actions. Additionally, this option will automati
Question
A company is hosting a monolithic REST-based API for a mobile app on five Amazon EC2 instances in public subnets of a VPC. Mobile clients connect to the API by using a domain name that is hosted on Amazon Route 53. The company has created a Route 53 multivalue answer routing policy with the IP addresses of all the EC2 instances. Recently, the app has been overwhelmed by large and sudden increases to traffic. The app has not been able to keep up with the traffic. A solutions architect needs to implement a solution so that the app can handle the new and varying load. Which solution will meet these requirements with the LEAST operational overhead?
Options
- ASeparate the API into individual AWS Lambda functions. Configure an Amazon API Gateway
- BContainerize the API logic. Create an Amazon Elastic Kubernetes Service (Amazon EKS) cluster.
- CCreate an Auto Scaling group. Place all the EC2 instances in the Auto Scaling group. Configure
- DCreate an Application Load Balancer (ALB) in front of the API. Move the EC2 instances to private
Explanation
By breaking down the monolithic API into individual Lambda functions and using API Gateway to handle the incoming requests, the solution can automatically scale to handle the new and varying load without the need for manual scaling actions. Additionally, this option will automatically handle the traffic without the need of having EC2 instances running all the time and only pay for the number of requests and the duration of the execution of the Lambda function. By updating the Route 53 record to point to the API Gateway, the solution can handle the traffic and also it will direct the traffic to the correct endpoint.
Community Discussion
No community discussion yet for this question.