Bird
0
0

Which JSON snippet correctly defines a widget showing agent CPU usage as a line chart?

easy📝 Syntax Q3 of 15
Agentic AI - Agent Observability
Which JSON snippet correctly defines a widget showing agent CPU usage as a line chart?
A{"type": "chart", "metric": "cpu_usage", "agent": "agent_01"}
B{"widget": "cpu_usage", "chartType": "line"}
C{"type": "line_chart", "metric": "cpu_usage", "agentId": "agent_01"}
D{"type": "line", "metric": "cpu", "id": "agent_01"}
Step-by-Step Solution
Solution:
  1. Step 1: Check required keys for widget definition

    Correct keys are 'type', 'metric', and 'agentId' with proper values.
  2. Step 2: Validate syntax and key names

    {"type": "line_chart", "metric": "cpu_usage", "agentId": "agent_01"} uses correct keys and values matching the requirement.
  3. Final Answer:

    Correct JSON with type 'line_chart', metric 'cpu_usage', and agentId -> Option C
  4. Quick Check:

    Correct JSON keys = {"type": "line_chart", "metric": "cpu_usage", "agentId": "agent_01"} [OK]
Quick Trick: Use exact keys: type, metric, agentId for widgets [OK]
Common Mistakes:
  • Using wrong key names like 'widget' or 'agent'
  • Incorrect JSON syntax or missing quotes

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Agentic AI Quizzes