AWS AI Practitioner AIF-C01 · Fundamentals of AI and ML · easy
A retail bank wants to group 2 million unlabelled customer credit-card profiles into natural spending-behavior segments without any predefined target category labels. Which machine learning paradigm and algorithm type is appropriate for this task?
Published · Last updated · checked before publication — how we verify questions
Options
Answer: B. Unsupervised learning using a K-Means clustering algorithm
The bank has two million customer profiles with no target labels and wants natural groupings to emerge from the data itself. That is the textbook definition of unsupervised learning, and the specific task is clustering. K-Means is a standard clustering algorithm: you choose a number of clusters, and it iteratively assigns each profile to the nearest centroid and recalculates the centroids until the groups stabilise. The result is segments of customers with similar spending behavior, which analysts can then interpret and name. The key exam rule is to look at whether labelled outcomes exist. If every example has a known target, think supervised learning. If there are no labels and the goal is discovering structure or segments, think unsupervised learning. If an agent learns by interacting with an environment and receiving rewards, think reinforcement learning. The most common trap is picking an option that sounds financial, such as fraud, instead of checking whether labels exist and what the output must be.
Why the other options are wrong
- A. Supervised binary classification using labelled fraud tags — Binary classification is a supervised task that learns from examples already tagged with a known class, such as fraud or not fraud. The scenario has no labels and wants discovered segments rather than a two-class prediction, so this does not fit.
- C. Reinforcement learning using a robotic reward-penalty loop — Reinforcement learning trains an agent that takes actions in an environment and learns from rewards and penalties over time. Segmenting a static set of customer profiles involves no agent, actions or reward signal, so it is the wrong paradigm.
- D. Supervised linear regression predicting a continuous salary — Linear regression is a supervised method that predicts a continuous numeric value, such as salary, from labelled training examples. The bank has no target value to predict and wants groups rather than a number, so it does not answer the task.
More Fundamentals of AI and ML questions
- A real-estate analytics team wants to predict the exact selling price in US dollars (e.g., $432,500) of residential…
- During training of a deep neural network, the training accuracy reaches 99.4%, but the validation accuracy on unseen…
- A customer-experience team wants to analyze 500,000 product reviews stored in Amazon S3 to automatically extract…
- A medical screening model evaluates 1,000 patients for a rare condition and produces the following confusion matrix…
- A mortgage lender receives scanned PDF tax forms and multipage bank statements containing complex tables and…
All Fundamentals of AI and ML questions and the topic overview →
AWS and Amazon Web Services are trademarks of Amazon.com, Inc. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Amazon Web Services.