Courseiva

AI0-001 AI Implementation and Operations Practice Question

A batch inference pipeline fails intermittently with out-of-memory errors when processing large datasets. The pipeline uses pandas DataFrames and feeds a pre-trained model. Which change would most effectively reduce memory consumption?

⚠ Common exam trap

CompTIA often tests the misconception that scaling up hardware (Option A) is the best solution, when in fact architectural changes like chunking (Option D) are more effective and cost-efficient for batch processing workloads.

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

✓

Split the data into smaller chunks and process sequentially

Splitting a large dataset into smaller chunks and processing them sequentially directly addresses the root cause of the out-of-memory error: the entire dataset is loaded into memory at once via pandas DataFrames. By processing data in batches, each chunk fits within the available RAM, preventing memory exhaustion while still allowing the pipeline to complete the full inference workload.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Increase the instance size of the compute node

    Why it's wrong here

    Scaling up the compute node adds RAM headroom but leaves the pipeline's peak memory demand unchanged, so out-of-memory failures recur once datasets grow. It is tempting as a quick infrastructure fix, and would be right for sustained CPU or throughput shortfalls, not for reducing the memory footprint of pandas loading full datasets.

  • ✗

    Use a database instead of CSV files

    Why it's wrong here

    Swapping CSV for a database changes storage and I/O, not how pandas materialises data; reading a query result still loads the full set into memory. It is tempting because databases stream and index efficiently, and would suit repeated selective queries, but the out-of-memory cause is loading entire datasets into DataFrames.

  • ✗

    Convert the model to use half-precision

    Why it's wrong here

    Half-precision shrinks the model's weights and activations, a small fraction of total memory when pandas DataFrames dominate. It is tempting because mixed precision genuinely cuts GPU memory during training and inference, and would help model-bound workloads, but here the dataset, not the model, exhausts memory.

  • ✓

    Split the data into smaller chunks and process sequentially

    Why this is correct

    Chunked sequential processing bounds peak memory because only one subset of the data is resident at any time, rather than materialising the entire dataset in pandas. This directly addresses the out-of-memory failures during large batch inference without altering the model.

About these practice questions

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