Implement IaaS, Azure Functions Flashcards
From a top level view, What are Azure Functions
Azure Functions allows to run small peaces of code (function) on scalable infrastructure.
A functions execution is triggered by an event.
Outpunts of functions are streamlined by bindings.
What causes a Azure App Function to run
A trigger
True Or False? Azure Functions can have multiple triggers?
False, must have exactly one trigger
In Azure Functions, what is the purpose of Bindings
Binding to a function is a way of declarativley connecting another resource to the function
True or False? Bindings can be connected as Input, output, or both
True
How is data from bindings provided to a function
As function parameter
True or False? Bindings are optional for Azure App Functions
True
In the following scenario, what is the Input Trigger, Input Binding and Output Binding:
A new queue message arrives which runs a function to write to another queue.
Trigger:Queue
Input binding:
Output Binding:Queue
In the following scenario, what is the Input Trigger, Input Binding and Output Binding:
A scheduled job reads Blob Storage contents and creates a new Cosmos DB document.
Trigger: Timer
Input binding: Blob Storage
Output Binding: Cosmos DB
How are Azure Function triggers and binding definitions defined in C#
Decorate Methods and parameters with C# Attributes
How are Azure Function triggers and binding definitions used in Everyting else except C# (Including Azure Portal)
By Updating the content of function.json
True or False: the binding direction for triggers is always ‘out’
False
What identifies a trigger in a functions.json
type is something “xxxTrigger” and direction is “in”
What identifies a binding in a functions.json
type is something “xxxBinding” and direction is “in” or “out”
What identifies the function in a functions.json
Property name
What are Durable Functions?
An extension of Azure Function, functions with state
What is meant by Orchestrator function
A function that calls multiple functions as a workflow
True or false? The total lifespan of an orchestration instance can be seconds, days, months, or never-ending
True
What is a task hub?
A task hub is a logical container used for durable functions. Orchestrator and activity functions can only interact with each other when they belong to the same task hub.
How is an orchestration identified
Instance Identifier is by default GUID, must be unique within a task hub
True or false? Orchestration Instance Identifier can be user defined
True, but must be unique within a task hub
How to test Azure Functions locally?
Use Azure Storage Simulator
What is meant by “Consumption Plan” in Azure Functions context ?
Pay only for Executions of the App. Billing is based on number of executions, execution time and memory used.
How does Pattern Function Chaining work?
Multiple F1 .. Fn functions called in ordered sequence, Output from Fx is is applied as Input to Fx+1