DVA-C02 practice question 34 of 35

A company is building a web application on AWS. When a customer sends a request, the application will generate reports and then make the reports…

Full set: 598 questions

Domain Troubleshooting and Optimization

A company is building a web application on AWS. When a customer sends a request, the application will generate reports and then make the reports available to the customer within one hour. Reports should be accessible to the customer for 8 hours. Some reports are larger than 1 MB. Each report is unique to the customer. The application should delete all reports that are older than 2 days. Which solution will meet these requirements with the LEAST operational overhead?
Answer options
A: Generate the reports and then store the reports as Amazon DynamoDB items that have a specified TTL. Generate a URL that retrieves the reports from DynamoDB. Provide the URL to customers through the web application.
B: Generate the reports and then store the reports in an Amazon S3 bucket that uses server-side encryption. Attach the reports to an Amazon Simple Notification Service (Amazon SNS) message. Subscribe the customer to email notifications from Amazon SNS.
C: Generate the reports and then store the reports in an Amazon S3 bucket that uses server-side encryption. Generate a presigned URL that contains an expiration date Provide the URL to customers through the web application. Add S3 Lifecycle configuration rules to the S3 bucket to delete old reports. Correct answer
D: Generate the reports and then store the reports in an Amazon RDS database with a date stamp. Generate an URL that retrieves the reports from the RDS database. Provide the URL to customers through the web application. Schedule an hourly AWS Lambda function to delete database records that have expired date stamps.
Correct Answer:
C. Generate the reports and then store the reports in an Amazon S3 bucket that uses server-side encryption. Generate a presigned URL that contains an expiration date Provide the URL to customers through the web application. Add S3 Lifecycle configuration rules to the S3 bucket to delete old reports.
Explanation

This solution effectively meets all requirements with minimal operational overhead. Amazon S3 is the ideal service for storing objects of any size, such as reports, and server-side encryption secures the data at rest. Generating a presigned URL provides secure, time-limited access (configurable to 8 hours) to a specific report for a customer without exposing the underlying S3 bucket. S3 Lifecycle configuration rules are a managed feature that can automatically delete objects after a specified period (2 days), eliminating the need for custom scripts or scheduled tasks, thus ensuring the least operational overhead.

Why Incorrect

A: Amazon DynamoDB has a maximum item size limit of 400 KB, which is insufficient for reports larger than 1 MB. Storing large objects would require complex chunking logic, increasing overhead. B: This option does not address the 8-hour access limit for customers or the 2-day deletion requirement for old reports. It would require additional components to meet these requirements. D: Storing large binary files (blobs) in an Amazon RDS database is inefficient and not a recommended practice compared to object storage. Managing a scheduled Lambda function adds more operational overhead than a simple S3 Lifecycle rule.

References

1. Amazon S3 Developer Guide

Sharing objects using presigned URLs: "A presigned URL gives you access to the object identified in the URL

provided that the creator of the presigned URL has permissions to access that object. That is

if you receive a presigned URL to upload an object

you can upload the object only if the creator of the presigned URL has the necessary permissions to upload that object... All presigned URLs have an expiration date and time." This supports the use of presigned URLs for temporary

secure access.

2. Amazon S3 User Guide

Managing your storage lifecycle: "To manage your objects so that they are stored cost effectively throughout their lifecycle

configure their S3 Lifecycle. An S3 Lifecycle configuration is a set of rules that define actions that Amazon S3 applies to a group of objects... For example... Expire objects - Delete objects after a specified period of time." This confirms that S3 Lifecycle rules are the managed

low-overhead solution for automatic deletion.

3. Amazon DynamoDB Developer Guide

Service

account

and table quotas in Amazon DynamoDB: Under "Item size"

the documentation states

"The maximum size of an item in DynamoDB is 400 KB

which includes both attribute names and values (binary and string)." This confirms why option A is incorrect.

4. AWS Whitepaper

AWS Best Practices for Storing Large Objects (Archived

but principle remains valid): While specific whitepapers evolve

the established best practice is to use Amazon S3 for large

unstructured data (blobs) and databases like RDS for structured

transactional data. Storing large objects in a relational database can lead to performance degradation and higher costs. The "Performance Efficiency" pillar of the AWS Well-Architected Framework also emphasizes selecting the appropriate data store for the workload.

Scroll to Top