Microsoft Azure Developer Associate AZ-204 Practice Question
You are developing a background service that runs on an Azure virtual machine and must read messages from users' mailboxes through Microsoft Graph without any interactive sign-in. You registered an app in Microsoft Entra ID, added the Mail.Read application permission, and will use MSAL.NET with the client-credentials flow. Which scope string should you supply to AcquireTokenForClient(...)?
For the client-credentials flow you request an application permission access token. The Microsoft identity platform requires the special .default scope, which represents all application permissions that have been granted for the resource. Therefore the service should request the scope https://graph.microsoft.com/.default. This instructs Azure AD to issue a token containing every application permission consented on Microsoft Graph. Supplying Mail.Read alone or prefixed with the resource URI is valid only for delegated flows, and using the login endpoint URL is not a recognized scope format.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the client-credentials flow?
Open an interactive chat with Bash
What does the .default scope represent and why is it required?
Open an interactive chat with Bash
What is the difference between application and delegated permissions in Microsoft Graph?
Open an interactive chat with Bash
Microsoft Azure Developer Associate AZ-204
Implement Azure security
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99 $11.99
$11.99/mo
Billed monthly, Cancel any time.
$19.99 after promotion ends
3 Month Pass
$44.99 $26.99
$8.99/mo
One time purchase of $26.99, Does not auto-renew.
$44.99 after promotion ends
Save $18!
MOST POPULAR
Annual Pass
$119.99 $71.99
$5.99/mo
One time purchase of $71.99, Does not auto-renew.
$119.99 after promotion ends
Save $48!
BEST DEAL
Lifetime Pass
$189.99 $113.99
One time purchase, Good for life.
Save $76!
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .