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?
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 queues decouple the frontend from long-running tasks, allowing the user to receive results later without blocking.
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
Synchronous calls would block for up to 5 minutes, causing timeouts and poor user experience.
- ✓
Async processing with a message queue and separate worker service
Why this is correct
The user submits the job, a queue holds tasks, workers process them asynchronously, and the user polls or gets a callback with results.
- ✗
WebSocket connection for real-time streaming
Why it's wrong here
WebSockets are for real-time bidirectional communication; here the processing is long and not real-time.
- ✗
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 — 754 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.