AZ204 Flashcards

1
Q

What is serverless

A

Fully managed cloud services

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

Name 5 characterics of Serverless?

A

Highly elastic
Highly available
Highly scalable
Highly durable
Secure by default

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

What happens to infrastructure in a serverless context

A

Is abstracted away.

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

What is billing based on with a serverless application?

A

On the execution of your business task

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

What does it mean to Scale to zero and what is benefit as apposed to On-premise or non-serverless applications?

A

Not using it means it doesn’t cost you anything, and the benefit is that you don’t pay for idling servers on premises or in the cloud.

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

What does FaaS mean?

A

Function as a servers

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

Describe a FaaS

A

Event-driven trigger functions based on event data and/or emit event data.
Multiple functions can be orchestrated together to create a serverless app
They run only when triggered by several types of triggers

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

What does it mean for a function to be truly serverless?

A

It’s fully managed and it scales to zero

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

What is Azure functions

A

A FaaS service by Azure, that allows developers to focus on writing code and not worrying about underlying infrastructure.

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

What high-level things are defined in a Functions App?

A

Hosting, Runtime and global configuration

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

What is an output binding?

A

An output binding is a data sink that receive outputted data from an Azure Function

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

Is a storage account needed to operate a function app?

A

yes

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

When you delete a storage account, what happens to your function app?

A

The function app is not deleted but it doesn’t work anymore

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

Name 4 types of storage in a storage acccount?

A

Blob storage
Azure Files
Queue Storage
Table Storage

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

What is contained in a function.json file?

A

Configuration of a single function defining the bindings

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

What are the 3 levels of authorization in Azure Functions?

A

Anonynous,
Function,
Admin

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

What would you use streaming logs for when talking about Function Apps

A

You can view logging stream from your functions app for debugging.
You can also hook up application insights for live metrics stream and live logging

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

Name several qualities of Azure functions

A

lightweight,
Serverless,
Write and deploy,
Triggered by events
No infrastructure,
Little to no maintenance,
Built, tested and deployed using the azure portal on windows only,
Easy to update,
Pay when running,
Industry standard communications with APIs, databases, libraries

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

What does it mean to have a cold start in azure functions?

A

If no azure functions are running, it might take some time for the azure function app to start before responding to requests.

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

Name 5 types of solutions of that Azure Functions are great for?

A

Processing data
Integrating system
IoT solutions
Simple APIs
Microservices

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

What do you call a output for an Azure Function?

A

Binding

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

What do you call the thing that starts an Azure Function?

A

Trigger

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

What is the difference between Azure Functions and Logic Apps

A

Both process serverless workloads but functions are a serverless compute services and a logic app is a serverless workflow

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

What do you call a Azure Function with complex orchestrated actions?

A

Durable Functions

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

What are functions or steps in Azure Logic Apps called?

A

Actions

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

How do you monitor Logic Apps?

A

Azure Portal and Azure Monitor Logs

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

How do you monitor an Azure Function?

A

Azure Application Insights

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

How is execution context of logic apps described?

A

It supports ‘Run-Anywhere’ scenarios

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

What is Azure App Service Webjobs?

A

A code-first integration service designed for developers

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

How is monitoring done in Azure App Service Webjobs?

A

Azure Application Insights

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

Can you test and develop Azure Functions in the browser?

A

yes

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

Can you test and develop Azure App Service Webjob in the browser?

A

No

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

Can you integrate Webjobs with Azure Logic Apps?

A

No

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

Can you integrate Azure Functions with Logic apps?

A

Yes

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

Can you integrate Azure Functions with Logic apps?

A

Yes

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

Name 7 Azure function triggers?

A

Timer,
Storage queue and blobs
Servicebus topics and queues
Cosmos Db
Event hubs
Http / Webhooks
Event grid

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

Name 6 trigger events for azure app service webjob?

A

Timer,
Storage queues and blobs
Service bus queues and topics
Cosmos Db
Event Hub
File system

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

