300-835 · Question #9
Refer to the exhibit. This Python script script uses the websocket-based, xAPI library 'pyxows' to monitor and print event details to the console when users interact with UI Extension/In-Room Control
The correct answer is D. await client.xEvent(['Event', 'UserInterface', 'Extensions', 'Panel', 'Clicked'], callback) E. await client.subscribe(['Event', 'UserInterface', 'Extensions', 'Panel', 'Clicked'], callback). Options D and E are correct because they both use the exact, correct xAPI event path - Event > UserInterface > Extensions > Panel > Clicked - which is the precise hierarchy Webex room devices fire when a UI Extension Action Button is pressed. The pyxows library exposes two valid
Question
Options
- Aawait client.xEvent(['Event', '*'], callback)
- Bawait client.subscribe(['Event', 'ActionButton', 'Clicked'], callback)
- Cawait client.subscribe(['Event', '*'], callback)
- Dawait client.xEvent(['Event', 'UserInterface', 'Extensions', 'Panel', 'Clicked'], callback)
- Eawait client.subscribe(['Event', 'UserInterface', 'Extensions', 'Panel', 'Clicked'], callback)
How the community answered
(38 responses)- A8% (3)
- B13% (5)
- C3% (1)
- D76% (29)
Explanation
Options D and E are correct because they both use the exact, correct xAPI event path - Event > UserInterface > Extensions > Panel > Clicked - which is the precise hierarchy Webex room devices fire when a UI Extension Action Button is pressed. The pyxows library exposes two valid methods for event subscription (xEvent and subscribe), and both work when given the correct path, making D and E functionally equivalent for this use case.
Why the distractors fail:
- A uses
xEventwith a wildcard ('*'), which is not a valid subscription syntax forxEventinpyxows- the method requires a fully qualified path. - B uses
subscribebut with an incorrect path ('ActionButton'), which doesn't match the actual xAPI hierarchy; the real path goes throughUserInterface > Extensions > Panel. - C uses
subscribewith a top-level wildcard, which is too broad and not supported as a valid event filter inpyxows.
Memory tip: Think of the xAPI path as a file system folder structure - UserInterface > Extensions > Panel > Clicked mirrors how Cisco's xAPI actually names these events. If the path doesn't spell out that full hierarchy, the subscription won't match. When you see 'ActionButton' or a bare '*', that's a red flag that the path is wrong or unsupported.
Topics
Community Discussion
No community discussion yet for this question.