Chapter 3 · AZ-204: Developing Solutions for Microsoft Azure Implement Azure Security
Microsoft Graph
20 practice questions · 5 marks weightage
Practice questions
- Question 1Q-59C45DSee the answer and solution
A signed-in user uses an ASP.NET Core web application to read their own Microsoft Graph profile through the /me endpoint. Which permission and authorization approach is appropriate?
- A.Delegated User.Read permission obtained through an interactive sign-in flow
- B.Application User.Read.All permission obtained through the client credentials flow
- C.Delegated Mail.Read permission obtained through an interactive sign-in flow
- D.Application Directory.ReadWrite.All permission obtained through the client credentials flow
- Question 2Q-B71F13See the answer and solution
A background .NET worker uses Microsoft Graph to list all users in a tenant. It runs without a signed-in user and uses the client credentials flow. The application should follow least privilege. Which configuration is required?
- A.Delegated User.Read permission and an interactive user sign-in
- B.Application User.Read.All permission with tenant administrator consent
- C.Delegated Directory.Read.All permission without administrator consent
- D.Application Mail.Read permission with tenant administrator consent
- Question 3Q-559DE2See the answer and solution
A single-page application calls a protected middle-tier API with an access token. The middle tier must call the Microsoft Graph /me endpoint on behalf of the same user. What is the correct security design?
- A.Forward the SPA's access token directly to Microsoft Graph
- B.Use the client credentials flow so Graph receives the middle tier's application identity
- C.Validate the incoming token and use the OAuth 2.0 on-behalf-of flow to obtain a Graph delegated access token
- D.Store the user's password in the middle tier and use it to request a Graph token
- Question 4Q-C2F296See the answer and solution
A mobile application allows a signed-in employee to view the employee's upcoming calendar events. The application does not need to access calendars when no user is signed in. Which Microsoft Graph permission should the application request?
- A.Delegated Calendars.Read
- B.Application Calendars.Read
- C.Delegated Calendars.ReadWrite
- D.Application Calendars.ReadWrite
- Question 5Q-85240ESee the answer and solution
An Azure Function runs nightly without a signed-in user and uses the Microsoft Graph .NET SDK with a service principal. The required Microsoft Graph application permissions have already been configured and admin consent has been granted. Which scope should be supplied when creating the Graph client for client-credentials authentication?
- A.User.Read
- B.https://graph.microsoft.com/.default
- C.https://login.microsoftonline.com/.default
- D.offline_access
15 more questions on Microsoft Graph
Sign up free to practise the full chapter. Questions you get wrong come back until you've mastered them.
Start practising freeFree to start · No credit card needed