AI0-001 AI Infrastructure and Technologies Practice Question
A team uses Apache Kafka to stream real-time sensor data for ML inference. They need to process the stream, perform feature engineering, and store results in a data lake. Which tool is best suited for this streaming ML pipeline?
⚠ Common exam trap
CompTIA often tests the distinction between stream processing engines (like Spark Structured Streaming) and orchestration or batch tools (like Airflow or SageMaker Processing), trapping candidates who confuse workflow scheduling with real-time data processing.
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
✓
Apache Spark with Structured Streaming
Apache Spark with Structured Streaming is best suited because it provides a unified, scalable engine for both stream processing and batch processing, enabling real-time feature engineering on Kafka streams and direct writing to a data lake (e.g., Parquet format in Amazon S3). Its micro-batch or continuous processing model integrates natively with Kafka, allowing exactly-once semantics and low-latency transformations for ML inference pipelines.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Apache Spark with Structured Streaming
Why this is correct
Structured Streaming runs the feature engineering as continuous incremental queries over Kafka topics, writing curated results to the data lake, and reuses Spark's ML libraries for inference. It handles both the streaming transformation and lake writes in one engine, unlike batch-only or queue-only alternatives.
- ✗
Apache Airflow
Why it's wrong here
Airflow orchestrates scheduled batch workflows; its DAG runs are time-triggered rather than continuous, so it cannot process Kafka events as they arrive. It is tempting because Airflow coordinates data pipelines and dependencies, but that fits periodic batch ETL, not real-time streaming feature engineering.
- ✗
TensorFlow Data Validation
Why it's wrong here
TensorFlow Data Validation analyses and validates datasets for training-serving skew; it neither consumes Kafka streams nor writes engineered features to a data lake. It is tempting because it performs feature statistics and schema checks, but that suits offline training data validation, not continuous stream processing.
- ✗
SageMaker Processing jobs
Why it's wrong here
SageMaker Processing jobs run batch, non-streaming workloads that terminate after completion, so they cannot continuously consume Kafka topics or emit low-latency features. It is tempting because Processing jobs handle feature engineering and data transformation, but that fits scheduled batch pipelines, not an always-on streaming inference path.
Quick reference
AWS S3 Storage Class Comparison
| Storage Class | Min Duration | Retrieval | Use Case |
|---|---|---|---|
| S3 Standard | None | Immediate | Frequently accessed data |
| S3 Standard-IA | 30 days | Immediate | Infrequent access, rapid retrieval |
| S3 One Zone-IA | 30 days | Immediate | Non-critical infrequent data |
| S3 Intelligent-Tiering | None | Immediate–hours | Unknown or changing access patterns |
| S3 Glacier Instant | 90 days | Milliseconds | Archive with instant retrieval |
| S3 Glacier Flexible | 90 days | Minutes–hours | Archive, flexible retrieval |
| S3 Glacier Deep Archive | 180 days | Hours | Long-term compliance archive |
About these practice questions
Courseiva writes every AI0-001 question from scratch — 962 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
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.