Easy1 markMultiple Choice
Domain 4.1: Compute SolutionsDomain 4Azure FunctionsServerlessCost Optimization

AZ-305 · Question 41 · Domain 4.1: Compute Solutions

You are designing a serverless architecture using Azure Functions.

The function will be triggered by messages in an Azure Service Bus queue. The workload is highly unpredictable; it may process zero messages for days, and then suddenly need to process 10,000 messages in a few minutes.

Cost optimization is a primary concern. You want to pay ONLY when the function is actively executing code.

Which hosting plan should you choose?

Answer options:

A.

Premium plan

B.

Dedicated (App Service) plan

C.

Consumption plan

D.

Azure Container Apps

How to approach this question

Match 'pay ONLY when executing' and 'unpredictable workload' to the true serverless billing model.

Full Answer

C.Consumption plan✓ Correct
The Azure Functions Consumption plan is the true serverless hosting option. It scales automatically based on the number of incoming events (like Service Bus messages). Crucially, it scales to zero when there is no traffic, meaning you incur absolutely no compute charges when the function is idle. Premium and Dedicated plans incur continuous costs.

Common mistakes

Choosing Premium plan to handle the sudden spike. While Premium handles spikes well (no cold starts), it violates the strict cost requirement to pay ONLY when executing.

Practice the full Azure Solutions Architect Expert AZ-305 Practice Exam 2

55 questions · hints · full answers · grading

More questions from this exam