A Data Engineer needs to ensure that a table containing sensitive PII can be restored to any point in time within the last 90 days. Which configuration must be applied to the table?
Trap 1: Enable Fail-safe on the database schema.
Fail-safe is an automated 7-day period that cannot be configured or manually triggered by users. It is a safety net for disaster recovery managed exclusively by Snowflake. It does not provide configurable point-in-time recovery for users or support a 90-day retention period for data access.
Trap 2: Create a transient table with a retention period of 90 days.
Transient tables have a maximum DATA_RETENTION_TIME_IN_DAYS of 1 day. They do not support the 90-day retention requirement necessary for long-term point-in-time recovery. Additionally, transient tables lack Fail-safe protection, making them unsuitable for scenarios where high durability and historical data access are mandatory.
Trap 3: Run the UNDROP command daily to reset the retention clock.
The UNDROP command is used to restore a dropped object, not to manage or extend the retention period of existing data. Running it daily does not impact the Time Travel configuration or extend the window during which historical data remains available for querying via AT or BEFORE clauses.
- A
Alter the table to set DATA_RETENTION_TIME_IN_DAYS = 90.
Setting the DATA_RETENTION_TIME_IN_DAYS parameter to 90 specifically for the table enables Time Travel for that duration. This overrides any default account or database-level settings, ensuring the retention period meets the 90-day requirement for restoring the table's state or recovering it if accidentally dropped.
- B
Enable Fail-safe on the database schema.
Why it fails: Fail-safe is an automated 7-day period that cannot be configured or manually triggered by users. It is a safety net for disaster recovery managed exclusively by Snowflake. It does not provide configurable point-in-time recovery for users or support a 90-day retention period for data access.
- C
Create a transient table with a retention period of 90 days.
Why it fails: Transient tables have a maximum DATA_RETENTION_TIME_IN_DAYS of 1 day. They do not support the 90-day retention requirement necessary for long-term point-in-time recovery. Additionally, transient tables lack Fail-safe protection, making them unsuitable for scenarios where high durability and historical data access are mandatory.
- D
Run the UNDROP command daily to reset the retention clock.
Why it fails: The UNDROP command is used to restore a dropped object, not to manage or extend the retention period of existing data. Running it daily does not impact the Time Travel configuration or extend the window during which historical data remains available for querying via AT or BEFORE clauses.