Implement Azure App Service web apps > Configure web app settings Flashcards

Create application settings that are bound to deployment slots. Explain the options for installing SSL/TLS certificates for your app. Enable diagnostic logging for your app to aid in monitoring and debugging. Create virtual app to directory mappings.

1
Q

How are app settings passed to the application code in App Service?

a) As command line arguments
b) As environment variables
c) As configuration files
d) As database entries

A

b) As environment variables

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

Where can you access application settings in App Service?

a) In the Azure portal under App Services
b) In the Azure CLI
c) In the Azure PowerShell
d) In the Azure DevOps

A

a) In the Azure portal under App Services

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

For ASP.NET developers, how do app settings in App Service compare to those in Web.config or appsettings.json?

a) They are ignored
b) They override the values in Web.config or appsettings.json
c) They are the same as in Web.config or appsettings.json
d) They are less secure

A

b) They override the values in Web.config or appsettings.json

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

What should be done to nested JSON key structures in app setting names for a default Linux app service?

a) Replace colons with double underscores and periods with single underscores
b) Replace colons with single underscores and periods with double underscores
c) Replace colons with periods and periods with colons
d) Replace colons with hyphens and periods with slashes

A

a) Replace colons with double underscores and periods with single underscores

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

What happens to app settings when stored in App Service?

a) They are stored as plain text
b) They are encrypted-at-rest
c) They are stored in a database
d) They are stored in a separate file

A

b) They are encrypted-at-rest

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

In which section can you configure common settings for your app in App Service?

a) Configuration > Advanced settings
b) Configuration > General settings
c) Configuration > Security settings
d) Configuration > Network settings

A

b) Configuration > General settings

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

What is required to configure some settings in the General settings section?

a) Higher pricing tiers
b) Lower pricing tiers
c) Specific programming languages
d) Custom DNS names

A

a) Higher pricing tiers

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

What does the ‘Always On’ setting do?

a) Keeps the app loaded even when there’s no traffic
b) Unloads the app after 10 minutes without traffic
c) Disables the app during off-peak hours
d) Enables automatic scaling

A

a) Keeps the app loaded even when there’s no traffic

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

For which type of apps is the ‘Platform bitness’ setting available?

a) Linux apps only
b) Windows apps only
c) Both Linux and Windows apps
d) Custom container apps only

A

b) Windows apps only

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

What does enabling ‘HTTPS Only’ do?

a) Redirects all HTTP traffic to HTTPS
b) Disables HTTP traffic
c) Enables HTTP/2 protocol
d) Requires a custom DNS name

A

a) Redirects all HTTP traffic to HTTPS

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

What is the purpose of the ‘ARR affinity’ setting?

a) Ensures the client is routed to the same instance for the life of the session
b) Disables session persistence
c) Enables load balancing
d) Configures the app’s startup command

A

a) Ensures the client is routed to the same instance for the life of the session

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

In which section can you configure handler mappings and virtual application and directory mappings?

a) Configuration > General settings
b) Configuration > Path mappings
c) Configuration > Security settings
d) Configuration > Network settings

A

b) Configuration > Path mappings

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

For Windows apps, what is the default root path where your code is deployed?

a) C:\inetpub\wwwroot
b) D:\home\site\wwwroot
c) E:\webapps\root
d) F:\app\wwwroot

A

b) D:\home\site\wwwroot

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

What can you add to handle requests for specific file extensions in Windows apps?

a) Virtual directories
b) Custom script processors
c) Storage mounts
d) Environment variables

A

b) Custom script processors

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

How do you mark a virtual directory as a web application in Windows apps?

a) Select the Web Application check box
b) Clear the Directory check box
c) Set the path to D:\home\site\wwwroot
d) Add a custom handler mapping

A

b) Clear the Directory check box

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

What can you add for containerized apps to provide custom storage?

a) New handler mapping
b) New virtual directory
c) New Azure Storage Mount
d) New environment variable

A

c) New Azure Storage Mount

17
Q

What should you select if the storage account isn’t using service endpoints, private endpoints, or Azure Key Vault?

a) Basic configuration
b) Advanced configuration
c) Custom configuration
d) Default configuration

A

a) Basic configuration

18
Q

What types of platforms support application logging in App Service?

a) Windows only
b) Linux only
c) Windows and Linux
d) Neither Windows nor Linux

A

c) Windows and Linux

19
Q

Where can web server logging data be stored for Windows apps?

a) App Service file system or Azure Storage blobs
b) Local machine storage
c) External hard drive
d) Cloud database

A

a) App Service file system or Azure Storage blobs

20
Q

What type of information is included in web server logging?

a) Application errors
b) Raw HTTP request data
c) Deployment status
d) User activity logs

A

b) Raw HTTP request data

21
Q

Why shouldn’t detailed error pages be sent to clients in production?

a) They are too large
b) They contain sensitive information
c) They are not formatted correctly
d) They slow down the application

A

b) They contain sensitive information

22
Q

What does failed request tracing provide?

a) A summary of successful requests
b) Detailed tracing information on failed requests
c) User activity logs
d) Application performance metrics

A

b) Detailed tracing information on failed requests

23
Q

What is the purpose of deployment logging?

a) To log messages generated by application code
b) To help determine why a deployment failed
c) To store raw HTTP request data
d) To save copies of error pages

A

b) To help determine why a deployment failed

24
Q

What is the purpose of uploading a certificate into an app in Azure App Service?

a) To enhance the app’s performance
b) To secure information transmitted between the app and the customer
c) To reduce the app’s storage usage
d) To increase the app’s scalability

A

b) To secure information transmitted between the app and the customer

25
Q

Where is a certificate stored when uploaded into an app in Azure App Service?

a) In the app’s local storage
b) In a deployment unit bound to the app service plan’s resource group and region combination
c) In the Azure Key Vault
d) In the app’s configuration settings

A

b) In a deployment unit bound to the app service plan’s resource group and region combination

26
Q

What is a free option for securing a custom domain in App Service?

a) Purchase an App Service certificate
b) Import a certificate from Key Vault
c) Create a free App Service managed certificate
d) Upload a public certificate

A

c) Create a free App Service managed certificate

27
Q

What is required for a private certificate to be used in App Service?

a) Exported as a password-protected PFX file, encrypted using triple DES
b) Contains private key at least 1024 bits long
c) Contains only the root certificate in the certificate chain
d) Exported as a plain text file

A

a) Exported as a password-protected PFX file

28
Q

What is the purpose of importing a certificate from Key Vault?

a) To manage certificates using Azure Key Vault
b) To create a free App Service managed certificate
c) To upload a public certificate
d) To purchase an App Service certificate

A

a) To manage certificates using Azure Key Vault

29
Q

What type of certificates are not used to secure custom domains but can be loaded into code to access remote resources?

a) Private certificates
b) Public certificates
c) App Service managed certificates
d) Key Vault certificates

A

b) Public certificates