AI-900 Practice Question: Describe fundamental principles of machine learning on Azure
A city's traffic department wants to predict the number of cars that will cross a particular bridge each day to plan maintenance schedules. The output of the model should be a numerical value representing the estimated traffic count. Which type of machine learning task is this?
⚠ Common exam trap
It's easy for candidates to confuse regression with classification because both involve prediction, but the key distinction is that regression outputs a continuous number while classification outputs a discrete label.
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
✓
Regression
Regression is the correct type of machine learning task because the goal is to predict a continuous numerical value—the number of cars crossing the bridge each day. Unlike classification, which predicts discrete categories, regression models output a real number, making it ideal for forecasting traffic counts.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Classification
Why it's wrong here
Classification is a supervised learning approach that predicts a discrete categorical label, such as 'low', 'medium', or 'high' traffic, rather than a precise numerical value. Although you could bin car counts into classes, that would discard the exact count and produce a category, not the continuous numeric estimate required by the traffic department. Therefore classification does not directly match the goal of predicting the number of cars.
- ✓
Regression
Why this is correct
Regression is a supervised learning technique designed to predict a continuous numeric output from input features. In this scenario, the number of cars is a numeric target, so regression can model the relationship between factors like time of day, weather, or road conditions and the expected car count. Algorithms such as linear regression, random forest regression, or neural networks with a regression head all produce a continuous prediction, making this the correct choice.
- ✗
Clustering
Why it's wrong here
Clustering is an unsupervised learning method that groups unlabeled data points based on similarity, such as grouping roads into clusters with similar traffic patterns. It does not use a predefined target variable to estimate a specific numeric value; instead, it finds natural structures in the data. Predicting how many cars will arrive requires a supervised regression model, not clustering.
- ✗
Reinforcement learning
Why it's wrong here
Reinforcement learning involves an agent interacting with an environment, taking actions, and learning a policy from reward signals to maximize cumulative reward over time. It is designed for sequential decision-making problems like robotics, game playing, or traffic light control, not for predicting a one-time continuous output from historical features. Since the task is to estimate a car count from existing data rather than learn an action policy, reinforcement learning is not applicable.
Go deeper
Related to this question
Learn chapter
Machine Learning Core Concepts
Key term
Regression
Regression is a type of machine learning algorithm that predicts a continuous numeric output based on input data, used to model relationships between variables.
Key term
Model
In IT and AI, a model is a trained mathematical representation that learns patterns from data to make predictions or decisions.
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 →
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.