AZ-200 Azure Functions & Serverless Computing 1 — Questions and Answers
Question 1: Which Azure Functions hosting plan automatically scales to zero when idle and charges only for execution time?
- Premium Plan
- Dedicated (App Service) Plan
- Consumption Plan (Correct answer)
- Isolated Plan
Correct answer: Consumption Plan
The Consumption Plan scales to zero between invocations and bills only per execution, making it the true serverless option.
Question 2: What is the maximum default timeout for an Azure Function running on the Consumption Plan?
- 5 minutes
- 10 minutes (Correct answer)
- 20 minutes
- 30 minutes
Correct answer: 10 minutes
On the Consumption Plan the default timeout is 5 minutes and the maximum allowed is 10 minutes.
Question 3: Which trigger type allows an Azure Function to respond to HTTP requests?
- Queue trigger
- Timer trigger
- HTTP trigger (Correct answer)
- Event Grid trigger
Correct answer: HTTP trigger
The HTTP trigger binds the function to an HTTP endpoint so it can respond to GET, POST, and other HTTP methods.
Question 4: In Azure Durable Functions, which function type orchestrates the execution of other functions?
- Activity function
- Orchestrator function (Correct answer)
- Entity function
- Client function
Correct answer: Orchestrator function
The Orchestrator function defines the workflow logic, calling Activity functions and managing their sequencing and state.
Question 5: Which binding direction is used when an Azure Function writes output to an Azure Queue?
- Input binding
- Trigger binding
- Output binding (Correct answer)
- Bidirectional binding
Correct answer: Output binding
Output bindings allow a function to write data to an external service such as Azure Queue Storage without writing SDK code.
Question 6: What file is used to configure triggers and bindings for an Azure Function when not using attribute-based programming?
- host.json
- local.settings.json
- function.json (Correct answer)
- appsettings.json
Correct answer: function.json
function.json declares the trigger, input bindings, and output bindings for a single function in non-.NET scripting languages.
Question 7: Which Durable Functions pattern is best suited for running multiple independent tasks in parallel and aggregating their results?
- Function chaining
- Fan-out/fan-in (Correct answer)
- Async HTTP APIs
- Monitor
Correct answer: Fan-out/fan-in
The fan-out/fan-in pattern starts multiple activity functions simultaneously and waits for all of them to complete before aggregating results.
Which Azure Functions hosting plan automatically scales to zero when idle and charges only for execution time?