Skip to main content
InterviewHubPRO
Section Overview
Q46

Question 46 of 50

Part 3: Enterprise FinOps, Disaster Recovery & Scale (25 - 35)

92%
Google BigQuery (50 Qs)•Part 3: Enterprise FinOps, Disaster Recovery & Scale (25 - 35)

Time Travel and Table Snapshots: Querying past data and zero-copy snapshots.

senior LevelCode ExamplebigqueryEnterprise FinOps

In Simple Words:

  • Time Travel (up to 7 days): Query the state of any table at a past timestamp:
    sql
    SELECT * FROM `analytics.orders`
    FOR SYSTEM_TIME AS OF TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 3 HOUR);
    
  • Table Snapshots: Create a point-in-time read-only copy of a table for long-term backup:
    sql
    CREATE SNAPSHOT TABLE `backup.orders_2024_q1`
    CLONE `analytics.orders`;
    
    • Pointer-based zero-copy storage; you only pay storage for rows that are subsequently modified in the base table.