Course menuMLA-C02

Exams / MLA-C02 / Real-time, serverless, async and batch inference / Question 3

MLA-C02 practice question: Real-time, serverless, async and batch inference (3 of 3)

Deployment and Orchestration of ML and AI Workflows A free question from our original MLA-C02 practice exam. Try it, then open the answer to see why each option is right or wrong.

Last verified against current AWS documentation ·How we write our questions

A logistics broker scores about 40 million shipments every night to predict which ones will miss their delivery window. Results are used the next morning in a planning report, and nobody needs an answer during the day.

The team wants the scores in Amazon S3, with no endpoint running between the nightly runs.

Which approach meets these requirements?

Choose one answer.

  1. A. A real-time endpoint that runs all day, with the scoring service calling it once for each shipment in the nightly batch.
  2. B. A serverless inference endpoint that the nightly job calls for each shipment, one request at a time.
  3. C. A multi-model endpoint that loads the shipment model from S3 when a request arrives, with the nightly job sending one request per shipment.
  4. D. A batch transform job that reads the shipment files from S3, scores them with the model, and writes the predictions back to S3.
Show the answer and explanation

Answer: D

  • A. Wrong: A running endpoint is paid for all day, and calling it once per shipment is slower than a bulk job designed for offline scoring. The stem asks for no endpoint between runs.
  • B. Wrong: Calling a serverless endpoint once for each of 40 million shipments is slow and expensive, and it is a request-time pattern. Offline scoring of a dataset is what batch transform is built for.
  • C. Wrong: A multi-model endpoint is a real-time endpoint for many models, and it runs continuously. It does not remove the need for an always-on serving layer.
  • D. Right: Correct. Batch transform scores a large dataset offline, starts and stops its own compute, and writes results to S3. No endpoint needs to stay running between the nightly runs. Learn more: Batch transform for inference with SageMaker AI (opens in a new tab)

Explanation

Batch transform scores a large dataset offline, then releases its compute and writes results to S3. Real-time and serverless endpoints serve requests one at a time, and a multi-model endpoint still runs continuously.

Study

Keep practicing

Answer questions with a score at the end, or practice just this topic with the explanation after each one. No sign-up needed.

Want more on Real-time, serverless, async and batch inference? The 5 full-length practice sets have 8 more Real-time, serverless, async and batch inference questions, 325 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets