AWS Certified DevOps Engineer – Professional — Question 72
A company has a single-page application that was developed in Angular. A DevOps engineer needs to automate deployments of the application to a website that the company hosts on Amazon S3. The solution must provide version control of the source code and must give developers the ability to perform peer review.
Which combination of steps will meet these requirements? (Choose three.)
Answer options
- A. Create an AWS CodeCommit repository to store the source code. Create an AWS CodePipeline pipeline that has a source of the CodeCommit repository.
- B. Create an S3 bucket to act as the source for developers to upload their source code. Create an AWS CodePipeline pipeline that has the S3 bucket as the source.
- C. In the CodePipeline pipeline, configure an AWS CodeBuild phase that compiles the source code and produces build artifacts.
- D. In the CodePipeline pipeline, configure an AWS CodeDeploy phase that compiles the source code, produces build artifacts, and then deploys the website.
- E. In the CodePipeline pipeline, configure an AWS AppConfig deploy action that deploys the build artifacts to the S3 website bucket.
- F. In the CodePipeline pipeline, configure an S3 deploy action that deploys the build artifacts to the S3 website bucket.
Correct answer: A, C, F
Explanation
The correct options A, C, and F create a complete workflow where the source code is stored in CodeCommit, built using CodeBuild, and then deployed to S3 using an S3 deploy action. Option B is incorrect because it does not involve version control as it uses an S3 bucket for source code upload. Options D and E are incorrect as they misplace the responsibilities of compiling and deploying within the pipeline.