AIF-C01 · AI and ML Foundations
21 cards
Inference Modes
-
Quick check
Which option is designed for offline inference over large accumulated datasets?
AServerless inference
Serverless inference is a request-response mode for traffic that arrives in spurts with idle periods in between.
BAsynchronous inference
Asynchronous inference handles large inputs, but it stays request-oriented and near-real-time rather than offline.
CBatch transform
Right. Batch transform is the offline option for inference over large datasets, with no live caller waiting.
3 / 21
-
Quick check
Which statement matches real-time inference?
AIt serves interactive, low-latency requests, with autoscaling but no scale to zero
Right. Real-time inference targets interactive low-latency traffic; it supports autoscaling, but scale to zero is not among its supported features.
BIt is the offline mode, so its capacity drops to zero between accumulated dataset jobs
Real-time inference is the interactive mode, not the offline one, and it is precisely the mode that cannot scale to zero.
CIt accepts single requests up to 1 GB and allows almost an hour of processing
Those are the asynchronous inference boundaries; real-time payloads stay below 6 MB and requests below 60 seconds.
5 / 21
-
Quick check
A team has an accumulated offline dataset, individual payloads reach 80 MB, and processing may take several days. No interactive response is needed. Which option fits?
AAsynchronous inference, the offline dataset mode whose jobs can last for several days
Asynchronous inference is request-oriented, and its requests must finish in under one hour.
BReal-time inference, because 80 MB stays inside its interactive payload boundary
Real-time payloads must stay below 6 MB, so an 80 MB record is far outside its limit.
CBatch transform: offline, payloads up to 100 MB, and jobs that can run for days
Right. All three requirements — offline dataset, 80 MB payload, multi-day duration — sit inside the batch transform boundaries.
7 / 21
-
Keep your progress in the app
That’s 3 of 10 quick checks. In the app they stay answered, and every lesson remembers where you left off.
-
Quick check
An application sends one 700 MB request, preprocessing may take 40 minutes, and the answer is needed sooner than an offline job would give it. Which option fits?
AServerless inference, which accepts up to 1 GB per request
Serverless payloads stop at 4 MB and its requests must finish in under 60 seconds, so 700 MB is out of range.
BAsynchronous inference: up to 1 GB per request and under one hour of processing
Right. Both constraints exceed the interactive limits yet stay inside the 1 GB payload and one-hour request boundaries.
CBatch transform, the interactive mode for a single long-running request
Batch transform is the offline mode over accumulated datasets, not an interactive path for one request.
9 / 21
-
Quick check
A prediction API receives 3 MB requests that finish in 20 seconds, but traffic arrives in short spurts separated by long idle gaps, and the team wants capacity to reach zero in between. Which option fits best?
AAsynchronous inference, since a request under 4 MB requires its one-hour timeout window
A 20-second request does not need an hour, and asynchronous inference is meant for inputs too large or slow for the interactive modes.
BReal-time inference, which drops to zero capacity whenever traffic goes idle
Real-time inference supports autoscaling but never scales to zero, so idle capacity keeps costing money.
CServerless inference, because the requests fit its limits and the traffic goes quiet
Right. Both 3 MB and 20 seconds sit inside the serverless boundaries, and idle periods between spurts are exactly its stated workload profile.
11 / 21
-
Quick check
Which set of payload boundaries is correct?
AReal-time under 6 MB, batch 100 MB, asynchronous 1 GB, serverless 4 MB
Right. Each option has its own ceiling, with asynchronous carrying the largest single request and serverless the smallest.
BReal-time up to 100 MB, batch up to 4 MB, asynchronous below 6 MB, and serverless up to 1 GB
These values are shuffled: an interactive real-time request cannot carry 100 MB, and serverless stops at 4 MB rather than 1 GB.
CReal-time up to 1 GB, batch below 6 MB, asynchronous up to 4 MB, and serverless as high as 100 MB
Real-time is the tightest interactive limit rather than the largest, and batch accepts far more than 6 MB.
13 / 21
-
Quick check
How do the documented request-duration boundaries compare?
AReal-time can run for days, serverless under an hour, and asynchronous and batch under 60 seconds
Real-time is the shortest of all, not the longest; days belong to batch transform.
BReal-time is under an hour, batch under 60 seconds, and asynchronous and serverless can run for days
Batch transform is the mode measured in days, and neither asynchronous nor serverless runs that long.
CReal-time and serverless under 60 seconds, asynchronous under an hour, batch for days
Right. The progression goes from short interactive calls, to longer asynchronous requests, to offline jobs that may last for days.
15 / 21
-
Quick check
Which pair of options can scale to zero?
AReal-time inference and batch transform
Real-time inference does not scale to zero, and for batch transform scaling is not applicable at all.
BAsynchronous and serverless inference modes
Right. Both asynchronous and serverless inference support scaling to zero, so idle periods cost nothing.
CReal-time inference and serverless inference
Serverless inference does scale to zero, but real-time inference keeps capacity running even when traffic stops.
17 / 21
-
Quick check
Which sequence of questions separates the four options most reliably?
AAsk about hardware first, then payload size, then whether the endpoint has a name
Hardware and endpoint naming do not separate the options; interaction pattern, input size, and duration do.
BAsk if the work is offline, then if one request is too large or slow, then if traffic is bursty
Right. Removing the offline case, then the oversized or slow request, then the bursty traffic leaves real-time inference for steady low-latency work.
CAsk whether traffic is bursty first, then choose batch transform for anything that exceeds 4 MB in one request
Batch transform is chosen because the work is offline, not because one request happens to exceed a serverless payload limit.
19 / 21
-
Quick check
Which summary of the four options is correct?
ABatch runs offline for days, real-time serves fast small requests without scaling to zero, asynchronous carries up to 1 GB, and serverless suits bursty traffic
Right. Each clause matches the documented profile of its option, including the one mode that cannot scale to zero.
BBatch is interactive, real-time scales to zero, asynchronous is limited to 4 MB, and serverless is the offline dataset option
Every clause is inverted: batch is offline, real-time cannot scale to zero, asynchronous accepts up to 1 GB, and serverless is interactive.
CBatch handles bursty traffic, real-time carries 1 GB inputs, asynchronous must finish in 60 seconds, and serverless runs for days
These limits belong to other options: 1 GB and the one-hour window are asynchronous, and only batch transform runs for days.
21 / 21
-
10 quick checks · then the test
In the app, finishing the quick checks opens this lesson’s 10-question test, and the ones you miss come back exactly when you’re about to forget them.
The whole course, on your phone
Lessons you can read, audio you can listen to on the way to work, and practice that remembers what you got wrong.