Building Applications and Solutions with Microsoft 365 Core Services (legacy) — Question 11
You are developing a daemon application that reads all the emails in the inbox of a specific Microsoft 365 mailbox. Some emails contain meeting dates and room mailbox names.
The application has the following requirements:
✑ Move each processed email to a subfolder in the mailbox.
✑ If an email contains meeting data, create an event in the corresponding room mailbox calendar.
Which Microsoft Graph permissions should you grant for the application?
Answer options
- A. Calendars.ReadWrite and Mail.Read application permissions
- B. Calendars.ReadWrite.Shared and Mail.ReadWrite delegated permissions
- C. Calendars.ReadWrite and Mail.ReadWrite application permissions
- D. Calendars.ReadWrite and Mail.ReadWrite delegated permissions
Correct answer: C
Explanation
The correct answer is C because the application needs to have full access to read and write to both the calendar and mail, which is provided by application permissions. Option A lacks the Mail.ReadWrite permission needed for moving emails, while option B uses delegated permissions which are not suitable for a daemon application. Option D also uses delegated permissions, making it inappropriate for this scenario.