0
0
Azurecloud~20 mins

Function execution model in Azure - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Azure Function Execution Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
Azure Functions cold start behavior

What happens when an Azure Function app receives a request after being idle for a long time?

AThe function experiences a delay as the platform initializes the environment (cold start).
BThe function executes immediately with no delay.
CThe function request is rejected with an error due to inactivity.
DThe function runs on a dedicated VM that is always warm.
Attempts:
2 left
💡 Hint

Think about what happens when a serverless function has not been used recently.

Architecture
intermediate
2:00remaining
Scaling behavior of Azure Functions

How does Azure Functions scale when multiple events trigger the function simultaneously?

AAzure Functions rejects events if the current instance is busy.
BAzure Functions queues the events and processes them one by one on a single instance.
CAzure Functions requires manual scaling to handle multiple events.
DAzure Functions scales out automatically by creating multiple instances to handle concurrent events.
Attempts:
2 left
💡 Hint

Consider how serverless platforms handle load.

security
advanced
2:00remaining
Function app identity and access

Which method allows an Azure Function to securely access other Azure resources without storing credentials in code?

AEmbed credentials directly in the function code for quick access.
BStore credentials in environment variables inside the function code.
CUse Managed Identity assigned to the Function app to authenticate to Azure resources.
DUse anonymous access to Azure resources without authentication.
Attempts:
2 left
💡 Hint

Think about secure ways to authenticate without hardcoding secrets.

Configuration
advanced
2:00remaining
Timeout configuration in Azure Functions

What is the maximum execution timeout for an Azure Function running on the Consumption plan, and how can it be configured?

AMaximum timeout is 10 minutes, configured via <code>functionTimeout</code> in <code>host.json</code>.
BMaximum timeout is 30 seconds, configured in Azure Portal settings.
CMaximum timeout is unlimited and cannot be configured.
DMaximum timeout is 60 minutes, configured via environment variables.
Attempts:
2 left
💡 Hint

Check the official limits for Consumption plan functions.

Best Practice
expert
2:00remaining
Designing Azure Functions for high throughput and low latency

You need to design an Azure Function that processes thousands of events per second with minimal delay. Which approach best achieves this?

AUse Consumption plan with default settings and rely on automatic scaling only.
BUse Premium plan with pre-warmed instances and enable Always On to reduce cold starts.
CDeploy the function on a single dedicated VM to control resources manually.
DUse Consumption plan and increase the function timeout to handle longer processing.
Attempts:
2 left
💡 Hint

Consider how to reduce cold start delays and ensure capacity.