AWS Certified Developer – Associate (DVA-C02) — Question 554
A development team wants to immediately build and deploy an application whenever there is a change to the source code.
Which approaches could be used to trigger the deployment? (Choose two.)
Answer options
- A. Store the source code in an Amazon S3 bucket. Configure AWS CodePipeline to start whenever a file in the bucket changes.
- B. Store the source code in an encrypted Amazon EBS volume. Configure AWS CodePipeline to start whenever a file in the volume changes.
- C. Store the source code in an AWS CodeCommit repository. Configure AWS CodePipeline to start whenever a change is committed to the repository.
- D. Store the source code in an Amazon S3 bucket. Configure AWS CodePipeline to start every 15 minutes.
- E. Store the source code in an Amazon EC2 instance’s ephemeral storage. Configure the instance to start AWS CodePipeline whenever there are changes to the source code.
Correct answer: A, C
Explanation
AWS CodePipeline natively integrates with Amazon S3 and AWS CodeCommit to automatically detect source changes and trigger a pipeline execution immediately. Amazon EBS volumes and EC2 ephemeral storage are block-level storage solutions that do not support native integration to trigger CodePipeline. Running a pipeline on a fixed 15-minute interval does not meet the requirement for immediate deployment upon source changes.