AIF-C01 Fundamentals of AI and ML Practice Question
A data scientist wants to host a pre-trained model on Amazon SageMaker for real-time inference with minimal latency. Which approach should they use?
⚠ Common exam trap
The AIF-C01 exam often tests the distinction between synchronous (real-time) and asynchronous inference patterns, and the trap here is that candidates may confuse 'asynchronous inference' with 'real-time' because both can handle requests, but only real-time endpoints guarantee minimal latency for individual predictions.
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
✓
Deploy the model on a SageMaker real-time endpoint
SageMaker real-time endpoints are designed for low-latency, synchronous inference. They keep the model loaded and ready to respond to individual requests, making them ideal for real-time applications where minimal latency is critical.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Run inference using AWS Lambda with the model packaged as a container
Why it's wrong here
Lambda caps execution duration and cold starts add latency, so it cannot serve a persistent real-time endpoint. It suits event-driven, low-volume inference where occasional cold-start delay is tolerable, not the sub-second, always-warm responses SageMaker real-time endpoints provide.
- ✗
Use SageMaker batch transform
Why it's wrong here
Batch transform processes an entire dataset as an offline job and writes results to Amazon S3, so it returns no synchronous per-request response. It is the right choice for scoring large stored datasets in bulk, not for interactive, low-latency inference on individual requests.
- ✗
Create a SageMaker asynchronous inference endpoint
Why it's wrong here
Asynchronous inference queues requests and returns results via Amazon S3 notification, designed for large payloads and long processing times, so it adds queueing delay rather than minimising latency. It suits near-real-time workloads with multi-minute runtimes, not immediate per-request responses.
- ✓
Deploy the model on a SageMaker real-time endpoint
Why this is correct
A SageMaker real-time endpoint keeps model artefacts loaded on dedicated instances behind a persistent HTTPS endpoint, returning predictions synchronously with low latency. This satisfies the minimal-latency requirement for real-time inference, unlike batch transform or asynchronous inference, which introduce queuing and storage round-trips.
Go deeper
Related to this question
About these practice questions
This AIF-C01 question is part of Courseiva's 862-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 AIF-C01 practice question is part of Courseiva's free Amazon Web Services 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 AIF-C01 exam.