Microsoft

AI-103 practice question 11

Developing AI Apps and Agents on Azure · free question 11 of 20

Question

You have a Microsoft Foundry project that contains a model deployment. You have an application that calls the deployment by using the Azure OpenAI v1 API and DefaultAzureCredential. The developers at your company receive HTTP 403 errors when they send inference requests, even after running az login. You need to ensure that the developers can perform model inference. The solution must follow the principle of least privilege. Which role-based access control (RBAC) role should you assign to the developers?
  • A. Cognitive Services User
  • B. Cognitive Services OpenAI User Correct
  • C. Contributor
  • D. Cognitive Services Data Reader

Explanation

Signing in with az login only proves identity; the 403 means the identity lacks the data-plane permission to call the model. Cognitive Services OpenAI User allows inference API calls with Microsoft Entra ID without allowing changes to deployments or access to keys, so it meets least privilege. Contributor manages resources and does not grant inference data actions. Cognitive Services User is broader because it is not limited to Azure OpenAI, and Cognitive Services Data Reader is for reading data rather than running inference.

Need the theory? Learn it free in the AI-103 course on Godlike Academy

Practice the whole free set

Answer all 20 free AI-103 questions with instant feedback, or unlock all 65 questions with Learn and Exam modes.