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.
With Lambda, you don`t need to build, secure, or maintain a container. You must be worried about the code.
EC2
- is simply a remote (virtual) machine.
ECS stands for Elastic Container Service. ECS is basically a logical grouping of
EC2
Instances. Technically, ECS is a mere configuration for the efficient use and management of your
EC2
instance(s) resources i.e. storage, memory, CPU, etc.
To simplify it further, if you have launched an Amazon ECS with no
EC2
instances added to it, it`s good for nothing. So you can`t do anything about it.
ECS
makes sense only once one (or more)
EC2
instances are added to it.
Options B and C are incorrect since here you would need to manage the underlying servers.
Option D is incorrect since this is a messaging service.
For more information on AWS Lambda, please visit the URL-
https://docs.aws.amazon.com/lambda/latest/dg/welcome.html