Q100 — AWS DEA-C01 Ch.1
Question 100 of 100 | ← Chapter 1
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?
- 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. Enable S3 Versioning for the S3 bucket.
Explanation
答案B正确。在亚马逊S3中,启用S3Versioning(版本控制)功能可以保留对象的多个版本,包括在意外删除情况下保留之前的版本。这能有效防止无意的文件删除,且相较于手动定期备份(选项A)、配置复制(选项C)和使用AmazonS3Glacier存储类归档数据(选项D),操作开销最少。只需简单设置启用版本控制功能,即可自动保留对象的版本历史,满足防止未来无意文件删除的需求。