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

CertStreak
Menu

Configure authorization controls

A worked example

Single answer

Contoso has an Azure Cosmos DB for NoSQL account with 7-day continuous backup and a single write region. Megan, an admin of a Microsoft Fabric workspace, will create a Mirrored Azure Cosmos DB item. In the connection step she will choose the Organizational account authentication kind, signing in with her own Microsoft Entra user account.

Requirements:

  • The mirror must start replicating successfully.
  • Megan's account must not be able to read individual items through the Cosmos DB data plane.

All role assignments will be made at the account scope.

Which authorization configuration should you implement on the Azure Cosmos DB account?

Choose one answer
Why

Assign the custom role to Megan because Fabric will authenticate using her Microsoft Entra user account. The readMetadata and readAnalytics actions provide the permissions required for mirroring without granting the items/read action used for point reads. Built-in Data Reader fails both requirements: it permits item reads and lacks readAnalytics.

  • Not correct: Assign Cosmos DB Built-in Data Reader to Megan's user account. Built-in Data Reader includes readMetadata, point reads, query execution and change feed reads, but not readAnalytics, which Fabric needs; it would also grant item reads.
  • Not correct: Assign a custom role with readMetadata, readAnalytics and items/read to Megan's user account. The two required actions would let mirroring work, but the extra items/read action permits point reads of items, which the requirement forbids.
  • Correct: Assign a custom role with readMetadata and readAnalytics to Megan's user account. These are the two data actions Fabric requires.
  • Not correct: Assign a custom role with readMetadata and readAnalytics to a user-assigned managed identity. Fabric does not support managed identities for connecting to the source account, and the connection authenticates as Megan, so a role held by a managed identity does not authorize it.

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