Which authentication flow does DefaultAzureCredential use when running in Azure App Service or Azure Functions?
- A Interactive browser flow
- B Client secret from environment variable
- C Managed identity (system or user-assigned) (correct answer)
- D Azure CLI credentials
Shortcut: DefaultAzureCredential tries multiple auth methods in order. In Azure App Service/Functions, it uses the managed identity endpoint (IMDS), transparently authenticating with the service's assigned identity.