Courseiva
Containerized AI WorkloadshardMultiple ChoiceObjective-mapped

AI-200 Containerized AI Workloads Practice Question

You are configuring authentication between an Azure Container App running an AI model and an Azure OpenAI resource. To adhere to security best practices, you must avoid storing API keys in environment variables or code. How should you configure this?

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

Configure a system-assigned managed identity on the Container App and grant it Cognitive Services OpenAI User role on the Azure OpenAI resource

Managed identities allow Azure resources to authenticate to services supporting Microsoft Entra authentication without embedding credentials.

Answer analysis

Option-by-option breakdown

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

  • Hardcode the secondary endpoint key into the Docker image build arguments

    Why it's wrong here

    Hardcoding keys violates core security principles as image layers can be inspected.

  • Enable anonymous public access on the Azure OpenAI resource for internal virtual network traffic

    Why it's wrong here

    Enabling anonymous public access compromises the security posture of the AI resource.

  • Configure a system-assigned managed identity on the Container App and grant it Cognitive Services OpenAI User role on the Azure OpenAI resource

    Why this is correct

    System-assigned managed identity allows secure, credential-less authentication from the Container App to Azure OpenAI.

  • Store the Azure OpenAI primary key in an Azure Key Vault and reference it via Container App secrets with plain text retrieval

    Why it's wrong here

    While Key Vault references are secure, managed identity direct authentication removes the need for managing API keys entirely.

About these practice questions

One of 503 original AI-200 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.