Value temperature is unquoted, so JSON is invalid.
Step 2: Confirm correct widget type
"gauge" is a valid widget type, so not the cause.
Final Answer:
Missing quotes around the string 'temperature' -> Option B
Quick Check:
Unquoted string in JSON = syntax error [OK]
Hint: Strings in JSON must have double quotes [OK]
Common Mistakes:
Assuming widget type is wrong
Ignoring missing quotes on strings
Thinking empty data causes failure
5. You want to create a dashboard that alerts when temperature exceeds 75 degrees and shows a red warning. Which configuration snippet correctly adds this alert?
hard
A. {"alerts": [{"metric": "temperature", "condition": "<75", "color": "red"}]}
B. {"alerts": [{"metric": "temperature", "condition": ">=75", "color": "green"}]}
C. {"alerts": [{"metric": temperature, "condition": ">75", "color": red}]}
D. {"alerts": [{"metric": "temperature", "condition": ">75", "color": "red"}]}
Solution
Step 1: Identify correct alert condition
Alert triggers when temperature is greater than 75, so condition ">75" is correct.
Step 2: Check alert color for warning
Red color indicates warning, so "color": "red" is correct.
Step 3: Validate JSON syntax
{"alerts": [{"metric": "temperature", "condition": ">75", "color": "red"}]} uses proper quotes around strings and keys.
Final Answer:
{"alerts": [{"metric": "temperature", "condition": ">75", "color": "red"}]} -> Option D
Quick Check:
Alert condition ">75" with red color = {"alerts": [{"metric": "temperature", "condition": ">75", "color": "red"}]} [OK]
Hint: Alert condition and color must match requirement [OK]