nerdexam
Amazon

DVA-C02 · Question #437

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.)

The correct answer is A. Store the source code in an Amazon S3 bucket. Configure AWS CodePipeline to start whenever C. Store the source code in an AWS CodeCommit repository. Configure AWS CodePipeline to start. CodePipeline can be triggered automatically by source changes in an Amazon S3 bucket (via EventBridge events) or an AWS CodeCommit repository, enabling true continuous deployment on every commit.

Submitted by joshua94· Mar 5, 2026Deployment

Question

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.)

Options

  • AStore the source code in an Amazon S3 bucket. Configure AWS CodePipeline to start whenever
  • BStore the source code in an encrypted Amazon EBS volume. Configure AWS CodePipeline to
  • CStore the source code in an AWS CodeCommit repository. Configure AWS CodePipeline to start
  • DStore the source code in an Amazon S3 bucket. Configure AWS CodePipeline to start every 15
  • EStore the source code in an Amazon EC2 instance's ephemeral storage. Configure the instance

How the community answered

(34 responses)
  • A
    94% (32)
  • D
    3% (1)
  • E
    3% (1)

Why each option

CodePipeline can be triggered automatically by source changes in an Amazon S3 bucket (via EventBridge events) or an AWS CodeCommit repository, enabling true continuous deployment on every commit.

AStore the source code in an Amazon S3 bucket. Configure AWS CodePipeline to start wheneverCorrect

Amazon S3 can be configured as a CodePipeline source stage. When a new object version is uploaded to the bucket, an Amazon EventBridge rule detects the change and triggers the pipeline automatically, enabling event-driven CI/CD.

BStore the source code in an encrypted Amazon EBS volume. Configure AWS CodePipeline to

Amazon EBS volumes are block storage devices attached to EC2 instances and are not supported as a CodePipeline source; there is no mechanism to trigger a pipeline on EBS content changes.

CStore the source code in an AWS CodeCommit repository. Configure AWS CodePipeline to startCorrect

AWS CodeCommit is a native CodePipeline source provider. CodePipeline listens for push events to the specified branch via EventBridge and starts the pipeline immediately when new code is committed, with no polling delay.

DStore the source code in an Amazon S3 bucket. Configure AWS CodePipeline to start every 15

Polling S3 every 15 minutes does not fulfill the requirement of deploying immediately on every source change; it introduces up to a 15-minute delay and is not event-driven.

EStore the source code in an Amazon EC2 instance's ephemeral storage. Configure the instance

EC2 instance ephemeral storage is local, temporary disk space that is not accessible outside the instance and cannot be used as a CodePipeline source trigger.

Concept tested: CodePipeline source triggers for S3 and CodeCommit repositories

Source: https://docs.aws.amazon.com/codepipeline/latest/userguide/pipelines-about-starting.html

Community Discussion

No community discussion yet for this question.

Full DVA-C02 Practice