Q40 Functions Domain 3 · 20–25% of exam Priority · Real Exam

How should a function authenticate to Azure Storage without a connection string?

  1. A Store the key in Key Vault and read it at startup
  2. B Identity-based connection: set <Connection>__serviceUri and grant the managed identity a data role (correct answer)
  3. C Use a SAS token in code
  4. D Use anonymous access

Shortcut: Identity-based connections replace connection strings. Setting the serviceUri app setting and assigning roles such as Storage Blob Data Contributor removes the secret entirely.