Question 4 of 60 from exam 300-435-ENAUTO: Automating and Programming Cisco Enterprise Solutions

Question 4 of 60 from exam 300-435-ENAUTO: Automating and Programming Cisco Enterprise Solutions

Question

return_val—
{

valertId”: “643451796765672516",

valertType”: “appliances went down”,

“deviceMac”: “e0:55:3d:6c:c1:7a",

“deviceName: “MX65 cl:7a”,

“deviceSerial”: “Q2QN-58EA-20OK”

“deviceUrl”: “https: //n143.meraki.com/Branch-1/n/... /manage/nodes/new_wired_status” |

“networkId”: “L_1234567890",

‘networkName”: “Branch 1”,

“networkUrl”: “https: //n143.meraki.com/Branch-1/n/.../manage/nodes/wired_status”,

YoccuredaAt”: “2018-11-107T18:45:20.0000002”,

YorganizationId”: “1234567”,

“organizationName”: ‘Meraki Demo”,

Yorganizationurl”: “https: //n143.meraki.com/o/.../manage/organization/overview”,

“sentat: “2018-11-10718:50:30.4799822”,

“SharedSecret”: “asdf1234”,

“version”: “0.1”

Refer to the exhibit.

The task is to create a Python script to display an alert message when a Meraki MX Security Appliance goes down.

The exhibit shows sample data that is received.

Which Python snippet displays the device name and the time at which the switch went down? A.

with return_val:
print (“The Switch: “+deviceName+ “,
went down at: “+occurredAt)

B.

print (“The Switch: “+return_val.deviceNamet+ “, \
went down at: “+return val.occurredat)

C.

print (“The Switch: “+return_val[‘deviceName’]+ “, \
went down at: “+return val[‘occurredat’ ]”)

D.

with items as return_val:
print (“The Switch: “+items.deviceName+ %,
went down at: “+items.occurredAt)

Explanations

B.