DVA-C02 Question 277
Select 2You are a developer responsible for deploying an application on AWS using CI/CD services. Your application is stored in an AWS CodeCommit repository, and you need to automate the build and deployment process. The deployment target is an Amazon ECS cluster with a Fargate launch type. Which combination of services can you use to achieve this?
- A
AWS CodePipeline, AWS CodeBuild, and AWS CodeDeploy
- B
AWS CodePipeline and AWS Elastic Beanstalk
- C
AWS CodePipeline, Jenkins, and AWS Lambda
- D
AWS CodePipeline, AWS CodeBuild, and Amazon ECS
Show answer and explanation
Correct answers: A, D
Explanation
To deploy an application to an Amazon ECS cluster using AWS CI/CD services, you need a combination of tools for orchestration (AWS CodePipeline), building (AWS CodeBuild), and deployment (AWS CodeDeploy or ECS directly). Both combinations 1 and 4 meet the criteria. AWS Elastic Beanstalk and Jenkins are not directly suitable for this specific scenario.
- A. Correct.
Correct: AWS CodePipeline can orchestrate the CI/CD flow, AWS CodeBuild can handle the build process, and AWS CodeDeploy can automate deployments to your ECS cluster.
- B. Incorrect.
Incorrect: AWS Elastic Beanstalk is a PaaS solution, not suitable for directly deploying to an ECS cluster. This combination does not meet the requirement.
- C. Incorrect.
Incorrect: While Jenkins can be integrated with AWS services, using AWS Lambda in this scenario is unnecessary for ECS deployments, and CodePipeline with Jenkins alone does not fulfill the ECS deployment requirement.
- D. Correct.
Correct: AWS CodePipeline can manage the CI/CD workflow, AWS CodeBuild can build the application, and Amazon ECS is the target deployment platform. This combination is valid for deploying to an ECS cluster.