CertLumen

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

Implement and manage Azure DevOps service connections and personal access tokens

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

Pipelines need identities to reach Azure, GitHub and Azure DevOps. This lesson compares Microsoft Entra service principals with system-assigned and user-assigned managed identities, then ranks the credentials GitHub offers (GITHUB_TOKEN, GitHub Apps, personal access tokens) and covers Azure DevOps service connections and personal access tokens.

Points to remember

  • Microsoft Entra ID is the new name of Azure Active Directory (Azure AD); an app registration is global, its service principal is the local instance.
  • A managed identity has no credentials to manage and works only for code running on Azure resources; system-assigned dies with the resource, user-assigned is shared and persistent.
  • Hosted runners and Microsoft-hosted agents use workload identity federation (OIDC) with a federated credential; an app or user-assigned managed identity allows up to 20 federated credentials.
  • GITHUB_TOKEN is per job, limited to its repository and shaped by the permissions key; restricted default is read-only contents and packages.
  • GitHub Apps give short-lived (1 hour) installation tokens and are the preferred non-personal credential beyond GITHUB_TOKEN; fine-grained PATs beat classic PATs.

Try a question

Six virtual machines in a scale set are deleted and recreated every week. They must always have the same read access to a Key Vault, and the access must be granted once before the VMs exist. Which identity should you use?

  1. AA system-assigned managed identity on each virtual machine
  2. BA service principal with a client secret copied to each VM
  3. CA personal access token owned by the platform engineer
  4. DA user-assigned managed identity assigned to the virtual machines
Show the answer

D. User-assigned managed identities have an independent lifecycle, can be pre-authorized and can be attached to many resources, which suits resources that are recycled often. System-assigned identities are deleted with the resource.

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

In the course

The lesson Workload identities and credentials: Entra, GitHub and Azure DevOps teaches this objective (about 50 minutes), and 10 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 →