nerdexam
CiscoCisco

200-901 · Question #295

200-901 Question #295: Real Exam Question with Answer & Explanation

The correct answer is B: JSON does not support comments and YAML does.. {"question_number": 8, "question": "What is a comparison of YAML and JSON?", "correct_answer": "B", "explanation": "The key factual difference highlighted in Answer B is correct: JSON does not support comments in its specification, while YAML does support comments using the '#' c

Infrastructure and Automation

Question

What is a comparison of YAML and JSON?

Options

  • AYAML has a more consistent approach to representing data compared to JSON.
  • BJSON does not support comments and YAML does.
  • CYAML is a more verbose data structure compared to JSON.
  • DJSON has more common usage in configuration management tools compared to YAML.

Explanation

{"question_number": 8, "question": "What is a comparison of YAML and JSON?", "correct_answer": "B", "explanation": "The key factual difference highlighted in Answer B is correct: JSON does not support comments in its specification, while YAML does support comments using the '#' character. This makes YAML more suitable for configuration files where inline documentation is valuable. Answer A is incorrect - YAML's multiple ways to represent the same data (block style, flow style, anchors, aliases) make it less consistent, not more, compared to JSON's strict syntax. Answer C is incorrect - YAML is generally less verbose than JSON because it does not require quotes around strings or curly braces/brackets for structure. Answer D is incorrect - YAML is actually more commonly used in configuration management tools (Ansible playbooks, Kubernetes manifests, Docker Compose), while JSON is more prevalent in REST APIs.", "generated_by": "claude-sonnet", "llm_judge_score": 4}

Topics

#YAML#JSON#Data serialization formats#Syntax comparison

Community Discussion

No community discussion yet for this question.

Full 200-901 PracticeBrowse All 200-901 Questions