DVA-C02 Deployment Practice Question
A developer is deploying a static website to Amazon S3. The developer wants to enable versioning to easily roll back to a previous version if the new deployment has issues. After enabling versioning on the bucket, the developer uploads the new files. How can the developer roll back to the previous version?
⚠ Common exam trap
Watch out — candidates often confuse 'selecting' a previous version in the console (a view-only action) with actually making it current — candidates pick D because it sounds like a rollback, but only copying the version to the same key changes what is served.
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
✓
Copy the previous version of the object to the same key, making it the current version.
When S3 versioning is enabled, each object key holds a stack of versions with the latest one served by default. To roll back, you copy the desired previous version onto the same key; S3 creates a new 'current' version whose content matches the old one, so GET requests immediately serve the rolled-back content without deleting history. This is the standard, non-destructive rollback pattern.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Copy the previous version of the object to the same key, making it the current version.
Why this is correct
When S3 versioning is enabled, every modification or deletion of an object creates a new version. To restore a previous state, you identify the specific version ID of the desired older object. By copying this previous version to the same object key within the bucket, S3 creates a new current version that contains the data from the chosen historical state, effectively rolling back the object to that point. This is the standard and correct procedure for restoring a prior version of an S3 object.
- ✗
Delete the current version of the object from the bucket.
Why it's wrong here
Deleting the current version of an object in a versioned S3 bucket does not restore a previous state; instead, it places a delete marker as the new current version. This marker makes the object appear deleted to standard GET requests, but all previous versions of the object remain intact and accessible by their version IDs. To truly restore, the delete marker itself would need to be deleted, or a previous version explicitly copied to become current.
- ✗
Use the S3 console 'Restore' action on the bucket.
Why it's wrong here
The S3 console does not feature a generic 'Restore' action specifically designed for promoting a previous object version to be the current one. The 'Restore' action in S3 is primarily associated with retrieving objects that have been transitioned to archive storage classes like S3 Glacier or S3 Glacier Deep Archive. Restoring an older version of an object in S3 requires a different, explicit action, typically a copy operation.
- ✗
Enable 'Show versions' and then select the previous version to make it current.
Why it's wrong here
While enabling 'Show versions' in the S3 console allows users to view all historical versions of an object, there is no direct 'make current' or 'promote' button available for a selected previous version. The console provides options to download or delete specific versions, but to effectively make a previous version the active current version, an explicit copy operation of that specific version back to the original key is required.
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
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 →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official Amazon Web Services exam blueprint
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.