An online education platform generates user session interaction logs that are stored in an Amazon S3 bucket. Each log file is approximately in size. The logs are accessed frequently for analysis during the first days after creation. After days, access drops significantly, but the logs must be retained for troubleshooting purposes for a total of days from creation, after which they can be safely deleted. Which lifecycle configuration is the most cost-effective solution for managing these logs?
- Keep the logs in Amazon S3 Standard, and configure a lifecycle rule to permanently delete the logs after 25 days.Answer
- BConfigure a lifecycle rule to transition the logs to Amazon S3 Standard-Infrequent Access (S3 Standard-IA) after 12 days and permanently delete them after 25 days.
- CConfigure a lifecycle rule to transition the logs to Amazon S3 One Zone-Infrequent Access (S3 One Zone-IA) after 12 days and permanently delete them after 25 days.
- DConfigure a lifecycle rule to transition the logs to Amazon S3 Glacier Instant Retrieval after 12 days and permanently delete them after 25 days.
Answer
Keep the logs in Amazon S3 Standard and delete them after 25 days using a lifecycle rule.
The correct answer is correct because keeping the logs in Amazon S3 Standard for the entire 25 days is the most cost-effective choice. Transitioning to any Infrequent Access or Glacier tier incurs a minimum storage duration fee (30 days for S3 Standard-IA/S3 One Zone-IA, and 90 days for S3 Glacier Instant Retrieval). Because the logs are deleted at day 25, they only spend 13 days in the target storage tier, which triggers early deletion charges. In addition, transitioning files introduces request costs that outweigh any potential storage savings.
Step-by-Step Solution
Key Concept
S3 lifecycle transition constraints and minimum storage durations
Estimated Time:1m 30s