AI-102 · Question #98
AI-102 Question #98: Real Exam Question with Answer & Explanation
The correct answer is C: Retrieve the group memberships of the user.. Your documents must include a field specifying which groups have access. This information becomes the filter criteria against which documents are selected or rejected from the result set returned to the issuer. D: A query request targets the documents collection of a single index
Question
You are developing an application that will use Azure AI Search for internal documents. You need to implement document-level filtering for Azure AI Search. Which three actions should you include in the solution? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.
Options
- ASend Azure AD access tokens with the search request.
- BRetrieve all the groups.
- CRetrieve the group memberships of the user.
- DAdd allowed groups to each index entry.
- ECreate one index per group.
- FSupply the groups as a filter for the search requests.
Explanation
Your documents must include a field specifying which groups have access. This information becomes the filter criteria against which documents are selected or rejected from the result set returned to the issuer. D: A query request targets the documents collection of a single index on a search service. CF: In order to trim documents based on group_ids access, you should issue a search query with a group_ids/any(g:search.in(g, 'group_id1, group_id2,...')) filter, where 'group_id1, group_id2,...' are the groups to which the search request issuer belongs. https://docs.microsoft.com/en-us/azure/search/search-security-trimming-for-azure-search
Topics
Community Discussion
No community discussion yet for this question.