Question #980
A development team wants to automatically deploy their application whenever there's a code update. Which methods can trigger the deployment pipeline? (Choose two.)
Store code in an AWS CodeCommit repository and configure the pipeline to start on repository updates.
Store code in an Amazon EBS volume and set up the pipeline to trigger on volume changes.
Use an Amazon S3 bucket for the source code and configure the pipeline to initiate when objects are added or modified.
Set up the pipeline to poll an Amazon S3 bucket every 10 minutes for changes.
Host the code on an Amazon EC2 instance's instance store and configure the instance to trigger the pipeline upon changes.
Explanation
Options A and C are correct because:
- A: AWS CodeCommit integrates with AWS CodePipeline to trigger deployments automatically when code is updated in the repository.
- C: Amazon S3 can trigger pipelines via event notifications (e.g., object changes), enabling immediate deployment.
Other options are incorrect because:
- B: Amazon EBS volumes are not monitored by CodePipeline for triggering deployments.
- D: Polling S3 every 10 minutes introduces delays and is less efficient than event-driven triggers.
- E: EC2 instance stores are ephemeral and not monitored by CodePipeline.
Key Points: Use CodeCommit/S3 event-based triggers for automatic deployments. Avoid polling or non-supported services like EBS/EC2 instance stores.
Answer
The correct answer is: AC