Topic 1 Question 128
A company has a front-end application that runs on four Amazon EC2 instances behind an Elastic Load Balancer (ELB) in a production environment that is provisioned by AWS Elastic Beanstalk. A developer needs to deploy and test new application code while updating the Elastic Beanstalk platform from the current version to a newer version of Node.js. The solution must result in zero downtime for the application.
Which solution meets these requirements?
Clone the production environment to a different platform version. Deploy the new application code, and test it. Swap the environment URLs upon verification.
Deploy the new application code in an all-at-once deployment to the existing EC2 instances. Test the code. Redeploy the previous code if verification fails.
Perform an immutable update to deploy the new application code to new EC2 instances. Serve traffic to the new instances after they pass health checks.
Use a rolling deployment for the new application code. Apply the code to a subset of EC2 instances until the tests pass. Redeploy the previous code if the tests fail.
ユーザの投票
コメント(5)
- 正解だと思う選択肢: C
Option C is the correct solution that meets the requirements. Performing an immutable update to deploy the new application code to new EC2 instances and serving traffic to the new instances after they pass health checks will ensure zero downtime for the application.
Option A would work but cloning the production environment to a different platform version will result in a longer deployment time and can impact the cost of the environment.
👍 7MrTee2023/04/22 Option B and D both involve deploying the new application code to the existing EC2 instances, which can result in downtime if the deployment fails. Redeploying the previous code after a failed deployment can also result in downtime.
👍 2MrTee2023/04/22Option A
👍 2awsdummie2023/05/04
シャッフルモード