Azure Functions interview questions and answers for cloud developers

Azure Functions interview questions check whether you can build event-driven code that scales and fails safely: picking the right trigger and bindings, choosing a hosting plan for cold start, timeouts and networking, handling retries and poison messages, and using Durable Functions when work spans many steps. Expect fundamentals on triggers and plans, intermediate questions on configuration, identity and scaling, and senior scenarios on duplicate processing, long-running work and orchestrations that break after a deploy.

By Published 8 min read

Who is asked Azure Functions questions

Backend developers on Microsoft stacks meet these questions most, often with C# and the .NET isolated worker, but Node.js, Python and Java roles on Azure ask them too. Cloud and integration engineers get more on hosting plans, networking and messaging. The interview usually mixes short concept checks with a small design: process uploaded files, react to orders on a queue, or run a nightly job, plus a debugging story about something that ran twice or not at all. The broader platform is on Azure interview questions, and if you are comparing clouds, AWS Lambda interview questions covers the same ideas on AWS.

  1. ConceptsTriggers, bindings, hosting plans, cold start and configuration.
  2. Write a functionAn HTTP or queue-triggered function, often reviewed for error handling and secrets.
  3. Design with messaging and Durable FunctionsFan-out work, approvals that wait days, long jobs behind an HTTP API.
  4. Production storiesDuplicates, poison messages, timeouts, throttled downstream services and how you found them in Application Insights.

Azure Functions fundamentals questions

Basics for first rounds and junior candidates
QuestionWhat it testsWhat a strong answer shows
What is a function app?Unit of deploymentThe container for one or more functions that share a hosting plan, runtime version, settings and scaling. Functions in one app scale together, so unrelated high-volume workloads often get their own app.
Trigger versus binding?Core modelA trigger starts the function and each function has exactly one. Input and output bindings connect to other services declaratively, so you do not write client code for common reads and writes.
Name common triggers.BreadthHTTP, timer, Storage queue, Blob, Service Bus, Event Hubs, Event Grid and Cosmos DB change feed.
What hosting options exist?PlansConsumption (pay per execution, scales to zero), Flex Consumption (scale to zero with options such as VNet integration and always-ready instances), Premium (pre-warmed instances, VNet, longer runs), Dedicated App Service plans, and Container Apps hosting.
What is a cold start?LatencyThe delay when a new instance must start and load your code before handling a request. It is worst on plans that scale to zero and with large dependencies; pre-warmed or always-ready instances reduce it.
What is the difference between host.json and local.settings.json?Configurationhost.json holds runtime behavior for the whole app (logging, extension settings like batch sizes, timeouts) and is deployed. local.settings.json holds app settings for local runs only and should not be committed.
How is a timer trigger scheduled?TimersWith an NCRONTAB expression that includes a seconds field, or a TimeSpan on some plans. The runtime uses a lock so one instance runs each occurrence.
What auth levels can an HTTP function have?Security basicsAnonymous, function and admin keys. Keys are shared secrets, not user identity; for real users put Entra ID authentication or API Management in front.
Is there a time limit on a function?LimitsYes, a configurable timeout whose maximum depends on the plan, and HTTP requests are also cut off by the front end after a few minutes. Long work belongs in a queue or a Durable orchestration.
How do you see what a function did in production?ObservabilityApplication Insights: requests, dependencies, traces and exceptions correlated by operation ID, with sampling settings that can hide rare events if set too aggressively.
Basics for first rounds and junior candidates. Scroll sideways on a small screen.

Intermediate questions: code, identity and scaling

import { app, InvocationContext, output } from "@azure/functions";

const receipt = output.storageBlob({
  path: "receipts/{orderId}.json",
  connection: "ReceiptStorage",
});

