SpinTheMic
Pro

Interview practice question

Analyst deleted rows by mistake

Data Engineering · Snowflake · Beginner

An analyst ran a DELETE without a proper WHERE clause on a production table an hour ago. How do you recover the data?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Find the query ID of the bad DELETE in query history.
  • Check the data with SELECT ... BEFORE(STATEMENT => 'query_id').
  • Restore by cloning the table at that point or inserting the missing rows back.
  • Validate counts against the original before swapping.
  • Prevent repeats by removing DELETE rights from analyst roles.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics