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 328 discussion

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

Consider the following code snippet:



How should the component communicate to the component that an order has been selected by the user?

  • A. Create and fire a standard DOM event.
  • B. Create and fire a component event.
  • C. Create and dispatch a custom event.
  • D. Create and fire an application event.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
RegNav
Highly Voted 6 months ago
C. Lightning Web Components do not use Component and Application Events. Instead, they use standard browser DOM events (or custom events) for communicating up the containment hierarchy. It can be dispatched by calling the EventTarget.dispatchEvent()method.
upvoted 5 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 ...