CLF-C02 Practice Question 108: Managed App Deployment
AWS Certified Cloud Practitioner (CLF-C02) · Test 11 · question 8 of 10
A small development team has built a Python web application. The team wants to upload its code and have AWS automatically provision the Amazon EC2 instances, set up load balancing and health monitoring, and scale the environment as traffic changes, while still paying nothing extra for the deployment service itself. Which AWS service should the team use?
Show answer and explanation
Answer:
With AWS Elastic Beanstalk, you upload your application source bundle, and Beanstalk automatically launches an environment and creates the AWS resources needed to run the code. It provisions EC2 instances, configures load balancing, sets up health monitoring and dynamically scales the environment. It supports Python, Java, .NET, Node.js, PHP, Ruby, Go and Docker. There is no additional charge for Elastic Beanstalk: you pay only for the underlying resources the application uses.
Option A, CloudFormation, provisions whatever you describe in a template. The team would have to define every resource itself instead of simply uploading code. Option B, Lightsail, provides easy-to-use virtual private servers at a fixed monthly price, but it doesn't take application code and automatically scale an EC2 environment for it. Option C, Lambda, runs *functions* in response to events. The team would have to restructure its web application into functions instead of deploying it as it is.
Reference: What is AWS Elastic Beanstalk?