ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 672 - SAA-C03 discussion

Report
Export

A company uses Amazon S3 to store high-resolution pictures in an S3 bucket. To minimize application changes, the company stores the pictures as the latest version of an S3 object

The company needs to retain only the two most recent versions ot the pictures.

The company wants to reduce costs. The company has identified the S3 bucket as a large expense.

Which solution will reduce the S3 costs with the LEAST operational overhead?

A.
Use S3 Lifecycle to delete expired object versions and retain the two most recent versions.
Answers
A.
Use S3 Lifecycle to delete expired object versions and retain the two most recent versions.
B.
Use an AWS Lambda function to check for older versions and delete all but the two most recent versions
Answers
B.
Use an AWS Lambda function to check for older versions and delete all but the two most recent versions
C.
Use S3 Batch Operations to delete noncurrent object versions and retain only the two most recent versions
Answers
C.
Use S3 Batch Operations to delete noncurrent object versions and retain only the two most recent versions
D.
Deactivate versioning on the S3 bucket and retain the two most recent versions.
Answers
D.
Deactivate versioning on the S3 bucket and retain the two most recent versions.
Suggested answer: A

Explanation:

S3 Lifecycle is a feature that allows you to automate the management of your S3 objects based on predefined rules. You can use S3 Lifecycle to delete expired object versions and retain the two most recent versions by creating a lifecycle configuration rule that applies to all objects in the bucket and specifies the expiration action for noncurrent versions. This way, you can reduce the storage costs of your S3 bucket without requiring any application changes or manual intervention. S3 Lifecycle runs once a day and marks the eligible object versions for deletion. You are no longer charged for the objects that are marked for deletion. S3 Lifecycle is the most cost-effective and simple solution among the options.

B) Use an AWS Lambda function to check for older versions and delete all but the two most recent versions. This option is not optimal because it requires you to write, test, and maintain a custom Lambda function that scans the S3 bucket for older versions and deletes them. This can incur additional costs for Lambda invocations and increase the operational complexity and overhead. Moreover, you need to ensure that your Lambda function has the appropriate permissions and error handling mechanisms to perform the deletion operation.

C) Use S3 Batch Operations to delete noncurrent object versions and retain only the two most recent versions. This option is not ideal because S3 Batch Operations is designed for performing large-scale operations on S3 objects, such as copying, tagging, restoring, or invoking a Lambda function. To use S3 Batch Operations to delete noncurrent object versions, you need to provide a manifest file that lists the object versions that you want to delete. This can be challenging and time-consuming to generate and update. Moreover, S3 Batch Operations charges you for each operation that you perform, which can increase your costs.

D) Deactivate versioning on the S3 bucket and retain the two most recent versions. This option is not feasible because deactivating versioning on an S3 bucket does not delete the existing object versions. Instead, it prevents new versions from being created. Therefore, you still need to delete the older versions manually or use another method to do so. Additionally, deactivating versioning can compromise the data protection and recovery capabilities of your S3 bucket.

1Considering four different replication options for data in Amazon S3 | AWS Storage Blog

2Using AWS Lambda with Amazon S3 batch operations - AWS Lambda

3Empty an Amazon S3 bucket with a lifecycle configuration rule

4Amazon S3 - Lifecycle Management - GeeksforGeeks

asked 16/09/2024
Waleed Bahadaq
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first