Create serverless applications | Create serverless logic with Azure Functions Flashcards
What is serverless compute?
You can think of it as Function As A Service (FaaS). You business logic runs as functions and you don’t have to manually provision or scale infrastructure.
What is business logic in Software?
Represent real life business situation and rules in code. Like with the classes, objects and functions.
What are the pro’s of serverless compute?
- any language
- auto scaling
- no servers to manage
- you are charged based on what is used - not on reserved time.
- event-driven
What are the con’s of serverless compute?
- Execution time: your functions have limited execution time.
- Execution frequency: for continuous execution, serverless compute is probably not the right option. Can be expensive and not made for continuous.
What are durable functions?
Durable Functions is an extension of Azure Functions that lets you write stateful functions in a serverless compute environment.
The Consumption plan comes with a configurable timeout period for executing a function. By default, it’s ___ minutes, but may be configured to have a timeout as long as ___ minutes.
The Consumption plan comes with a configurable timeout period for executing a function. By default, it’s five (5) minutes, but may be configured to have a timeout as long as 10 minutes.
How does Azure app service plan enable you to avoid timeout periods?
By having your function run continuously on a VM that you define.
What is an HTTP trigger Authorization level?
An HTTP trigger Authorization level is a flag that indicates whether an incoming HTTP request needs an API key for authentication.
There are three Authorization levels:
- Function (key based)
- Anonymous
- Admin (key based)
Which authorization keys can be used for key based HTTP trigger Authorization levels?
There are two types of keys: function and host.
- Function keys are specific to a function.
- Host keys apply to all functions inside the function app.
If your Authorization level is set to Function, you can use either a function or a host key. If your Authorization level is set to Admin, you must supply a host key.
What does the anonymous authorization level mean?
No authentication required.
What are block blobs?
Block blobs are the most common type. They allow you to store text or binary data efficiently.
What are Append blobs?
Append blobs are like block blobs, but they’re designed more for append operations like creating a log file that’s being constantly updated.
What are page blobs?
Page blobs are made up of pages and are designed for frequent random read and write operations.
What is a blob trigger?
A blob trigger is a trigger that executes a function when a file is uploaded or updated in Azure Blob storage.
What is the Path for a blob trigger?
The Path tells the blob trigger where to monitor to see if a blob is uploaded or updated.