Explore Azure App Service deployment slots Flashcards

1
Q

What are deployment slots in Azure App Service?

a) Temporary storage areas for logs
b) Live apps with their own host names
c) Backup servers for disaster recovery
d) Pre-configured testing environments that can’t be swapped

A

b) Live apps with their own host names

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

What is one benefit of deploying an app to a non-production slot?

a) It reduces the number of required instances
b) It eliminates the need for a production environment
c) It allows validating changes before deploying to production
d) It prevents the app from scaling out

A

c) It allows validating changes before deploying to production

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

What happens to the previous production app after a slot swap?

a) It is deleted
b) It is moved to a backup server
c) It becomes the new staging slot
d) It remains in production alongside the new version

A

c) It becomes the new staging slot

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

What should be considered when scaling an app to a different App Service tier?

a) The app’s memory usage
b) The number of deployment slots supported by the tier
c) The app’s CPU utilization
d) The number of HTTP requests handled

A

b) The number of deployment slots supported by the tier

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

What happens during the first phase of a slot swap with preview?

a) The production slot is warmed up
b) The source slot’s instances are restarted
c) The target slot is deleted
d) All settings are removed from both slots

A

b) The source slot’s instances are restarted

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

How does App Service ensure that an application is warmed up after a swap?

a) By checking the CPU usage
b) By triggering HTTP requests to the app root
c) By deploying new instances
d) By scaling the app out

A

b) By triggering HTTP requests to the app root

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

What happens if an instance in the source slot fails to restart during a slot swap?

a) The swap operation completes with errors
b) The instance is replaced automatically
c) The swap reverts and stops
d) The operation ignores the failed instance

A

c) The swap reverts and stops

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

What is triggered if auto swap is enabled with custom warm-up?

a) Slot deletion
b) Continuous deployment
c) Application Initiation
d) Cache initialization

A

c) Application Initiation

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

What happens to the target slot during the slot swap operation?

a) It is warmed up
b) It remains online
c) It is stopped
d) It is deleted

A

b) It remains online

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

What must be true when swapping a staging slot with the production slot?

a) The production slot must be offline
b) The staging slot must be the target slot
c) The production slot must be the target slot
d) The staging slot must be swapped automatically

A

c) The production slot must be the target slot

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

Which of the following settings are not swapped during a slot swap?

a) General settings and connection strings
b) Publishing endpoints and custom domain names
c) Managed identities and app settings
d) WebJobs content and handler mappings

A

b) Publishing endpoints and custom domain names

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

How can you configure an app setting to stick to a specific slot?

a) Set the WEBSITE_OVERRIDE_PRESERVE_DEFAULT_STICKY_SLOT_SETTINGS value to true
b) Add the setting in the Production slot only
c) Select the Deployment slot setting checkbox in the Configuration page
d) Modify the web.config file

A

c) Select the Deployment slot setting checkbox in the Configuration page

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

What is the first step in manually swapping deployment slots?

a) Go to the Configuration page
b) Select the target slot from the App Service plan
c) Go to the Deployment slots page and select Swap
d) Modify the web.config file

A

c) Go to the Deployment slots page and select Swap

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

What should you verify before performing a swap?

a) That the source slot is online
b) That production is your target slot
c) That the target slot is empty
d) That the source slot is disabled

A

b) That production is your target slot

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

What option allows you to preview how the target slot will run with the new settings before swapping?

a) Use diagnostic tools
b) Perform swap with preview checkbox
c) Restart the app service
d) Clone the source slot

A

b) Perform swap with preview checkbox

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

What happens if you cancel a swap after performing it with preview?

a) The app settings are reset
b) The swap is completed automatically
c) Configuration is reapplied to the source slot
d) The source slot is deleted

A

c) Configuration is reapplied to the source slot

17
Q

What is the main benefit of configuring auto swap?

a) Reduces memory usage
b) Enables zero downtime during app updates
c) Improves app performance
d) Minimizes app restart times

A

b) Enables zero downtime during app updates

18
Q

Where can you enable the auto swap feature?

a) On the app’s resource page under Deployment slots
b) In the Azure Portal Dashboard
c) On the Configuration > General settings page
d) In the App Service plan settings

A

c) On the Configuration > General settings page

19
Q

What is required to trigger an auto swap after configuring it?

a) Execute a code push to the source slot
b) Manually swap the slots
c) Restart the app
d) Change the target slot manually

A

a) Execute a code push to the source slot

20
Q

Which app setting allows you to specify a custom path to ping during a warm-up?

a) WEBSITE_SWAP_WARMUP_PING_STATUSES
b) WEBSITE_WARMUP_PATH
c) WEBSITE_SWAP_WARMUP_PING_PATH
d) WEBSITE_INITIALIZATION_PATH

A

c) WEBSITE_SWAP_WARMUP_PING_PATH

21
Q

What is the main use of routing production traffic to another slot?

a) To improve performance
b) To enable seamless failover
c) To gather user feedback for a new update
d) To reduce app load

A

c) To gather user feedback for a new update

22
Q

How can you route a portion of production traffic to another slot?

a) Use a load balancer to distribute traffic
b) Set a traffic percentage in the Traffic % column of the Deployment slots page
c) Configure a traffic rule in the app settings
d) Modify the app’s DNS settings

A

b) Set a traffic percentage in the Traffic % column of the Deployment slots page

23
Q

What does the x-ms-routing-name=self query parameter do?

a) Routes traffic to the staging slot
b) Pins the client session to the production slot
c) Logs the user out of the app
d) Redirects traffic to a random slot

A

b) Pins the client session to the production slot

24
Q

How can you route users manually to a non-production slot?

a) Use the x-ms-routing-name query parameter in a link
b) Set the traffic percentage to 100% for that slot
c) Add a routing rule in the app’s configuration
d) Use the IP address of the slot directly

A

a) Use the x-ms-routing-name query parameter in a link