app.storageQueue("issueReceipt", {
  queueName: "orders-paid",
  connection: "OrdersQueue",
  extraOutputs: [receipt],
  handler: async (message: { orderId: string; total: number }, context: InvocationContext) => {
    context.log(`issuing receipt for ${message.orderId}`);
    context.extraOutputs.set(receipt, { ...message, issuedAt: new Date().toISOString() });
  },
});
A queue-triggered function in the Node.js v4 programming model with a Blob output binding. Shown for reading; it needs the Functions host to run.
  • Why does the binding path use `{orderId}`? Binding expressions pull values from the trigger payload, so each receipt lands at a predictable name. Writing to the same name twice overwrites rather than duplicates, which helps idempotency.
  • In-process versus isolated worker for .NET? The isolated worker runs your code in its own process, so you choose the .NET version, use normal dependency injection and middleware, and avoid assembly conflicts with the host. Microsoft has announced the end of support for the in-process model, so new work targets isolated.
  • How should a function reach a storage account or database without secrets in settings? A managed identity with identity-based connections, and role assignments scoped to the resource. Where a secret is unavoidable, a Key Vault reference in app settings.
  • What happens when a Storage queue message keeps failing? The runtime retries it up to a maximum dequeue count and then moves it to a poison queue named after the original. Alert on the poison queue instead of discovering it weeks later.
  • How does a Service Bus trigger settle messages? It receives in peek-lock mode and completes the message when the function succeeds, abandons it on failure, and Service Bus dead-letters it after the delivery count limit.
  • What controls how many messages run at once? Extension settings in host.json, such as queue batch size or Service Bus concurrent calls, multiplied by the number of instances the scale controller adds. Protect a fragile downstream API by capping both.
  • How does Event Hubs processing differ from queues? Each partition is read in order by one instance at a time, and the function checkpoints its position. A failed batch is not retried per message unless you add retry policies, so handle errors inside the batch.
  • How do you test functions locally? Core Tools runs the host on your machine, Azurite emulates storage, and the handler logic lives in plain functions you unit test without the host.

Durable Functions questions

Orchestration questions that separate candidates
QuestionWhat it testsWhat a strong answer shows
What are orchestrator, activity, entity and client functions?Building blocksOrchestrators coordinate steps, activities do the actual work, entities hold small pieces of state addressed by key, and client functions start and query orchestrations.
Why must orchestrator code be deterministic?Replay modelThe framework rebuilds an orchestrator's state by replaying its code against the recorded history. Random numbers, the wall clock, GUIDs or direct I/O give different values on replay; use the context's current time and IDs, and do I/O in activities.
What is fan-out/fan-in?Parallel workStart many activities without awaiting each one, then wait for all of them and aggregate. Cap the batch size so you do not flood a downstream system.
How do you wait days for a human approval?Long waitsWait for an external event with a durable timer as a timeout; the orchestrator unloads while waiting and costs nothing until the event or timer fires.
How does the async HTTP API pattern work?Long requestsThe starter returns 202 with status URLs; the client polls while the orchestration runs. It avoids the HTTP timeout entirely.
What is ContinueAsNew for?Eternal orchestrationsIt restarts an orchestration with fresh history, so a monitoring loop that runs forever does not grow an endless history.
Where is the state kept?Storage providerIn a storage backend, by default Azure Storage queues and tables, with other supported backends you can configure. History size affects replay time.
Orchestration questions that separate candidates. Scroll sideways on a small screen.
// A toy replay engine. The orchestrator is a generator that yields activity
// calls; results already in history are fed back instead of re-running work.
let clock = 1_000;
const fakeNow = () => (clock += 250); // stands in for Date.now()

function* orderOrchestrator(ctx) {
  const stamp = ctx.currentUtcDateTime; // from history: same on every replay
  const wall = fakeNow();               // wall clock: differs on every replay
  console.log(`  replay sees stamp=${stamp} wall=${wall}`);
  const reserved = yield { activity: "reserveStock", input: "order-42" };
  const charged = yield { activity: "chargeCard", input: reserved };
  return { charged };
}

function replay(orchestrator, history) {
  const gen = orchestrator({ currentUtcDateTime: history.startedAt });
  let step = gen.next();
  let i = 0;
  while (!step.done) {
    if (i === history.results.length) return { schedule: step.value.activity };
    step = gen.next(history.results[i++]);
  }
  return { output: step.value };
}

const history = { startedAt: "2026-12-01T09:00:00Z", results: [] };
for (const result of ["stock-ok", "paid", null]) {
  console.log(replay(orderOrchestrator, history));
  if (result) history.results.push(result);
}

// Output:
//   replay sees stamp=2026-12-01T09:00:00Z wall=1250
// { schedule: 'reserveStock' }
//   replay sees stamp=2026-12-01T09:00:00Z wall=1500
// { schedule: 'chargeCard' }
//   replay sees stamp=2026-12-01T09:00:00Z wall=1750
// { output: { charged: 'paid' } }
A toy replay engine showing why orchestrators must be deterministic: the timestamp from history is stable, the wall clock is not. Runs with plain Node.js.

Walking an interviewer through this shows you understand that the orchestrator body runs several times while each activity runs once per scheduled call. Any branch based on the wall clock could take a different path on replay, which is how non-determinism errors appear in real apps.

Senior and scenario questions

