Question 584 of 997
Develop Azure compute solutionseasyMultiple ChoiceObjective-mapped

Quick Answer

The Consumption Plan is the correct choice because it provides automatic scaling for Azure Functions based on demand, such as an Azure Storage queue length growing, and bills only for execution time and resources consumed per second. This plan leverages the Azure Functions host to monitor trigger events and dynamically add or remove instances, ensuring that idle functions incur no cost—a perfect fit for event-driven workloads like order processing. On the AZ-204 exam, this question tests your understanding of hosting plan trade-offs, often appearing alongside scenarios that contrast the Consumption Plan with Premium or Dedicated plans; a common trap is confusing the Premium Plan’s always-ready instances with the Consumption Plan’s true pay-per-execution model. Remember the memory tip: “Consume only when you compute”—if the function isn’t running, you aren’t paying.

AZ-204 Develop Azure compute solutions Practice Question

This AZ-204 practice question tests your understanding of develop azure compute solutions. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A company deploys an Azure Function app that processes orders. The function needs to scale out automatically when the queue length grows and be billed only for execution time. Which hosting plan should you use?

Question 1easymultiple choice
Full question →

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Consumption Plan

The Consumption Plan is correct because it automatically scales out the function app based on the length of the Azure Storage queue trigger, and you are billed only for the execution time (per-second billing) and resources consumed. This plan is ideal for event-driven workloads like order processing, where scaling is demand-driven and idle time incurs no cost.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • App Service Plan

    Why it's wrong here

    App Service Plan requires a fixed pricing tier and manual scaling; it does not offer pay-per-execution.

  • Consumption Plan

    Why this is correct

    Consumption Plan scales automatically based on demand and charges only for execution time (per-second billing).

    Related concept

    Read the scenario before looking for a memorised answer.

  • Premium Plan

    Why it's wrong here

    Premium Plan provides always-ready instances and VNET integration, but it charges per instance regardless of usage.

  • Dedicated Plan

    Why it's wrong here

    Dedicated Plan is used for running functions on dedicated VMs or App Service plans with fixed costs.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often confuse the Premium Plan's pre-warmed instances and VNET support with the Consumption Plan's true pay-per-execution model, mistakenly thinking Premium is required for auto-scaling, when in fact the Consumption Plan handles queue-length-based scaling natively and is the only plan with pure execution-time billing.

Detailed technical explanation

How to think about this question

Under the hood, the Consumption Plan uses the Azure Functions Scale Controller to monitor the queue length via Azure Storage metrics (e.g., ApproximateMessageCount) and dynamically adds or removes function instances, with a maximum of 200 instances by default. Billing is based on the number of executions, execution time (rounded up to the nearest 100 ms), and memory consumption (GB-seconds), making it cost-effective for sporadic or variable workloads. A subtle behavior is that cold starts can occur when scaling from zero, which may add latency for the first request after a period of inactivity.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A startup's cloud architect reviews their monthly bill and notices costs are higher than expected for a long-running batch job. Switching from on-demand instances to Reserved Instances — or using Spot/Preemptible VMs — can reduce compute costs by up to 72 %. Questions like this test whether you understand the tradeoffs between commitment, flexibility, and cost across cloud pricing models.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related AZ-204 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free AZ-204 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this AZ-204 question test?

Develop Azure compute solutions — This question tests Develop Azure compute solutions — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Consumption Plan — The Consumption Plan is correct because it automatically scales out the function app based on the length of the Azure Storage queue trigger, and you are billed only for the execution time (per-second billing) and resources consumed. This plan is ideal for event-driven workloads like order processing, where scaling is demand-driven and idle time incurs no cost.

What should I do if I get this AZ-204 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This AZ-204 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-204 exam.