CLF-C02 Question 166
Single answerA company is planning to deploy a new web application and needs a reliable compute service that automatically handles infrastructure scaling based on traffic. Which AWS compute service would best meet this requirement?
- A
Amazon EC2
- B
AWS Lambda
- C
Amazon Elastic Beanstalk
- D
Amazon ECS
Show answer and explanation
Correct answer: C
Explanation
Amazon Elastic Beanstalk is the best choice for this scenario because it is a fully managed service designed to deploy and scale web applications automatically. It abstracts much of the operational overhead, making it easier for developers to focus on their application code rather than managing the underlying infrastructure.
- A. Incorrect.
Amazon EC2 provides virtual servers in the cloud, but it requires manual intervention or additional tools to handle scaling. It does not automatically manage scaling based on traffic without configuration.
- B. Incorrect.
AWS Lambda is a serverless compute service that runs code in response to events, but it is not designed for hosting full web applications with automatic scaling features for infrastructure.
- C. Correct.
Amazon Elastic Beanstalk is a fully managed service that automatically handles the deployment, scaling, and management of web applications. It is best suited for this scenario because it simplifies infrastructure management while scaling based on traffic.
- D. Incorrect.
Amazon ECS is a container orchestration service that helps manage containers. While it supports scalable deployments, it requires additional configuration and does not provide the same level of built-in automation as Elastic Beanstalk for web applications.