Production scenarios
ScenarioLikely causeWhat a strong answer covers
Customers were charged twice for one order.At-least-once deliveryQueues, Event Grid and retries can deliver twice. Use an idempotency key per order, a conditional write or unique constraint in the store, and a payment API call that accepts the same key.
An HTTP function times out on large report requests.Synchronous long workReturn 202 and hand the work to a queue or a Durable orchestration, with a status endpoint or a callback when the report is ready.
First requests in the morning take several seconds.Cold startThe app scaled to zero. Trim dependencies and startup work, then consider Premium pre-warmed instances or Flex Consumption always-ready instances if the latency matters.
A downstream API returns 429 when traffic spikes.Unbounded scale-outCap concurrency per instance and the maximum instance count, put a queue in front, and add retries with backoff that respect Retry-After.
After a deploy, running orchestrations fail with non-determinism errors.Changed orchestrator codeIn-flight instances replay old history against new code. Version orchestrations (new name or version), drain old instances before removing code, or use the platform's versioning support.
The function must call a database that only accepts private traffic.NetworkingVNet integration on a plan that supports it, private endpoints for the database, and DNS that resolves to private addresses. Consumption on its own cannot reach private-only resources.
Nothing happens when files land in Blob storage.Trigger choiceCheck the trigger's connection setting and identity roles. For high-volume or low-latency needs, prefer the Event Grid-based blob trigger over polling.
Production scenarios. Scroll sideways on a small screen.
  • When would you not use Azure Functions? Steady high-throughput services that never idle, work that needs long-lived connections, or code that needs fine control over the runtime; a container app or App Service often fits better.
  • How do you deploy safely? Run from a package, use deployment slots where the plan allows, warm the staging slot, swap, and keep slot-specific settings marked as sticky.
  • How would you automate a desktop app with no API? Functions are not the tool; that is robotic process automation territory, covered in Blue Prism interview questions. Functions can still trigger or receive results from such bots through queues.

Fictional example

Answering "Design image processing for uploads"
Interviewer
Users upload photos to Blob storage. We need three thumbnail sizes and a moderation check before the photo is shown.
Candidate
An Event Grid subscription on the container triggers a starter function, which begins a Durable orchestration keyed by the blob name so a duplicate event finds the existing instance instead of starting a second one. The orchestration fans out three resize activities and the moderation call, waits for all four, then marks the photo visible in the database or flags it for review. Activities use managed identity to read and write storage. I would cap the fan-out concurrency so a bulk upload does not overwhelm the moderation API, and watch failures in Application Insights with an alert on orchestrations that end in a failed state.

Azure Functions practice plan

  • Day 1: write a one-page table of hosting plans with scale to zero, VNet support, cold start and maximum run time, filled in from the current docs.
  • Day 2: build an HTTP function and a queue-triggered function locally with Core Tools and Azurite; force failures and find the poison queue.
  • Day 3: replace a connection string with a managed identity and explain each role assignment out loud.
  • Day 4: write a small Durable orchestration with fan-out/fan-in and an approval step, then add a non-deterministic call on purpose and read the error.
  • Days 5 to 7: rehearse the scenario table: duplicates, timeouts, cold start, 429s and orchestration versioning, two minutes each.

If the role sits in a data team, Azure Databricks interview questions covers the lakehouse work that functions often trigger or feed.

Serverless design answers tend to wander between triggers, retries and identity. Natively, an AI interview assistant for Mac and Windows, transcribes a mock cloud developer round on your computer so you can review whether you mentioned idempotency before you were asked. In practice it can read a function or an Application Insights error from a screenshot and help with the code, and with Pro or the free trial it draws on the résumé and job description you add. The transcript and notes are saved afterward.

Questions people ask

What Azure Functions questions are asked in interviews?

Triggers versus bindings, hosting plans and cold starts, host.json settings, the .NET isolated worker model, managed identity, poison messages and retries, Durable Functions patterns, and how you handle duplicates and long-running work.

Why must Durable Functions orchestrator code be deterministic?

The orchestrator is replayed against its recorded history to rebuild state. Wall-clock time, random values and direct I/O would differ on replay, so use the context's time and do I/O in activity functions.

How do you handle long-running work in Azure Functions?

Do not keep an HTTP request open. Return 202 and hand the work to a queue or a Durable orchestration with a status endpoint, and pick a plan whose timeout fits each step.

What is the difference between Azure Functions and AWS Lambda questions?

The ideas are similar: triggers, scaling, cold starts and idempotency. Azure questions add bindings, hosting plans, the isolated worker model and Durable Functions.

Where to go next

Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.

Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.

Keep reading

Put it on your own machine.

A live-conversation assistant that runs locally. Your conversations stay on your machine.

macOS 12+ · Windows 10/11

© 2026 Natively AI Private Limited

Source-available under the Natively Personal Use Source License v1.0 · IP geolocation by DB-IP