Q23 — AWS SAP-C02 Ch.3

Question 23 of 75 | ← Chapter 3

Q248. A Solutions Architect must update an application environment within AWS Elastic Beanstalk using a blue/ green deployment methodology. The Solutions Architect creates an environment that is identical to the existing application environment and deploys the application to the new environment. What should be done next to complete the update?

Correct Answer: B. Select the Swap Environment URLs option

Explanation

Option B, "Select the Swap Environment URLs" is the correct choice to complete the blue/green deployment update for an AWS Elastic Beanstalk environment. In a blue/green deployment, two identical environments are created: the "blue" environment that hosts the current running version of the application and the "green" environment that holds the new version. After the green environment has been deployed and tested successfully, traffic can be redirected from the blue to the green environment using a technique called "Swap Environment URLs," which switches the CNAME record associated with the two environments in Elastic Beanstalk. This way, incoming traffic starts being routed to the green environment instead of the blue one. Therefore, in this scenario, selecting the "Swap Environment URLs" option will enable Elastic Beanstalk to route traffic to the new environment, following which the blue environment can be terminated.