DVA-C02 Question 296
Select 3You are a developer working on a CI/CD pipeline for deploying a serverless application built using AWS Lambda and Amazon API Gateway. The pipeline must automatically build, test, and deploy the application whenever changes are pushed to a GitHub repository. Which AWS services would you use to implement this workflow?
- A
AWS CodePipeline
- B
AWS CodeBuild
- C
AWS CodeDeploy
- D
Amazon S3
- E
AWS Elastic Beanstalk
Show answer and explanation
Correct answers: A, B, C
Explanation
To implement a CI/CD workflow for a serverless application, you need services that handle orchestration (AWS CodePipeline), building/testing (AWS CodeBuild), and deployment (AWS CodeDeploy). Together, these services allow for a fully automated pipeline that integrates with a GitHub repository to deploy serverless applications.
- A. Correct.
AWS CodePipeline is used to orchestrate the entire CI/CD workflow by defining build, test, and deploy stages.
- B. Correct.
AWS CodeBuild is used for compiling source code, running tests, and producing deployable artifacts.
- C. Correct.
AWS CodeDeploy is used to automate the deployment of the application to AWS Lambda or other compute services.
- D. Incorrect.
Amazon S3 is a storage service and does not provide CI/CD pipeline orchestration, build, or deployment capabilities.
- E. Incorrect.
AWS Elastic Beanstalk is a PaaS solution for deploying web applications, but it is not a CI/CD service specifically designed for orchestrating pipelines like AWS CodePipeline.