AWS Certified Data Engineer - Associate (DEA-C01) Practice Questions

AWS Certified Data Engineer - Associate (DEA-C01) exam preparation

AWS Certified Data Engineer - Associate (DEA-C01) practice questions in English: 180 questions with explanations. The mock exam has 65 questions and 130 minutes.

AWS Certified Data Engineer - Associate (DEA-C01) free question 4 / 10 · Domain 2: Data Store Management

A bucket has versioning enabled and a lifecycle rule that removes old versions after a set number of days. A faulty job overwrote a reference file, and the data team must bring back the previous version. Which method is the recommended way to restore it while the lifecycle rule stays active?

  1. Remove the lifecycle rule for a month and then wait for S3 to restore the noncurrent version to the current version
  2. Copy the noncurrent version into the same bucket, which makes the copy the current version and keeps the earlier versions
  3. Delete the current version for good so that the noncurrent version becomes the current version of the file again
  4. Suspend versioning on the bucket so that the previous version is promoted to the current version of the file
Show the answer and explanation

Answer: B

Why this is correct
The page describes two ways to retrieve a previous version. Method 1 copies a noncurrent version into the same bucket, so the copy becomes the current version and all object versions are preserved. Method 2 permanently deletes the current version, which in effect turns the noncurrent version into the current one. With a lifecycle rule that removes old versions, Method 1 is the recommended best practice, because S3 Lifecycle is eventually consistent and a permanent delete may not have propagated yet when the rule runs.

Why the other options are wrong
"Delete the current version for good so that the noncurrent version becomes the current version of the file again" … This is Method 2 on the page, and it is not the recommended one. Lifecycle works under an eventually consistent model, so the deletion may not have propagated when the lifecycle rule runs, and the version you want to restore can be removed too.
"Suspend versioning on the bucket so that the previous version is promoted to the current version of the file" … Suspending versioning only changes how S3 handles future requests, and existing objects do not change. It does not turn a noncurrent version into the current one.
"Remove the lifecycle rule for a month and then wait for S3 to restore the noncurrent version to the current version" … S3 does not promote a noncurrent version by itself. A restore needs an explicit step, and the page describes only two methods: copying the noncurrent version or deleting the current version.

Key points
Restore by copying, not by deleting, when a rule removes old versions. A copy keeps every version, while a permanent delete leaves a window in which the version you need can be expired.

Go to the AWS Certified Data Engineer - Associate (DEA-C01) practice app (10 free questions; purchase unlocks all questions)

See the full practice set