
Answer-first summary for fast verification
Answer: Create an AWS Backup plan to back up the DynamoDB table on the first day of each month. Specify a lifecycle policy that transitions the backup to cold storage after 6 months. Set the retention period for each backup to 7 years.
## Explanation **Correct Answer: A** AWS Backup is the most appropriate managed service for this scenario because: 1. **Monthly backups**: AWS Backup can be scheduled to take backups on the first day of each month using a backup plan. 2. **6-month availability**: AWS Backup supports lifecycle policies that can transition backups to cold storage after a specified period (6 months in this case). 3. **7-year retention**: AWS Backup allows setting retention periods up to 7 years for backups. 4. **Managed service**: AWS Backup is a fully managed service that handles backup scheduling, lifecycle management, and retention automatically. **Why other options are incorrect**: - **Option B**: DynamoDB on-demand backups don't automatically transition to S3 Glacier. You would need to manually copy them to S3 first, which adds complexity and isn't the most efficient solution. - **Option C**: While technically possible, this requires custom scripting and is more complex to maintain than using AWS Backup. It's not the most efficient or AWS-recommended approach. - **Option D**: Similar to option C, this requires custom scripting with AWS CLI and doesn't leverage AWS's managed backup services. The AWS CLI command for on-demand backup doesn't have built-in lifecycle management capabilities. **Key AWS Services**: - **AWS Backup**: Centralized backup service that supports DynamoDB - **DynamoDB Point-in-Time Recovery (PITR)**: For continuous backup (not suitable for monthly requirement) - **DynamoDB On-demand Backup**: Manual backup option (not automated) **Best Practice**: Use AWS Backup for automated, scheduled backups with lifecycle management and retention policies for compliance requirements.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A company has an application that is backed by an Amazon DynamoDB table. The company's compliance requirements specify that database backups must be taken every month, must be available for 6 months, and must be retained for 7 years.
Which solution will meet these requirements?
A
Create an AWS Backup plan to back up the DynamoDB table on the first day of each month. Specify a lifecycle policy that transitions the backup to cold storage after 6 months. Set the retention period for each backup to 7 years.
B
Create a DynamoDB on-demand backup of the DynamoDB table on the first day of each month. Transition the backup to Amazon S3 Glacier Flexible Retrieve after 6 months. Create an S3 Lifecycle policy to delete backups that are older than 7 years.
C
Use the AWS SDK to develop a script that creates an on-demand backup of the DynamoDB table. Set up an Amazon EventBridge rule that runs the script on the first day of each month. Create a second script that will run on the second day of each month to transition DynamoDB backups that are older than 6 months to cold storage and to delete backups that are older than 7 years.
D
Use the AWS CLI to create an on-demand backup of the DynamoDB table. Set up an Amazon EventBridge rule that runs the command on the first day of each month with a cron expression. Specify in the command to transition the backups to cold storage after 6 months and to delete the backups after 7 years.