Create serverless logic with Azure Functions Flashcards
Which type of function is best suited for Azure Functions, Stateless or Stateful?
Stateless, as functions are created and destroyed on demand
Can Azure functions be deployed to non-serverless environments?
Yes, by default Azure functions are Serverless but they can also be deployed to non-serverless environments.
What is the default timeout for Azure functions?
5 minutes, 2.5 minutes for HTTP response based functions
What are the scaling limitations of Azure functions?
A new Azure function instance can be created every 10 seconds only and upto max of 200 instances.
What are factors that help deciding in use of serverless Azure function computing?
- Execution Time
- Execution Frequency
Where are Azure functions hosted?
Azure functions are hosted in execution context called as Function App.
What type of service plans can be used by Function App?
- Consumption plan
- Azure App Service plan
When should you use App Service plan for Azure Function App?
- Execution time is more than 5 mins
- Function needs to run continuously
- Function requires more processing power
What is the use of a Storage account when configuring Azure Function App?
- Internal operations like logging, and managing execution triggers
- In-case of the Consumption plan, this is where function code and configuration files are stored
What are the 8 services for which Azure provides triggers for Azure Functions?
- Azure Blob storage
- Cosmos DB
- Azure Service Bus
- Queue Storage
- HTTP
- Event Grid
- Microsoft Graph Events
- Timer
What are bindings in Azure Functions?
Binding is a declarative way of connecting data and services to Azure Functions. Bindings have direction like input binding and output binding
How can you add logging to Azure functions?
Azure function is passed a logging object in each language
What is the default Authorization type when creating a Azure function?
Function
what is the HTTP header used to send the function key when executing Azure Functions via HTTP?
x-function-key
What are the input parameters to Timer Trigger for Azure functions?
There are two parameters:
- Timestamp
- Schedule - CRON