Serverless Generic Flashcards

1
Q

Azure services for workflow apps

A

4 Azure services: Logic Apps Microsoft Power Automate WebJobs Azure Functions

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

Design-first workflow Apps

A

Logic Apps Microsoft Power Automate

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

Flows in Power Automate

A

There are four different types of flow that you can create: 1. Automated: A flow that is started by a trigger from some event. For example, the event could be the arrival of a new tweet or a new file being uploaded. 2. Button: Use a button flow to run a repetitive task with a single click from your mobile device. 3. Scheduled: A flow that executes on a regular basis such as once a week, on a specific date, or after 10 hours. 4. Business process: A flow that models a business process such as the stock ordering process or the complaints procedure.

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

Difference between Logic Apps and Power Automate

A

Logic Apps are for more advanced usages. Also, code editing is possible in Logic Apps.

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

Code-first workflow apps

A

WebJobs Azure Functions

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

What are WebJobs?

A

WebJobs are a part of the Azure App Service that you can use to run a program or script automatically. There are two kinds of WebJob: 1. Continuous. These WebJobs run in a continuous loop. For example, you could use a continuous WebJob to check a shared folder for a new photo. 2. Triggered. These WebJobs run when you manually start them or on a schedule.

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

What languages are supported by WebJobs SDK?

A

C# and VB.NET

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

What are Azure Functions?

A

An Azure Function is a simple way for you to run small pieces of code in the cloud, without having to worry about the infrastructure required to host that code. Azure automatically scales your function in response to the demand from users.

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

What SCM tools can be used with Azure Functions?

A

GitHub or Azure DevOps Services

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

Difference between WebJobs and Azure Functions?

A

Simple administration and more flexible coding model provided by Azure Functions. The following factors will influence your choice: 1. Cost: With Web Jobs, you pay for the entire VM or App Service Plan that hosts the job. Azure Function can run on a consumption plan, so you only pay when the function runs. Since this process only kicks off when a bike is returned, we might stand to save by selecting Azure Functions. 2. Integrations: You want to integrate the maintenance workflow with the Logic App that you build for the bike booking and rental process in the previous unit. Although it is possible to call a WebJob from a Logic App, the integration between Logic Apps and Functions is closer.

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

What is similar between Azure Power Automate & Azure Logic Apps

A

Both are designer-first integration services that can create workflows. Both services integrate with various SaaS and enterprise applications. Power Automate is built on top of Logic Apps. They share the same workflow designer and the same connectors.

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

Compare Azure Functions and Azure Logic Apps

A

Functions and Logic Apps are Azure services that enable serverless workloads. Azure Functions is a serverless compute service, whereas Azure Logic Apps provides serverless workflows. Both can create complex orchestrations.

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

Compare Functions and WebJobs

A

Like Azure Functions, Azure App Service WebJobs with the WebJobs SDK is a code-first integration service that is designed for developers. Both are built on Azure App Service and support features such as source control integration, authentication, and monitoring with Application Insights integration.

Azure Functions is built on the WebJobs SDK, so it shares many of the same event triggers and connections to other Azure services.

Functions

WebJobs with WebJobs SDK

Serverless app model with automatic scaling

Develop and test in browser

Pay-per-use pricing

Integration with Logic Apps

Trigger events

Timer
Azure Storage queues and blobs
Azure Service Bus queues and topics
Azure Cosmos DB
Azure Event Hubs
HTTP/WebHook (GitHub, Slack)
Azure Event Grid

Timer
Azure Storage queues and blobs
Azure Service Bus queues and topics
Azure Cosmos DB
Azure Event Hubs
File system

Supported languages

C#
F#
JavaScript
Java
Python
PowerShell

C#1

Package managers

NPM and NuGet

NuGet2

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

Compare Microsoft Power Automate and Azure Logic Apps

A

Power Automate and Logic Apps are both designer-first integration services that can create workflows. Both services integrate with various SaaS and enterprise applications.

Power Automate is built on top of Logic Apps. They share the same workflow designer and the same connectors.

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

When would you choose WebJobs?

A

Here are two scenarios for which WebJobs may be the best choice:

You need more control over the code that listens for events, the JobHost object. Functions offer a limited number of ways to customize JobHost behavior in the host.json file. Sometimes you need to do things that can’t be specified by a string in a JSON file. For example, only the WebJobs SDK lets you configure a custom retry policy for Azure Storage.

You have an App Service app for which you want to run code snippets, and you want to manage them together in the same Azure DevOps environment.

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