DOP-C02 SDLC Automation Practice Question
A company is using AWS CodePipeline with multiple stages that include source, build, and deploy. The pipeline uses an Amazon S3 bucket as the source action. The team notices that the pipeline is not automatically starting when new files are uploaded to the S3 bucket. The S3 bucket has versioning enabled. What is the most likely reason?
⚠ Common exam trap
Watch out — candidates often assume versioning always triggers the pipeline, but CodePipeline's S3 source action relies on object key or ETag changes, not version ID changes, so uploading the same key with identical content may not 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 pipeline is configured to detect changes based on object key, but the uploaded file uses the same key as an existing object.
CodePipeline's S3 source action detects changes based on object key and ETag. When a file is uploaded with the same key as an existing object, even with versioning enabled, the ETag may not change if the content is identical, or the pipeline may not trigger if it only monitors for new keys. Versioning creates a new version ID, but CodePipeline's default detection relies on object key changes or ETag changes, not version ID changes, so uploading a file with the same key may not start the pipeline.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The S3 bucket is the same bucket used for the deploy action.
Why it's wrong here
Using the same bucket for source and deploy is allowed and does not prevent triggers.
- ✓
The pipeline is configured to detect changes based on object key, but the uploaded file uses the same key as an existing object.
Why this is correct
CodePipeline triggers only when the object key changes or a new version is created; overwriting with same key may not trigger if versioning is not combined with proper event filtering.
- ✗
The S3 bucket is not configured to send Amazon SQS notifications to CodePipeline.
Why it's wrong here
CodePipeline uses Amazon CloudWatch Events or S3 event notifications, not SQS directly.
- ✗
The S3 bucket does not have versioning enabled.
Why it's wrong here
Versioning is required for S3 source actions; if it were disabled, the pipeline would not work at all.
Quick reference
AWS S3 Storage Class Comparison
| Storage Class | Min Duration | Retrieval | Use Case |
|---|---|---|---|
| S3 Standard | None | Immediate | Frequently accessed data |
| S3 Standard-IA | 30 days | Immediate | Infrequent access, rapid retrieval |
| S3 One Zone-IA | 30 days | Immediate | Non-critical infrequent data |
| S3 Intelligent-Tiering | None | Immediate–hours | Unknown or changing access patterns |
| S3 Glacier Instant | 90 days | Milliseconds | Archive with instant retrieval |
| S3 Glacier Flexible | 90 days | Minutes–hours | Archive, flexible retrieval |
| S3 Glacier Deep Archive | 180 days | Hours | Long-term compliance archive |
Go deeper
Related to this question
About these practice questions
This DOP-C02 question is part of Courseiva's 251-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This DOP-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 DOP-C02 exam.