A heather-honey coop pasted the storage account key into appsettings.json checked into source control. How should the developer construct the Azure Blob Storage v12 client instead?
Select an answer to reveal the explanation.
Short Explanation
Keys in source are like leaving the warehouse master key under the doormat in a public photo. Prefer DefaultAzureCredential / TokenCredential, or pull a connection string from Key Vault or another secret store—not from git.
Full Explanation
BlobServiceClient and related v12 clients accept TokenCredential-based authentication (including DefaultAzureCredential with Managed Identity) or connection strings retrieved securely at runtime. Embedding account keys or immortal SAS values in source is unsafe. QueueClient does not authenticate Blob uploads.