0
0
Azurecloud~20 mins

Container Apps scaling rules in Azure - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Container Apps Scaling Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
How does CPU-based scaling work in Azure Container Apps?

Azure Container Apps can scale based on CPU usage. What happens when the CPU usage exceeds the configured threshold?

AThe platform ignores CPU usage and scales only based on memory.
BThe platform decreases the number of container instances to save resources.
CThe platform restarts the container instances to clear CPU usage.
DThe platform increases the number of container instances to reduce CPU load.
Attempts:
2 left
💡 Hint

Think about how scaling helps manage load.

Configuration
intermediate
2:00remaining
What is the effect of setting a minimum replica count in Container Apps scaling?

If you configure a minimum replica count of 2 in your Container App's scaling rules, what is the expected behavior?

AThe Container App will run exactly 2 instances and never scale beyond that.
BThe Container App will scale down to zero instances when idle.
CThe Container App will always run at least 2 container instances, even if there is no traffic.
DThe Container App will ignore the minimum and scale based only on CPU.
Attempts:
2 left
💡 Hint

Minimum replicas prevent scaling below a certain number.

Architecture
advanced
2:00remaining
Which scaling rule best supports burst traffic in Azure Container Apps?

You expect sudden spikes in traffic to your Container App. Which scaling rule configuration will best handle this scenario?

ASet minimum replicas equal to maximum replicas to keep a fixed number of instances.
BSet a low CPU threshold with a high maximum replica count to quickly add instances during spikes.
CDisable scaling and manually add instances during spikes.
DSet a high CPU threshold with a low maximum replica count to limit resource use.
Attempts:
2 left
💡 Hint

Think about responsiveness and capacity during traffic bursts.

security
advanced
2:00remaining
What security risk can arise from improper scaling rule configuration in Container Apps?

If scaling rules allow unlimited scaling without limits, what security risk might occur?

APotential denial of service due to resource exhaustion and increased attack surface.
BAutomatic encryption of data at rest is disabled.
CContainer images become publicly accessible.
DScaling rules have no impact on security risks.
Attempts:
2 left
💡 Hint

Consider resource limits and attack vectors.

Best Practice
expert
3:00remaining
What is the recommended approach to configure scaling rules for cost efficiency and performance in Azure Container Apps?

To balance cost and performance, which scaling rule setup is best?

ASet a moderate CPU threshold, define minimum replicas to avoid cold starts, and set a reasonable maximum replica count.
BSet minimum replicas to zero, maximum replicas to unlimited, and no CPU threshold.
CSet CPU threshold very low and maximum replicas very high to always scale out.
DSet maximum replicas to one and disable scaling to save costs.
Attempts:
2 left
💡 Hint

Think about avoiding cold starts and controlling costs.