Name the 5 hosting plans for azure functions

A

Consumption,
Premium,
Dedicated,
App Service Environment,
Kubernetes

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

What is dictated by the hosting plan for a Azure Function?

A

Scalability behaviour
Available resources
Support for advanced functionality such as Azure Virtual Network

40
Q

Describe the ASE hosting plan for Azure Functions?

A

App Service Environment (ASE) is an App Service feature that provides a fully isolated and dedicated environment for securely running App Service apps at high scale.

41
Q

Describe the Kubernetes hosting plan for Azure functions?

A

Kubernetes provides a fully isolated and dedicated environment running on top of the Kubernetes platform.

42
Q

On a dedicated service plan, what is the reason you should have the “Always on” option enabled?

A

This will make sure that the function runs correctly. On a consumption plan, this is not necessary because the function is activates automatically which isnt the case for dedicated functions.

43
Q

Why does an Azure function need an storage account to run?

A

An Azure function may rely on storage triggers and it is used to store logging. This must be a storage account that supports tables and queues

44
Q

What determines the number of instances of azure functions running at once on consumption and premium hosting plans?

A

The number of events trigger a particular function

45
Q

What is the limit of a Azure function memory and how many CPU on a consumption plan?

A

1.5 Gb and 1 CPU

46
Q

Where are the Azure functions code files stored? And what happens when the azure function is removed?

A

On the main storage account associated with the function. The code files are deleted beyond recovery after the Azure Function is deleted

47
Q

What is the job of the Scale Controller in the context of Azure Functions?

A

Monitors the rate of events and determines to scale in or out. It can scale to zero. This means a cold start (thus latency) happens on the next event

48
Q

What is the number of maximal instances a single function app can scale to?

A

200

49
Q

Does an instance of a functions app process a single event or multiple?

A

Multiple event, thus there is no real limit to the number of concurrent execution?

50
Q

Which Azure Functions hosting plans is best when predictive scaling and costs are required?

A

Dedicated plan

51
Q

An organization wants to implement a serverless workflow to solve a business problem. One of the requirements is the solution needs to use a designer-first (declarative) development model. Which service meets this requirement? Functions, Webjobs, or Logic apps?

A

Logic apps

52
Q

What are the 3 datatypes an input binding can have?

A

binary,
string,
stream

53
Q

What property is used to refer a function to its configuration?

A

By name

54
Q

Which of the following is required for a function to run? 1. Trigger, 2. Binding, 3. Both

A
  1. Trigger
55
Q

Which of the following supports both the in and out direction settings? 1. Trigger, 2. Binding, 3. Both

A
  1. Binding
56
Q

How do you call a application pattern where a sequence of Functions is executed in a specific order?

A

Function Chaining

57
Q

How do you call a application pattern where multiple functions are running in parallel and then wait for all functions to finish?

A

Fan out / Fan in

58
Q

Describe a Async Http API pattern where you are using Azure Functions?

A

Some functions are triggered by HTTP calls to interact other azure services and some functions are doing work that is triggered by whatever happens on those services.

59
Q

What is the pattern is following an example of?
A polling function that checks whetehr or not a specific condition is met. Such as a periodic cleanup job.

A

Monitor pattern

60
Q

In the context of durable functions, what are activity functions?

A

Specific units of work that are processed in a durable function, either in parallel, serial or both.

61
Q

What is a task hub?

A

A task hub in Durable Functions is a logical container for durable storage resources that are used for orchestrations and entities.

62
Q

Can activity functions interact with resources in different task hubs?

A

no

63
Q

What does a task hub consist of?

A
  • One or more control queue
  • One or more work-item queue
  • One History table
  • One instances table
  • One storage account with one or more lease blobs
  • A storage container containing large message payloads, if applicable
64
Q

Task hub names rules are

A

only alphanumeric letters
start with a letter
between 3 and 45 characters

65
Q

