Configure web app settings Flashcards

1
Q

What is the primary purpose of app settings in Azure App Service?
a) To control app scaling options
b) To pass environment variables to the application code
c) To modify the pricing tier of the app
d) To configure user authentication

A

b) To pass environment variables to the application code

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

In a default Linux App Service, how should nested JSON keys like ApplicationInsights:InstrumentationKey be formatted in app settings?
a) Use a single underscore for nested keys
b) Replace : with __ (double underscore)
c) Replace . with :
d) Use / for nested keys

A

b) Replace : with __ (double underscore)

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

How are app settings stored in Azure App Service?
a) As plain text
b) Encrypted-at-rest
c) Encrypted only if marked as sensitive
d) Only encrypted during deployment

A

b) Encrypted-at-rest

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

What should .NET apps targeting PostgreSQL set the connection string type to, as a workaround for a known issue?
a) SQLServer
b) MySQL
c) Custom
d) PostgreSQL

A

c) Custom

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

What command is used in Azure CLI to set app settings for a custom container?
a) az webapp create setting
b) az webapp config appsettings set
c) az webapp set settings
d) az appservice env set

A

b) az webapp config appsettings set

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

What is the purpose of the Always On setting in Azure App Service?
a) It keeps the app unloaded to save resources
b) It ensures the app is continuously loaded to reduce latency
c) It disables background jobs
d) It turns off all incoming requests

A

b) It ensures the app is continuously loaded to reduce latency

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

Which of the following protocols is supported by most modern browsers only over TLS?
a) HTTP/1.1
b) HTTPS/2
c) HTTP/2
d) TLS/1.0

A

c) HTTP/2

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

What happens if the ‘ARR affinity’ setting is turned off in a multi-instance deployment?
a) Clients are routed to different instances randomly
b) Clients are routed to the same instance for the session
c) The app is scaled down automatically
d) Incoming requests are blocked

A

a) Clients are routed to different instances randomly

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

What does the ‘Minimum TLS version’ setting configure in Azure App Service?
a) The maximum encryption version allowed
b) The minimum encryption version required
c) The programming stack version
d) The supported HTTP protocol

A

b) The minimum encryption version required

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

When does remote debugging automatically turn off for ASP.NET or Node.js apps?
a) After 12 hours
b) After 24 hours
c) After 48 hours
d) After 72 hours

A

c) After 48 hours

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

What does a handler mapping allow you to do in a Windows App Service?
a) Change the default file extension of your app
b) Add custom script processors to handle requests for specific file extensions
c) Move the app root directory to a different server
d) Modify the app’s security settings

A

b) Add custom script processors to handle requests for specific file extensions

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

What is the default root path for an uncontainerized Windows app in App Service?
a) C:\home\site\wwwroot
b) D:\home\site\wwwroot
c) /var/www/html
d) E:\app\root

A

b) D:\home\site\wwwroot

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

What type of custom storage is supported by Windows container apps in Azure App Service?
a) Azure Blobs (read-write)
b) Azure Files
c) Local storage only
d) Amazon S3

A

b) Azure Files

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

When configuring virtual directories in a Windows app, what is the purpose of clearing the ‘Directory’ checkbox?
a) To mark it as a read-only directory
b) To mark it as a virtual directory
c) To mark it as a web application
d) To enable script processing

A

c) To mark it as a web application

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

What is the main purpose of application logging in App Service?
a) To monitor network traffic
b) To log messages generated by your application code
c) To secure the application against attacks
d) To update your application automatically

A

b) To log messages generated by your application code

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

What does web server logging capture in App Service for Windows apps?
a) The number of users visiting the website
b) Raw HTTP request data
c) Error messages only
d) Security breaches

A

b) Raw HTTP request data

17
Q

What happens when you enable Application Logging (Filesystem) for Windows apps in the Azure portal?
a) The log is permanently stored
b) It turns off after 12 hours
c) It remains on indefinitely
d) It sends data directly to the developer’s email

A

b) It turns off after 12 hours

18
Q

What should be done after regenerating a storage account’s access keys for logging in App Service?
a) Restart the application
b) Reset the logging configuration
c) No action is required
d) Reinstall the application

A

b) Reset the logging configuration

19
Q

What does setting the Retention Period (Days) parameter for web server logging in App Service define?
a) How many logs can be stored
b) How long logs are retained before being deleted
c) The size of each log file
d) The number of servers used for logging

A

b) How long logs are retained before being deleted

20
Q

Which of the following is used by ASP.NET applications to log errors in the App Service diagnostics log?
a) System.Diagnostics.Trace
b) Python logging library
c) Microsoft.Extensions.Logging
d) OpenCensus

A

a) System.Diagnostics.Trace

21
Q

How can you stream logs in real-time using Azure CLI?
a) Using the command az webapp log tail
b) By enabling Blob logging
c) Through System.Diagnostics.Trace
d) By resetting the log file

A

a) Using the command az webapp log tail

22
Q

What type of logs can you access by downloading a ZIP file from the App Service file system in Linux/container apps?
a) Console output logs
b) HTTP traffic logs
c) Security logs
d) User session data

A

a) Console output logs

23
Q

What is one limitation of the free App Service managed certificate?

a) It supports wildcard certificates
b) It can be used in an App Service Environment (ASE)
c) It is exportable
d) It only supports alphanumeric characters, dashes (-), and periods (.)

A

d) It only supports alphanumeric characters, dashes (-), and periods (.)

24
Q

Which option allows for automated certificate renewal in Azure App Service?

a) Upload a public certificate
b) Create a free App Service managed certificate
c) Upload a private certificate
d) Purchase a third-party certificate

A

b) Create a free App Service managed certificate

25
Q

What must be included in a private certificate to meet the requirements of App Service?

a) Public key with 1024 bits
b) Encrypted with AES
c) Private key at least 2048 bits long
d) Only the root certificate

A

c) Private key at least 2048 bits long

26
Q

Which certificate type is not supported in Azure National Clouds?

a) Public certificate
b) App Service certificate
c) Free App Service managed certificate
d) Third-party certificate

A

b) App Service certificate