SC-200 · Question #358
SC-200 Question #358: Real Exam Question with Answer & Explanation
The correct answer is C: @odata.nextLink. To retrieve all results from a paged query against the unified audit log in PowerShell, you must query the @odata.nextLink property.
Question
You have a Microsoft 365 E5 subscription. You have a PowerShell script that queries the unified audit log. You discover that the query returns only the first page of results due to server-side paging. You need to ensure that you get all the results. Which property should you query in the results?
Options
- A@odata.context
- B@odata.count
- C@odata.nextLink
- D@odata.deltaLink
Explanation
To retrieve all results from a paged query against the unified audit log in PowerShell, you must query the @odata.nextLink property.
Common mistakes.
- A.
@odata.contextprovides metadata about the OData service but does not facilitate navigation to subsequent pages of results. - B.
@odata.countindicates the total number of items available, but it does not provide the mechanism to fetch the actual paged data. - D.
@odata.deltaLinkis used for delta queries to track changes over time, not for fetching the next page of a current, initial query result set.
Concept tested. Microsoft Graph API paging (@odata.nextLink)
Reference. learn.microsoft.com/graph/paging
Community Discussion
No community discussion yet for this question.