AI-200 Containerized AI Workloads Practice Question
You are deploying a Python Flask API that wraps an ONNX runtime model to Azure Container Instances (ACI). The container needs to expose port 5000 externally. Which parameter must you specify when creating the container group?
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
✓
--dns-name-label and port 5000 mapping
When deploying to Azure Container Instances, you must explicitly configure the port and protocol for public IP exposure.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
--assign-identity
Why it's wrong here
Assigning an identity grants permissions to Azure resources, not public port exposure.
- ✗
--restart-policy Never
Why it's wrong here
Restart policy controls container lifecycle behavior upon exit, not port exposure.
- ✗
--os-type Windows
Why it's wrong here
Python Linux containers require Linux OS type, not Windows.
- ✓
--dns-name-label and port 5000 mapping
Why this is correct
A DNS name label and port mapping expose the container instance publicly with a routable endpoint.
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 →
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.