AWS Certified Data Engineer – Associate (DEA-C01) — Question 115
A company stores logs in an Amazon S3 bucket. When a data engineer attempts to access several log files, the data engineer discovers that some files have been unintentionally deleted.
The data engineer needs a solution that will prevent unintentional file deletion in the future.
Which solution will meet this requirement with the LEAST operational overhead?
Answer options
- A. Manually back up the S3 bucket on a regular basis.
- B. Enable S3 Versioning for the S3 bucket.
- C. Configure replication for the S3 bucket.
- D. Use an Amazon S3 Glacier storage class to archive the data that is in the S3 bucket.
Correct answer: B
Explanation
Enabling S3 Versioning allows for the preservation of all versions of an object, which effectively prevents unintentional deletions by allowing recovery of previous versions. The other options, while potentially useful, involve more manual intervention or do not directly address the issue of accidental deletion. Manual backups (A) require consistent effort, replication (C) adds complexity, and Glacier (D) is more suited for infrequently accessed data rather than preventing deletions.