A-204 Flashcards

1
Q

What is an azure function

A

Serverless solution that allows you to write less code, maintain less infrastructure and save on costs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is the difference between azure functions and azure logic apps

A

azure functions: serverless compute
azure logic apps: serverless workflow integration platform

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what is orchestration

A

Orchestration is a collection of functions or steps, called actions in Logic Apps, that are executed to accomplish a complex task

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

how you develop orchestration for azure functions?

A

By writing code and using the Durable Function Extension

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

how you develop orchestration for azure logic apps?

A

you create orchestration by using a GUI or editing configuration files.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what are durable functions?

A

Durable functions are an extension of Azure functions that lets you write stateful functions in a serverless compute environment. Behind the scenes, the extension manages state, checkpoints and restarts for you, allowing you to focus on your business logic.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How does durable functions allow you to define stateful workflows and stateful entities?

A

The extension lets you define stateful workflows by writing orchestrator functions and stateful entities by writing entity functions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what hosting plans are available for functions in azure?

A
  1. Consumption plan
  2. premium plan
  3. dedicated (app service)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the benefits of a consumption plan?

A
  1. Default.
  2. Scales automatically
  3. only pay for compute when functions are running
  4. Instances are dynamically added and removed based on the number of incoming events.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

what are the benefits of the premium plan?

A
  1. automatically scales based on demand (no delays)
  2. runs on more powerful instances
  3. connects to virtual networks
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the benefits from the dedicated plan?

A
  1. Run within an App Service plan at regular app service plan rates.
  2. Best for long-running scenarios where durable functions cant be used
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Maximum scale out instances

A

A single function app only scales out to a maximum of 200 instances. A single instance may process more than one message or request at a time though, so there isn’t a set limit on number f concurrent executions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

New instance rate

A

For HTTP triggers, new instances are allocated, at most, once per second. For non-HTTP triggers, new instances are allocated, at most, once every 30 seconds.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are the two important pieces that a function contains?

A
  1. your code, which can be written in various languages,
  2. some config, the function.json file.
    For compiled languages, this config file is generated automatically from annotations in your code. For scripting languages, you must provide the config file yourself.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What does the fucntion.json configuration file defines?

A
  1. function’s triggers
  2. function’s binding
  3. other configuration settings
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the binding property in the configuration file?

A

The bindings property is where you configure both triggers and bindings. Each binding shares a few common settings and some settings that are specific to a particular type of binding.

17
Q

What are the three settings that each binding requries?

A
  1. type: name of binding. For example, queueTrigger.
  2. direction: Indicates whether the binding is for receiving data into the function or sending data form the function.
  3. name: the name that is used for the bound data in the function.