SAA-C03 · Question #494
SAA-C03 Question #494: Real Exam Question with Answer & Explanation
The correct answer is D: Use a createdAt timestamp to set TTL for data in the first DynamoDB table to 28 days.. DynamoDB has a built-in feature called Time to Live (TTL) which automatically deletes expired items without manual intervention. This requires adding a timestamp attribute and setting a TTL on the table. This is the lowest operational overhead approach. "You can use DynamoDB TTL
Question
An ecommerce company has an application that collects order-related information from customers. The company uses one Amazon DynamoDB table to store customer home addresses, phone numbers, and email addresses. Customers can check out without creating an account. The application copies the customer information to a second DynamoDB table if a customer does create an account. The company requires a solution to delete personally identifiable information (PII) for customers who did not create an account within 28 days. Which solution will meet these requirements with the LEAST operational overhead?
Options
- ACreate an AWS Lambda function to delete items from the first DynamoDB table that have a
- BUpdate the application to store PII in an Amazon S3 bucket. Create an S3 Lifecycle rule to expire
- CLaunch an Amazon EC2 instance. Configure a daily cron job to run on the instance. Configure the
- DUse a createdAt timestamp to set TTL for data in the first DynamoDB table to 28 days.
Explanation
DynamoDB has a built-in feature called Time to Live (TTL) which automatically deletes expired items without manual intervention. This requires adding a timestamp attribute and setting a TTL on the table. This is the lowest operational overhead approach. "You can use DynamoDB TTL to automatically delete items after a specified time, reducing storage costs and administrative overhead."
Community Discussion
No community discussion yet for this question.