CertLumen

Microsoft DevOps Engineer Expert (AZ-400) · Section 4 · 13% of the exam

Design and implement a strategy for managing sensitive files during deployment, including Azure Pipelines secure files

One of the objectives of the Exam AZ-400: Designing and Implementing Microsoft DevOps Solutions exam, in the section “Develop a security and compliance plan”. Here is what it covers, the points to remember and a question to try.

What it covers

Store secrets, keys and certificates in Azure Key Vault, replace stored credentials with OpenID Connect in GitHub Actions and Azure Pipelines, ship sensitive files with secure files, and design pipelines so that nothing sensitive reaches logs, forks or untrusted code.

Points to remember

  • Key Vault holds secrets, keys and certificates; Azure RBAC is the recommended model and the default for new vaults from API version 2026-02-01, access policies are the legacy model.
  • Use Key Vault Secrets User for pipelines that read secrets; Owner/Contributor do not grant data-plane access under RBAC.
  • Soft delete is always on (7-90 days, default 90, fixed at creation); purge protection is optional and irreversible once enabled.
  • AzureKeyVault@2 downloads secrets as masked variables; variable groups can link to a vault.
  • GitHub OIDC needs permissions: id-token: write, a federated credential (issuer https://token.actions.githubusercontent.com, audience api://AzureADTokenExchange) and a tight subject; repositories created after 15 July 2026 use an immutable subject with IDs.

Try a question

A security officer asks to disable soft delete on a new Azure Key Vault to save cost and later change its retention period from 90 days to 30. What can you do?

  1. ADisable soft delete with az keyvault update, then change the retention period to 30 days
  2. BChange retention at any time, but soft delete cannot be turned off
  3. CNeither; soft delete cannot be disabled and retention is fixed at creation
  4. DDisable soft delete only if purge protection is also disabled
Show the answer

C. New vaults have soft delete on by default, retained 7 to 90 days (90 by default), and neither the setting nor the interval can be changed later. Purge protection is separate and optional.

Written for practice in the style of the exam: never a question from the real exam.

In the course

The lesson Secrets, Key Vault, OIDC and keeping sensitive data out of pipelines teaches this objective (about 55 minutes), and 15 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.

More in this section

← Previous objective · All 86 objectives · Next objective →