Courseiva
Implementing AI SolutionshardMultiple SelectObjective-mapped

AI0-001 Implementing AI Solutions Practice Question

A data scientist is preparing a dataset for a text classification model. To prevent train/test leakage, which THREE practices should they follow?

⚠ Common exam trap

The AI0-001 exam often tests the misconception that shuffling the entire dataset is always safe, but for temporal data or when duplicates exist, shuffling can introduce leakage by mixing future and past samples or spreading identical text across train and test sets.

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

Use time-based splitting for temporal data

Time-based splitting preserves the temporal order of data, which is critical for time-series or temporal text data to prevent the model from learning from future information that would not be available at inference time. This avoids train/test leakage where future data leaks into the training set, artificially inflating model performance.

Answer analysis

Option-by-option breakdown

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

  • Shuffle the entire dataset before splitting to ensure randomness

    Why it's wrong here

    Shuffling is fine but does not prevent leakage if duplicates or related samples exist across splits.

  • Use time-based splitting for temporal data

    Why this is correct

    For time-series or evolving data, splitting by time ensures the model is not trained on future information.

  • Perform train/test split before any data cleaning or normalization

    Why this is correct

    Splitting first ensures that no information from the test set influences preprocessing (e.g., mean/variance).

  • Apply feature scaling to the entire dataset before splitting

    Why it's wrong here

    Scaling before splitting leaks global statistics (e.g., min, max) from test into training.

  • Remove duplicate samples and ensure that no text from the same document appears in both sets

    Why this is correct

    Deduplication prevents the same content from being in both training and test sets.

About these practice questions

This AI0-001 question is part of Courseiva's 754-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 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.