SALESFORCE-PD1 Developer Fundamentals Practice Question
A developer is building a custom Lightning Web Component and wants to communicate data from a child component up to its parent component. Which THREE steps are required? (Choose three.)
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Dispatch the event using the this.dispatchEvent() method in the child.
Child-to-parent communication in LWC is achieved by creating and dispatching a CustomEvent from the child and listening for it on the parent's HTML template.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Dispatch the event using the this.dispatchEvent() method in the child.
Why this is correct
Dispatching the event sends it up the DOM tree to parent listeners.
- ✗
Import the wire service adapter in the parent component.
Why it's wrong here
The wire service is for fetching data from Salesforce servers, not for child-to-parent component event propagation.
- ✗
Use the @api decorator on a parent property inside the child component.
Why it's wrong here
@api on a child exposes properties or methods for parent-to-child communication, not the reverse.
- ✓
Create a new CustomEvent in the child component's JavaScript file.
Why this is correct
CustomEvent is used to package data for emission from a child component.
- ✓
Add an event listener directive (e.g., onmyevent) to the child component tag in the parent HTML template.
Why this is correct
Parent components listen for dispatched custom events using the onEventName syntax in their templates.
About these practice questions
Courseiva writes every SALESFORCE-PD1 question from scratch — 493 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed August 2026 · checked against the official Salesforce exam blueprint
This SALESFORCE-PD1 practice question is part of Courseiva's free Salesforce certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SALESFORCE-PD1 exam.