
Answer-first summary for fast verification
Answer: a partitioned view in a serverless SQL pool
## Analysis of the Question Requirements The question requires a solution that: 1. Supports Transact-SQL queries against Delta Lake data from SparkTable1 2. Enables partition elimination for query optimization 3. Works with Delta Lake format specifically ## Evaluation of Options ### Option A: Partitioned table in a dedicated SQL pool - **Not suitable**: Dedicated SQL pools do not natively support querying Delta Lake tables. While they can query external tables, Delta Lake format is not directly supported for external tables in dedicated pools. - **Partition elimination limitation**: Even if external tables were used, partition elimination is only available for partitioned tables created on Parquet or CSV formats synchronized from Apache Spark pools, not for Delta Lake format. ### Option B: Partitioned view in a dedicated SQL pool - **Not suitable**: Similar to Option A, dedicated SQL pools cannot directly query Delta Lake tables. The fundamental limitation remains the lack of Delta Lake support in dedicated pools. ### Option C: Partitioned index in a dedicated SQL pool - **Not suitable**: This option suffers from the same fundamental limitation - dedicated SQL pools cannot query Delta Lake tables. Additionally, partitioned indexes don't address the core requirement of accessing Delta Lake data. ### Option D: Partitioned view in a serverless SQL pool - **Optimal solution**: Serverless SQL pools natively support querying Delta Lake tables using the OPENROWSET function or external tables. - **Partition elimination support**: For Delta Lake format in serverless SQL pools, Microsoft explicitly recommends using partitioned views instead of external tables to achieve partition elimination. Partitioned views can leverage folder-based partitioning in Delta Lake to eliminate unnecessary partition scans during query execution. - **Best practice alignment**: This approach follows Microsoft's documented guidance for optimizing queries on partitioned Delta Lake datasets in serverless SQL pools. ## Key Technical Considerations - **Delta Lake format support**: Serverless SQL pools provide native support for Delta Lake format, while dedicated SQL pools do not. - **Partition elimination strategy**: For Delta Lake in serverless SQL pools, partitioned views are the recommended approach for achieving partition elimination, as external tables on Delta Lake do not support partitioning. - **Query performance**: Partition elimination significantly improves query performance by scanning only relevant data partitions rather than the entire dataset. ## Conclusion Option D is the correct recommendation because it addresses both core requirements: enabling Transact-SQL queries against Delta Lake data and supporting partition elimination through the use of partitioned views in serverless SQL pools, which is the Microsoft-recommended approach for this specific scenario.
Ultimate access to all questions.
Author: LeetQuiz Editorial Team
You have an Azure Synapse Analytics workspace with an Apache Spark pool named SparkPool1. This pool contains a Delta Lake table named SparkTable1.
You need to recommend a solution that enables querying the data in SparkTable1 using Transact-SQL and ensures that the queries can utilize partition elimination.
What should you include in the recommendation?
A
a partitioned table in a dedicated SQL pool
B
a partitioned view in a dedicated SQL pool
C
a partitioned index in a dedicated SQL pool
D
a partitioned view in a serverless SQL pool
No comments yet.