DVA-C02 Development with AWS Services Practice Question
Exhibit
Refer to the exhibit.
Resources:
MyBucket:
Type: AWS::S3::Bucket
Properties:
VersioningConfiguration:
Status: Enabled
LifecycleConfiguration:
Rules:
- Id: ExpireOldVersions
Status: Enabled
NoncurrentVersionExpirationInDays: 30Refer to the exhibit. A developer created this CloudFormation template for an S3 bucket. What is the expected behavior?
⚠ Common exam trap
A common mix-up: candidates confuse `NoncurrentVersionExpirationInDays` with `ExpirationInDays` or `Transition`, leading them to think the rule deletes current versions or transitions objects, when in fact it only applies to noncurrent versions in a versioned bucket.
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
✓
Noncurrent versions of objects are deleted 30 days after they become noncurrent.
The CloudFormation template defines an S3 Lifecycle rule with `NoncurrentVersionExpiration` set to 30 `NoncurrentDays`. This rule specifically targets noncurrent versions of objects, meaning that after an object version becomes noncurrent (e.g., due to a PUT or DELETE of the current version), that noncurrent version will be permanently deleted 30 days later. The `Status: Enabled` ensures the rule is active, and versioning is enabled via the `VersioningConfiguration` property.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Noncurrent versions of objects are deleted 30 days after they become noncurrent.
Why this is correct
This statement is correct because an S3 Lifecycle Rule with NoncurrentVersionExpiration configured for 30 days will automatically delete noncurrent object versions. Once a new version of an object is uploaded, the previous version becomes noncurrent, and this rule ensures it is permanently removed from the bucket after 30 days from that point. This helps manage storage costs by cleaning up obsolete data while maintaining version history for a defined period.
- ✗
The bucket will have versioning disabled because the rule conflicts.
Why it's wrong here
This statement is incorrect. S3 Lifecycle rules that manage noncurrent versions, such as NoncurrentVersionExpiration, explicitly require S3 Versioning to be enabled on the bucket. These rules are designed to work *with* versioning, not conflict with it, by defining how older object versions are handled. Therefore, the presence of such a rule implies versioning is enabled and functioning correctly, not disabled.
- ✗
Current versions are transitioned to another storage class after 30 days.
Why it's wrong here
This statement is incorrect. The lifecycle rule described, NoncurrentVersionExpirationInDays, applies specifically to *noncurrent* object versions, not current ones. Furthermore, this rule specifies an *expiration* action, meaning deletion, rather than a *transition* action to move objects to a different storage class like S3 Glacier or S3 Standard-IA. A separate Transition action would be required to move current objects, and it would typically specify a target storage class.
- ✗
Objects are automatically deleted after 30 days.
Why it's wrong here
This statement is incorrect because the lifecycle rule specifically targets NoncurrentVersionExpirationInDays. This means only *noncurrent* versions of objects are subject to deletion after 30 days, not *all* objects or their *current* versions. Current versions of objects remain unaffected by this particular rule and will persist in the bucket unless a separate Expiration rule for current versions is defined.
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
One of 1,135 original DVA-C02 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
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.