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? The design must avoid adding custom operational scripts.
⚠ Common exam trap
It's easy for candidates to assume the Consumption plan is the only serverless option, forgetting that the Premium plan also provides serverless scaling with additional features like VNet integration and extended execution duration.
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 durations up to 30 minutes (unlike the Consumption plan's 10-minute default), and provides serverless scaling without requiring you to manage virtual machines or add custom operational scripts. It is the only plan that combines these capabilities for a long-running, VNet-connected function.
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 lacks essential production features such as custom domains, SSL certificates, and, critically, virtual network integration. It is designed solely for basic development and testing purposes, making it entirely unsuitable for a production-grade image resize worker that likely requires secure network access and reliable performance.
- ✓
Premium plan
Why this is correct
The Azure Functions Premium plan is specifically engineered for production workloads requiring enhanced capabilities, including robust virtual network integration for secure access to resources. It supports significantly longer execution durations, with a default timeout of 60 minutes configurable to unlimited, and utilizes pre-warmed instances to eliminate cold starts, ensuring consistent low-latency performance for tasks like image resizing.
- ✗
Azure Batch pool
Why it's wrong here
Azure Batch is a distinct service designed for large-scale parallel and high-performance computing (HPC) jobs, managing a pool of virtual machines to execute tasks. It is not a native hosting plan for Azure Functions, which are event-driven, serverless compute units. While image processing can be a batch job, integrating Azure Functions directly into an Azure Batch pool is not a standard or supported architectural pattern for deploying serverless functions.
- ✗
Consumption plan
Why it's wrong here
The Azure Functions Consumption plan operates on a pay-per-execution model and is ideal for short-lived, event-driven tasks due to its strict execution timeout limits, typically 5 minutes by default and a maximum of 10 minutes. This duration is insufficient for an image resize worker that might run for "up to 30 2" (implying 30 minutes). Furthermore, its networking capabilities are more limited compared to the Premium plan, lacking direct VNet integration for secure private 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
Courseiva writes every AZ-204 question from scratch — 881 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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.