Question 485 of 1,170
Manage Azure Identities and GovernanceeasyMultiple ChoiceObjective-mapped

Quick Answer

The answer is a service principal, because it provides a non-human identity that allows an on-premises build server to authenticate to Azure without using a human account password. Service principals authenticate via OAuth 2.0 client credentials grant flow using a client secret or certificate, enabling secure, password-less automation for build pipelines. On the AZ-104 exam, this scenario tests your understanding of Azure AD application registrations and managed identities—a common trap is confusing a service principal with a managed identity, but remember that managed identities are tied to Azure resources, while service principals are ideal for external, on-premises systems. The exam often presents this as a choice between a user account, a managed identity, and a service principal; the key differentiator is that the build server is on-premises, so a service principal with a certificate is the only password-less option. Memory tip: think “SP for SP”—Service Principal for Server Pipeline.

AZ-104 Manage Azure Identities and Governance Practice Question

This AZ-104 practice question tests your understanding of manage azure identities and governance. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

Exhibit

Build server details:
- Host: ONPREM-BUILD01
- Location: On-premises datacenter
- Current command: az login with a user name and password
- Requirement: Noninteractive Azure authentication for deployment jobs
- Constraint: The server is not running in Azure.

Based on the exhibit, which identity type should be used so the on-premises build server can authenticate to Azure without using a human account password?

Question 1easymultiple choice
Full question →

Exhibit

Build server details:
- Host: ONPREM-BUILD01
- Location: On-premises datacenter
- Current command: az login with a user name and password
- Requirement: Noninteractive Azure authentication for deployment jobs
- Constraint: The server is not running in Azure.

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

Service principal

A service principal is the correct identity type for an on-premises build server to authenticate to Azure without a human account password because it represents a non-human identity that can be assigned to applications, services, and automation tools. Service principals authenticate using client secrets or certificates, enabling secure, password-less authentication via OAuth 2.0 client credentials grant flow, which is ideal for automated build pipelines.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • System-assigned managed identity

    Why it's wrong here

    System-assigned managed identities only work for supported Azure resources, not for an on-premises server.

  • User-assigned managed identity

    Why it's wrong here

    User-assigned managed identities also require an Azure resource to attach to, so they do not fit an on-premises build server.

  • Service principal

    Why this is correct

    A service principal is the correct choice for non-Azure automation that needs to authenticate to Azure without using a person’s credentials. It can be paired with a certificate or secret and used by build and deployment tools running outside Azure.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Azure Storage access key

    Why it's wrong here

    A storage access key is only for storage account access and does not provide Azure Resource Manager authentication.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often confuse managed identities (which are Azure-resource-bound) with service principals (which are application identities), leading them to choose a managed identity option even though the on-premises server cannot host an Azure-managed identity.

Detailed technical explanation

How to think about this question

Service principals are registered in Azure AD as application objects and authenticate using the OAuth 2.0 client credentials grant, where the build server presents a client ID and either a client secret or a certificate to obtain an access token from the Azure AD token endpoint (https://login.microsoftonline.com/{tenant-id}/oauth2/v2.0/token). This token is then used to authenticate to Azure Resource Manager APIs, enabling the build server to deploy resources or access services without any user interaction. In real-world CI/CD pipelines (e.g., Azure DevOps or Jenkins), service principals are commonly configured with certificates for higher security, avoiding the risk of secret leakage.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related AZ-104 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free AZ-104 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this AZ-104 question test?

Manage Azure Identities and Governance — This question tests Manage Azure Identities and Governance — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Service principal — A service principal is the correct identity type for an on-premises build server to authenticate to Azure without a human account password because it represents a non-human identity that can be assigned to applications, services, and automation tools. Service principals authenticate using client secrets or certificates, enabling secure, password-less authentication via OAuth 2.0 client credentials grant flow, which is ideal for automated build pipelines.

What should I do if I get this AZ-104 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

1 more ways this is tested on AZ-104

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. A build server hosted in a company datacenter must deploy ARM templates to a target resource group in Azure without storing a user password. The server is not running in Azure, and the team wants to authorize deployments with Azure RBAC. What should be configured?

medium
  • A.A service principal authenticated with a certificate and assigned RBAC on the target scope
  • B.A system-assigned managed identity on the build server
  • C.A personal user account with multifactor authentication
  • D.A shared access signature for the resource group

Why A: A service principal authenticated with a certificate is the correct approach because it allows non-Azure resources (like an on-premises build server) to authenticate to Azure without storing a user password. The certificate-based authentication satisfies the requirement to avoid storing a password, and assigning RBAC on the target resource group grants the service principal the necessary permissions to deploy ARM templates. This method is secure, supports automation, and aligns with Azure AD application registration best practices.

Keep practising

More AZ-104 practice questions

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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