0
0
Azurecloud~20 mins

Function App creation in Azure - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Azure Function App Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Architecture
intermediate
2:00remaining
Choosing the right hosting plan for an Azure Function App

You want to deploy an Azure Function App that must scale automatically based on demand and you want to minimize costs when idle. Which hosting plan should you choose?

AConsumption Plan that scales automatically and charges per execution
BDedicated VM hosting with manual scaling
CPremium Plan with pre-warmed instances and fixed cost
DApp Service Plan with fixed VM size and manual scaling
Attempts:
2 left
💡 Hint

Think about a plan that charges only when your function runs and can scale automatically.

Configuration
intermediate
2:00remaining
Configuring environment variables for an Azure Function App

You want to securely store a database connection string for your Azure Function App. Where should you store this value to follow best practices?

AIn a plain text file uploaded with the function code
BDirectly in the function code as a constant string
CHardcoded in the function.json file
DIn the Application Settings of the Function App in Azure Portal
Attempts:
2 left
💡 Hint

Consider where Azure recommends storing secrets and configuration values for apps.

service_behavior
advanced
2:00remaining
Understanding cold start behavior in Azure Function Apps

You notice your Azure Function App takes longer to respond after being idle for some time. What causes this delay?

AThe function app has a syntax error causing slow execution
BThe function app is experiencing a cold start due to the Consumption Plan scaling down to zero instances
CThe function app is running on a Premium Plan with pre-warmed instances
DThe function app is deployed in a region with high latency
Attempts:
2 left
💡 Hint

Think about what happens when a function app is not running and a new request arrives.

security
advanced
2:00remaining
Securing access to an Azure Function App with HTTP trigger

You want to restrict access to your HTTP-triggered Azure Function App so only authorized clients can call it. Which method provides the best security?

ADisable authentication and rely on HTTPS encryption only
BMake the function public and rely on client IP filtering
CUse Azure Active Directory (AAD) authentication to require user sign-in
DUse function-level authorization keys and share them with clients
Attempts:
2 left
💡 Hint

Consider a method that integrates with identity providers for secure access.

Best Practice
expert
3:00remaining
Optimizing deployment slots for zero downtime in Azure Function Apps

You want to deploy a new version of your Azure Function App without downtime and be able to quickly roll back if needed. What is the best deployment strategy?

AUse deployment slots to deploy to a staging slot, test, then swap with production slot
BDeploy directly to the production slot and restart the app after deployment
CDeploy to a separate Function App and update DNS to point to the new app
DStop the production app, deploy the new version, then start the app
Attempts:
2 left
💡 Hint

Think about how to deploy safely with minimal impact on users.