Practice free →
HomeAzure AZ-204cloudcomputingaz204security › Which Azure feature lets a developer call `Defau…

Which Azure feature lets a developer call `DefaultAzureCredential` from the Azure SDK and have the SDK chain through multiple credential sources (env vars, CLI, MSI) until one works?

AStoring tokens in plain text files
BThe DefaultAzureCredential class in the Azure Identity SDK
CDisabling Entra ID entirely
DManually parsing JWT tokens
Answer & Solution
Correct answer: B. The DefaultAzureCredential class in the Azure Identity SDK
DefaultAzureCredential is the canonical "works locally and in production" credential chain — same code locally (dev creds, CLI) and in Azure (MSI). The other options are antipatterns.
Solve this in the app — Azure AZ-204 practice & 24k+ MCQs →
Related questions