A company has a set of APIs and a web application.
They want to deploy it to AWS.
They don't want to manage the underlying infrastructure.
Which of the following services can help to accomplish this?
Click on the arrows to vote for the correct answer
A. B. C. D.Answer - A.
The AWS Documentation mentions the following.
AWS Lambda is a compute service that lets you run code without provisioning or managing servers.
AWS Lambda executes your code only when needed and scales automatically, from a few requests per day to thousands per second.
You pay only for the compute time you consume - there is no charge when your code is not running.
With AWS Lambda, you can run code for virtually any type of application or backend service - all with zero administration.
Amazon API Gateway is an AWS service that enables developers to create, publish, maintain, monitor, and secure APIs at any scale.
You can create APIs that access AWS or other web services, as well as data stored in the AWS Cloud.
Options B and D are incorrect since for EC2 you would need to manage the compute layer.
Option C is incorrect since Cloudfront is not used along with AWS Lambda.
For more information on AWS Lambda and the API gateway service, please refer to the below URLs-
https://docs.aws.amazon.com/lambda/latest/dg/welcome.html https://docs.aws.amazon.com/apigateway/latest/developerguide/welcome.htmlThe correct answer is A. AWS Lambda and API Gateway.
Explanation:
AWS Lambda is a serverless compute service that allows developers to run their code without the need to manage servers or infrastructure. With Lambda, developers can write their code in a supported language (such as Python, Node.js, or Java) and upload it to AWS, which will then execute it on their behalf. This allows developers to focus on writing their code rather than managing infrastructure.
API Gateway is a fully managed service that makes it easy for developers to create, publish, and manage APIs at any scale. API Gateway provides a simple way for developers to create RESTful APIs, WebSocket APIs, and HTTP APIs, which can be used to expose Lambda functions as APIs. API Gateway also provides features such as throttling, caching, and authentication to help developers secure and manage their APIs.
Together, AWS Lambda and API Gateway provide a powerful way to deploy APIs and web applications to AWS without the need to manage infrastructure. Developers can write their code in a supported language, upload it to Lambda, and then use API Gateway to create and manage their APIs. This allows developers to focus on writing their code and building their applications, while AWS takes care of the underlying infrastructure.
Option B, AWS EC2 and Cloudfront, would require managing the underlying infrastructure and scaling the servers as necessary.
Option C, AWS Lambda and Cloudfront, is a possible combination, but it would not provide the ability to create and manage APIs.
Option D, AWS Lambda and EC2, would require managing the underlying infrastructure and would not provide the ability to create and manage APIs as easily as with API Gateway.