nerdexam
Cisco

300-615 · Question #138

The script fails to convert a JSON variable into a Python dictionary. Which action resolves the issue?

The correct answer is A. Use a json.dumps(json_output) function. See the full explanation below for the reasoning.

Question

The script fails to convert a JSON variable into a Python dictionary. Which action resolves the issue?

Exhibits

300-615 question #138 exhibit 1
300-615 question #138 exhibit 2

Options

  • AUse a json.dumps(json_output) function
  • BDefine a json_output as a YAML object, yaml json_output
  • CFix the JSON syntax by modifying "attribures" to "attribures":
  • DInvoke a function yaml.loads(json.output ,decoder"json")

How the community answered

(48 responses)
  • A
    85% (41)
  • B
    4% (2)
  • C
    2% (1)
  • D
    8% (4)

Community Discussion

No community discussion yet for this question.

Full 300-615 Practice