AWS Certified Developer – Associate — Question 159
A team of developers must migrate an application running inside an AWS Elastic Beanstalk environment from a Classic Load Balancer to an Application Load Balancer.
Which steps should be taken to accomplish the task using the AWS Management Console?
Answer options
- A. 1. Update the application code in the existing deployment. 2. Select a new load balancer type before running the deployment 3. Deploy the new version of the application code to the environment
- B. 1. Create a new environment with the same configurations except for the load balancer type. 2. Deploy the same application version as used in the original environment. 3. Run the swap-environment-cnames action
- C. 1. Clone the existing environment, changing the associated load balancer type. 2. Deploy the same application version as used in the original environment. 3. Run the swap-environment-cnames action
- D. 1. Edit the environment definitions in the existing deployment. 2. Change the associated load balancer type according to the requirements. 3. Rebuild the environment with the new load balancer type.
Correct answer: B
Explanation
The correct answer is B, as it correctly involves creating a new environment with the desired load balancer type, deploying the same application version, and then performing a swap of environment CNAMEs to transition traffic seamlessly. Option A incorrectly suggests modifying the application code and selecting a load balancer type in the existing deployment, which is not the right approach. Option C's cloning method is unnecessary, and option D misunderstands the need for creating a new environment instead of just editing the existing one.