A healthcare company uploads patient intake documents averaging in size to an Amazon S3 Standard bucket. The files are accessed frequently during the first days after upload. After days, the files are rarely accessed, but they must be retained for a total of days from the upload date for compliance, after which they can be deleted. Which storage strategy is the most cost-effective for this workload?
- AConfigure an Amazon S3 Lifecycle policy to transition the records to Amazon S3 Standard-Infrequent Access (S3 Standard-IA) after 20 days, and expire the objects after 35 days.
- Keep the records in Amazon S3 Standard, and configure an Amazon S3 Lifecycle policy to expire the objects after 35 days.Cevap
- CConfigure an Amazon S3 Lifecycle policy to transition the records to Amazon S3 Standard-Infrequent Access (S3 Standard-IA) after 20 days, and route all subsequent retrieval traffic from Amazon EC2 instances in a private subnet through a NAT Gateway.
- DKeep the records in Amazon S3 Standard, and run an AWS Lambda function continuously on an Amazon EventBridge schedule to scan the S3 bucket and delete files older than 35 days.
Cevap
Keep the records in Amazon S3 Standard, and configure an Amazon S3 Lifecycle policy to expire the objects after 35 days.
Keeping the files in S3 Standard for the full 35 days and using an S3 Lifecycle policy to delete them is the most cost-effective strategy. Transitioning the files to S3 Standard-IA at day 20 means they would only be stored in S3 Standard-IA for 15 days before deletion. Since S3 Standard-IA has a minimum storage duration charge of 30 days, the company would be billed for 30 days of storage, negating any cost savings from the lower tier. Therefore, avoiding the transition and keeping the files in S3 Standard is cheaper.
Adım Adım Çözüm
Anahtar Kavram
Amazon S3 Standard-IA has a minimum storage duration charge of 30 days. Transitioning objects to S3 Standard-IA that are deleted before 30 days are up results in a cost penalty.