Explain it simpler
Elastic Beanstalk runs your web app on servers for you. When you upload a new version, it has to swap the old code for the new code on those servers, and you choose how. You can update every server at once, which is fast but takes the site down. You can update a few servers at a time, which keeps the site up but with fewer servers working. You can add extra servers first so you never lose capacity. You can build a completely fresh set of servers and switch only when they are healthy, which is the safest. Or you can run a whole second copy of the site and swap the web address over. It is like renovating a restaurant: close for a day, redo one section at a time, or open a new location and move the sign.
The Black Friday code freeze at Maplewood Books lifts on Monday, and Rosa has a release ready for the store's Elastic Beanstalk environment. The last deployment used the default settings and took the site down for four minutes while every instance restarted at once. The one before that left half the fleet on a broken version, and it took an hour to sort out. Her director's instructions are short: no downtime, full capacity the whole time, and if anything goes wrong, undo it in minutes, not hours. The environment's configuration page offers a menu of deployment policies. Which one meets all three requirements, and what does it cost?
AWS Elastic Beanstalk is a platform as a service for web applications and workers. You upload an application version, usually a source bundle such as a .zip file or a WAR file for Java, and Beanstalk provisions and manages the environment around it: an Elastic Load Balancing load balancer, an Auto Scaling group, Amazon EC2 instances running the platform (for example Node.js, Python, Java or Docker), health monitoring and logging. When you deploy a new version, the deployment policy controls how Beanstalk rolls it onto the running instances. The Developer Associate exam expects you to weigh four factors for each policy: deployment speed, downtime, extra cost, and how rollback works.
Keep reading for free
Create a free StudyToCert account to read the rest of this lesson: 8 more sections, 7 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.