Courseiva

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

A data scientist is building a machine learning model to predict the number of daily bike rentals in a city based on weather data and day of the week. The target variable is a continuous integer. Which type of machine learning task is this?

⚠ Common exam trap

Test-takers frequently confuse 'continuous integer' with classification because the output is an integer, but the key is that it's a continuous range of possible values (e.g., 0 to 500+), not a fixed set of categories.

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

The target variable is the number of daily bike rentals, which is a continuous integer (count). Predicting a continuous numeric value is a regression task. In Azure Machine Learning, regression algorithms such as Linear Regression, Decision Forest Regression, or Poisson Regression are used for this type of problem.

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 task that predicts a discrete class label from a fixed set of categories, such as 'spam' or 'not spam'. It is inappropriate here because the desired output is a continuous numeric count (the number of bike rentals), not a category. Even a multi-class classifier would fail to represent all possible rental counts and would discard the natural ordering and magnitude of the numeric target.

  • Regression

    Why this is correct

    Regression is the correct supervised learning technique because the target variable is a continuous numeric value—the number of bike rentals. A regression model learns a mapping from input features to a real-valued output, allowing it to predict rental counts that were not present in the training data. Common regression algorithms include linear regression, decision trees, random forests, and neural networks with a linear output unit, all of which can output a continuous number.

  • Clustering

    Why it's wrong here

    Clustering is an unsupervised learning method that groups similar data points into clusters based on feature similarity, with no labeled target variable. Algorithms such as k-means or DBSCAN assign each instance to a group, but they do not produce a numeric prediction for a specific rental count. Because this problem has historical labels (actual rental numbers) to learn from, clustering cannot be used to make supervised continuous predictions.

  • Anomaly Detection

    Why it's wrong here

    Anomaly detection is designed to identify rare, unusual, or outlier data points, such as fraudulent transactions or equipment failures, rather than to predict a typical continuous value. It is often implemented using one-class classification or novelty detection methods, which learn a boundary around normal behavior. In this scenario, anomaly detection might flag unusually high or low rental days, but it would not output the expected number of rentals for a given set of conditions, so it is the wrong task.

About these practice questions

This AI-900 question is part of Courseiva's 985-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. 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.