Courseiva
Security And ObservabilityhardMultiple ChoiceObjective-mapped

AI-200 Security And Observability Practice Question

You are setting up monitoring for a custom machine learning scoring script running inside an Azure Container Instance. You want to track custom metrics such as inference prediction confidence scores over time in Application Insights. How should you record these custom metrics in your Python scoring script?

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

Use the Application Insights TelemetryClient track_metric() method

Using the `track_metric` method of the Application Insights `TelemetryClient` in Python allows you to record custom numerical metrics and send them to Azure Monitor.

Answer analysis

Option-by-option breakdown

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

  • Save the metrics as text files in an Azure Blob Storage account and run hourly KQL queries

    Why it's wrong here

    Incorrect. Blob storage does not ingest real-time Application Insights metrics natively without custom data ingestion pipelines.

  • Use the Application Insights TelemetryClient track_metric() method

    Why this is correct

    Correct. TelemetryClient.track_metric allows sending custom metrics directly to Application Insights.

  • Print JSON strings to standard output and rely on Log Analytics automatic table parsing

    Why it's wrong here

    Incorrect. While Container Instances capture stdout, using the official Application Insights SDK ensures metrics are structured and indexed correctly in custom metrics tables.

  • Update Azure Key Vault secrets with the metric values

    Why it's wrong here

    Incorrect. Key Vault is for storing secrets and keys, not telemetry metrics.

About these practice questions

Courseiva writes every AI-200 question from scratch — 507 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.