Question 247:
A company just started to use AWS ECS/ECR for its dockerized applications. They are looking for a pipeline service with a source stage that can deploy a container application to the ECS cluster using a blue/green deployment. At the moment, all docker images are already stored in the ECR service which will be used in the pipelines as artifactories. What is the quickest way to implement this pipeline?
Answer options:
A.Create a Jenkins server in the EC2 instance. In the Jenkins job, add a source stage for the ECR docker image and a deployment stage for the ECS cluster using AWS CLI commands. B.In AWS CodePipeline, configure a source stage for ECR, a build stage with CodeBuild for the docker image and a deployment stage using CloudFormation to deploy the ECS cluster. C.In AWS CodeDeploy, create a CodeDeploy application and a deployment group to configure the blue/green deployment to the ECS cluster using the image in the ECR repository. D.In AWS CodePipeline, add a source stage for ECR docker image and a deployment stage for ECS where the deployment runs with a CodeDeploy application and deployment group.