DVA-C02 Development with AWS Services Practice Question
A developer wants to store application logs in Amazon S3 with automatic transition to Glacier after 30 days and deletion after 365 days. Which S3 feature should be used?
⚠ Common exam trap
Many exam-takers confuse S3 Lifecycle policies with S3 Event Notifications, thinking event-driven triggers can handle time-based transitions, but Lifecycle policies are the only native S3 feature that automates storage class transitions and deletions based on object age.
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
✓
S3 Lifecycle configuration
S3 Lifecycle configuration is the correct feature because it allows you to define rules that automatically transition objects to colder storage classes like Glacier after a specified number of days (30) and permanently delete them after a longer period (365). This directly matches the requirement for time-based storage tiering and deletion without manual intervention.
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 Lifecycle configuration
Why this is correct
S3 Lifecycle configuration is the correct choice because it allows developers to define rules for automatically transitioning objects between different S3 storage classes (e.g., S3 Standard to S3 Standard-IA, Glacier, or Glacier Deep Archive) based on their age or access patterns. This is ideal for application logs, which typically become less frequently accessed over time but still require retention, enabling significant cost savings by moving them to progressively colder storage tiers. Furthermore, lifecycle policies can also be configured to automatically expire and permanently delete objects after a specified period, ensuring compliance and managing storage footprint efficiently.
- ✗
S3 Object Lock
Why it's wrong here
S3 Object Lock is designed to prevent objects from being deleted or overwritten for a fixed amount of time or indefinitely, providing Write Once Read Many (WORM) capabilities for regulatory compliance. While it ensures data immutability, it does not automate the transition of objects to different storage classes or manage their expiration based on age. Its primary purpose is data retention and protection against accidental or malicious deletion, not cost-optimized lifecycle management through storage class changes.
- ✗
S3 Replication
Why it's wrong here
S3 Replication, whether Cross-Region Replication (CRR) or Same-Region Replication (SRR), is used to automatically copy objects between S3 buckets for purposes like disaster recovery, compliance, or reducing latency for geographically dispersed users. It creates duplicate copies of data but does not manage the lifecycle of objects within a single bucket, nor does it automatically transition objects to different storage classes based on their age or access patterns. Replication is about data redundancy and distribution, not internal lifecycle optimization.
- ✗
S3 Event Notifications
Why it's wrong here
S3 Event Notifications allow developers to receive alerts or trigger actions when specific events occur in an S3 bucket, such as an object being created, deleted, or restored. These notifications can be sent to Amazon SNS, SQS, or AWS Lambda functions to initiate downstream processing of logs or other data. However, S3 Event Notifications do not directly manage the storage class transitions or expiration of objects within S3 itself; they only provide a mechanism to react to object-level events, requiring external logic to implement lifecycle management.
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 724 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.