Courseiva

DVA-C02 Troubleshooting and Optimization Practice Question

Exhibit

Refer to the exhibit.

CloudFormation template snippet:
"MyBucket": {
    "Type": "AWS::S3::Bucket",
    "Properties": {
        "BucketName": "my-app-data",
        "VersioningConfiguration": {
            "Status": "Enabled"
        }
    }
}

The exhibit shows a CloudFormation template that creates an S3 bucket with versioning enabled. After deploying the stack, a developer uploads an object to the bucket. Later, the developer updates the object by uploading a new version. The developer wants to retrieve the original object. What is the correct way to do this?

⚠ Common exam trap

DVA-C02 often tests the misconception that uploading a new object overwrites the old one — candidates must remember that versioning retains prior versions retrievable by version ID.

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

✓

Use the S3 console or CLI to list object versions and retrieve the version ID of the original object.

With S3 versioning enabled, uploading a new version of an object does not overwrite the original — it creates a new version and retains the previous one. The developer can retrieve the original by listing object versions (via console or aws s3api list-object-versions) to find the original version ID, then downloading that specific version.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Restore the original object using the S3 Object Lambda.

    Why it's wrong here

    S3 Object Lambda is designed to transform data during retrieval, allowing custom code to modify the object's content before it reaches the requester. It operates on the *current* version of an object and does not provide mechanisms to access or restore previous versions managed by S3 Versioning. Therefore, it cannot be used to 'restore' an original object in the context of versioning.

  • ✗

    Use the S3 Batch Operations to revert to the original version.

    Why it's wrong here

    S3 Batch Operations are optimized for performing large-scale, automated actions across many S3 objects, such as copying, tagging, or restoring from Amazon S3 Glacier. While it can target specific object versions, its primary purpose is for bulk processing, not for the direct, single-object retrieval of a previous version. For retrieving a single original object, directly using its version ID is a more straightforward and efficient approach.

  • ✗

    The original object is overwritten and cannot be retrieved.

    Why it's wrong here

    This statement is incorrect because S3 Versioning, when enabled on a bucket, explicitly preserves all previous versions of an object, even after it has been overwritten or deleted. Instead of being permanently lost, the original object becomes a non-current version, identifiable by its unique version ID. This feature ensures data durability and provides a robust recovery mechanism against unintended modifications.

  • ✓

    Use the S3 console or CLI to list object versions and retrieve the version ID of the original object.

    Why this is correct

    S3 Versioning automatically retains every version of an object whenever it is modified or deleted, assigning each a unique version ID. To retrieve the original object, one must first identify its specific version ID among the stored versions. Both the AWS Management Console and the AWS Command Line Interface (CLI) offer functionalities to list all object versions, enabling precise retrieval of the desired historical state.

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 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.