Q2 — AWS DVA-C02 Ch.1
Question 2 of 100 | ← Chapter 1
A company is building a web application on AWS. When customers submit requests, the application generates reports and then delivers them to customers within a specified time window. Customers must be able to access reports for up to 8 hours. Some reports exceed 1 MB. Each report is unique per customer. The application must delete all reports older than 2 days. Which solution meets these requirements with the lowest operational overhead?
- A. Generate the report and store it as an Amazon DynamoDB item with a specified TTL. Generate a URL to retrieve the report from DynamoDB. Provide the URL to customers through the web application.
- B. Generate the report and store it in an Amazon S3 bucket with server-side encryption. Attach the report to an Amazon Simple Notification Service (Amazon SNS) message. Subscribe customers to email notifications from Amazon SNS.
- C. Generate the report and store it in an Amazon S3 bucket with server-side encryption. Generate a presigned URL with an expiration time of 8 hours. Provide the URL to customers through the web application. Configure an S3 Lifecycle policy rule to delete old reports. ✓
- D. Generate the report and store it in an Amazon RDS database with a timestamp. Generate a URL to retrieve the report from the RDS database. Provide the URL to customers through the web application. Schedule an hourly AWS Lambda function to delete database records with expired timestamps.
Correct Answer: C. Generate the report and store it in an Amazon S3 bucket with server-side encryption. Generate a presigned URL with an expiration time of 8 hours. Provide the URL to customers through the web application. Configure an S3 Lifecycle policy rule to delete old reports.
Explanation
Storage: Storing reports in Amazon S3 is appropriate because S3 offers high durability, reliability, scalability, and supports files larger than 1 MB. Security: Server-side encryption ensures report confidentiality, aligning with best practices for customer data. Access control: Presigned URLs enable secure, time-limited access—meeting the 8-hour requirement. Report lifecycle: S3 Lifecycle rules automate deletion of reports older than 2 days, eliminating manual operational effort. Cost efficiency: S3’s low storage and operational costs make Option C the most cost-effective solution that satisfies all business and technical constraints.