exam questions

Exam 300-835 All Questions

View all questions & answers for the 300-835 exam

Exam 300-835 topic 1 question 34 discussion

Actual exam question from Cisco's 300-835
Question #: 34
Topic #: 1
[All 300-835 Questions]


Refer to the exhibit. The code includes the beginning of a short Python script that is constructed to notify the guard in case of an intruder alert. Which code snippet completes the script?
A.

B.

C.

D.

Show Suggested Answer Hide Answer
Suggested Answer: A

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
theflatirons
10 months ago
both /rooms are incorrect. POST to /rooms creates a room. PUT to /rooms updates its details. Either of the other answers are correct IF the guard is a member of that room, which we're not told. The best real-world solution would be B so that not only one person is responsible for acting on the alarm, but the question asks to alert the guard specifically, so using the /messages POST to their email is the only actual correct answer.
upvoted 1 times
...
Nicetomeetyou
3 years, 3 months ago
A: PUT should be POST and /rooms should be /messages B: roomId shouild be 'roomId': room, C: /rooms should be /messages D: request should be requests, api.ciscospark should be webexapis and data should be json but I guess this answer is closest to being correct.
upvoted 1 times
...
Babas09
3 years, 7 months ago
The answer is D. Because A is PUT message
upvoted 4 times
...
moslig
3 years, 10 months ago
I guess this should be D. Send the message directly to the guard..
upvoted 3 times
...
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.

SaveCancel
Loading ...