Q84 — AWS DOP-C02 Ch.1
Question 84 of 100 | ← Chapter 1
A company has a local application written in Go. A DevOps engineer wants to migrate 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 from the instance. Use the AMI to create an Auto Scaling launch configuration used in an Auto Scaling group. Use Elastic Load Balancing to distribute traffic. When changes are made to the application, create a new AMI, triggering EC2 instance refresh.
- 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 the application code. Use AWS CodeDeploy to deploy the application to a fleet of Amazon EC2 instances. Use Elastic Load Balancing to distribute traffic across EC2 instances. When changes are made to the application, upload the new version to CodeArtifact and create a new CodeDeploy deployment.
- D. Use AWS Elastic Beanstalk to host the application. Store the compressed version of the application in Amazon S3. Deploy new versions of the application using that location. Use Elastic Beanstalk to manage deployment options. ✓
Correct Answer: D. Use AWS Elastic Beanstalk to host the application. Store the compressed version of the application in Amazon S3. Deploy new versions of the application using that location. Use Elastic Beanstalk to manage deployment options.
Explanation
AWS Elastic Beanstalk natively supports blue/green deployments and A/B testing via built-in environment swapping and traffic splitting capabilities. It abstracts infrastructure management while allowing seamless version rollouts and rollback. Option D leverages Elastic Beanstalk’s integrated deployment features—including S3-stored application bundles and configurable deployment policies—without requiring custom orchestration. Option A lacks native blue/green support and relies on manual AMI updates and instance refreshes. Option B uses Lightsail, which does not support blue/green deployments or A/B testing. Option C requires extensive custom setup with CodeDeploy and load balancer configuration to simulate blue/green behavior, increasing complexity and operational overhead. Elastic Beanstalk is the most appropriate managed service for this use case.