Courseiva
Deployment →hardMultiple Choice

DVA-C02 Deployment Practice Question

A company uses AWS CodePipeline to automate deployments. The pipeline source stage uses Amazon S3. The developer wants to automatically trigger the pipeline when a new version of the source file is uploaded. The developer has configured S3 event notifications to invoke a Lambda function that starts the pipeline. However, the pipeline is not triggering. What is the most likely cause?

⚠ Common exam trap

The trap is assuming that S3 versioning is required for S3 event notifications or CodePipeline S3 source actions. S3 event notifications work without versioning, and CodePipeline can use S3 sources without requiring versioning. Focus on the IAM permissions needed for the Lambda function to start the pipeline.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

The Lambda function does not have permission to start the pipeline.

The most likely cause is that the Lambda function does not have permission to start the pipeline. S3 event notifications can invoke Lambda regardless of whether S3 versioning is enabled, so versioning is not required. For the pipeline to start, the Lambda function's execution role must have permission to call codepipeline:StartPipelineExecution on the target pipeline. If that permission is missing, the S3 event will invoke Lambda but the pipeline will not start. (Note: the S3 bucket must also allow S3 to invoke the Lambda function; however, among the provided options, the missing Lambda permission to start the pipeline is the most likely cause.)

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    S3 versioning is not enabled on the bucket.

    Why it's wrong here

    S3 versioning is not enabled on the bucket. This is the most likely cause because CodePipeline's S3 source action relies on versioning to detect new uploads. Without versioning, the pipeline cannot reliably associate the event notification with a specific object version, preventing the pipeline from starting.

  • ✗

    The pipeline execution role does not have permission to read from the S3 bucket.

    Why it's wrong here

    This would affect pipeline execution, not triggering.

  • ✓

    The Lambda function does not have permission to start the pipeline.

    Why this is correct

    This would cause an error, but the question says the pipeline is not triggering, implying no invocation.

  • ✗

    The S3 bucket does not have a bucket policy that allows S3 to invoke Lambda.

    Why it's wrong here

    S3 can invoke Lambda with proper permissions, but bucket policy is not required.

Quick reference

AWS S3 Storage Class Comparison

Storage ClassMin DurationRetrievalUse Case
S3 StandardNoneImmediateFrequently accessed data
S3 Standard-IA30 daysImmediateInfrequent access, rapid retrieval
S3 One Zone-IA30 daysImmediateNon-critical infrequent data
S3 Intelligent-TieringNoneImmediate–hoursUnknown or changing access patterns
S3 Glacier Instant90 daysMillisecondsArchive with instant retrieval
S3 Glacier Flexible90 daysMinutes–hoursArchive, flexible retrieval
S3 Glacier Deep Archive180 daysHoursLong-term compliance archive

About these practice questions

Courseiva writes every DVA-C02 question from scratch — 1,135 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This DVA-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DVA-C02 exam.