What is an orchestrator function for?

A

To orchestrate the execution of other durable functions within a functions app

66
Q

In an orchestor function, when a VM reboots, is the local state still available

A

Yes, local state is never lost.

67
Q

What is the default value of a orchestration instance id?

A

Guid

68
Q

What would be the reason to change from a default generated Orchestration instance id to a user created id?

A

When there is a one to one mapping between the function and an external application-specific entity

69
Q

Describe the event sourcing design pattern?

A

Capturing all application state changes as a sequence of events rather than saving the state itself

70
Q

What is a sub-orchestration?

A

Orchestrator functions can other durable orchestrator functions which are called sub-orchestration functions

71
Q

What are durable timers used for?

A

Sets up timeout handling on async actions

72
Q

What are external events most commonly used for?

A

Handling human interaction within an orchestration

73
Q

Are race-conditions possible within an orchestration?

A

No, they are single threaded.

74
Q

What can you use to mitigate a race condition occuring when orchestration interact with external systems?

A

you can use the LockAsync method of .net to mitigate

75
Q

Which of the following durable function types would you use to read and update small pieces of state? Orchestor, Activity or entity

A

Entity

76
Q

Which application pattern would you use for a durable function that is polling a resource until it meets a specific condition? Function chaining, Fan out / Fan in, Monitor

A

Monitor

77
Q

What 3 type of applications are Azure App Services most useful for?

A

Hosting Web applications
Mobile Backends
REST APIs

78
Q

What 2 OS does a Azure App Service run on?

A

Windows
Linux

79
Q

Is auto-scaling automatically built-in a azure app service?

A

Yes

80
Q

Is it possible to run multiple app services on the same app service plan?

A

Yes

81
Q

What aspects are defined by Azure App Service Plan?

A

Region,
No. of VM instances
Size of VM instances
Pricing tier

82
Q

Name 4 categories of App Service plans?

A

Shared compute
Dedicated compute
Isolated
Consumption

83
Q

Is it possible for an Azure App Service to scale out on a free or shared app service plan?

A

no

84
Q

You have two Hyper-V hosts named Host1 and Host2. Host1 has an Azure virtual machine named VM1 that was deployed by using a custom Azure Resource
Manager template.
You need to move VM1 to Host2.
What should you do?

A

From the Redeploy blade, click Redeploy.

85
Q

You have downloaded an Azure Resource Manager template to deploy numerous virtual machines. The template is based on a current virtual machine, but must be adapted to reference an administrative password.
You need to make sure that the password is not stored in plain text.
You are preparing to create the necessary components to achieve your goal.
What do you need to achieve this goal?

A

Azure keyvault and an access policy

86
Q

In the azure cli, what does the command:
az webapp up do?

A

Deploying a html and css webapp

87
Q

Which of the following App Service plans supports only function apps? 1 Dedicated, 2. Isolated, 3. Consumption

A

Consumption

88
Q

In the azure portal, where can you find the application settings of an Azure App Service resource

A

Under Settings -> Configuration -> Application settings

89
Q

In which of the following app configuration settings categories would you set the language and SDK version?
1. Application settings, 2. Path mappings, 3.General settings

A

General settings

90
Q

Which of the following types of application logging is supported on the Linux platform? 1. Web server logging, 2. Failed Request tracing, 3. Deployment logging

A

Deployment logging

91
Q

Can App Service Autoscaling be triggered on a schedule?

A

Yes

92
Q

Can autoscaling App service change the CPU, memory or storage capacity?

A

No, it only changes the number of web server instances

93
Q

Is autoscaling automatically included in all service plans?

A

No

94
Q

Name 6 metrics where rules can be made out of for app service autoscaling?

A

CPU percentage
Memory usage
Disk queue length
Http queue length
Data in
Data out

95
Q

Describe autoscaling

A

A scale in / scale out solution

96
Q

What kind of system is Azure Cosmos Db?

A

A globally distributed database system