Explore Azure App Service Flashcards

1
Q

What is Azure App Service used for?
a) Hosting web applications, REST APIs, and mobile back ends
b) Running desktop applications
c) Storing large amounts of data
d) Managing virtual machines

A

a) Hosting web applications, REST APIs, and mobile back ends

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

What does scaling out/in mean in Azure App Service?
a) Increasing or decreasing the number of cores
b) Increasing or decreasing the amount of RAM
c) Increasing or decreasing the number of machine instances running your web app
d) Adjusting the size of the container

A

c) Increasing or decreasing the number of machine instances running your web app

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

Which of the following is supported by Azure App Service for containerized web apps?
a) Only Windows containers
b) Only Linux containers
c) Multi-container apps and Docker Compose
d) Container images from any cloud provider

A

c) Multi-container apps and Docker Compose

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

What is a key feature of Azure App Service’s continuous integration and deployment support?
a) Manual syncing of code updates
b) Automatic syncing of code and future changes from sources like GitHub or Azure DevOps
c) Only supports integration with Azure DevOps
d) Requires additional configuration for deployment

A

b) Automatic syncing of code and future changes from sources like GitHub or Azure DevOps

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

What is a deployment slot in Azure App Service?
a) A temporary storage for testing code
b) A separate live app with its own hostname
c) A virtual machine dedicated to deployment
d) An extra container for scaling

A

b) A separate live app with its own hostname

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

What languages are supported by App Service on Linux for built-in images?
a) Only Node.js and Java
b) Node.js, Java, PHP, Python, .NET, and Ruby
c) Only PHP and Python
d) Any language supported by Docker

A

b) Node.js, Java, PHP, Python, .NET, and Ruby

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

Which pricing tier does not support App Service on Linux?
a) Standard
b) Premium
c) Shared
d) Basic

A

c) Shared

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

What benefit does using custom containers in App Service on Linux provide?
a) Lower deployment costs
b) Better disk latency for apps with heavy read-only access
c) Automatic scaling of resources
d) Easier integration with Azure DevOps

A

b) Better disk latency for apps with heavy read-only access

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

What does an App Service plan define?
a) Only the number of users for an app
b) A set of compute resources for a web app to run
c) The specific database for your app
d) The storage capacity for your app

A

b) 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

Which pricing tiers are part of the shared compute category?
a) Basic and Premium
b) Free and Shared
c) Isolated and Standard
d) PremiumV2 and PremiumV3

A

b) Free and Shared

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

What is the primary difference between the Free/Shared and other App Service tiers?
a) Free/Shared run on dedicated Azure VMs
b) Free/Shared tiers can scale out easily
c) Free/Shared tiers run on the same VM as other customers’ apps
d) Free/Shared tiers provide network isolation

A

c) Free/Shared tiers run on the same VM as other customers’ apps

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

What happens when multiple apps are configured in the same App Service plan?
a) Each app gets its own dedicated VM instance
b) All apps share the same VM instances
c) Apps are distributed across different regions
d) Each app has its own pricing tier

A

b) All apps share the same VM instances

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

What is the advantage of isolating an app into a separate App Service plan?
a) The app can run in a different operating system
b) It allows for independent scaling and resource allocation
c) It guarantees that the app will never require scaling
d) The app automatically gets access to more storage

A

b) It allows for independent scaling and resource allocation

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

When should you consider isolating an app into a new App Service plan?
a) When the app needs more memory
b) When the app is resource-intensive or needs to scale independently
c) When the app is using too many deployment slots
d) When you want to enable diagnostic logs

A

b) When the app is resource-intensive or needs to scale independently

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

What can be done if an app needs more capabilities or features in an App Service plan?
a) Migrate the app to a different cloud provider
b) Change the pricing tier of the App Service plan
c) Remove all other apps from the App Service plan
d) Increase the size of the app’s database

A

b) Change the pricing tier of the App Service plan

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

In which scenario should you keep multiple apps in the same App Service plan?
a) When you want to save money by sharing compute resources
b) When each app needs a different operating system
c) When apps are spread across different regions
d) When you want to isolate each app’s performance

A

a) When you want to save money by sharing compute resources

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

What is automated deployment in Azure App Service?
a) A manual process for pushing code to the cloud
b) A fast, repetitive process for deploying new features with minimal impact on users
c) A backup mechanism for code in case of system failure
d) A one-time deployment process

A

b) A fast, repetitive process for deploying new features with minimal impact on users

18
Q

Which source is NOT supported for automated deployment in Azure?
a) Azure DevOps Services
b) GitHub
c) Bitbucket
d) Dropbox

A

d) Dropbox

19
Q

What is the purpose of deployment slots in Azure App Service?
a) To provide multiple copies of your app in different regions
b) To deploy to a staging environment and swap to production without downtime
c) To increase the number of VMs running your app
d) To allow multiple users to work on the same project

A

b) To deploy to a staging environment and swap to production without downtime

20
Q

What command-line tool can be used to manually deploy code to an Azure web app?
a) az webapp up
b) git deploy
c) azure deploy tool
d) Azure PowerShell Manager

