AZ-305 Design infrastructure solutions Practice Question
You are designing a solution to securely store secrets, keys, and certificates for a cloud application. Which Azure service should you use?
⚠ Common exam trap
Test-takers frequently confuse Azure App Configuration (which can store secrets with encryption but lacks HSM and key management features) with Azure Key Vault, or they over-engineer by choosing Azure Managed HSM when the simpler Key Vault meets the requirement for standard secret, key, and certificate storage.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Azure Key Vault
Azure Key Vault is the correct service because it is specifically designed to securely store and manage secrets, encryption keys, and certificates. It provides centralized control with hardware security module (HSM) backed keys, access policies, and audit logging, meeting the core requirement for a cloud application's secure storage.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Azure App Configuration
Why it's wrong here
Azure App Configuration is a managed service for centralized application settings and feature flags, not a secret store. It stores configuration data as plaintext at rest (even though encrypted by Azure), and it has no per-secret access policies, rotation, or audit logging specific to secret usage. The correct pattern is to place secrets in Key Vault and use App Configuration's Key Vault references to keep secrets out of configuration files and feature-flag payloads.
- ✓
Azure Key Vault
Why this is correct
Azure Key Vault is the purpose-built service for securely storing secrets, encryption keys, and certificates, with granular access via Azure RBAC or vault access policies. It supports versioning, soft-delete, purge protection, and near-real-time audit logs through Azure Monitor, enabling tracking of every read, modify, and deletion operation. It is the correct choice because it is designed specifically for secret management and natively integrates with services like App Service, AKS, Azure Functions, and Logic Apps.
- ✗
Azure Managed HSM
Why it's wrong here
Azure Managed HSM is a single-tenant, FIPS 140-2 Level 3 validated hardware security module that provides dedicated HSM-backed keys and cryptographic operations, but it does not support the 'Secrets' resource type (nor certificates) and is aimed at customers who need to own and manage their own HSM devices. It demands specialized quota, VNet integration, and significant operational overhead, making it overkill and unsuitable for general secret storage. Key Vault itself already offers HSM-backed keys, so Managed HSM is not the right answer for everyday secret storage.
- ✗
Azure Storage
Why it's wrong here
Azure Storage is a generic blob, file, queue, and table service, not a security or secrets-management service. Although you can place encrypted blobs there, Azure Storage lacks key-versioning, secret-specific access policies, automatic rotation, and the same audit and diagnostic integration that Key Vault provides for secret operations. Storing secrets in Storage also increases the attack surface because shared keys, SAS tokens, and broad network rules can grant unintended access. It is wrong because it addresses raw storage rather than secret lifecycle management.
Go deeper
Related to this question
About these practice questions
This AZ-305 question is part of Courseiva's 795-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AZ-305 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-305 exam.