Refer to the exhibit. A data engineer needs to query the orders.csv file using Azure Synapse Serverless SQL. What is the most efficient way to access this data?
OPENROWSET is a T-SQL function available in the built-in serverless SQL endpoint that reads files directly from Azure Data Lake or Blob storage without loading them into a database. You can query CSV, Parquet, JSON, and Delta Lake files by specifying a path and optional WITH clause for schema; the engine processes only the requested data and you pay only for the data scanned. This is the optimal choice for an ad-hoc query because no compute pool, external table, or pipeline must be provisioned beforehand.
Why this answer
Azure Synapse Serverless SQL is designed for on-demand querying of data stored in data lakes without provisioning storage. The OPENROWSET function with the BULK option allows direct querying of CSV files using T-SQL, making it the most efficient method for ad-hoc analysis of the orders.csv file without data movement or schema management.
Exam trap
The trap here is that candidates often confuse PolyBase (which is for dedicated SQL pools) with Serverless SQL's OPENROWSET, or assume that data must be moved to a database before querying, missing the serverless paradigm of query-in-place.
How to eliminate wrong answers
Option A is wrong because PolyBase is used to create external tables in dedicated SQL pools, not in Serverless SQL, and requires defining external data sources and file formats, adding unnecessary overhead for a simple query. Option C is wrong because copying data to Azure SQL Database using ADF involves data movement and additional costs, which is inefficient for a one-time or ad-hoc query. Option D is wrong because loading data into a dedicated SQL pool requires provisioning and managing a dedicated resource, which is overkill and costly for querying a single CSV file.