AI-102 Implement generative AI solutions Practice Question
Your team is using the Azure OpenAI Batch API to process 200,000 product-description rewrites overnight. The job must complete within a fixed window and cost as little as possible, and results are not needed interactively. A developer reports that the submitted batch job failed with an error about the input file. What is the most likely cause?
⚠ Common exam trap
The trap here is assuming any valid JSON is acceptable, when the Batch API specifically requires line-delimited JSONL with one request per line.
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 input file was uploaded as a single large JSON array containing all 200,000 requests.
The Batch API expects a JSONL input file in which every line is an independent request object with a unique custom_id. Submitting one large JSON array violates that contract, so the job is rejected during input validation before any processing begins.
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 batch job used a deployment with a lower tokens-per-minute quota than the interactive deployment.
Why it's wrong here
Batch workloads draw on a separate quota pool and are designed for large asynchronous jobs, so a lower interactive quota does not produce an input-file validation error. Quota issues manifest as throttling or delayed processing, not as a failure to parse the submitted file. The reported error points to the file structure instead.
- ✓
The input file was uploaded as a single large JSON array containing all 200,000 requests.
Why this is correct
Batch API input must be a JSONL file where each line is one request object with its own custom_id. A single JSON array is not the accepted format, so the job fails validation with an input-file error. Converting the payload to line-delimited request objects and uploading it to the expected storage location resolves the failure.
- ✗
The input file was uploaded as a JSONL file with one request object per line and a unique custom_id for each line.
Why it's wrong here
This is the correct structure for a batch input file, so it would not cause a failure. Each line must be a valid request object with a unique custom_id so results can be matched back to inputs. Because this format satisfies the Batch API requirements, it cannot explain the reported input-file error.
- ✗
The batch job was submitted without specifying a completion window, so it defaulted to the maximum allowed.
Why it's wrong here
A completion window defines how long the service may take to finish the job and does not affect parsing of the input file. Even an unexpected window value would not trigger an input-file error. The failure is tied to how the requests were serialized, not to the scheduling parameter chosen at submission.
Go deeper
Related to this question
About these practice questions
One of 761 original AI-102 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 →
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 Microsoft exam blueprint
This AI-102 practice question is part of Courseiva's free Microsoft 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 AI-102 exam.