Question

Difficulty: EasyAzure Serverless Compute (Functions and Logic Apps)

A retail company wants to deploy a custom C# code block to calculate order discounts. The code must execute automatically in response to an API call, and the company wants to avoid managing or patching any underlying server infrastructure. Which Azure service should the company use?

  1. A
    Azure Logic Apps
  2. B
    Azure Virtual Machines
  3. Azure FunctionsAnswer
  4. D
    Microsoft 365

Answer

Azure Functions
Azure Functions is the correct service because it is a serverless, code-first compute service that automatically runs custom code in response to events (such as an API call) without requiring the user to manage servers.

Step-by-Step Solution

1
Analyze the requirements
The solution requires running custom developer-written code (C#) in response to an event (an API call) while avoiding all server management.
This establishes the need for a code-first, event-driven serverless compute service.
2
Evaluate the available services
Azure Functions allows running custom code blocks in an event-driven, serverless environment where Microsoft manages the underlying OS and servers.
This matches all criteria of the scenario.

Key Concept

Azure Serverless Compute (Functions)
Estimated Time:45s
Rate this question