AZ-204 Develop Azure compute solutions Practice Question
An Azure Functions image resize worker must run for up to 30 minutes and uses a VNet integration feature. The team wants serverless scaling without managing virtual machines. Which hosting plan should be used?
⚠ Common exam trap
Candidates often assume the Consumption plan supports VNet integration for all triggers and has a flexible timeout, but in reality, VNet integration is limited to Premium and Dedicated plans, and Consumption has a hard 10-minute timeout.
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
✓
Premium plan
The Premium plan is correct because it supports VNet integration, allows execution for up to 30 minutes (unlimited execution duration), and provides serverless scaling without managing virtual machines. The Consumption plan has a 10-minute timeout and lacks VNet integration for all triggers, while the Premium plan offers these features with pre-warmed instances and dedicated compute resources.
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 Free tier
Why it's wrong here
The App Service Free tier provides extremely limited compute resources, shared infrastructure, and strict daily CPU/memory quotas, making it unsuitable for any production workload, especially one requiring consistent performance for tasks up to 30 minutes. It lacks essential features like VNet integration for secure resource access and offers no guaranteed uptime or performance, leading to frequent timeouts and poor reliability for an image resize worker.
- ✓
Premium plan
Why this is correct
The Azure Functions Premium plan is the correct choice as it offers robust support for longer execution durations, extending function timeouts up to 60 minutes by default, and configurable even longer. It provides pre-warmed instances to eliminate cold starts, ensures consistent performance, and includes VNet integration for secure access to other Azure resources, making it ideal for a 30-minute image resize worker.
- ✗
Azure Batch pool
Why it's wrong here
Azure Batch is a specialized service designed for large-scale parallel and high-performance computing tasks, not a direct hosting plan for Azure Functions runtime environments. While Azure Functions can trigger Batch jobs, Batch itself manages a pool of virtual machines to execute compute-intensive workloads, which is fundamentally different from hosting an event-driven serverless function directly. The question specifically asks for an Azure Functions hosting plan.
- ✗
Consumption plan
Why it's wrong here
The Azure Functions Consumption plan has a default timeout of 5 minutes, configurable up to a maximum of 10 minutes, which is insufficient for a function that "must run for up to 30 minutes." Additionally, while it offers some networking capabilities, its VNet integration is primarily for outbound traffic and has limitations compared to the Premium plan, making it less suitable for tasks requiring extended execution and robust network access.
Quick reference
Cloud Service Model Comparison
| Model | You Manage | Provider Manages | Examples |
|---|---|---|---|
| IaaS | OS, runtime, apps, data | Hardware, hypervisor, networking | EC2, Azure VMs, GCP Compute Engine |
| PaaS | Apps and data | OS, runtime, middleware, hardware | Elastic Beanstalk, Azure App Service |
| SaaS | Data and settings only | Everything else | Microsoft 365, Salesforce, Workday |
| FaaS / Serverless | Function code only | Infra, scaling, runtime | Lambda, Azure Functions, Cloud Run |
| CaaS | Containers and apps | Kubernetes, OS, hardware | EKS, AKS, GKE |
Go deeper
Related to this question
Learn chapter
Azure Functions Development
Key term
Durable Functions
Durable Functions is an extension of Azure Functions that lets you write stateful workflows in code, managing complex sequences of tasks, retries, and delays automatically.
Key term
Azure Functions Bindings
Azure Functions Bindings are declarative connections that link your serverless function code to Azure services or external resources, handling input and output data automatically without writing extra networking or authentication code.
About these practice questions
This AZ-204 question is part of Courseiva's 881-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
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.