AI0-001 Implementing AI Solutions Practice Question
A developer is building an AI microservice that processes document intelligence requests asynchronously. Users upload PDFs, and the service extracts text and analyzes it with an LLM. The processing time per document can be up to 5 minutes. Which integration pattern is MOST appropriate?
⚠ Common exam trap
The trap is underestimating HTTP and serverless timeout limits — candidates pick synchronous or serverless options without accounting for the 5-minute processing time exceeding those constraints.
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
✓
Async processing with a message queue and separate worker service
Async processing with a message queue and separate worker service is the correct pattern because document processing can take up to 5 minutes, which exceeds typical synchronous HTTP timeout limits (often 30-60 seconds). The API accepts the upload, enqueues a job, and returns immediately; a worker service consumes the queue, performs text extraction and LLM analysis, and stores results for later retrieval. This decouples request handling from long-running work and provides resilience against worker failures.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Synchronous REST API call that waits for the LLM response
Why it's wrong here
A synchronous call holds the HTTP connection open for the full five-minute LLM extraction, exceeding typical gateway and client timeouts. It is tempting because synchronous REST is the default pattern for request-response APIs, and would suit short extractions completing in seconds rather than minutes.
- ✓
Async processing with a message queue and separate worker service
Why this is correct
A message queue decouples upload from processing, letting a separate worker service handle documents that may take five minutes each without blocking the API or hitting request timeouts. This matches the stem's asynchronous, long-running processing constraint.
- ✗
WebSocket connection for real-time streaming
Why it's wrong here
WebSockets stream incremental output over a persistent connection, but the stem requires asynchronous job processing, not token-by-token delivery. It is tempting because streaming suits chat interfaces where partial LLM output is shown live, yet uploads here need queueing and later retrieval of completed results.
- ✗
Serverless function triggered by HTTP request
Why it's wrong here
A serverless function triggered by an HTTP request enforces synchronous execution, where the client must maintain an open connection until the function returns a response. This fails the requirement for asynchronous processing of documents that take up to five minutes, because HTTP gateways typically time out after 30–120 seconds, aborting the extraction. The option is tempting because HTTP-triggered functions are ideal for low-latency, stateless tasks such as validating a form submission or returning a quick API lookup result.
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 and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official CompTIA exam blueprint
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.