Home › Studies › AI-200 › Messaging & Functions › Azure Functions

Azure Functions

Triggers and bindings · HTTP, timer and queue triggers · Python model · hosting plans · deployment and slots

By the tools4free.dev team · Last reviewed November 13, 2026

Practice questions for this topic →

Triggers and bindings

TypeTriggerInputOutput
Blob StorageYesYesYes
Azure Cosmos DBYesYesYes
Event GridYes-Yes
HTTP and webhooksYes-Yes
Queue StorageYes-Yes
Service BusYes-Yes
TimerYes--
Table Storage-YesYes
SendGrid--Yes

The Azure Cosmos DB trigger reads the change feed. It sees inserts and updates. The change feed doesn't include updates from deletions.

HTTP and timer triggers

authLevelWhat the caller needs
anonymousNo access key is required.
functionA function-specific key is required. This is the default when no level is set.
adminThe master key is required.

Queue and Service Bus triggers

Python model and connections

Python modelHow you define triggers and bindingsUse
2.xDecorators in function_app.py or a blueprint fileRecommended for new apps
1.xA separate function.json per functionLegacy apps

Hosting plans

PlanTimeout default / maxSlotsNotes
Flex Consumption30 min / unboundedNot supportedLinux only. Up to 1,000 on-demand instances per function group. Always ready instances. Use for new serverless apps.
Premium30 min / unbounded3Always ready instances avoid cold starts by keeping instances warm. Linux and Windows. Containers on Linux.
Dedicated30 min / unbounded (Always On)1-20App Service plan rates. The host can run continuously on a prescribed number of instances.
Container Apps30 min / unboundedNot applicable (use revisions)Linux containers only.
Consumption (legacy)5 min / 10 min2Legacy plan. Windows is GA, Linux is retired.

Linux Consumption: apps still on the end-of-life v3 runtime stop running after September 30, 2026. Hosting on Linux in a Consumption plan retires on 30 September 2028. Migrate to Flex Consumption.

Deployment

TechnologyFlexConsumptionPremiumDedicatedContainer Apps
Flex Consumption package deploymentYesNoNoNoNo
ZIP deploymentNoYesYesYesNo
External package URLNoYesYesYesNo
Container imageNoLinux onlyLinux onlyLinux onlyYes
Local Git, FTPSNoWindows onlyYesYesNo

CLI and PowerShell

TaskAzure CLIPowerShell
Start the local runtimefunc start-
Publish a project with Core Toolsfunc azure functionapp publish <APP_NAME>-
Zip deploy with Azure CLIaz functionapp deployment source config-zip-
Create an app from a custom containeraz functionapp create --image <container>-
Sync triggers by calling the management APIaz rest --method post --url https://management.azure.com/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP>/providers/Microsoft.Web/sites/<APP_NAME>/syncfunctiontriggers?api-version=2016-08-01-
Update an app created before August 1, 2019 so remote build worksaz functionapp update --resource-group <RESOURCE_GROUP_NAME> --name <APP_NAME>-
HTTP trigger, anonymous (Python v2)-@app.route(route="hello", auth_level=func.AuthLevel.ANONYMOUS)
Queue output binding (Python v2)-@app.queue_output(arg_name="msg", queue_name="outqueue", connection="AzureWebJobsStorage")
Read an app setting in Python-setting_value = os.getenv("myAppSetting", "default_value")

Exam Tips

Tick each tip once you can answer it without looking.

“A function must start from two sources, such as a timer and a queue” → Two functions, because a function has exactly one trigger. Trap: Adding a second trigger or an input binding to one function doesn't work. Bindings don't start a function.

“New Python app: where are triggers declared?” → Decorators in function_app.py (programming model 2.x). Trap: function.json per function is the 1.x model for legacy apps.

“9:30 AM on weekdays” → 0 30 9 * * 1-5. Trap: NCRONTAB has seconds first. Dropping the last field gives every day.

“HTTP key scoped to one function, not the master key” → authLevel function (the default). Trap: anonymous needs no key. admin needs the master key.

“HTTP function works without a key locally” → Authorization is disabled locally and enforced after publishing. Trap: Don't assume the local behavior holds in Azure.

“HTTP request that runs 4 minutes” → The caller gets an HTTP 502 after 230 seconds; use the Durable async pattern or return at once. Trap: A longer plan timeout doesn't lift the 230-second HTTP limit.

“New serverless Python app with VNet integration” → Flex Consumption plan. Trap: Consumption is legacy. Premium is for continuous or near-continuous apps.

“Code deployment to Flex Consumption” → Package deployment only (blob deployment container). Trap: ZIP, Local Git and container image aren't supported on Flex.

“Deployed by external package URL but new function doesn't fire” → Sync triggers: restart the app or call syncfunctiontriggers. Trap: A remote build setting doesn't sync triggers.

“Python built on Windows, deployed to Linux, wrong libraries” → Remote build: ENABLE_ORYX_BUILD and SCM_DO_BUILD_DURING_DEPLOYMENT set to true. Trap: Don't add WEBSITE_RUN_FROM_PACKAGE. The portal editor can't install packages.

“Queue message keeps failing” → Five tries including the first, then the -poison queue. Trap: The default visibility timeout is zero, not 10 minutes (10 minutes only after a host crash).

“React to deleted Cosmos DB documents” → The Cosmos DB trigger can't. The change feed has inserts and updates only. Trap: Deletions don't appear in the change feed.

“Host storage without secrets” → AzureWebJobsStorage__accountName and __credential=managedidentity, plus Storage Blob Data Owner. Trap: The app can't start without AzureWebJobsStorage. Don't use a shared secret when identity works.

“Zero-downtime on Flex or Container Apps” → Flex: rolling updates. Container Apps: revisions. Trap: Flex and Container Apps have no deployment slots. Swaps on other plans don't guarantee zero downtime.

“Timer app scaled to many instances” → One instance runs the timer, coordinated through blob storage. Trap: Each instance doesn't run its own copy. TimeSpan schedules need an App Service plan.

Sources

Checked against Microsoft Learn on November 13, 2026.

← Service Bus & Event GridMessaging & Functions overview →