A

a) az webapp up

21
Q

When should you avoid using the default latest tag for containers in continuous deployment?
a) When deploying code updates
b) When the app runs on multiple platforms
c) When you want to track what code is deployed for easier debugging
d) When using FTP for deployment

A

c) When you want to track what code is deployed for easier debugging

22
Q

Which manual deployment method uses a traditional approach common in many hosting environments?
a) Git
b) CLI
c) FTP/S
d) Zip deploy

A

c) FTP/S

23
Q

How does Azure App Service minimize downtime during container deployment?
a) By deploying containers directly to production
b) By swapping deployment slots after the container is warmed up
c) By updating the image tag during the build pipeline
d) By using the ‘latest’ tag for container images

A

b) By swapping deployment slots after the container is warmed up

24
Q

What happens when you update the deployment slot with a new container image tag?
a) The site is deleted
b) The site pulls the new image and restarts
c) The site stops working until the image is verified
d) The container is cloned to all deployment slots

A

b) The site pulls the new image and restarts

25
Q

What is a benefit of using Azure App Service’s built-in authentication?
a) It requires extensive coding and security expertise
b) It saves time by offering out-of-the-box authentication with federated identity providers
c) It only supports Microsoft Entra ID as the identity provider
d) It is mandatory to use for all Azure apps

A

b) It saves time by offering out-of-the-box authentication with federated identity providers

26
Q

Which identity provider is NOT supported by default in Azure App Service?
a) Microsoft identity platform
b) Facebook
c) Google
d) Dropbox

A

d) Dropbox

27
Q

What happens when an unauthenticated request is sent to an app configured to require authentication in Azure App Service?
a) The request is allowed without any checks
b) The app crashes due to missing credentials
c) The request is rejected with an HTTP 401 Unauthorized or redirected to a login provider
d) The app ignores the authentication settings

A

c) The request is rejected with an HTTP 401 Unauthorized or redirected to a login provider

28
Q

In the authentication flow, what does App Service add to the response after establishing an authenticated session?
a) A deployment slot
b) An encrypted database
c) An authentication cookie
d) A log file

A

c) An authentication cookie

29
Q

What is the function of the built-in token store in Azure App Service?
a) It stores application logs
b) It holds tokens associated with authenticated users
c) It saves application configuration settings
d) It stores the app’s backup files

A

b) It holds tokens associated with authenticated users

30
Q

What option should you choose if you want App Service to allow unauthenticated requests but still pass authentication information in headers for authenticated requests?
a) Require authentication
b) Token store
c) Allow unauthenticated requests
d) Identity provider selection

A

c) Allow unauthenticated requests

31
Q

What is the difference between server-directed flow and client-directed flow in Azure authentication?
a) Server flow uses cookies, while client flow uses tokens in the X-ZUMO-AUTH header
b) Server flow is slower than client flow
c) Server flow requires more code than client flow
d) Client flow only works for REST APIs

A

a) Server flow uses cookies, while client flow uses tokens in the X-ZUMO-AUTH header

32
Q

What is the default behavior of apps hosted in Azure App Service regarding network accessibility?
a) They are only accessible through a virtual private network
b) They are only accessible to specific IP addresses
c) They are accessible directly through the internet
d) They are completely isolated from the internet

A

c) They are accessible directly through the internet

33
Q

Which Azure App Service plan supports hosting in a single-tenant environment?
a) Free
b) PremiumV2
c) Isolated
d) Shared

A

c) Isolated

34
Q

What is the role of ‘front ends’ in Azure App Service?
a) They handle outgoing traffic
b) They store customer data
c) They handle incoming HTTP or HTTPS requests
d) They manage app scaling

A

c) They handle incoming HTTP or HTTPS requests

35
Q

Which feature would you use to restrict access to an Azure App Service app from specific IP addresses?
a) App-assigned address
b) Access restrictions
c) Private endpoints
d) Hybrid connections

A

b) Access restrictions

36
Q

What happens when you change the VM family in Azure App Service?
a) It switches the app to a different pricing plan
b) The set of outbound addresses changes
c) The app’s IP address remains the same
d) All apps stop working temporarily

A

b) The set of outbound addresses changes

37
Q

What command is used to deploy a static HTML site to Azure App Service?
a) az webapp deploy
b) az webapp create
c) az webapp up
d) az appservice deploy

A

c) az webapp up

38
Q

Which of the following is automatically created if not specified when running the az webapp up command?
a) Virtual network
b) Storage account
c) App service plan
d) Resource lock

A

c) App service plan

39
Q

What is the purpose of the --html option in the az webapp up command?
a) To specify HTML as the output format
b) To deploy a static HTML web app
c) To compress the HTML files
d) To validate the HTML code

A

b) To deploy a static HTML web app

40
Q

What should you do after modifying the index.html file to apply the changes to the live app?
a) Restart the web app
b) Run the az webapp up command again
c) Delete and recreate the app
d) Refresh the Cloud Shell

A

b) Run the az webapp up command again