nerdexam
Cisco

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

Cisco Webex API

Question

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 Action Buttons' deployed by the Touch-10 interface of a Webex room device. Which two code snippets successfully capture such events? (Choose two.)

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)
  • A
    8% (3)
  • B
    13% (5)
  • C
    3% (1)
  • D
    76% (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 xEvent with a wildcard ('*'), which is not a valid subscription syntax for xEvent in pyxows - the method requires a fully qualified path.
  • B uses subscribe but with an incorrect path ('ActionButton'), which doesn't match the actual xAPI hierarchy; the real path goes through UserInterface > Extensions > Panel.
  • C uses subscribe with a top-level wildcard, which is too broad and not supported as a valid event filter in pyxows.

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

#Webex xAPI#Event Subscriptions#UI Extensions#In-Room Controls

Community Discussion

No community discussion yet for this question.

Full 300-835 Practice