az-104 Practice Question 1731
Exam: az-104
Domain: Deploy and manage Azure compute resources
Topic: Create and configure containers
Difficulty: medium
Contoso Ltd has a hybrid environment where their web application is hosted both on-premises and in Azure. They want to ensure that the Azure-hosted instance can scale up or down based on the load from the on-premises environment. How should they configure the scaling rules in Azure App Service to achieve this?
Answer Options
A
Use a schedule trigger
B
Use a metric trigger to scale based on the on-premises environment's load
C
Use a traffic trigger
D
Use a custom script trigger
Correct Answer
B: Use a metric trigger to scale based on the on-premises environment's load
Explanation
The correct answer is B, `Use a metric trigger to scale based on the on-premises environment's load`. This allows the Azure App Service to monitor the load from the on-premises environment and scale accordingly. Option A, `Use a schedule trigger`, would not dynamically adjust the scale based on current load but rather follow a predefined schedule. Option C, `Use a traffic trigger`, would not be suitable for monitoring the load from another environment. Option D, `Use a custom script trigger`, is not a valid scaling rule type in Azure App Service.