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 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.

Practice the full Azure Fundamentals AZ-900 Practice Exam 2

60 questions · hints · full answers · grading

More questions from this exam