ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 663 - SAA-C03 discussion

Report
Export

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.
Answers
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.
Answers
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.
Answers
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.
Answers
D.
Use an AWS Lambda function that runs custom developed code.
Suggested answer: D

Explanation:

AWS Lambda is a serverless compute service that lets you run code without provisioning or managing servers. You can use Lambda to create and test microservices that are written in Python or other supported languages. Lambda scales automatically to handle the number of requests per second. You only pay for the compute time you consume. Lambda also integrates with other AWS services, such as Amazon API Gateway, Amazon S3, Amazon DynamoDB, and Amazon SQS, to enable event-driven architectures. Lambda has minimal infrastructure and operational overhead, as you do not need to manage servers, operating systems, patches, or scaling policies.

The other options are not serverless solutions and require more infrastructure and operational support. They also do not scale automatically to handle the number of requests per second. A Spot Fleet is a collection of EC2 instances that run on spare capacity at low prices. However, Spot Instances can be interrupted by AWS at any time, which can affect the availability and performance of your microservice. AWS Elastic Beanstalk is a service that automates the deployment and management of web applications on EC2 instances. However, you still need to provision, configure, and monitor the underlying EC2 instances and load balancers. Amazon EKS is a service that runs Kubernetes on AWS. However, you still need to create, configure, and manage the EC2 instances that form the Kubernetes cluster and nodes. You also need to install and update the Kubernetes software and tools.

What is AWS Lambda?

Building Lambda functions with Python

Create a layer for a Lambda Python function

AWS Lambda -- Function in Python

How do I call my AWS Lambda function from a local python script?

asked 16/09/2024
Niall Dempsey
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first