AI-200 practice question · Develop Containerized Solutions on Azure
A team runs an AI inference API in Azure Container Apps. Sometimes a replica's process stays up but stops responding to…
A team runs an AI inference API in Azure Container Apps. Sometimes a replica's process stays up but stops responding to requests after running for several hours. The app has a /health endpoint that returns HTTP 503 when it is in this state. The team wants Container Apps to detect the condition and restart the affected container automatically. What should they configure?
- AA Liveness probe in the container app template that sends an HTTP GET to the /health endpoint
- BA HEALTHCHECK instruction in the Dockerfile that calls the /health endpoint with curl
- CA Liveness probe of type exec that runs a health-check script inside the container
- DA Startup probe that sends an HTTP GET to the /health endpoint every few seconds
Show the answer and explanation
Correct answer: A) A Liveness probe in the container app template that sends an HTTP GET to the /health endpoint
In Azure Container Apps, ongoing responsiveness is checked with a liveness probe in the container app configuration, using HTTP(S) or TCP. Exec-style command checks aren't supported, and a startup probe only covers the startup phase.
Why each option is right or wrong
- A) Correct. A liveness probe checks whether the app is still running and responsive. HTTP probes count any status from 200 up to (not including) 400 as success, so a 503 is a failure. When failures pass the failureThreshold, Container Apps acts on the container. Probes are defined in the probes section of the container app's configuration (ARM, Bicep, or YAML).
- B) Incorrect. Container Apps health checks come from probes in the container app's configuration, and only HTTP(S) and TCP probes are supported. A command-based check in the image is not how Container Apps decides whether a replica is healthy.
- C) Incorrect. Container Apps lists exec probes as unsupported. Probes must use HTTP(S) or TCP, and gRPC isn't supported either.
- D) Incorrect. A startup probe only checks whether the app started successfully, and it runs during the initial startup phase. It won't catch a replica that stops responding hours later. That is what a liveness probe is for.
- Exam domain
- Develop Containerized Solutions on Azure · 22% of AI-200
- Question type
- Multiple choice (one answer)
Related AI-200 questions
- A team needs to give one Azure Container App a small, app-specific API key.Develop Containerized Solutions on Azure
- A developer has built an image named aiservice:v1 on their workstation. They want to catch startup or runtime errors…Develop Containerized Solutions on Azure
- An AKS cluster is shared by several teams, each working in its own namespace.Develop Containerized Solutions on Azure
- A security-focused team is adding a Linux user node pool to an AKS Standard cluster.Develop Containerized Solutions on Azure
All 60 free AI-200 questions by domain · 15 sample questions on one page
Practise the full AI-200 exam
This question is one of a small free sample from the CertRidge AI-200 bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.
Original question written from the official exam guide. Not affiliated with Microsoft; never copied from the real exam.