Azure Key Vault: AZ-500 Secrets, Keys & Certificates
Key Vault stores secrets, keys, and certificates: the AZ-500 exam treats them as three distinct resource types with different access patterns. Understand soft delete, purge protection, access policies vs RBAC, and the HSM tier.
Secrets vs Keys vs Certificates
| Type | What It Stores | Who Uses It |
|---|---|---|
| Secrets | Passwords, connection strings, API keys | Applications that retrieve and use the secret value |
| Keys | Cryptographic keys (RSA, EC) | Applications that encrypt/decrypt using Key Vault: the key never leaves the vault |
| Certificates | X.509 certificates plus private keys | Applications that need TLS certs; Key Vault handles renewal |
Access Models: Vault Access Policies vs RBAC
| Model | Granularity | Recommended |
|---|---|---|
| Vault access policies | Per-vault, per-principal; can grant secret plus key plus cert in one policy | Legacy |
| Azure RBAC | Standard Azure roles on the vault or individual secrets | Recommended |
Soft Delete and Purge Protection
- Soft delete: Deleted objects are retained for 7 to 90 days (configurable). They can be recovered. Enabled by default on new vaults.
- Purge protection: Prevents hard deletion during the soft-delete retention period. Once enabled, it cannot be disabled. Required for vaults used with Customer-Managed Keys (CMK).
Premium Tier: HSM-Backed Keys
Premium Key Vault uses FIPS 140-2 Level 2 hardware security modules to protect key material. Key operations never leave the HSM. Use for regulatory requirements mandating hardware key protection.
Get weekly security insights
Cloud security, zero trust, and identity guides — straight to your inbox.
Microsoft Cloud Solution Architect
Cloud Solution Architect with deep expertise in Microsoft Azure and a strong background in systems and IT infrastructure. Passionate about cloud technologies, security best practices, and helping organizations modernize their infrastructure.
Questions & Answers
Related Articles
Need Help with Your Security?
Our team of security experts can help you implement the strategies discussed in this article.
Contact Us