nerdexam
Cisco

300-920 · Question #26

300-920 Question #26: Real Exam Question with Answer & Explanation

Sign in or unlock 300-920 to reveal the answer and full explanation for question #26. The question stem and answer options stay visible for context.

Messaging

Question

Refer to the exhibit. A webhook has been created so that an application is notified when users mention a bot in a Webex Teams space. The exhibit shows an example of a notification received by the application. Which code snippet correctly processes the JSON payload using the Webex Node.js SDK in order to print out messages that mention the bot? A. B. C. D.

Exhibits

300-920 question #26 exhibit 1
300-920 question #26 exhibit 2

Options

  • Aif ((notification.resource == 'notifier') && (notification.event == 'created')) { webex.messages.get(notification.data.id).then( msg => console.log(msg.text)); }}
  • Bif ((notification.resource == 'messages') && (notification.event == 'created')) { webex.messages.get(notification.data.id).then( msg => console.log(msg.text)); }
  • Cif ((notification.resource == 'messages') && (notification.event == 'created')) { if (notification.data.personId != BOT_ID) { webex.messages.get(notification.data.id).then( msg => console.log(msg.text)); }}}
  • Dif ((notification.resource == 'notifier') && (notification.event == 'created') && if (notification.data.personId !== BOT_ID) { webex.messages.get(notification.data.id).then( msg => console.log(msg.text)); }}

Unlock 300-920 to see the answer

You've previewed enough free 300-920 questions. Unlock 300-920 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Webex Webhooks#Node.js SDK#Bot Development#Message Processing
Full 300-920 Practice