Reading Azure Key Vault secrets from inside Databricks
Azure Databricks integrates with Azure Key Vault by letting you create a Key Vault-backed secret scope, so secrets remain centrally managed in Key Vault while being referenced securely in notebooks, jobs, and cluster configurations. This avoids hardcoding credentials such as storage account keys, service principal secrets, or database passwords in code. Access to secrets is still controlled by Key Vault's own access policies and Databricks secret scope permissions.
1 · Learn the must-know
- A Key Vault-backed secret scope is created via the Databricks CLI or REST API using the Key Vault's DNS name and resource ID, not through the standard 'Create Secret' UI which only supports Databricks-backed scopes.
- Secrets are never actually stored in Databricks for Key Vault-backed scopes; Databricks only stores a reference and retrieves values from Key Vault at runtime.
- Retrieve secret values in code using dbutils.secrets.get(scope="<scope-name>", key="<secret-key>"), which works identically whether the scope is Databricks-backed or Key Vault-backed.
- Access control (ACLs) on a Key Vault-backed scope in Databricks are managed at the scope level, but the underlying secret access is ultimately governed by Azure Key Vault access policies or Azure RBAC on the vault itself.
- Secret values are automatically redacted from notebook output (displayed as [REDACTED]) when accessed via dbutils.secrets.get to prevent accidental exposure in logs or results.
- Creating a Key Vault-backed scope requires Contributor or higher access to the Key Vault resource so Databricks can validate and register the vault's URI and resource ID.
2 · Check your understanding
A data engineer is creating a secret scope backed by an existing Azure Key Vault, using the Databricks 'Create Secret Scope' UI. To link the scope to the vault, which two values must be copied from the Key Vault's Properties page in the Azure portal?
What you have tried across DP-750's objectives, not a readiness score.
Set up and configure an Azure Databricks environment15-20% of the exam0 of 13 tried
Secure and govern Unity Catalog objects15-20% of the exam0 of 12 tried
Prepare and process data30-35% of the exam0 of 28 tried
Deploy and maintain data pipelines and workloads30-35% of the exam0 of 24 tried
3 · Keep going
Ready for more? Take a weighted mock or try free practice questions.