Microsoft Azure Developer Associate AZ-204 Practice Question
You are building a .NET background service (daemon) that must read the email of every user in your Microsoft Entra ID tenant by using Microsoft Graph. The service will run without any user present. You create an app registration for the service. Which configuration will ensure that AcquireTokenForClient successfully returns an access token that contains the required permission scope?
Add the Mail.Read delegated permission to the app registration and grant tenant-wide admin consent.
Add the Mail.Read application permission to the app registration and grant tenant-wide admin consent.
Add the Mail.Read delegated permission to the app registration and require each user to grant consent at first sign-in.
Add the Mail.Read application permission to the app registration and configure a Public client redirect URI such as http://localhost./
When you use the client credentials flow (AcquireTokenForClient) no user is involved, so only application permissions can be used. The Graph permission that allows reading all user mailboxes without user interaction is Mail.Read (application). After adding an application permission, an administrator must grant tenant-wide consent so the permission is included in access tokens. Delegated permissions require a signed-in user and adding a public-client redirect URI does not affect server-to-server flows.
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 difference between application permissions and delegated permissions in Microsoft Graph?
Open an interactive chat with Bash
Why is tenant-wide admin consent required for application permissions?
Open an interactive chat with Bash
What is the client credentials flow and how does it work?
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
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .