AI0-001 AI Models and Data Engineering Practice Question
Exhibit
The following is a JSON schema snippet from a data pipeline:
{
"type": "object",
"properties": {
"user_id": { "type": "integer" },
"timestamp": { "type": "string", "format": "date-time" },
"event_type": { "type": "string" },
"value": { "type": "number" }
},
"required": ["user_id", "event_type", "value"]
}Refer to the exhibit. A stream processor ingests events. One event arrives with missing "user_id". What will happen?
⚠ Common exam trap
CompTIA often tests the misconception that stream processors automatically handle missing fields by setting defaults or using dead-letter queues, but the correct behavior is strict rejection when the field is required by the schema.
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
✓
The event will be rejected because user_id is required.
In stream processing systems like Apache Kafka or AWS Kinesis, if a required field such as 'user_id' is missing and the schema (e.g., Avro, JSON Schema) defines it as required, the event will be rejected at ingestion. The stream processor typically validates the event against the schema; if validation fails, the event is not accepted into the stream, preventing downstream processing errors.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The event will be stored in a dead-letter queue automatically.
Why it's wrong here
A dead-letter queue requires explicit configuration, not automatic.
- ✗
The event will be accepted but user_id will be set to null.
Why it's wrong here
Required fields cannot be null.
- ✗
The event will be accepted with a default user_id of 0.
Why it's wrong here
No default value is defined in the schema.
- ✓
The event will be rejected because user_id is required.
Why this is correct
Validation against the required field causes rejection.
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 →
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.