Q74 — AWS SAA-C03 Ch.13
Question 74 of 100 | ← Chapter 13
Q974. A company wants to design a microservices architecture for an application. Each microservice must perform operations that can be completed within 30 seconds.The microservices need to expose RESTful APIs and must automatically scale in response to varying loads. The APIs must also provide client access control and rate limiting to maintain equitable usage and service availability.Which solution will meet these requirements with the LEAST operational overhead?
- A. Use Amazon Elastic Container Service (Amazon ECS) on Amazon EC2 to host each microservice. Use Amazon API Gateway to manage the RESTful API requests.
- B. Deploy each microservice as a set of AWS Lambda functions. Use Amazon API Gateway to manage the RESTful API requests. ✓
- C. Host each microservice on Amazon EC2 instances in Auto Scaling groups behind an Elastic Load Balancing(ELB)load balancer. Use the ELB to manage the RESTful API requests.
- D. Deploy each microservice on Amazon Elastic Beanstalk. Use Amazon CloudFront to manage the RESTful API requests
Correct Answer: B. Deploy each microservice as a set of AWS Lambda functions. Use Amazon API Gateway to manage the RESTful API requests.
Explanation
The correct answer is:B. Deploy each microservice as a set of AWS Lambda functions. Use Amazon API Gateway to manage the RESTful API requests.Explanation:A. Use Amazon Elastic Container Service (Amazon ECS) on Amazon EC2 to host each microservice. Use Amazon API Gateway to manage the RESTful API requests.- This solution has higher operational overhead than the correct answer, as it requires managing the underlying EC2 infrastructure for the microservices.B. Deploy each microservice as a set of AWS Lambda functions. Use Amazon API Gateway to manage the RESTful API requests.- This is the correct solution. AWS Lambda provides a serverless compute service that can automatically scale in response to varying loads, with no need to manage the underlying infrastructure. Amazon API Gateway can handle the RESTful API requests and provide client access control and rate limiting, further reducing operational overhead.C. Host each microservice on Amazon EC2 instances in Auto Scaling groups behind an Elastic Load Balancing (ELB) load balancer. Use the ELB to manage the RESTful API requests.- This solution has higher operational overhead than the correct answer, as it requires managing the underlying EC2 infrastructure for the microservices.D. Deploy each microservice on Amazon Elastic Beanstalk. Use Amazon CloudFront to manage the RESTful API requests.- This solution has higher operational overhead than the correct answer, as it requires managing the underlying Elastic Beanstalk infrastructure for the microservices.In summary, the correct solution is option B, which uses AWS Lambda functions for the microservices and Amazon API Gateway to manage the RESTful API requests, providing the least operational overhead.