Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Query Azure Cosmos DB mirrored JSON data in Microsoft Fabric with T-SQL and Spark

A worked example

Multiple answers

Contoso mirrors an Azure Cosmos DB for NoSQL database into Microsoft Fabric. A single Fabric workspace contains the mirrored database cosmicworks-mirror and a lakehouse named salesLake, which holds a targets table. Both items are in the same workspace.

Analysts must join the mirrored product table with targets. The solution must meet these requirements:

  • It must not consume request units (RUs) on the Azure Cosmos DB account.
  • It must not create another copy of the mirrored data.

Which two approaches meet the requirements? Each correct answer presents a complete solution.

Choose 2 answers.
Why

The mirrored data is stored as Delta tables in OneLake, where analytical reads do not consume RUs on the source Azure Cosmos DB account. A OneLake shortcut references those tables without copying them, allowing Spark to join the mirrored product data to targets. Alternatively, the SQL analytics endpoint can add salesLake through + Warehouses and join using three-part names without moving data. The Spark connector and the source database view both read the Azure Cosmos DB account and consume RUs. Writing the mirrored product data into a new lakehouse table creates another copy.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free