Easy1 markMultiple Choice
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?
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
Q01Fabrikam Inc. is a global financial services company with 200 Azure subscriptions managed via a c...HardQ02A healthcare organization has 500 on-premises Windows Server VMs and 300 Azure VMs. They are impl...HardQ03You are designing a security monitoring solution using Microsoft Sentinel.
The compliance depar...EasyQ04Your company has a microservices application deployed across multiple Azure App Service instances...MediumQ05A defense contractor is migrating to Microsoft 365 and Azure. They have a strict security policy ...Hard
Expert