AWS Certified SysOps Administrator – Associate (legacy) — Question 621
An organization recently faced a network outage while uploading data into one of their S3 buckets. This outage generated many incomplete multipart uploads in that S3 bucket. A sysops administrator wants to delete the incomplete multipart uploads and ensure that the incomplete multipart uploads are deleted automatically the next time such an event occurs.
How should this be done?
Answer options
- A. Create an Amazon S3 Event Notification to trigger an AWS Lambda function that deletes incomplete multipart uploads.
- B. Create an Amazon S3 lifecycle rule to abort incomplete multipart uploads so that they are deleted this time and in the future.
- C. Use the AWS CLI to list all the multipart uploads, and abort all the incomplete uploads from the day of the event so that they are deleted.
- D. Use the AWS Management Console to abort all the incomplete uploads from the day of the event so that they are deleted.
Correct answer: B
Explanation
An Amazon S3 lifecycle configuration rule can be configured to automatically abort incomplete multipart uploads after a specified number of days, which cleans up both current and future partial uploads without manual intervention. While using the AWS CLI, AWS Management Console, or AWS Lambda can delete these uploads, they either require manual effort for future occurrences or introduce unnecessary complexity compared to native S3 lifecycle rules.