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