AWS Certified Data Engineer Associate DEA-C01 Practice Question
An ecommerce company ingests purchase events into a DynamoDB table and stores the associated event payload files in an S3 bucket. Compliance requires that: 1) only the latest object version must be kept in S3, with all older versions removed after 30 days, and 2) event records must be deleted from the table automatically 90 days after they are created, without affecting application performance. Which solution meets these requirements?
Configure S3 Object Lock in compliance mode with a 30-day retention period. Use DynamoDB Streams and an AWS Lambda function to remove items older than 90 days from the table.
Enable S3 versioning and add a lifecycle rule that expires noncurrent object versions after 30 days. In the DynamoDB table, add a TTL attribute populated with a Unix epoch time 90 days after item creation and enable TTL for the table.
Keep versioning disabled on S3 and create a lifecycle rule to delete objects 30 days after upload. Reduce the table's provisioned capacity to zero after 90 days to force deletion of old items.
Enable S3 Intelligent-Tiering and configure a lifecycle rule to delete objects after 30 days. Create a global secondary index on the DynamoDB table and schedule a daily batch job to delete items older than 90 days.
Enabling versioning on the S3 bucket allows the bucket to maintain multiple object versions. A lifecycle rule that applies a NoncurrentVersionExpiration action set to 30 days automatically removes any version that is not the current one after the specified period. For the DynamoDB table, adding an attribute that stores a Unix epoch timestamp 90 days in the future and enabling Time to Live (TTL) causes DynamoDB to delete the item automatically after the timestamp is reached, without any effect on read or write throughput. Other options either fail to delete only non-current versions, require custom code or scheduled jobs for DynamoDB deletions, or depend on features (such as Object Lock or capacity adjustments) that do not satisfy the stated requirements.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
Why is S3 versioning important for compliance requirements?
Open an interactive chat with Bash
How does DynamoDB Time to Live (TTL) work for automatic deletion?
Open an interactive chat with Bash
What is a Unix epoch timestamp and how is it used here?
Open an interactive chat with Bash
What is S3 versioning and how does it work?
Open an interactive chat with Bash
How does Time to Live (TTL) in DynamoDB work?
Open an interactive chat with Bash
What is a Unix epoch timestamp, and why is it used for TTL in DynamoDB?
Open an interactive chat with Bash
AWS Certified Data Engineer Associate DEA-C01
Data Store Management
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .