Courseiva

AZ-204 Practice Question: Connect to and consume Azure services and third-party services

Which TWO Azure services can be used to securely store and retrieve secrets, such as API keys and connection strings, for use in cloud applications?

⚠ Common exam trap

The trap is that candidates may think only Azure Key Vault can store secrets, but Azure App Configuration can also securely store and retrieve secrets by using Key Vault references. Recognizing that both services can be used for this purpose is key.

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 a dedicated cloud service for securely storing and accessing secrets like API keys, connection strings, and certificates. It provides hardware security module (HSM)-backed encryption, access control via Azure RBAC and access policies, and integrates with Azure services and applications through REST APIs and SDKs. Azure App Configuration can also be used to securely retrieve secrets. While it primarily stores application settings and feature flags, it supports referencing secrets stored in Azure Key Vault. This allows applications to retrieve secrets securely through App Configuration, leveraging Key Vault's robust security features without directly accessing Key Vault.

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 Cosmos DB

    Why it's wrong here

    Database, not secrets store.

  • Azure Key Vault

    Why this is correct

    Dedicated secrets management service.

  • Azure Blob Storage

    Why it's wrong here

    Not designed for secrets.

  • Azure App Configuration

    Why this is correct

    Can reference Key Vault secrets.

  • Azure SQL Database

    Why it's wrong here

    Relational database.

Quick reference

Access Control Model Comparison

ModelAcronymWho Controls Access?Best For
Discretionary Access ControlDACResource ownerSmall teams, file shares
Mandatory Access ControlMACSystem / security labelsClassified govt / military
Role-Based Access ControlRBACAdministrator (via roles)Enterprise environments
Attribute-Based Access ControlABACPolicy engine (user + resource attributes)Fine-grained, dynamic policies
Rule-Based Access ControlRuBACSystem rules / ACLsFirewall rules, network ACLs

Go deeper

Related to this question

About these practice questions

One of 881 original AZ-204 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This AZ-204 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-204 exam.