Q6 Cosmos DB Domain 2 · 25–30% of exam Priority · Real Exam

Which authentication approach removes account keys from an application entirely?

  1. A Read-only keys
  2. B Managed identity with Cosmos DB data-plane RBAC role assignments (correct answer)
  3. C Resource tokens
  4. D Connection string in Key Vault

Shortcut: Cosmos DB supports Azure AD data-plane RBAC. Assigning a managed identity the Cosmos DB Built-in Data Contributor role lets the SDK authenticate with a token, so no key exists to leak.