Developing Applications and Automating Workflows Using Cisco Platforms (DEVASC) — Question 216

What is a comparison of YAML and JSON?

Answer options

Correct answer: B

Explanation

The correct answer is B because JSON indeed does not allow comments, while YAML does, making it more flexible for including explanations. Option A is incorrect as both formats have their own consistency, and it is subjective. Option C is wrong because YAML is generally considered less verbose than JSON. Option D is misleading, as while JSON is widely used, YAML is also commonly used in configuration management tools.