This rule requires enabling Point-in-Time Recovery for DynamoDB tables for data protection.
Rule | DynamoDB table point-in-time recovery should be enabled |
Framework | GxP 21 CFR Part 11 |
Severity | ✔ Low |
Rule Description: DynamoDB Table Point-in-Time Recovery for GxP 21 CFR Part 11
Rule Overview:
DynamoDB is a managed NoSQL database service provided by Amazon Web Services (AWS). Point-in-Time Recovery (PITR) is a feature in DynamoDB that enables you to restore your table data to any point in time during the retention period. For regulatory compliance purposes, it is necessary to enable Point-in-Time Recovery for GxP (Good Practice) 21 CFR Part 11 applications.
Troubleshooting Steps:
Necessary Code:
To enable Point-in-Time Recovery for a DynamoDB table, you can use the AWS Command Line Interface (CLI) or AWS SDKs. Below is an example of enabling PITR using AWS CLI.
aws dynamodb update-continuous-backups --table-name <table_name> --point-in-time-recovery-specification PointInTimeRecoveryEnabled=True
Replace
<table_name>
with the actual name of your DynamoDB table.Step-by-Step Guide for Remediation:
Step 1: Verify GxP 21 CFR Part 11 Compliance
Ensure that the DynamoDB table is created using the proper configuration for GxP 21 CFR Part 11 compliance. This includes adhering to the required security controls and data management practices.
Step 2: Enable Point-in-Time Recovery
Use the AWS CLI or AWS SDKs to enable Point-in-Time Recovery for the DynamoDB table. Follow the steps below:
aws dynamodb update-continuous-backups --table-name <table_name> --point-in-time-recovery-specification PointInTimeRecoveryEnabled=True
Replace
<table_name>
with the actual name of your DynamoDB table.Step 3: Set Retention Period
By default, Point-in-Time Recovery retains the backups for 35 days. However, for GxP 21 CFR Part 11 compliance, you may have specific retention period requirements. Follow the steps below to set the desired retention period:
Step 4: Validate Point-in-Time Recovery (Optional)
You can verify if Point-in-Time Recovery is functioning correctly by performing a test restore. This step is optional but recommended to ensure the integrity of your backups and recovery process.
Following these steps will help you enable Point-in-Time Recovery for your DynamoDB table and ensure compliance with GxP 21 CFR Part 11 regulations.