Microsoft Azure Developer Associate AZ-204 Practice Question
You are developing an Azure Container App named orders-worker that processes messages from an Azure Service Bus queue. The app must run zero replicas when the queue is empty but scale out to as many as 20 replicas as the number of pending messages grows. HTTP ingress is disabled. Which scaling rule type should you configure for orders-worker to meet these requirements?
Add a cron scaler rule that increases replica count during working hours.
Define a KEDA scaling rule of type "azure-servicebus" with queueName and connection settings.
Enable external HTTP ingress and rely on the built-in HTTP autoscaler.
Set minReplicas to 1 and configure CPU-based scaling only.
KEDA provides the event-driven scaling used by Azure Container Apps. To scale on the length of an Azure Service Bus queue you must add a KEDA rule whose type is "azure-servicebus" (or the equivalent alias "azure-servicebus-queue"). The rule monitors the queue length and changes replica counts, allowing the app to drop to zero when no messages exist and grow up to the maximum you set (20 in this scenario). HTTP ingress scaling works only for HTTP traffic, CPU metrics do not scale to zero, and a cron scaler simply schedules fixed replica counts rather than reacting to queue depth.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is KEDA in Azure?
Open an interactive chat with Bash
How does the 'azure-servicebus' KEDA scaler work?
Open an interactive chat with Bash
Why doesn't HTTP ingress autoscaling apply in this scenario?
Open an interactive chat with Bash
Microsoft Azure Developer Associate AZ-204
Develop Azure compute solutions
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .