Q33 Key Vault Domain 4 · 20–25% of exam

An application uses the Azure Key Vault client library. Which method retrieves the latest version of a secret by name?

  1. A GetSecretAsync(secretName, version)
  2. B GetSecretAsync(secretName) — no version parameter returns latest (correct answer)
  3. C ListPropertiesOfSecretVersionsAsync(secretName)[0]
  4. D GetLatestSecretAsync(secretName)

Shortcut: GetSecretAsync(secretName) without a version parameter returns the latest enabled version of the secret. Specifying a version returns that specific version.