300-835 · Question #13
Refer to the exhibit. This exhibit is a simple Python script to monitor call activity for a local Webex room device. Which code snippet listens for call events and completes the script?
The correct answer is C. await client.subscribe(['Status', 'Call', 'Status'], callback, False). Option C is correct because Webex xAPI status paths begin with 'Status' - making ['Status', 'Call', 'Status'] the accurate path for call status events - and the correct Python SDK method for subscribing to device feedback is subscribe, not xfeedback. Options A and D both fail on
Question
Options
- Aawait client.xfeedback(['Feedback', 'Call', 'Status'], callback, False)
- Bawait client.subscribe(['Feedback', 'Call', 'Status'], callback, False)
- Cawait client.subscribe(['Status', 'Call', 'Status'], callback, False)
- Dawait client.xfeedback(['Feedback', 'Call', 'Status'], callback, False)
How the community answered
(34 responses)- A3% (1)
- B12% (4)
- C76% (26)
- D9% (3)
Explanation
Option C is correct because Webex xAPI status paths begin with 'Status' - making ['Status', 'Call', 'Status'] the accurate path for call status events - and the correct Python SDK method for subscribing to device feedback is subscribe, not xfeedback. Options A and D both fail on two counts: they use the non-existent xfeedback method name and incorrectly start the path with 'Feedback' instead of 'Status'. Option B uses the correct subscribe method but still has the wrong path prefix ('Feedback'), which would not match any valid xAPI status node.
Memory tip: Use the "3 S's" rule - you always Subscribe to a Status path that Starts with 'Status'.
Topics
Community Discussion
No community discussion yet for this question.