You are developing a background service that runs as a daemon (no user interaction) and needs to read all users' calendar events from Microsoft 365 to generate an occupancy report. Which authentication approach should this daemon application use to call Microsoft Graph?

Direct Answer (Verified)Reviewed by Sunny (Senior Cloud Engineer)

Correct Answer: OAuth 2.0 client credentials flow with application permissions (e.g., Calendars.Read application permission) granted via admin consent

Daemon applications that run without user interaction must use the client credentials flow with application permissions. An admin grants consent once for the required permissions (...

๐Ÿ“‹Part of Microsoft Certified: Azure Developer Associate (AZ-204) ยท Azure Certification Practice
Real Exam ScenarioMicrosoft Graph

You are developing a background service that runs as a daemon (no user interaction) and needs to read all users' calendar events from Microsoft 365 to generate an occupancy report. Which authentication approach should this daemon application use to call Microsoft Graph?

โœ“ Correct Answer & ExplanationMicrosoft Graph

Correct Answer

OAuth 2.0 client credentials flow with application permissions (e.g., Calendars.Read application permission) granted via admin consent

Why This Answer Is Correct

Daemon applications that run without user interaction must use the client credentials flow with application permissions. An admin grants consent once for the required permissions (e.g., Calendars.Read), and the app uses its own identity (client_id + secret or certificate) to acquire tokens and call Graph.

๐Ÿ“š What This Question Tests

This question evaluates your knowledge of Microsoft Graph โ€” a core concept tested in Microsoft Certified: Azure Developer Associate (AZ-204). Understanding Microsoft Graph is essential for designing scalable, secure, and cost-effective cloud architectures. Mastery of this topic will help you answer scenario-based questions confidently on exam day.