AI-102 · Question #98
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 correct answer is C. Retrieve the group memberships of the user. D. Add allowed groups to each index entry. F. Supply the groups as a filter for the search requests. 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…
Question
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.
How the community answered
(29 responses)- A7% (2)
- B17% (5)
- C72% (21)
- E3% (1)
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.