Developer Cards Flashcards
What are two cons of serverless?
- Non-persistent
2. Non-continuous execution
Which four services are automation of prosesses?
- Microsoft Power Automate
- Azure Logic App
- Azure Function
- App Service WebJobs
Which service for automation of prosesses is design-first?
- Microsoft Power Automate
2. Azure Logic Apps
Which service for automation of prosesses is code-first?
- Azure Functions
2. App Service WebJobs
What is the difference between Azure Functions and App Service WebJobs?
- Azure Functions: scales automatically
- App Service WebJobs: does not scale automatically
Which service to choose if design-first and users will develop the workflow?
Microsoft Power Automate
Which service to choose if design-first and developers will develop the workflow?
Azure Logic App
Which service to choose if code-first and part of an existing App Service app?
App Service WebJobs
Which service to choose if code-first and need to customize JobHost?
Azure Function
Which service automates, orchestrate and integrate components with designing workflows graphical or in JSON?
Azure Logic App
Which service can create workflow with almost no development or IT experience?
Azure Logic App
Which service is part of Azure App Service to run program or script automatically?
App Service WebJobs
Which service runs simple code in cloud without infrastructure?
Azure Functions
What is it called when a cloud provider manages provisioning and maintenance of infrastructure?
Serverless computing
What are some benefits of serverless computing?
- Fully managed
- Pay-for-use
- Elastic
- Stateless logic
- Event driven
- Functions can be re-used
What are drawbacks of serverless computing?
- Execution time
2. Execution frequency
What is an execution context that hosts functions?
Function app
What logically structures functions and compute resources?
Function app
What service plan runs a function continuously on a VM?
Azure App Service plan
What service plan is serverless, elastic payment and has timeout?
Consumption Service plan
How many triggers can a function have?
1
What connects data and services to functions?
Bindings
In what format are bindings written?
JSON
What objects define how Azure functions are invoked?
Triggers
What trigger executes a function at consistent level?
Timer trigger
What is a CRON expression?
{second} {minute} {hour} {day} {month} {day of the week}
Four characters: * , - /
What key has a scope that applies to all functions inside the function app?
Host key
What key has a scope that applies to only one function?
Function key
What are the authorization levels in Azure?
- Function
- Anonymous
- Admin
What authentication level demands no authentication?
Anonymous
What authentication level needs only host key?
Admin
What authentication level needs both host key and function key?
Function
What are the three blob types in Azure Blob storage?
- Block blobs
- Append blobs
- Page blobs
What blob type is good for constantly updated blobs?
Append blobs
What blob type is good for frequent random write and read operations?
Page blobs
What is a HTTP trigger?
Executes a function with HTTP request
What is Blob trigger?
Executes a function when file uploaded or updated in Azure Blob storage
What is the path for files in Azure Blob storage?
{blob-container}/{filename}
What are the two forms of bindings?
- Input bindings
2. Output bindings
What four things do we need from a binding?
- Name
- Type (data/service)
- Direction (in/out)
- Connection (optional, name of app key setting with connection string).
In what format are bindings written?
JSON
What extensions of Azure functions perform long-lasting, stateful operations?
Durable Functions
What benefits are there to Durable functions?
- Serverless
- Managed state
- Event driven code
- Chaining functions
What benefits are there to orchestration functions?
- Define workflow in code
- Functions can be called async or non-async
- Output saved locally and can be used in subsequent functions
- Can dehydrate function and save state. Rehydrate and restore state when running again.
What are the three Durable Functions?
- Client
- Orchestrator
- Activity
What Durable Function is the entry point for creating a Durable Function and can run in reponse to event?
Client
What Durable Function orchestrates functions by describing how actions are executed and in order they run?
Orchestrator
What Durable Function is the basic unit of work in orchestration and contains the actual work in an orchestration?
Activity
Does Durable Functions or Logic Apps have the most built-in bindings?
Logic Apps
Does Durable Functions or Logic Apps have the most custom written activity?
Durable Functions
What service can monitor Durable Functions?
Azure Application Insights
What services can monitor Logic Apps?
- Azure portal
- Monitor logs
Where can Logic Apps be run?
Only in cloud
Where can Durable Functions be run?
Both locally and in cloud
Where can Durable Functions be run?
Both locally and in cloud
Draw each of these workflows:
- Function chaining
- Fan out/fan in
- Async HTTP APIs
- Monitor
- Human interaction
What can we use to develop and run functions locally with CLI?
Azure Function Core Tools
What command can we use to run Azure Function Core Tools?
func
Who do all functions in Azure belong to?
Functions app
What do functions in an app share?
Common config values
What do local functions belong to?
Functions project
What folder contains code and configurations files for functions?
Functions project
What command can we create functions project with?
func init
What file in functions project stores runtime config values and used both locally and in Azure?
host.json
What file in functions project stores config values that apply to functions only locally in Core Tools?
local.settings.json
What command can we create a new function?
func new
What command can we start functions locally?
func start
What command can we use to create function app?
az functionapp create
What command can we use to publish functions app to Azure?
func azure functionapp publish
Can Core Tools validate or test functions?
No
What service can write, debug and deploy Azure functions?
Azure portal
What is a mechanism for apps to nofity other services when event occurs via HTTP endpoints?
Webhook
What is a benefit to ensure secrets with Webhooks?
Hash signatures passed in request headers
What abstraction of series of technologies allows app two-way communication with client and server?
SignalR