Exam 350-401 Question id=5720 Network Assurance

Refer to the exhibit.

PYTHON CODE: import requests import json url='http://YOURIP/ins' switchuser='USERID' switchpassword='PASSWORD' myheaders={'content-type':'application/json'} payload={ "ins_api":{ "version":"1.0", "type":"cli_show", "chunk":"0", "sid":"1", "input": "show version”, “output format”: "json" } } response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json() print(response['ins_api']['outputs']['output']['body']['kickstart_ver_str'])

HTTP JSON Response: { "ins_api":{ "type": "cli_show", "version":"1.0", "sid": "eoc", "outputs":{ "output":{ "input": "show version", "msg": "Success", "code":"200", "body":{ "bios_ver_str", "07.61", "kickstart_ver_str": "7.0(3)|7(4)", "bios_cmpl_time": "04/06/2017", "kick_file_name": "bootflash://nxos.7.0.3.|7.4.bin", "kick_cmpl_time", "6/14/1970 2:00:00", "kick_tmstmp": "06/14/1970 09:49:04", "chassis_id": "Nexus9000 9318YC-EX chassis", “cpu_name": "Intel(R) Xeon(R) CPU @ 1.80GHz", "memory": 24633488, "mem_type": "kB", "rr_usecs": 134703, "rr_crime": "Sun Mar 10 15:41:46 2019", "rr_reason": "Reset Requested by CLI command reload", "rr_sys_ver": "7.0(3)|7(4)", "rr_service": "", "manufacturer": "Cisco Systems, Inc", "TABLE_package_list":{ "ROW_package_list":{ "package_id":{} } } } } } } }

Which HTTP JSON response does the Python code output give?

A. 7.0(3)|7(4)
B. 7.61
C. NameError: name 'json' is not defined
D. KeyError: 'kickstart_ver_str'

WARNING

the answers are mixed, do not specify in the comment number or the letter of the answer
please write answer#A instead A, answer#B instead B...
Subject:

only logged users can write comments