Implementing Azure App Service Web Apps Flashcards

1
Q

`What is Azure App Service Auto Scale support?

A

The ability to automatically scale the resources used for running Azure App Service.

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

What does autoscaling for Azure App Service scale?

A

up/down(machine resources) and in/out(machines)

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

What CI integration sources does Azure App Services support?

A
  1. Azure DevOps
  2. GitHub
  3. Bitbucket
  4. FTP
  5. Local GIT
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are Azuer App Service deployment slots?

A

live apps with own host names, can be swaped with production app.

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

What languages are supported App Service Linux?

A
  1. .Net
  2. Node.js
  3. Java
  4. PHP
  5. Python
  6. Ruby
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the 3 limitation to App Service on Linux

A
  1. App Service Linux not supported in shared pricing tier
  2. Azure portal only shows linux compatible features
  3. Should consider using custom container for files instead of the content volume for speed.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the command to list all runtimes

A

az webapp list-runtimes

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

What is required for all App Services?

A

An App Service Plan.

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

What is an App Service Plan?

A

A set of compute resources for a web app to run

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

How many apps can be configured to run under one App Service Plan.

A

Many

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

What region are app service resources created in?

A

The region of the App Service Plan.

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

What 4 things does an App Service Plan define?

A
  1. OS
  2. Region
  3. Size of VM
  4. Pricing Tier
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the 9 App service Plan pricing tiers?

A
  1. Free
  2. Shared
  3. Basic
  4. Standard
  5. Premium
  6. PremiumV2
  7. PremiumV3
    8 Isolated
  8. IsolatedV2
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What does an App Service Plan pricing tier define?

A

What feature that you get and how much you pay.

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

What are the 3 App Service pricing tier categories?

A
  1. Shared - share VMs
  2. Dedicated - dedicated vms
  3. Isolated - Dedicated VMs dedicated Virtual Networks
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What Azure app service pricing tier category is not for production use?

A

Shared

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

What are the two ways to deploy to App Service

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

What sources provide automated deployment for App Services?

A
  1. Azure DevOps
  2. GitHub
  3. Bitbucket
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What options are there for a manual deployment for App Services?

A
  1. Git
  2. Azure CLI
  3. Zip Deploy
  4. FTP
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

When should you use a deployment slot when deploying to App Services?

A

Whenever possible.

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

What is the lowest Plan Tier that provides deployment slots?

A

Standard

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

What are the benefits of using deployment slots?

A

warms up the worker instances to match production scale, reduces downtime

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

Is using the App Service built-in authentication required?

A

No

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

What is a good reason not to use the built-in App Service authentications?

A

Need more flexibility

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

What are 3 benefits of using built-in authentication?

A
  1. Don’t have to implement yourself
  2. Doesn’t require any language, SDK or expertise
  3. Integrate with multiple login providers.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

What are the 6 identity providers available by default for App Service built-in authentication?

A
  1. Microsoft Identity platform
  2. Facebook
  3. Google
  4. Twitter (x)
  5. OpenID
  6. GitHub
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

Where does the App Service built-in authentication run?

A

Runs in same sandbox as application code.

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

What 4 things are handled by the App Service built-in authentication module?

A
  1. Authenticates users and clients with identity providers
  2. Validates store adn refreshes OAuth tokens
  3. Manages authentication session
  4. Injects identity information into HTTP request headers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

How can you configure the App Service build-in authentication module?

A

ARM or configuration file.

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

What are the two authentication flows for built-in authentication?

A
  1. Server-directed flow
  2. Client-directed flow
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
31
Q

What applications are appropriate for client-directed authentication flow for the built-in authentication?

A
  1. REST API
  2. Azure Functions
  3. Javascript browser clients
  4. Native mobile apps
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
32
Q

What are the 4 authentication flow steps for the built-in authentications?

A
  1. Sign in user
  2. Post-authentication
  3. establish session
  4. serve content
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
33
Q

Where can you configure App Service behavior for unauthenticated requests when using the built-in authentication?

A

Must be done in the Azure Portal.

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

What are 2 behaviors that you can configure in App Service for unauthorized requests when using the built-in authernication?

A
  1. Allow unauthenticated requests
  2. Require Authentication
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
35
Q

What is the application Token Store?

A

A repository of tokens associated with the user of the Service App using built-in authentication.

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

Where are authentication and authorization traces collected when using built-in App Service authentication?

A

application logs

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

What are the two network deployment types for App Services?

A
  1. Muli-tentant
  2. Isolated
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
38
Q

What App Service plans are Multi-tenant for App Service network deployment?

A
  1. Free
  2. Shared
  3. Basic
  4. Standard
  5. Premium
  6. Premium V2
  7. Premium V3
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
39
Q

What App Service plans are Isolated or App Service network deployment?

A

Isolated

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

From an App Service networking what are the 2 roles for deployed applications?

A
  1. Front Ends
  2. Workers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
41
Q

Why can’t we connect the App Service network to a local network?

A

Azure app services are in a multi-tenanted network.

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

What are 4 features that can be used for inbound App Service networking?

A
  1. App-assigned address
  2. Access restrictions
  3. Service endpoints
  4. Private endpoints
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
43
Q

What are 3 outbound App Service networking features?

A
  1. Hybrid connections
  2. Gateway-required virtual network
  3. Virtual network
44
Q

What is possibleOutboundIpAddresses property?

A

List all the ip addresses that your app might use in a scale unit.

45
Q

What is the Azure CLI command to see outbound addresses?

A

az webapp show –query outboundIpAddresses

46
Q

What is the Azure CLI command to see all possible outbound IP addresses for a Azure App service?

A

az webapp show –query possibleOutboundIpAddresses

47
Q

Which App Service plan category provides the maximum scale-out capability?

A

Isolated

48
Q

How does App Service passes app settings for Linux apps and Custom Containers?

A

–env

49
Q

In Azure Portal where can you access the Application Settings?

A

Configuration -> Application Settings

50
Q

How are App Settings stored?

A

Always encrypted

51
Q

Where at App Service application settings store in .NET applications?

A

<appsettings> in Web.config or appsettings.json
</appsettings>

52
Q

How do you specify if your application settings are swappable?

A

Set it during application settings is created in the Azure Portal

53
Q

For Linux application settings what JSON conversions are required?

A

colon is replaced by double underscore

54
Q

In Azure Portal where do you bulk update the Application Settings?

A

Configuration -> Application Settings -> Advanced

55
Q

What are the attributes in the build Application Settings update?

A

name, value, slotSettings

56
Q

Where do you go in Azure Portal to configure path mapping for an App Service?

A

configuration -> Path Mapping

57
Q

What are IIS handler mappings?

A

IIS custom script processors to handle requests for specific file extensions.

58
Q

What are the 3 configurable elements of an IIS handler mapping?

A
  1. Extension - file extension
  2. Script Processor location
  3. Arguments - command line arguments for processor
59
Q

For IIS handler scripts for uncontainerized Windows App Services where should the processor scripts be located if not using virtual directories?

A

d:\home\site\wwwroot

60
Q

In Azure Portal where do you configure custom storage for containerized App Services?

A

New Azure Storage Mount

61
Q

What are the 5 types of built-in diaganostic logging for App Services?

A
  1. Application Logging
  2. Web server logging
  3. Detailed error logging
  4. Failed reqeust tracing
  5. Deployment logging
62
Q

What are the 2 types of built-in diagnostics logging available on Linux App Service?

A
  1. Application
  2. Deployment
63
Q

How do you enable application logging for Window App Service?

A

App Service Logs -> Select ON -> select filesystem or blob -> set level

64
Q

What is the purpose of filesystem App Service logs?

A

temporary debugging purposes.

65
Q

What must you do with your application logging configuration for Window App Service if you regenerate the storage account keys?

A

Turn logging off and on

66
Q

What are the 5 logging levels?

A
  1. Disabled
  2. error
  3. warning
  4. information
  5. verbose
67
Q

How do you enable application logging for Linux/Container App Services?

A

App Service logs -> set Application Logging: file system -> set Quota -> set retention period

68
Q

How do you log in C#

A

System.Diagnostics.Trace.TraceError(“”)

69
Q

What is the ASP.NET Core default logging provider?

A

Microsoft.Extensions.Logging.AzureAppServices

70
Q

Where are the log files stored?

A

/Logfiles or d:/home/logfiles

71
Q

What are the 3 ways to stream log files?

A
  1. Azure Portal - Log Stream
  2. Azure CLI - cloud shell
  3. Azure CLI - local console
72
Q

What are the 5 options for uploading certificates?

A
  1. Free app service manages certificate
  2. Purchase app service certificate
  3. import certificate
  4. upload private certificate
  5. upload public certificate
73
Q

What are the private certificate requirements?

A
  1. PFX using DES
  2. 2048 private key
  3. contains intermediate certificates
74
Q

What certificates comp with App Services?

A

Free App Service managed certificate

75
Q

What are the limitations of free managed certificates?

A
  1. Doesn’t support wildcards
  2. Doesn’t support usuage as a client certificate
  3. Doesn’t support DNS
  4. isn’t exportable
  5. isn’t ASE supported
  6. support alpha dashes and periods
76
Q

What App Servivce plans support deployment slots?

A

Standard, Premium, or Isolated

77
Q

What are the three benefits of using deployment slots?

A
  1. Validates changes before swapping
  2. warmed up
  3. Roll back quickly
78
Q

How many deployment slots does the Standard tier have?

A

5

79
Q

What 6 things happen when you do a deployment slot swap?

A
  1. Apply settings from the target slot
  2. Wait for slot to restart
  3. Trigger local cache init
  4. Application init
  5. Switch routing rules
  6. Populate target to current slot
80
Q

What 10 settings can be swapped?

A
  1. General Settings
  2. App Settings
  3. Connection Strings
  4. Handler Mappings
  5. public certificates
  6. webjobs content
  7. Hybrid connections
  8. Azure Content Delivery Network
  9. Service Endpoints
  10. Path Mappings
81
Q

What app setting must be set to make it swappable?

A

WEBSITE_OVERRIDE_PRESERVE_DEFAULT_STICKY_SLOT_SETTINGS

82
Q

Three steps to manually swap deployment slots?

A
  1. Select SWAP Dialog box
  2. Select Source and Target
  3. Select Swap
83
Q

Three steps to swap with preview.

A

1.Select Swap dialog box
2. Select Start Swap (previewale)
3. Select Complete Swap

84
Q

What does autoswap do?

A

It automatically swaps whenever code is pushed to a configured slot.

85
Q

Setting to set up autoswap?

A

General Settings ->Auto Swap enables

86
Q

Where can you look for roll back monitoring?

A

Activity Log

87
Q

What is the default routing percent for a slot?

A

0

88
Q

What are the two triggers for autoscaling?

A
  1. Schedule
  2. Resource levels
89
Q

What is autoscaling in App Services?

A

Process that adjusts available resources based on the current demand vertically.

90
Q

What setting must be set to turn on autoscaling?

A

Scale Out

91
Q

What is the default scaling?

A

Manual

92
Q

What is the lowest tier that supports autoscaling?

A

Standard

93
Q

What are the two autoscaling conditions?

A
  1. Based on metric
  2. to a specific instance count
94
Q

What are Azure Function Triggers?

A

Ways to start execution of your code.

95
Q

What are Azure bindings?

A

ways to integrate input and output data

96
Q

How do you monitor Azure Functions?

A

Application Insights

97
Q

How do you monitor Logic Apps?

A

Azure Portal, Azure Monitor Logs

98
Q

What are the 3 basic hosting plans for Azure Functions?

A
  1. Consumption
  2. Premium
  3. Dedicated service plans.
99
Q

What does the hosting plan determine for Azure funcitons?

A
  1. scaling method
  2. resource available
  3. advanced functionality
100
Q

What is the appropriate Azure Function hosting plan for using durable functions?

A

Dedicated service plan

101
Q

What are the maximum number of Azure Function instances on the Consumption Plan?

A

windows 200, linux 100

102
Q

What are the maximum number of Azure Function instances on the Premium Plan?

A

windows 100, linux 100

103
Q

What are the maximum number of Azure Function instances on the Dedicated Plan?

A

20

104
Q

How do you set the function duration for an Azure Function?

A

funtionTimeout property in host.json

105
Q

What is the default and max timeout values for an Azure Function with the consumption plan?

A

5,10

106
Q

What is the default and max timeout values for an Azure Function with the premium plan?

A

30, unlimited

107
Q

What is the default and max timeout values for an Azure Function with the dedicated plan?

A

30, unlimited