An application uses the Azure Key Vault client library. Which method retrieves the latest version of a secret by name?
- A GetSecretAsync(secretName, version)
- B GetSecretAsync(secretName) — no version parameter returns latest (correct answer)
- C ListPropertiesOfSecretVersionsAsync(secretName)[0]
- 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.