Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Certified Platform Developer II All Questions

View all questions & answers for the Certified Platform Developer II exam

Exam Certified Platform Developer II topic 1 question 43 discussion

Actual exam question from Salesforce's Certified Platform Developer II
Question #: 43
Topic #: 1
[All Certified Platform Developer II Questions]

A developer built a Component to be used at the front desk for quests to self-register upon arrival at a kiosk. The developer is now asked to create a Component for the Utility Tray to alert Users whenever a guest has arrived at the front desk.
What should be used?

  • A. Application Event
  • B. DML Operation
  • C. Component Event
  • D. ChangeLog
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
MarkusT
5 months, 2 weeks ago
Weird question. Both application and component events only fire in the SAME browser. So, only that kiosk's components would be notified for both those events. But the problem should assume that other users are using other screens - desktop/ipad/mobile etc. and they need to be alerted about this new guest. Not just same browser, but different browser/salesforce app (mobile or whatever). I'd say the answer is B although it's not a full answer - another component should poll it from database and then show it to users. If there was answer for Message Channel/Platform Event, that'd be a better fit as it works from database level - not just at browser level.
upvoted 1 times
...
pddumps
10 months, 1 week ago
Selected Answer: A
To create a Component for the Utility Tray to alert Users whenever a guest has arrived at the front desk, the appropriate option would be: A. Application Event Explanation: Application events are suitable for scenarios where multiple components across the application need to communicate with each other. In this case, when a guest self-registers at the kiosk (front desk), an application event can be fired to notify the Utility Tray component. The Utility Tray component can then handle the event and display an alert to the users. Option C (Component Event) is used for communication between parent and child components, and it may not be the most suitable for this scenario where communication is needed across different parts of the application
upvoted 3 times
...
moitam
1 year, 2 months ago
Selected Answer: C
You need to use a component event, which is a type of event that is fired from an instance of a component and can be handled by the component itself or by a parent component.
upvoted 1 times
...
MetaLojiqTee
1 year, 3 months ago
Selected Answer: C
The two components must communicate using Component Events
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...