Q92 — AWS SAA-C03 Ch.11
Question 92 of 100 | ← Chapter 11
Q792. A company wants to rearchitect a large-scale web application to a serverless microservices architecture. The application uses Amazon EC2 instances and is written in Python.The company selected one component of the web application to test as a microservice. The component supports hundreds of requests each second. The company wants to create and test the microservice on an AWS solution that supports Python. The solution must also scale automatically and require minimal infrastructure and minimal operational support.Which solution will meet these requirements?
- A. Use a Spot Fleet with auto scaling of EC2 instances that run the most recent Amazon Linux operating system.
- B. Use an AWS Elastic Beanstalk web server environment that has high availability configured.
- C. Use Amazon Elastic Kubernetes Service (Amazon EKS). Launch Auto Scaling groups of self-managed EC2 instances.
- D. Use an AWS Lambda function that runs custom developed code. ✓
Correct Answer: D. Use an AWS Lambda function that runs custom developed code.
Explanation
To meet the requirements of rearchitecting a large-scale web application to a serverless microservices architecture, creating and testing a Python-based microservice on an AWS solution that supports automatic scaling, minimal infrastructure, and minimal operational support, the solution is:D. Use an AWS Lambda function that runs custom developed code.Using an AWS Lambda function is a serverless compute service that perfectly fits the requirements of the scenario. Lambda allows you to write custom code in Python (among other supported languages) and execute it without the need to provision or manage any servers. It automatically scales based on the incoming request load, ensuring high scalability and availability.Here's why the other options are not the best fit for the given requirements:A. Using a Spot Fleet with auto scaling of EC2 instances: Spot Instances can provide cost savings, but they require managing EC2 instances, which goes against the goal of minimal infrastructure and operational support. Additionally, managing auto scaling of EC2 instances adds complexity compared to a serverless solution.B. Using an AWS Elastic Beanstalk web server environment: Elastic Beanstalk simplifies the deployment and management of web applications, but it still requires managing the underlying infrastructure. It is not as minimal in terms of infrastructure and operational support as a serverless solution like Lambda.C. Using Amazon Elastic Kubernetes Service (Amazon EKS) with self-managed EC2 instances: While EKS provides container orchestration and scalability, it involves managing and scaling the underlying EC2 instances. It requires more operational support compared to a fully serverless solution like Lambda.Therefore, the solution that meets the requirements of a serverless microservices architecture, Python support, automatic scaling, minimal infrastructure, and minimal operational support is:D. Use an AWS Lambda function that runs custom developed code.