Implement IaaS, Azure Functions Flashcards
From a top level view, What are Azure Functions
Azure Functions allows you to run small pieces of code (functions) on scalable infrastructure.
A functions execution is triggered by an event.
Outputs 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 declaratively 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#
Decorating methods and parameters with C# attributes
How are Azure Function triggers and bindings defined in everything except C# and Java (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 function.json
Defined in the binding section. Binding type will have the word “trigger” in it. Example: queueTrigger
What identifies a binding in a function.json
Defined in the bindings array in function.json
{ "bindings":[ // ... bindings here { "type": "bindingType", "direction": "in", "name": "myParamName", // ... more depending on binding } ] }
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 entity functions and/or action functions as a workflow. Entity/activity functions can be signaled or called.
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.