DCCOR Exam QuestionsBrowse all questions from this exam

DCCOR Exam - Question 515


Refer to the exhibit.

A network engineer must retrieve the network interface name from a JSON object. The engineer loads the JSON into a Python dictionary named json_object. Which code snippet completes the Python script?

Show Answer
Correct Answer:

Discussion

1 comment
Sign in to comment
Annyue26Option: A
May 4, 2025

>>> import json >>> json_object = { ... "type": "network", ... "if-name": "eth0" ... } >>> print (type(json_object)) <type 'dict'> >>> interface_name = json_object["if-name"] >>> print (interface_name) eth0