Create serverless applications | Create serverless logic with Azure Functions Flashcards

1
Q

What is serverless compute?

A

You can think of it as Function As A Service (FaaS). You business logic runs as functions and you don’t have to manually provision or scale infrastructure.

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

What is business logic in Software?

A

Represent real life business situation and rules in code. Like with the classes, objects and functions.

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

What are the pro’s of serverless compute?

A
  • any language
  • auto scaling
  • no servers to manage
  • you are charged based on what is used - not on reserved time.
  • event-driven
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the con’s of serverless compute?

A
  • Execution time: your functions have limited execution time.
  • Execution frequency: for continuous execution, serverless compute is probably not the right option. Can be expensive and not made for continuous.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are durable functions?

A

Durable Functions is an extension of Azure Functions that lets you write stateful functions in a serverless compute environment.

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

The Consumption plan comes with a configurable timeout period for executing a function. By default, it’s ___ minutes, but may be configured to have a timeout as long as ___ minutes.

A

The Consumption plan comes with a configurable timeout period for executing a function. By default, it’s five (5) minutes, but may be configured to have a timeout as long as 10 minutes.

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

How does Azure app service plan enable you to avoid timeout periods?

A

By having your function run continuously on a VM that you define.

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

What is an HTTP trigger Authorization level?

A

An HTTP trigger Authorization level is a flag that indicates whether an incoming HTTP request needs an API key for authentication.

There are three Authorization levels:

  • Function (key based)
  • Anonymous
  • Admin (key based)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which authorization keys can be used for key based HTTP trigger Authorization levels?

A

There are two types of keys: function and host.

  • Function keys are specific to a function.
  • Host keys apply to all functions inside the function app.

If your Authorization level is set to Function, you can use either a function or a host key. If your Authorization level is set to Admin, you must supply a host key.

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

What does the anonymous authorization level mean?

A

No authentication required.

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

What are block blobs?

A

Block blobs are the most common type. They allow you to store text or binary data efficiently.

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

What are Append blobs?

A

Append blobs are like block blobs, but they’re designed more for append operations like creating a log file that’s being constantly updated.

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

What are page blobs?

A

Page blobs are made up of pages and are designed for frequent random read and write operations.

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

What is a blob trigger?

A

A blob trigger is a trigger that executes a function when a file is uploaded or updated in Azure Blob storage.

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

What is the Path for a blob trigger?

A

The Path tells the blob trigger where to monitor to see if a blob is uploaded or updated.

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

What is the default path for blob trigger?

A

samples-workitems/{name}
blob-container-name/triggered-files

samples-workitems represents the blob container that the trigger monitors.
{name} means that every type of file will cause the trigger to invoke the function.

17
Q

How to filter which kind of files trigger the blob trigger?

A

For example: samples-workitems/{name}.png

18
Q

What is a binding expression?

A

A binding expression is specialized text in function.json, function parameters, or code that is evaluated when the function is invoked to yield a value. For example, if you have a Service Bus Queue binding, you could use a binding expression to get the name of the queue from App Settings.

19
Q

What is the syntax for binding expressions?

A

Most expressions are identified by being wrapped in curly braces. However, app setting binding expressions are wrapped in percent signs rather than curly braces.

For example, if the blob output binding path is %Environment%/newblob.txt, and the Environment app setting value is Development, a blob will be created in the Development container.