Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Plat-Dev-301 Exam - Topic 4 Question 8 Discussion

A developer built an Aura component for guests to self-register upon arrival at a front desk kiosk. Now the developer needs to create a component for the utility tray to alert users whenever a guest arrives at the front desk. What should be used?
C) Application Event
A) DML Operation
B) ChangeLog
D) Component Event16

Salesforce Plat-Dev-301 Exam - Topic 4 Question 8 Discussion

Actual exam question for Salesforce's Plat-Dev-301 exam
Question #: 8
Topic #: 4
[All Plat-Dev-301 Questions]

A developer built an Aura component for guests to self-register upon arrival at a front desk kiosk. Now the developer needs to create a component for the utility tray to alert users whenever a guest arrives at the front desk. What should be used?

Show Suggested Answer Hide Answer
Suggested Answer: C

18

In the Aura Component framework, communication between components is handled via events. When two components need to communicate but do19 not share a direct parent-child relationship---such as a kiosk registration component on a page and an alert component residing in the global utility tray---an Application Event (Option C) is required.

Application events follow a 'publish-subscribe' model. One component fires the event, and any other component in the application that has a handler for that specific event type can listen for and react to it, regardless of where they sit in the component hierarchy. This is distinct from a Component Event (Option D), which is restricted to bubbling up the component containment hierarchy (from child to parent).

While modern implementations might also consider the Lightning Message Service (LMS) for cross-framework communication (between Aura, LWC, and Visualforce), within the specific context of Aura-to-Aura communication for decoupled components like utility bar items, Application Events remain the fundamental architectural solution. DML Operations (Option A) and ChangeLogs (Option B) are database-level concepts and do not provide the real-time, client-side notification capabilities needed for a UI alert system.

==========


Contribute your Thoughts:

0/2000 characters

Currently there are no comments in this discussion, be the first to comment!


Save Cancel