exam questions

Exam MS-600 All Questions

View all questions & answers for the MS-600 exam

Exam MS-600 topic 2 question 16 discussion

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

HOTSPOT -
You need to retrieve a list of the last 10 files that the current user opened from Microsoft OneDrive. The response must contain only the file ID and the file name.
Which URI should you use to retrieve the results? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
"graph.microsoft.com" "drive" onedrive

Box 1: root -
/root - The root folder for the drive.

Box 2: $select=id,name -
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. For example, when retrieving your messages, you might want to select that only the from and subject properties of messages are returned.
Reference:
https://docs.microsoft.com/en-us/onedrive/developer/rest-api/concepts/addressing-driveitems 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
johnyb
Highly Voted 2 years, 9 months ago
the "root" endpoint will return some info of the root folder of the OneDrive account and include a folder property that contains the number of folders and files at the root of the OneDrive account. It does not return the files. In order to get all files you must use the "drive/root/children" endpoint, or the "drive/recent" if you want to get the recently opened files. So the correct answer is "recent".
upvoted 42 times
...
wonderznight
Highly Voted 2 years, 3 months ago
https://graph.microsoft.com/v1.0/me/drive/recent?$select=id,name&$top=10
upvoted 11 times
__C__
2 years, 1 month ago
This is correct. I tried it in Graph Explorer. https://developer.microsoft.com/en-us/graph/graph-explorer
upvoted 3 times
...
...
Contactfornitish
Most Recent 5 months ago
recent would give you last accessed and id,name would give id and name of respective files.
upvoted 1 times
...
mmdcert
1 year, 2 months ago
The first box should be "recent": GET /me/drive/recent This method returns a collection of DriveItem resources for items which the owner of the drive has recently accessed. https://docs.microsoft.com/en-us/graph/api/drive-recent?view=graph-rest-1.0&tabs=http
upvoted 1 times
...
pierpaolo
2 years ago
C is correct.
upvoted 1 times
...
RajatSahani
2 years, 1 month ago
Box 1: /recent Box 2: $select=id,name
upvoted 2 times
...
PreetiLearner
2 years, 3 months ago
answer is "drive/recent" and $select=id,name
upvoted 1 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