DP-203 · Question #44
Drag and Drop Question You have a table named SalesFact in an enterprise data warehouse in Azure Synapse Analytics. SalesFact contains sales data from the past 36 months and has the following characte
The correct answer is Create an empty table named SalesFact_Work that has the same schema as SalesFact.; Switch the partition containing the stale data from SalesFact to SalesFact_Work.; Drop the SalesFact_Work table.. The correct sequence is: (1) Create an empty SalesFact_Work table with the same schema as SalesFact, (2) Switch the partition containing stale data from SalesFact to SalesFact_Work, then (3) Drop SalesFact_Work. This pattern leverages partition switching, which is a metadata-only
Question
Exhibit
Answer Area
Drag items
Correct arrangement
- Create an empty table named SalesFact_Work that has the same schema as SalesFact.
- Switch the partition containing the stale data from SalesFact to SalesFact_Work.
- Drop the SalesFact_Work table.
Explanation
The correct sequence is: (1) Create an empty SalesFact_Work table with the same schema as SalesFact, (2) Switch the partition containing stale data from SalesFact to SalesFact_Work, then (3) Drop SalesFact_Work. This pattern leverages partition switching, which is a metadata-only operation in Azure Synapse Analytics that completes near-instantly regardless of data volume - making it far faster than row-by-row or batch deletes on a billion-row table. The empty staging table is required as the target of the partition switch, and dropping it afterward cleans up the stale data efficiently.
Topics
Community Discussion
No community discussion yet for this question.
