Testing and Deployment

A CodePipeline pipeline uses a GitHub source action through AWS CodeConnections. Only pushes to the release branch should start deployments; what should the developer configure?

Show the answer

Correct answerB. A source trigger with a release-branch push filter

AWhy not this: An artifact name identifies pipeline output; it does not control source triggers.

BWhy this is right: A branch filter on the push trigger restricts which repository events start pipeline executions.

CWhy not this: A build environment variable supplies a value to the build; it does not filter repository events.

DWhy not this: An approval action pauses an existing execution rather than preventing unwanted executions from starting.

A source trigger can filter Git push events by branch, so only release-branch pushes start the pipeline. An approval action controls whether an execution proceeds, not which branch events start it.