Practice free →
HomeAzure AZ-204cloudcomputingaz204security › Which configuration lets an Azure Function acces…

Which configuration lets an Azure Function access a SECRET stored in Key Vault via an App Setting reference (e.g. `@Microsoft.KeyVault(SecretUri=...)`), refreshed automatically when rotated?

AStoring the secret in a public bucket and downloading at runtime
BManually re-deploying the function every time the secret rotates
CHardcoding the secret value in code
DKey Vault references in App Service / Functions configuration
Answer & Solution
Correct answer: D. Key Vault references in App Service / Functions configuration
Key Vault references resolve at runtime by URI; rotations propagate via app restart or scheduled refresh. The other options leak secrets or destroy automation.
Solve this in the app — Azure AZ-204 practice & 24k+ MCQs →
Related questions