Courseiva

AI0-001 AI Models and Data Engineering Practice Question

A data scientist is working on a project to classify images of handwritten digits. The dataset consists of 60,000 training images and 10,000 test images, each 28x28 pixels in grayscale. The scientist wants to build a model that can automatically extract features and achieve high accuracy. Which type of model is most suitable for this task?

⚠ Common exam trap

The trap here is selecting a simpler model like logistic regression due to familiarity, without recognizing the need for automatic feature extraction in image data.

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

✓

Convolutional neural network (CNN)

Convolutional neural networks are designed for image data and can automatically learn relevant features through convolutional layers. They are highly effective for handwritten digit classification. Logistic regression requires manual feature engineering, decision trees struggle with high-dimensional image data, and K-means is unsupervised and not suitable for classification. Therefore, a CNN is the most suitable model for this task.

Answer analysis

Option-by-option breakdown

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

  • ✗

    K-means clustering

    Why it's wrong here

    K-means is an unsupervised clustering algorithm, not a classification model. It groups data points into clusters based on similarity, but it does not use labels to learn a mapping from features to classes. In this scenario, the task is supervised classification of handwritten digits, so K-means is not applicable. Even if used for feature extraction, it would not directly provide class predictions. Therefore, K-means is not the appropriate model here.

  • ✗

    Decision tree

    Why it's wrong here

    Decision trees partition the feature space based on simple rules, but they struggle with high-dimensional data like images. Each pixel is a feature, leading to a very large tree that is prone to overfitting. Decision trees do not capture spatial relationships between pixels effectively. While ensemble methods like random forests can improve performance, they still require significant feature engineering and are generally outperformed by CNNs on image tasks. Thus, a decision tree is not suitable for this scenario.

  • ✓

    Convolutional neural network (CNN)

    Why this is correct

    Convolutional neural networks are specifically designed for image data. They use convolutional layers to automatically learn spatial hierarchies of features, such as edges, textures, and shapes, from raw pixel values. This makes them highly effective for image classification tasks like handwritten digit recognition. CNNs also benefit from parameter sharing and local connectivity, reducing the number of parameters compared to fully connected networks. Given the image size and dataset, a CNN can achieve high accuracy with reasonable computational resources. Therefore, a CNN is the most suitable model.

  • ✗

    Logistic regression

    Why it's wrong here

    Logistic regression is a linear model that can be used for classification, but it requires manual feature engineering to perform well on image data. Raw pixel values are not linearly separable for complex patterns like handwritten digits. While logistic regression can achieve decent accuracy on MNIST with preprocessing, it cannot automatically extract features and typically underperforms compared to CNNs. In this scenario, where the goal is high accuracy and automatic feature extraction, logistic regression is not the best choice.

About these practice questions

One of 962 original AI0-001 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 and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official CompTIA exam blueprint

This AI0-001 practice question is part of Courseiva's free CompTIA 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 AI0-001 exam.