And, because the days of the CLI network engineer are coming to an end. We have no choice, learn the new skills or you will age yourself out of the market.
please can someone explain where there is any reference to:
- 'result'
- 'body
or
'simple_time'
anywhere in the request?
I expect to see some reference to the cmd 'show clock'?
What do I not understand?
Thanks in advance
I totally agree, this question is about if you understand that the print statement uses a tree to retrieve information like print(response["payload"][0]["params"]["cmd"] or something similar to this . I think it's just a wrong exhibit to the question .
to explain a bit , i'm green to in Python but print(response["payload"][0] Zero here is index value from the LIST that is payload . payload = [ ] Square brakets means a list [1,2,3,4] and [0] zero represents the index like in list [1,2,3,4] . In python index start from zero not from one so 1 = index 0, 2= index 1 . 4 would be index 3 .
here in our example we have 1 item in the list , and that Item is a Dictionary {key:value, key1:value1} .
I advise to ask ChatGPT for Python , it rocks!
Is this to imply the format of the payload in the comment is wrong and should be replaced with this? I think 'yes', but no context to this post. There is no 'simple_time' to parse in the posted file. Your answer would make more sense as the result to parse.
A lot of questions in this test are dumb. Gone are the days of a route/switch/tshoot jocky. Welcome to Cloud, WiFi, JSON, API
The art of core networking is becoming lost.
I am not a python expert, but A and B seem to have bad syntax as the number of brackets, open and close, do not match. Based on the post by ZiZu007, I would say the answer is D
B is almost 100% correct, should be
response['result']['body']['simple_time']
{
"jsonrpc": "2.0",
"result": {
"body": {
"simple_time": "17:53:49.435 UTC Tue Nov 22 2022\n",
"time_source": "NTP"
}
},
"id": 1
}
upvoted 9 times
...
This section is not available anymore. Please use the main Exam Page.350-401 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
nushadu
Highly Voted 2 years, 4 months agoAsymptote
2 years, 3 months agoAlondrix
1 year, 6 months agoMJane
Highly Voted 2 years, 4 months agochmacnp
Most Recent 3 months, 1 week agomatass_md
2 months, 2 weeks agoebulating
9 months ago[Removed]
11 months agoadamzet33
1 year, 5 months agoeww_cybr
1 year, 9 months agoAlondrix
1 year, 6 months ago[Removed]
1 year, 10 months agomgiuseppe86
1 year, 7 months agodragonwise
2 years, 1 month agoSheldonC
2 years, 3 months agoM_B
2 years, 3 months agoZizu007
2 years, 5 months ago