Guide-linked quiz · Medium Level

Modal Labs Quiz

Review Modal’s Python-first serverless execution, autoscaling, scheduled and batch jobs, per-second compute, and isolated sandboxes.

Related guide pathsModal Labs
Question 1 of 8

How do developers typically run code on Modal?

Preview every question8 questions

Answers and explanations appear as you take the quiz.

  1. How do developers typically run code on Modal?
    • By adding a decorator to a Python function
    • By writing assembly language
    • By mailing in a USB drive
    • Only through a drag-and-drop UI
  2. What well-known serverless problem is Modal especially engineered to solve?
    • Email spam
    • Slow cold starts
    • Screen resolution
    • Keyboard latency
  3. How does Modal bill for compute?
    • A flat yearly fee only
    • Per email sent
    • Per-second for actual compute used
    • Per file stored forever
  4. Who co-founded Modal and is known for earlier open-source tools like Luigi and Annoy?
    • Linus Torvalds
    • Guido van Rossum
    • Satya Nadella
    • Erik Bernhardsson
  5. What does 'scale to zero' mean on Modal?
    • Shutting down all containers when there's no traffic, so you stop paying
    • Deleting your account
    • Running with no internet
    • Reducing model accuracy to zero
  6. Which workload is Modal commonly used for?
    • Manufacturing physical chips
    • Model inference endpoints and batch jobs
    • Running a coffee shop
    • Printing newspapers
  7. How can Modal run batch work across thousands of files?
    • Run every file sequentially on a single local CPU
    • Convert each file into a text prompt
    • Fan out the workload in parallel across many containers
    • Send the files to a browser extension
  8. How can Modal Sandboxes help an agent that must execute untrusted generated code?
    • Add the code to the base model’s training set
    • Convert the code into an image caption
    • Guarantee the code cannot access any resources
    • Run the code in an isolated container environment

Keep testing yourself

More quizzes picked for your level.

View all quizzes