A development team wants code changes to trigger an immediate build and deployment. Which of the following approaches can be used to start an AWS CodePipeline when source code changes occur? (Choose two.)
Choose an answer
Tap an option to check your answer.
Correct answer: Put the source code in an Amazon S3 bucket and configure CodePipeline to start when an object in the bucket changes., Store the source code in an AWS CodeCommit repository and configure CodePipeline to start when a commit is made to the repository..
Why this is the answer
AWS CodePipeline integrates directly with various source providers to trigger pipelines automatically. Storing source code in an Amazon S3 bucket allows CodePipeline to start when an object in the bucket changes, typically by detecting new versions or modifications. Similarly, integrating with an AWS CodeCommit repository enables CodePipeline to trigger automatically upon new commits, branches, or merges. These are both common and effective methods for immediate, event-driven pipeline starts. Storing source code on an encrypted Amazon EBS volume or an EC2 instance's ephemeral storage does not provide native integration for CodePipeline to detect changes and trigger automatically. While CodePipeline can poll an S3 bucket, polling every 15 minutes does not provide an immediate build and deployment, which the question specifically asks for.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed