According to the Microsoft Azure AI Fundamentals (AI-900) official study guide and Microsoft Learn module “Identify features of regression machine learning”, regression is the machine learning technique used when the goal is to predict a continuous numeric value based on historical data. In this question, predicting the number of gift cards that will be sold next month involves forecasting a quantity—a numeric outcome—which is the hallmark of a regression problem.
Regression models learn patterns from past data (for example, previous months’ gift card sales, seasonality, holidays, and marketing spend) and use that information to predict future sales. Common algorithms used for regression include linear regression, decision tree regression, and boosted regression trees. The output is a continuous value such as “2,450 gift cards expected next month.”
In contrast:
A. Classification is used when the output is categorical, such as predicting whether a transaction is “fraud” or “not fraud,” or whether a customer will “renew” or “cancel.” It answers questions with discrete classes rather than numeric values.
C. Clustering is an unsupervised learning technique used to group similar data points together based on their characteristics—for example, segmenting customers into behavior-based clusters. Clustering doesn’t predict future numeric outcomes.
The AI-900 curriculum explicitly explains that regression predicts numeric values, classification predicts categories, and clustering finds natural groupings in data.
Therefore, to predict the number of gift cards to be sold, the correct and verified machine learning type is Regression.
Final Answer: B. Regression
[Reference:Microsoft Learn – Identify the types of machine learning models: Regression, Classification, and Clustering (AI-900 Learning Path), , , , ]