Courseiva

AI-900 Practice Question: Describe fundamental principles of machine learning on Azure

What is the purpose of a confusion matrix in evaluating a classification model?

⚠ Common exam trap

It's easy for candidates to confuse the term 'confusion' with user confusion or think the matrix measures prediction speed, when in fact it is a structured table for analyzing correct and incorrect predictions per class.

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

To show the breakdown of correct and incorrect predictions by class

A confusion matrix is a table that compares the actual class labels against the model's predicted class labels, showing the counts of true positives, true negatives, false positives, and false negatives for each class. This breakdown allows you to compute key performance metrics such as accuracy, precision, recall, and F1-score, which are essential for evaluating a classification model's performance. Option B correctly identifies this purpose.

Answer analysis

Option-by-option breakdown

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

  • To measure how long the model takes to make predictions

    Why it's wrong here

    Inference time is a performance measurement that quantifies latency, typically expressed in milliseconds or seconds, and reflects computational complexity, hardware, and model architecture. A confusion matrix, by contrast, is a tabular summary of predicted versus actual class labels, designed to evaluate classification accuracy and error types—not speed. A model can be very fast while still making systematic mistakes, so latency and confusion matrices address entirely different evaluation questions.

  • To show the breakdown of correct and incorrect predictions by class

    Why this is correct

    A confusion matrix provides a per-class breakdown of prediction outcomes by tallying true positives, true negatives, false positives, and false negatives. Each cell in the matrix shows how many instances of a given actual class were predicted as each candidate class, with the diagonal representing correct predictions. This breakdown enables the calculation of class-level metrics like precision, recall, and F1-score, and helps identify systematic biases or confusion between specific classes.

  • To visualize the distribution of training data

    Why it's wrong here

    Data distribution visualization typically relies on histograms, box plots, kernel density estimates, or bar charts to show the spread and frequency of feature values or class labels in the training dataset. A confusion matrix, however, is not a data exploration tool; it is generated after model inference on a labeled test set. It compares model predictions to ground truth to reveal correct and incorrect classifications, rather than describing the characteristics of the input data.

  • To show how confused users are when interacting with AI systems

    Why it's wrong here

    This option misinterprets the term 'confusion' as a user-experience concept, but in machine learning it is a purely statistical artifact of misclassification. User confusion would be assessed through usability studies, cognitive load measurements, or surveys, not through a confusion matrix. The matrix is an evaluation tool used by data scientists to cross-tabulate predicted against actual classes, revealing which classes are commonly mistaken for one another.

About these practice questions

One of 985 original AI-900 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 by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This AI-900 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-900 exam.