AI0-001 AI Infrastructure and Technologies Practice Question
A data scientist is using a Hugging Face transformer model for a sentiment analysis task. They want to optimize inference latency for a mobile app. Which model format and framework combination is BEST suited for on-device deployment?
⚠ Common exam trap
Candidates may mistakenly think that other export formats such as ONNX or PyTorch JIT are equally suitable for mobile deployment, but the correct answer is TFLite because it is specifically designed for on-device inference with quantization and hardware acceleration, while ONNX and PyTorch JIT are primarily optimized for server-side or desktop inference.
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
✓
Convert to TensorFlow Lite (TFLite) and run on the device
TensorFlow Lite (TFLite) is specifically designed for on-device machine learning inference on mobile and edge devices. It provides a lightweight runtime, hardware acceleration via delegates (e.g., GPU, NNAPI), and reduced model size through quantization, making it the best choice for optimizing inference latency in a mobile app. Converting a Hugging Face transformer model to TFLite allows the model to run locally without network latency, which is critical for real-time sentiment analysis on a smartphone.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Convert to TensorFlow Lite (TFLite) and run on the device
Why this is correct
TFLite is optimized for mobile devices, providing low latency and small binary size.
- ✗
Use the full PyTorch model with JIT scripting
Why it's wrong here
PyTorch JIT is not optimized for mobile; it is more suited for server inference.
- ✗
Deploy the model on a cloud endpoint and call via REST API
Why it's wrong here
Cloud endpoint adds network latency, which is undesirable for mobile app real-time inference.
- ✗
Export to ONNX and use ONNX Runtime with GPU
Why it's wrong here
ONNX Runtime with GPU is for server-side, not mobile; mobile GPUs are not standard.
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.