nerdexam
Salesforce

PDII · Question #342

Get Cloudy Consulting (GCC) has a multitude of servers that host its customers' websites. GCC wants to provide a servers status page that is always on display in its call center. It should update in…

The correct answer is D. import { subscribe, unsubscribe, onError } from 'lightning/empApi'. See the full explanation below for the reasoning.

Question

Get Cloudy Consulting (GCC) has a multitude of servers that host its customers' websites. GCC wants to provide a servers status page that is always on display in its call center. It should update in real time with any changes made to any servers. To accommodate the on the server side, a developer created a Server Update platform event. The developer is working on a Lightning web component to display the information. What should be added to the Lightning web component to allow the developer to interact with the Server Update platform event?

Options

  • Aimport { subscribe, unsubscribe, onError } from 'lightning/ServerUpdate'
  • Bimport { subscribe, unsubscribe, onError } from 'lightning/MessageChannel'
  • Cimport { subscribe, unsubscribe, onError } from 'lightning/pubsub'
  • Dimport { subscribe, unsubscribe, onError } from 'lightning/empApi';

How the community answered

(44 responses)
  • A
    14% (6)
  • B
    7% (3)
  • C
    2% (1)
  • D
    77% (34)

Community Discussion

No community discussion yet for this question.

Full PDII Practice