23 questions
LWC interview questions
Original verified answers. Tag what matters in your dashboard.
- SF-9001 What is a Lightning Web Component? Concept Easy
- SF-9002 What is the difference between LWC and Aura, and when would you use each? Compare Medium
- SF-9003 Explain the @api, @track, and @wire decorators in LWC. Concept Easy
- SF-9004 What are the lifecycle hooks in LWC and when does each one fire? Concept Easy
- SF-9005 What is the difference between @wire and imperative Apex calls in LWC? Compare Medium
- SF-9006 How does reactivity work in LWC, and what changed with @track? Concept Medium
- SF-9007 How do you pass data from a parent LWC to a child LWC? Scenario Medium
- SF-9008 How does a child LWC communicate back to its parent? Scenario Medium
- SF-9009 What is Lightning Message Service and how does it differ from pub-sub? Compare Medium
- SF-9010 Explain the lwc:if, lwc:for, for:each, and iterator template directives. Concept Easy
- SF-9011 What are slots in LWC and how do you use named and scoped slots? Concept Medium
- SF-9012 What is Lightning Data Service and how does it relate to the UI API? Concept Medium
- SF-9013 How do you write unit tests for an LWC using Jest? Scenario Medium
- SF-9014 What is the difference between LWC on Salesforce and LWC OSS? Compare Hard
- SF-9015 What is Lightning Web Security (LWS) and how does it differ from Locker Service? Compare Hard
- SF-9212 Pass value from child LWC component to parent component — which type of event do you use? Scenario Easy
- SF-9228 Build an LWC component that displays a list of Accounts Scenario Easy
- SF-9229 Have two LWC components communicate with each other — how? Scenario Easy
- SF-9230 Debug an LWC component that is not displaying data correctly Scenario Medium
- SF-9231 Manage shared state across many LWC components Scenario Medium
- SF-9232 Fetch and display Salesforce data in real time in LWC Scenario Easy
- SF-9276 LWC component calling Apex method triggers a governor limit exception — how to fix? Scenario Hard
- SF-9305 Build a custom interface for a specific user role to input data more efficiently Scenario Easy
Track your prep
Open this list in your dashboard.
Star questions, set status, group them — synced across devices.