What is Azure Key Vault?
Azure Key Vault is a cloud service for securely storing and managing:
-
Secrets (connection strings, passwords, API tokens)
-
Keys (encryption keys, signing keys)
-
Certificates (SSL/TLS for web apps, services)
It prevents sensitive data from being hardcoded in applications or stored insecurely.
Key Features
-
Secure storage of secrets and keys with hardware security modules (HSMs).
-
Access control via Entra ID (Azure AD) and RBAC.
-
Logging with Azure Monitor for auditing.
-
Integration with App Services, VMs, and containers for automated secret retrieval.
-
Automatic certificate renewal (e.g., with DigiCert).
Confusion Buster 🚨
-
Secrets vs Keys vs Certificates
-
Secrets = strings (passwords, tokens).
-
Keys = cryptographic operations (encrypt/decrypt, sign/verify).
-
Certificates = SSL/TLS used by apps.
-
-
Key Vault vs Storage Account
-
Key Vault = security for secrets/keys.
-
Storage Account = general-purpose file/blob storage.
-
-
Exam trap: If the requirement is “store app credentials securely,” the answer is Key Vault, not Storage Account.
Simple Example
A company hosts a web app:
-
Database password is stored in Key Vault (not in code).
-
The app retrieves the secret securely at runtime.
-
SSL certificate for the app’s domain is managed in Key Vault and auto-renewed.
-
Encryption keys are used to secure sensitive customer data.
Exam Tip
-
If the scenario mentions storing passwords or API keys securely → Key Vault (Secrets).
-
If it mentions cryptographic operations → Key Vault (Keys).
-
If it mentions SSL/TLS certificates → Key Vault (Certificates).
-
If it mentions auditing secret access → Key Vault with Azure Monitor.
What to Expect in the Exam
-
Direct Q: “Which service stores passwords, keys, and certificates securely?” → Key Vault.
-
Scenario: “App must retrieve its database connection string securely at runtime.” → Key Vault.
-
Trick Q: “Store API keys in Azure Storage Account for security.” (False — use Key Vault).