D. The value for CPU threshold is not a valid number
Solution
Step 1: Check the value field in metadata
The value should be a number representing CPU percentage, but "abc" is not numeric.
Step 2: Confirm type correctness
The type "cpu" is correct, and keys are spelled properly.
Final Answer:
The value for CPU threshold is not a valid number -> Option D
Quick Check:
CPU value must be numeric [OK]
Hint: CPU threshold value must be a number [OK]
Common Mistakes:
Using non-numeric strings for threshold values
Changing correct type names
Misspelling JSON keys
5. You want to configure an Azure Container App to scale between 2 and 10 instances based on CPU usage exceeding 70%. Which JSON snippet correctly sets the min and max replicas along with the CPU scaling rule?
Min replicas should be 2 and max replicas 10 as per requirement; {"minReplicas": 2, "maxReplicas": 10, "rules": [{"name": "cpuRule", "type": "cpu", "metadata": {"value": "70"}}]} matches this correctly.
Step 2: Check scaling rule type and metadata
The rule must be type "cpu" with value "70" for CPU usage threshold; {"minReplicas": 2, "maxReplicas": 10, "rules": [{"name": "cpuRule", "type": "cpu", "metadata": {"value": "70"}}]} correctly sets this.