SAP-C02 Question 352
Single answerAn e-commerce company wants to build a highly available and scalable environment for its web application without managing the underlying infrastructure. The application requires support for HTTP and WebSocket protocols, automatic scaling, and integration with a CI/CD pipeline. Which AWS managed service is the most appropriate choice for hosting this application?
- A
Amazon EC2 with Auto Scaling and Application Load Balancer
- B
AWS Elastic Beanstalk
- C
Amazon Lightsail
- D
AWS Fargate with Amazon ECS
Show answer and explanation
Correct answer: B
Explanation
AWS Elastic Beanstalk is the best choice for this use case since it is a fully managed service that supports the required features, such as HTTP and WebSocket protocols, automatic scaling, and CI/CD integration. It abstracts away the complexity of managing infrastructure, aligning perfectly with the company’s requirements to avoid infrastructure management.
- A. Incorrect.
Amazon EC2 with Auto Scaling and Application Load Balancer provides control over the infrastructure, but the company would still need to manage servers, scaling policies, and the operating system. This contradicts the requirement to avoid managing the underlying infrastructure.
- B. Correct.
AWS Elastic Beanstalk is a fully managed service that abstracts the underlying infrastructure, supports HTTP and WebSocket protocols, and provides automatic scaling. It integrates easily with CI/CD pipelines, making it an ideal choice for this scenario.
- C. Incorrect.
Amazon Lightsail is a simplified service for small projects and does not provide the scalability or flexibility required for this scenario. It’s not suitable for enterprise-level applications.
- D. Incorrect.
AWS Fargate with Amazon ECS is a serverless container service, but it requires the application to be containerized. There’s no mention of the application being containerized in the scenario, making this choice less appropriate.