ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 41 - AI-102 discussion

Report
Export

You are developing an application that will use Azure Cognitive Search for internal documents.

You need to implement document-level filtering for Azure Cognitive 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.

A.
Send Azure AD access tokens with the search request.
Answers
A.
Send Azure AD access tokens with the search request.
B.
Retrieve all the groups.
Answers
B.
Retrieve all the groups.
C.
Retrieve the group memberships of the user.
Answers
C.
Retrieve the group memberships of the user.
D.
Add allowed groups to each index entry.
Answers
D.
Add allowed groups to each index entry.
E.
Create one index per group.
Answers
E.
Create one index per group.
F.
Supply the groups as a filter for the search requests.
Answers
F.
Supply the groups as a filter for the search requests.
Suggested answer: C, D

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.

Reference:

https://docs.microsoft.com/en-us/azure/search/search-security-trimming-for-azure-search

asked 26/09/2024
Oscar Ballabriga
31 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first