AI-300 Practice Question 86: Search Index Data Reader
Microsoft Machine Learning Operations Engineer Associate (AI-300) · Test 9 · question 6 of 10
A Foundry application uses its managed identity to query an Azure AI Search index. API key access on the search service is disabled, and queries return 403 Forbidden. The team wants to fix this by using the least privilege that still allows queries. Which role should they assign to the managed identity?
Show answer and explanation
Answer:
Azure AI Search uses separate roles for management and for data access. Search Index Data Reader gives read-only access to query indexes, and does not allow loading documents or changing object definitions. It is the least privilege role for a query-only application (option C).
- A is wrong because this role manages the service and its objects, but it does not grant access to the data in an index. - B is wrong because this role can query, but it also allows loading and changing documents, which is more than the requirement. - D is wrong because Reader is a control plane role that allows viewing the resource. It does not allow querying index content.
Reference: Connect to Azure AI Search using roles