Courseiva
Security And ObservabilitymediumMultiple ChoiceObjective-mapped

AI-200 Security And Observability Practice Question

Your production Azure Machine Learning inference endpoint is failing due to unauthorized access attempts. You decide to use Managed Identities to secure the connection to an Azure Key Vault. What is the correct sequence of operations to ensure the scoring script can retrieve secrets?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Enable a System-assigned Managed Identity on the endpoint and grant the identity the Key Vault Secrets User role.

You must enable the system-assigned managed identity on the Managed Online Endpoint and then grant that identity 'Get' permissions on the Key Vault access policy.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Grant the Azure Machine Learning workspace identity contributor access to the entire Key Vault resource.

    Why it's wrong here

    This violates the principle of least privilege.

  • Enable a System-assigned Managed Identity on the endpoint and grant the identity the Key Vault Secrets User role.

    Why this is correct

    This allows the endpoint to authenticate to Key Vault without managing separate credentials.

  • Assign the endpoint a Service Principal secret and store it in the environment variables of the scoring script.

    Why it's wrong here

    Using Service Principal secrets is less secure than using managed identities.

  • Create a User-assigned Managed Identity and manually inject the OAuth token into the request header.

    Why it's wrong here

    Azure AI SDKs handle token acquisition automatically when using managed identities.

About these practice questions

Courseiva writes every AI-200 question from scratch — 503 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed August 2026 · checked against the official Microsoft exam blueprint

This AI-200 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AI-200 exam.