For IndividualsFor Educators
ExpertMinds LogoExpertMinds
ExpertMinds

Ace your certifications with Practice Exams and AI assistance.

  • Browse Exams
  • For Educators
  • Blog
  • Privacy Policy
  • Terms of Service
  • Cookie Policy
  • Support
  • AWS SAA Exam Prep
  • PMI PMP Exam Prep
  • CPA Exam Prep
  • GCP PCA Exam Prep

© 2026 TinyHive Labs. Company number 16262776.

    PracticeAzure Fundamentals (AZ-900)Azure Fundamentals AZ-900 Practice Exam 2Question 24
    Medium1 markMultiple Choice
    Domain 2.2: Azure Compute ServicesComputeServerlessAzure Functions

    AZ-900 · Question 24 · Domain 2.2: Azure Compute Services

    A developer needs to run a small piece of code in response to an event, such as a file being uploaded to storage. They want to pay only for the exact compute time the code runs. Which service should they use?

    Answer options:

    A.

    Azure Virtual Machines

    B.

    Azure App Service

    C.

    Azure Functions

    D.

    Azure Kubernetes Service (AKS)

    How to approach this question

    Look for keywords: 'small piece of code', 'event', 'pay only for compute time'.

    Full Answer

    C.Azure Functions✓ Correct
    Azure Functions
    Azure Functions is an event-driven, serverless compute service. It allows you to run code in response to events (like HTTP requests or storage triggers) and bills you only for the exact milliseconds your code executes.

    Common mistakes

    Choosing VMs, which would be massive overkill and cost much more for this scenario.
    Question 23All questionsQuestion 25

    Practice the full Azure Fundamentals AZ-900 Practice Exam 2

    60 questions · hints · full answers · grading

    Sign up freeTake the exam

    More questions from this exam

    Q01What is the primary definition of cloud computing?EasyQ02According to the shared responsibility model, which component is ALWAYS the responsibility of the...EasyQ03A company wants to transition from purchasing physical servers to a model where they only pay for...MediumQ04Which TWO of the following are primary benefits of using cloud services? (Select TWO)EasyQ05True or False: Moving to the cloud typically shifts IT spending from an Operational Expenditure (...Easy
    View all 60 questions →