Q46 — AWS DOP-C02 Ch.3
Question 46 of 100 | ← Chapter 3
A company has a Go-based internal application. A DevOps engineer is tasked with migrating the application to AWS. The company's development team wants to enable blue/green deployments and perform A/B testing.
- A. Deploy the application on Amazon EC2 instances and create an AMI of the instance. Use the AMI to create an Auto Scaling launch configuration used by the Auto Scaling group. Use Elastic Load Balancing to distribute traffic. When changes are made to the application, create a new AMI, triggering EC2 instance refreshes.
- B. Deploy the application using Amazon Lightsail. Store the application in compressed format in an Amazon S3 bucket. Deploy new versions of the application to Lightsail using this compressed version. Use Lightsail deployment options to manage deployments.
- C. Use AWS CodeArtifact to store application code. Use AWS CodeDeploy to deploy the application to an Amazon EC2 instance fleet. Use Elastic Load Balancing to distribute traffic across EC2 instances. When changes are made to the application, upload a new version to CodeArtifact and create a new CodeDeploy deployment.
- D. Use AWS Elastic Beanstalk to host the application. Store the compressed application version in Amazon S3. Deploy new application versions using this location. Use Elastic Beanstalk to manage deployment options. ✓
Correct Answer: D. Use AWS Elastic Beanstalk to host the application. Store the compressed application version in Amazon S3. Deploy new application versions using this location. Use Elastic Beanstalk to manage deployment options.
Explanation
This question tests understanding of AWS deployment services and implementation of blue/green and A/B testing. AWS documentation states Elastic Beanstalk supports blue/green deployments and traffic distribution policies. Option D hosts the application via Elastic Beanstalk, deploys code packages directly from S3, and leverages built-in deployment strategy features for version switching. Other options fail to meet automated blue/green and A/B testing requirements: A relies on manual instance refreshes, B lacks native traffic splitting in Lightsail, and C combines CodeDeploy but introduces unnecessary complexity. Option D aligns with AWS best practices.