Question 710 of 997

Quick Answer

The answer is an app registration in Microsoft Entra ID, an Azure Managed Identity, and the Microsoft Graph API permission configuration. These three components work together because the app registration establishes the application’s identity in Entra ID, providing the client ID and tenant ID needed for OAuth 2.0 flows, while the managed identity securely handles credential rotation and token acquisition without storing secrets in code. The API permissions then define exactly which Microsoft Graph scopes the function can access, such as reading user profiles or sending emails. On the AZ-204 exam, this scenario tests your understanding of serverless authentication patterns, often appearing as a scenario where a developer must avoid hardcoded secrets—a common trap is forgetting that managed identity alone cannot work without a pre-configured app registration to define permissions. Remember the mnemonic “ARM”: App registration, Role (managed identity), and Microsoft Graph permissions.

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

This AZ-204 practice question tests your understanding of connect to and consume azure services and third-party services. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. 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.

A developer needs to authenticate an Azure Function app to call Microsoft Graph API. Which THREE components are required?

Question 1mediummulti select
Full question →

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

Microsoft Entra ID app registration

Option B is correct because an app registration in Microsoft Entra ID (formerly Azure AD) is required to define the application identity, configure API permissions for Microsoft Graph, and obtain a client ID and tenant ID. This registration is the foundation for OAuth 2.0 authentication flows, enabling the Azure Function to request an access token for Microsoft Graph.

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.

  • Azure API Management

    Why it's wrong here

    API Management is not required for Graph API authentication.

  • Microsoft Entra ID app registration

    Why this is correct

    App registration defines permissions and authentication.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Azure SQL Database

    Why it's wrong here

    SQL Database is not needed for Graph API authentication.

  • Azure Key Vault

    Why this is correct

    Key Vault can securely store client secrets if needed.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Azure Managed Identity

    Why this is correct

    Managed Identity provides an identity for the function.

    Related concept

    Read the scenario before looking for a memorised answer.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often think Azure API Management is needed to secure the outbound call, but it is only relevant for inbound API management, not for the Function app's own authentication to Microsoft Graph.

Detailed technical explanation

How to think about this question

Under the hood, Managed Identity (Option E) creates a service principal in Microsoft Entra ID automatically linked to the Function app, eliminating the need for manual credential management. The Azure Function uses the Managed Identity endpoint (169.254.169.254) to obtain an access token for the Microsoft Graph resource (https://graph.microsoft.com) via OAuth 2.0 client credentials grant, which is then passed in the Authorization header as a Bearer token. Azure Key Vault (Option D) can securely store client secrets or certificates if Managed Identity is not used, but it is not strictly required when Managed Identity is enabled.

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 company's IT admin needs to give a contractor read-only access to production logs without sharing account credentials. Using role-based access control (RBAC) and temporary scoped permissions — not a permanent shared password — is the correct pattern. Questions like this test whether you can apply least-privilege access across cloud identity services.

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-204 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-204 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-204 question test?

Connect to and consume Azure services and third-party services — This question tests Connect to and consume Azure services and third-party services — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Microsoft Entra ID app registration — Option B is correct because an app registration in Microsoft Entra ID (formerly Azure AD) is required to define the application identity, configure API permissions for Microsoft Graph, and obtain a client ID and tenant ID. This registration is the foundation for OAuth 2.0 authentication flows, enabling the Azure Function to request an access token for Microsoft Graph.

What should I do if I get this AZ-204 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

Last reviewed: Jun 24, 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-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.