exam questions

Exam MS-600 All Questions

View all questions & answers for the MS-600 exam

Exam MS-600 topic 2 question 12 discussion

Actual exam question from Microsoft's MS-600
Question #: 12
Topic #: 2
[All MS-600 Questions]

You are developing a human resources application that will show users where they are in their company's organization chart.
You are adding a new feature that will display the name of a user's manager inside the application.
You need to create a REST query to retrieve the information. The solution must minimize the amount of data retrieved.
Which query should you use?

  • A. GET https://graph.microsoft.com/v1.0/users/{UserPricipalName}/manager?$select=displayName
  • B. GET https://graph.microsoft.com/v1.0/users/{UserPricipalName}/people?$filter=jobTitle eq 'manager'&$select=displayName
  • C. GET https://graph.microsoft.com/v1.0/users/{UserPricipalName}/contacts?$filter=jobTitle eq 'manager'
  • D. GET https://graph.microsoft.com/v1.0/users/{UserPricipalName}/manager
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
Get user's manager. Returns the user or organizational contact assigned as the user's manager.
Syntax:

GET /me/manager -
GET /users/{id | userPrincipalName}/manager
Only the name of the user's manager should be displayed so we use ?select=displayname
To specify a different set of properties to return than the default set provided by the Graph, use the $select query option. The $select option allows for choosing a subset or superset of the default set returned.
Reference:
https://docs.microsoft.com/en-us/graph/api/user-list-manager
https://developer.microsoft.com/en-us/graph/docs/overview/query_parameters

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
meghvasavada
Highly Voted 7 months, 4 weeks ago
Given answer is correct
upvoted 6 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago