Scale apps in Azure App Service Flashcards

1
Q

What is autoscaling in Azure App Service?

a) A system that increases CPU power and memory based on demand
b) A method of adjusting the number of web servers based on workload
c) A process to upgrade the app to a higher tier
d) A mechanism to reduce app storage when demand decreases

A

b) A method of adjusting the number of web servers based on workload

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

How does autoscaling respond to an increasing workload?

a) By increasing the CPU power of the web servers
b) By adding or removing web servers
c) By upgrading the app service plan
d) By reducing storage usage

A

b) By adding or removing web servers

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

What is a key factor that can trigger autoscaling?

a) The amount of data stored
b) A surge in incoming requests
c) The number of app service plans
d) The size of the web app

A

b) A surge in incoming requests

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

Why is it important to define autoscaling rules carefully?

a) To prevent unauthorized users from accessing your app
b) To avoid unnecessary scaling during a Denial of Service attack
c) To reduce app storage during low traffic periods
d) To maximize CPU usage during high demand

A

b) To avoid unnecessary scaling during a Denial of Service attack

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

When should autoscaling be considered?

a) During long-term growth of a web app
b) When expecting temporary changes in activity
c) For handling complex, resource-intensive processing
d) When scaling up is more cost-effective

A

b) When expecting temporary changes in activity

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

Why might autoscaling not be suitable for resource-intensive web apps?

a) Autoscaling reduces memory capacity
b) It adds web servers without increasing instance power
c) Autoscaling increases processing power but not storage
d) It does not monitor web app requests

A

b) It adds web servers without increasing instance power

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

What is a drawback of using autoscaling for long-term growth?

a) It requires constant monitoring by the developer
b) It is slower than manually scaling the system
c) It incurs overhead associated with resource monitoring
d) It increases CPU capacity without scaling storage

A

c) It incurs overhead associated with resource monitoring

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

What is one benefit of automatic scaling in Azure App Service?

a) It charges a flat fee for all instances
b) It allows web apps to scale differently within the same plan
c) It eliminates the need for database connections
d) It automatically reduces storage costs

A

b) It allows web apps to scale differently within the same plan

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

What is autoscaling a feature of?

a) The App Service
b) The App Service Plan
c) The web app
d) The Azure subscription

A

b) The App Service Plan

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

How does autoscaling prevent runaway scaling?

a) By limiting the number of concurrent users
b) By setting a maximum instance limit in the App Service Plan
c) By monitoring only CPU usage
d) By scaling up instead of scaling out

A

b) By setting a maximum instance limit in the App Service Plan

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

What is one method for triggering autoscaling?

a) Based on a fixed number of users
b) According to a schedule
c) By app version updates
d) Based on available storage space

A

b) According to a schedule

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

How can you combine metric and schedule-based autoscaling?

a) By using manual scaling for specific times of day
b) By setting multiple app instances at once
c) By scaling incrementally when a metric exceeds a threshold during certain hours
d) By setting different App Service Plans for each metric

A

c) By scaling incrementally when a metric exceeds a threshold during certain hours

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

What does the CPU Percentage metric indicate?

a) Disk usage is high
b) CPU utilization across all instances
c) The number of HTTP requests
d) The amount of data being received

A

b) CPU utilization across all instances

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

What could a high value in Memory Percentage indicate?

a) Disk contention
b) A high number of I/O requests
c) Low availability of free memory
d) Increased CPU usage

A

c) Low availability of free memory

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

What does the Http Queue Length metric represent?

a) The number of client requests waiting for processing
b) The number of requests failing with HTTP 500 errors
c) The amount of data being sent to clients
d) The total number of active web app instances

A

a) The number of client requests waiting for processing

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

What is the minimum Duration required for analyzing trends in metrics over time?

a) 1 minute
b) 5 minutes
c) 10 minutes
d) 15 minutes

A

b) 5 minutes

17
Q

What does a scale-out action do when an autoscale rule detects a threshold has been crossed?

a) Increases the number of instances
b) Decreases the number of instances
c) Sets a maximum instance limit
d) Shuts down the service

A

a) Increases the number of instances

18
Q

What operator is typically used in a scale-out action?

a) Equal to
b) Less than
c) Greater than
d) Not equal to

A

c) Greater than

19
Q

What is the minimum cool down period for an autoscale action?

a) 1 minute
b) 3 minutes
c) 5 minutes
d) 10 minutes

A

c) 5 minutes

20
Q

What happens when combining autoscale rules for scaling in?

a) The autoscale action runs if any of the scale-in rules are met
b) The autoscale action runs only if all scale-in rules are met
c) The autoscale action scales out immediately
d) It always scales to the maximum instance count

A

b) The autoscale action runs only if all scale-in rules are met

21
Q

What is the first step to enabling autoscaling in an Azure App Service plan?

a) Select the pricing tier
b) Navigate to the Azure portal
c) Select Scale out in the App Service plan settings
d) Create custom scale conditions

A

c) Select Scale out in the App Service plan settings

22
Q

Which pricing tier does not support autoscaling?

a) S1
b) P1
c) F1
d) B1

A

c) F1

23
Q

What must you do before enabling autoscale if your App Service Plan is in the F1 or D1 pricing tier?

a) Upgrade to S1 or a production tier
b) Add more manual scaling rules
c) Switch to a custom scaling solution
d) Increase the memory limit

A

a) Upgrade to S1 or a production tier

24
Q

What does the Default scale condition do?

a) It is executed when none of the other scale conditions are active
b) It always scales to a maximum instance count
c) It only works during a scheduled time
d) It cannot be edited

A

a) It is executed when none of the other scale conditions are active

25
Q

Where can you track autoscaling events in the Azure portal?

a) Resource usage page
b) App Service Plan overview page
c) Run history chart
d) Activity log

A

c) Run history chart

26
Q

What can you specify in a metric-based scale condition?

a) The instance type to use
b) The maximum and minimum number of instances
c) The request timeout period
d) The type of storage to scale

A

b) The maximum and minimum number of instances

27
Q

How can you monitor autoscaling activity in Azure?

a) By using the Run history chart
b) By setting up email notifications
c) By viewing log files
d) By configuring manual scaling rules

A

a) By using the Run history chart

28
Q

How does an autoscale setting function in Azure App Service?

a) It scales instances vertically by increasing their capacity
b) It scales instances horizontally by increasing or decreasing their count
c) It only increases the instance count during peak hours
d) It manages instances based on scheduled times without metrics

A

b) It scales instances horizontally by increasing or decreasing their count

29
Q

What is a key requirement when setting the maximum and minimum values for autoscaling?

a) They should be equal to allow for smooth scaling
b) They should have a significant margin between them
c) The minimum must always be set to one instance
d) They should be set to the same value for consistency

A

b) They should have a significant margin between them

30
Q

What happens if the minimum and maximum instance counts are set to the same value in autoscaling?

a) Autoscale will function normally
b) No scaling actions can occur
c) It will cause an error in the settings
d) Autoscaling will only allow for manual adjustments

A

b) No scaling actions can occur

31
Q

What should you consider when choosing thresholds for autoscale metrics?

a) The thresholds should be the same for all metrics
b) Thresholds should be based on practical situations and metrics used
c) Only set a threshold for scale-out actions
d) Thresholds do not need to be adjusted once set

A

b) Thresholds should be based on practical situations and metrics used

32
Q

What is a potential issue with using the same threshold values for both scale-out and scale-in conditions in autoscaling?

a) It can lead to excessive resource usage
b) It can cause confusion and potential infinite loops
c) It makes scaling faster and more efficient
d) It results in too many instances being created

A

b) It can cause confusion and potential infinite loops

33
Q

What does the term ‘flapping’ refer to in the context of autoscaling?

a) Rapidly increasing the number of instances
b) Constantly switching between scaling in and out
c) A type of error in the scaling rules
d) A method for optimizing performance

A

b) Constantly switching between scaling in and out

34
Q

What is a recommended practice when defining scale-out and scale-in thresholds for autoscaling?

a) Use identical thresholds for consistency
b) Set a large difference between scale-out and scale-in thresholds
c) Only define thresholds for scale-out actions
d) Use random values for thresholds

A

b) Set a large difference between scale-out and scale-in thresholds

35
Q

How does autoscaling handle the situation when average CPU percentage drops to a level that would trigger a scale-in?

a) It always scales in regardless of the situation
b) It estimates the impact of scaling in to prevent flapping
c) It immediately scales in without estimation
d) It ignores the scale-in condition and waits for a manual trigger

A

b) It estimates the impact of scaling in to prevent flapping

36
Q

What happens when multiple autoscale rules are configured in a profile for scale-out actions?

a) All rules must be met to scale out
b) The action will run if any rule is met
c) Only the first rule is considered
d) The system ignores all rules for scale-out

A

b) The action will run if any rule is met

37
Q

What is required for a scale-in action when multiple autoscale rules are configured?

a) Only one rule must be met
b) All rules must be met
c) No rules are needed for scale-in
d) The last rule defined is the only one considered

A

b) All rules must be met

38
Q

What is the purpose of the default instance count in autoscaling?

a) It defines the maximum number of instances
b) It sets the instance count when metrics are unavailable
c) It determines the minimum number of instances
d) It is only for informational purposes

A

b) It sets the instance count when metrics are unavailable

39
Q

What notifications can be configured for autoscale events in Azure?

a) Only SMS notifications
b) Only email notifications
c) Activity Log alerts and notifications via email or webhooks
d) No notifications can be configured

A

c) Activity Log alerts and notifications via email or webhooks