{"id":2625,"date":"2026-11-14T13:00:00","date_gmt":"2026-11-14T07:30:00","guid":{"rendered":"https:\/\/swapnilzambare.com\/blog\/?p=2625"},"modified":"2026-11-22T11:27:54","modified_gmt":"2026-11-22T05:57:54","slug":"lwc-data-interview-questions","status":"publish","type":"post","link":"https:\/\/swapnilzambare.com\/blog\/lwc-data-interview-questions\/","title":{"rendered":"LWC Data Interview Questions: Wire, Apex and LDS (65+ Q&#038;A)"},"content":{"rendered":"\r\n<p class=\"wp-block-paragraph\">LWC Data Interview Questions are where interviewers find out whether you reach for Apex by habit or choose the right tool. Most data a component needs can arrive with no Apex at all, and knowing that is half the answer.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Last reviewed for the Winter &#8217;27 release (November 2026).<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">This post covers the questions that get asked, grouped into wire adapters, imperative Apex, Lightning Data Service and record forms, caching and refreshing, and scenario questions where data is stale or missing.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/lwc-data-interview-questions-diagram-1-1024x640.png\" alt=\"LWC Data Interview Questions diagram showing wire, cache, server and push\" class=\"wp-image-2623\" srcset=\"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/lwc-data-interview-questions-diagram-1-1024x640.png 1024w, https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/lwc-data-interview-questions-diagram-1-300x188.png 300w, https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/lwc-data-interview-questions-diagram-1-768x480.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Caption: The cache answers first, so a second component asking for the same record costs nothing.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">What LWC Data Interview Questions Cover<\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">LWC Data Interview Questions test whether you understand the client cache. The record API keeps records on the client, so two components asking for the same record share one copy and one request.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Think of it like a shared noticeboard in an office. The record forms that sit on top of it are covered in the post on <a href=\"https:\/\/swapnilzambare.com\/blog\/lwc-record-form-edit-view\/\">record forms<\/a>. The first person pins the notice up, and everyone else reads it rather than phoning head office.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">That cache is what most LWC Data Interview Questions are really about, and it is what makes Lightning Data Service worth using. It also explains why a change made through Apex does not show until you refresh.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">The Four Ways to Get Data<\/h2>\r\n\r\n\r\n\r\n<figure class=\"wp-block-table\"><table><thead><tr><th>Approach<\/th><th>Needs Apex<\/th><th>Cached<\/th><\/tr><\/thead><tbody><tr><td>Record form or record edit form<\/td><td>No<\/td><td>Yes<\/td><\/tr><tr><td>Wire a record API adapter<\/td><td>No<\/td><td>Yes<\/td><\/tr><tr><td>Wire a cacheable Apex method<\/td><td>Yes<\/td><td>Yes<\/td><\/tr><tr><td>Call Apex imperatively<\/td><td>Yes<\/td><td>No<\/td><\/tr><\/tbody><\/table><\/figure>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">LWC Data Interview Questions reward that order, and it is the order to try them in. Start with no Apex, and add Apex only when the record API cannot express what you need.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>import { LightningElement, api, wire } from 'lwc';\r\nimport { getRecord, getFieldValue } from 'lightning\/uiRecordApi';\r\n\r\nconst FIELDS = ['Course__c.Name', 'Course__c.Fee__c'];\r\n\r\nexport default class CourseSummary extends LightningElement {\r\n  @api recordId;\r\n\r\n  @wire(getRecord, { recordId: '$recordId', fields: FIELDS })\r\n  course;\r\n\r\n  get name() {\r\n    return getFieldValue(this.course.data, 'Course__c.Name');\r\n  }\r\n\r\n  get error() {\r\n    return this.course.error ? 'Could not load the course' : undefined;\r\n  }\r\n}<\/code><\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Two details in that example answer several LWC Data Interview Questions. The dollar sign makes the record id reactive, and the result object carries both data and error, so both have to be handled.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Wire vs Imperative Apex<\/h2>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/lwc-data-interview-questions-diagram-2-1024x640.png\" alt=\"LWC Data Interview Questions comparison of wire and imperative Apex calls\" class=\"wp-image-2624\" srcset=\"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/lwc-data-interview-questions-diagram-2-1024x640.png 1024w, https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/lwc-data-interview-questions-diagram-2-300x188.png 300w, https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/lwc-data-interview-questions-diagram-2-768x480.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Caption: Reads that follow the record go through wire, and anything that writes goes imperative.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-table\"><table><thead><tr><th>Need<\/th><th>Pick<\/th><\/tr><\/thead><tbody><tr><td>Show fields from the current record<\/td><td>Wire a record API adapter<\/td><\/tr><tr><td>Show a filtered list the user changes<\/td><td>Wire Apex with reactive parameters<\/td><\/tr><tr><td>Save a record<\/td><td>A record form, or imperative Apex<\/td><\/tr><tr><td>Run a calculation on click<\/td><td>Imperative Apex<\/td><\/tr><tr><td>Call a prompt template or a model<\/td><td>Imperative Apex<\/td><\/tr><tr><td>Read data for a read only panel<\/td><td>Wire<\/td><\/tr><\/tbody><\/table><\/figure>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">LWC Data Interview Questions usually end with a requirement and ask which row applies.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The post on <a href=\"https:\/\/swapnilzambare.com\/blog\/call-apex-from-lwc-wire-imperative\/\">calling Apex from LWC<\/a> and the post on <a href=\"https:\/\/swapnilzambare.com\/blog\/lwc-wire-adapters-ui-api\/\">wire adapters<\/a> cover both routes.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">LWC Data Interview Questions on Wire Adapters<\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q1: What is a wire adapter?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">A data source you bind a property or function to with @wire, which pushes new values to the component when they change.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">You do not call it yourself. The framework calls it when its parameters are ready and again when they change.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Interview tip: contrast wire with imperative calls in one line: wire reacts, imperative acts when you call.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q2: Name three record API adapters.<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">getRecord, <a href=\"https:\/\/swapnilzambare.com\/blog\/lwc-wire-adapters-ui-api\/\">getRecords and getObjectInfo<\/a>, among others like getPicklistValues and getRelatedListRecords.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Adapter<\/th><th>Module<\/th><th>Returns<\/th><\/tr><\/thead><tbody><tr><td>getRecord<\/td><td>lightning\/uiRecordApi<\/td><td>One record with chosen fields<\/td><\/tr><tr><td>getRecords<\/td><td>lightning\/uiRecordApi<\/td><td>Several records in one call<\/td><\/tr><tr><td>getObjectInfo<\/td><td>lightning\/uiObjectInfoApi<\/td><td>Object metadata, labels, record types<\/td><\/tr><tr><td>getPicklistValues<\/td><td>lightning\/uiObjectInfoApi<\/td><td>Values for one picklist and record type<\/td><\/tr><tr><td>getRelatedListRecords<\/td><td>lightning\/uiRelatedListApi<\/td><td>Records from a related list<\/td><\/tr><tr><td>graphql<\/td><td>lightning\/uiGraphQLApi<\/td><td>Exactly the fields a GraphQL query asks for<\/td><\/tr><\/tbody><\/table><\/figure>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q3: What does getRecord need?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">A record ID and a list of fields, or a layout type.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: @wire(getRecord, { recordId: &#8216;$recordId&#8217;, fields: [NAME_FIELD, INDUSTRY_FIELD] }) account;<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Follow-up you may get: What is layoutTypes for? Getting all fields from the Full or Compact layout instead of a list.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q4: Why list fields explicitly?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">You get only what you ask for, which keeps the response small and the cache precise.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Importing fields like import NAME_FIELD from &#8216;@salesforce\/schema\/Account.Name&#8217; also makes Salesforce stop anyone deleting a field your component uses.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Interview tip: mention schema imports protect fields from deletion. It is a detail few people know.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q5: What does getFieldValue do?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">It reads one field&#8217;s value from the wired record, handling the nested shape for you.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: get name() { return getFieldValue(this.account.data, NAME_FIELD); } instead of this.account.data.fields.Name.value.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q6: Why is the record shape nested?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Each field carries both a raw value and a formatted display value.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: a currency field has value 15000 and displayValue &#8216;\u20b915,000.00&#8217;. getFieldDisplayValue returns the formatted one.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Follow-up you may get: Which helper gives the formatted value? getFieldDisplayValue.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q7: What makes a wire parameter reactive?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">A $ prefix on the property name, like &#8216;$recordId&#8217;.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Without the $, the wire reads the value once when the component loads.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Interview tip: the $ prefix is asked in almost every LWC round. Answer it instantly.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q8: What happens when that property changes?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The wire runs again with the new value.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">If the new value is undefined, the wire waits and does not call the server until a value is set.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q9: Can you wire with a getter?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Yes, and a getter is the usual way to build a parameter that depends on several fields.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: get filters() { return { level: this.level, city: this.city }; } and use &#8216;$filters&#8217; in the wire.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q10: Why does an inline object literal fail to refire?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">An inline object is created once, so the wire never sees a new value.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Writing { level: this.level } directly in the decorator captures the value at load time. Use $ properties or a getter.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Interview tip: this explains most &#8220;wire does not refresh&#8221; bugs. Link the two.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q11: What does getObjectInfo give you?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Object metadata: field labels and types, record types, child relationships and the default record type.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: use it to show field labels in the user&#8217;s language, instead of hard coding them.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q12: What does getPicklistValues need?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">A record type ID and a field reference.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: @wire(getPicklistValues, { recordTypeId: &#8216;$recordTypeId&#8217;, fieldApiName: LEVEL_FIELD }) levels;<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Follow-up you may get: How do you get all picklists at once? getPicklistValuesByRecordType.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q13: Where do you get the default record type id?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">From getObjectInfo&#8217;s defaultRecordTypeId, which is why the two are often wired together.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Wire getObjectInfo first, then use &#8216;$objectInfo.data.defaultRecordTypeId&#8217; as the picklist adapter&#8217;s parameter.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q14: Can you wire a GraphQL query?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Yes, with the <a href=\"https:\/\/swapnilzambare.com\/blog\/graphql-wire-adapter-lwc\/\">GraphQL wire adapter<\/a>, which lets the component ask for exactly the fields and related records it needs.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">One GraphQL query can fetch an account, its contacts and their cases together, which can replace several adapters or an Apex method.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Interview tip: GraphQL is newer. Mentioning it shows you keep up with releases.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q15: What does a wired property contain?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">An object with data and error. One of them is filled, the other is undefined.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Check data before using it, and show a message when error is set.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Follow-up you may get: What does error.body contain? Usually a message and, for some errors, field details.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q16: Must you handle the error?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Yes. Ignoring it leaves a blank panel with no explanation.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Show a short message, and log the error.body.message for support if needed.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q17: Does a wire run in the constructor?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Wires are set up before connectedCallback runs, so data can arrive very early.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Do not assume the data is there in connectedCallback; let the template react when data arrives.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q18: What is getRelatedListRecords?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">A UI API wire adapter that returns records from a related list, like an account&#8217;s contacts, with sorting and paging. It avoids writing Apex for simple related lists and follows the user&#8217;s access.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q19: How do you get several records at once without Apex?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Use getRecords with a list of record IDs and fields, or a GraphQL query. Both return many records in one call and use the LDS cache.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q20: Can a wire be called on demand?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">No. For on demand work use an imperative call.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: a Save button calls the Apex method imperatively in its click handler, because it must happen exactly when the user clicks.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">LWC Data Interview Questions on Imperative Apex<\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q21: How do you call Apex imperatively?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/swapnilzambare.com\/blog\/call-apex-from-lwc-wire-imperative\/\">Import the method and call it<\/a>. It returns a promise.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: import enroll from &#8216;@salesforce\/apex\/EnrollmentController.enroll&#8217;; then const result = await enroll({ courseId: this.courseId });<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q22: What does the method need in Apex?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The @AuraEnabled annotation on a public or global static method.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: @AuraEnabled public static Id enroll(Id courseId) { &#8230; }<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Follow-up you may get: Must the method be static? Yes, for calls from LWC.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q23: What extra annotation does a wired method need?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">@AuraEnabled(cacheable=true).<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">That tells Salesforce the method only reads data, so the result can be cached on the client.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q24: Why can a cacheable method not perform DML?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Because the platform may answer from the cache without calling the server, so the method must only read.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Salesforce blocks DML in cacheable methods so a cached call never skips a save.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Interview tip: say why: a cached call must never skip a save.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q25: How do you handle an error imperatively?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Wrap the await in try and catch, and read the message from error.body.message.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: try { await save({ data }); } catch (error) { this.errorText = error.body?.message ?? &#8216;Unknown error&#8217;; }<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q26: Where does that message come from?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">From an <a href=\"https:\/\/swapnilzambare.com\/blog\/apex-exception-handling-custom-exceptions\/\">AuraHandledException<\/a> thrown in Apex. Without it, the component gets a generic error.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: throw new AuraHandledException(&#8216;This course is full.&#8217;); gives the user that exact text.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Interview tip: name AuraHandledException and explain why messages are hidden otherwise.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q27: Should an imperative call show a spinner?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Yes, and disable the button while the call is in progress.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">This stops double clicks creating duplicate records, and tells the user something is happening.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q28: Can you call Apex from connectedCallback?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Yes. It is a normal place for a one time load.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: async connectedCallback() { this.courses = await getCourses(); } with try and catch around it.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q29: Which is faster on a repeat view, wire or imperative?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Wire, because the client cache can answer repeat views without a server call.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Imperative calls go to the server every time unless you cache the result yourself.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Interview tip: give a real example: a filter panel that users revisit often.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q30: Can an imperative call be cached?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Not by the platform, so cache the result yourself if it is stable.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: store it in a field and call again only when an input changes. For shared caching across users, use Platform Cache in Apex.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q31: How do you call Apex with parameters?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Pass an object whose keys match the Apex parameter names exactly.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: Apex getCourses(String level, Integer maxFee) is called with getCourses({ level: &#8216;Advanced&#8217;, maxFee: 20000 }).<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Follow-up you may get: Can you pass an sObject? Yes, as a plain object with the field names, and Apex receives it typed.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q32: What happens if a key does not match?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The parameter arrives as null, which looks like a data problem instead of a typo.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Check the spelling and case of each key first when Apex receives nulls.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q33: What does @AuraEnabled(continuation=true) do?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">It lets an Apex method start a long running callout with a Continuation, so the server thread is freed while waiting. The component calls it like any imperative method and gets the result when the callout returns.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q34: Should you return sObjects or wrapper classes to an LWC?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Return sObjects for simple record data, because they are easy to bind. Use a wrapper when you need extra values next to the records, like a selected flag or a calculated total, or data from several objects.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q35: Can an imperative method return an sObject list?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Yes, and it can also return a wrapper class, which is often clearer.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">A wrapper class with @AuraEnabled fields lets one call return several things, like the records plus a total count.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">LWC Data Interview Questions on Lightning Data Service<\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q36: What is Lightning Data Service?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The layer behind the UI API wire adapters and record components that <a href=\"https:\/\/swapnilzambare.com\/blog\/lightning-data-service-lwc\/\">caches records on the client<\/a> and shares them between components.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">When one component updates a record through LDS, every component showing that record updates too.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q37: What does it save you writing?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Apex for reading and saving single records, and code for field level security and sharing checks.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">LDS applies the user&#8217;s access for you.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q38: What is lightning-record-form?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">A component that shows a record&#8217;s fields with <a href=\"https:\/\/swapnilzambare.com\/blog\/lwc-record-form-edit-view\/\">view, edit and create modes<\/a>.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Component<\/th><th>Layout control<\/th><th>Best for<\/th><\/tr><\/thead><tbody><tr><td>lightning-record-form<\/td><td>Low, uses layout or field list<\/td><td>Quick view and edit with little code<\/td><\/tr><tr><td>lightning-record-edit-form<\/td><td>Full, you place each field<\/td><td>Custom edit and create forms<\/td><\/tr><tr><td>lightning-record-view-form<\/td><td>Full, you place each field<\/td><td>Custom read only displays<\/td><\/tr><\/tbody><\/table><\/figure>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Follow-up you may get: What modes does it support? view, edit and readonly.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q39: When is it the wrong choice?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">When you need a custom layout, because it controls where fields go.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">It also cannot add custom logic between fields, like showing one field only when another has a value.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q40: What does lightning-record-edit-form give you instead?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The save handling and validation, with your own layout of lightning-input-field elements inside it.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: &lt;lightning-record-edit-form object-api-name=&#8221;Course__c&#8221; onsuccess={handleSuccess}&gt;&lt;lightning-input-field field-name=&#8221;Name&#8221;&gt;&lt;\/lightning-input-field&gt;&#8230;&lt;\/lightning-record-edit-form&gt;<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q41: What does lightning-record-view-form give you?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">A read only display with field level security applied, using lightning-output-field for each field.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Fields the user cannot read are simply not shown.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q42: Do these respect validation rules?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Yes. The save goes through the platform, so validation rules, triggers and flows all run.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Their error messages appear in the form automatically.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Interview tip: say forms do not bypass any rules. It reassures interviewers about data quality.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q43: How do you react to a successful save?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Handle the onsuccess event, which carries the saved record.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: handleSuccess(event) { const id = event.detail.id; this.dispatchEvent(new ShowToastEvent({ title: &#8216;Saved&#8217;, variant: &#8216;success&#8217; })); }<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q44: How do you show errors from a save?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Put lightning-messages inside the form, or handle the onerror event.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">lightning-messages shows validation and save errors at the top of the form with no extra code.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q45: Which functions create and update records without a form?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">createRecord and updateRecord from lightning\/uiRecordApi. deleteRecord removes records.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">They save without a form and keep the LDS cache up to date.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Follow-up you may get: Do these respect validation rules? Yes, saves go through the platform.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q46: What do they take?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">An object with apiName and a fields map for createRecord, or just a fields map with Id for updateRecord.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: await updateRecord({ fields: { Id: this.recordId, Status__c: &#8216;Closed&#8217; } });<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q47: Do they update the cache?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Yes, which is why other components showing the record refresh automatically.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">No refreshApex or notify call is needed after these functions.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q48: How do you create a record with a default value from the LWC?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Call createRecord with the fields you want, like { apiName: &#8216;Case&#8217;, fields: { Status: &#8216;New&#8217;, Origin: &#8216;Web&#8217; } }, or set default values on lightning-input-field elements in a record edit form.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q49: Can you use LDS in a component on a community or Experience Cloud site?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Yes. LDS and the UI API work in Experience Cloud, and they respect the site user&#8217;s access, including guest user rules.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q50: Why does an Apex update not refresh other components?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Because the cache does not know about it, so you have to refresh explicitly.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">After an Apex save, call refreshApex for wired Apex data and notifyRecordUpdateAvailable for LDS data.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">LWC Data Interview Questions on Caching and Refreshing<\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q51: What does refreshApex do?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">It fetches a wired Apex result again from the server, skipping the cached value.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: after an imperative save, await refreshApex(this.wiredCourses); updates the list on screen.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q52: What do you pass it?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The whole wired result object, not its data property.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Store it in the wired function: @wire(getCourses) wired(result) { this.wiredCourses = result; if (result.data) this.courses = result.data; }<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Follow-up you may get: Does refreshApex work for imperative calls? No, only for wired Apex results.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q53: Why is that distinction important?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Passing only the data does nothing, with no error to tell you.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">refreshApex needs the object the wire gave you, because it uses that to find the cached call.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Interview tip: this silent failure is a favourite trick question. Answer it confidently.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q54: What refreshes a record API wire instead?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">notifyRecordUpdateAvailable from lightning\/uiRecordApi for records changed outside LDS, or a record save through LDS itself.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">For a whole view, the RefreshEvent from lightning\/refresh asks the page&#8217;s components to refresh their data.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q55: Why does a record update through createRecord refresh everything?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Because it saves through LDS and updates the client cache that every component reads.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">So any component wired to that record with getRecord shows the new value straight away.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q56: Does the cache expire?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The platform manages it, so do not rely on a specific lifetime.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Design so that stale data is refreshed after saves, not by waiting for the cache to expire.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q57: Does a page reload clear it?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Yes. A full page reload clears the client cache, so a stale value after a reload points at a server side cache instead.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Check Platform Cache or static caching in the Apex method, and whether the record really changed on the server.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q58: What is getRecordNotifyChange used for?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">getRecordNotifyChange told LDS that records changed outside it, like after an Apex update. It is deprecated; use notifyRecordUpdateAvailable now.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: await updateViaApex(); await notifyRecordUpdateAvailable([{ recordId: this.recordId }]);<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Interview tip: say it is deprecated and give the replacement. It shows current knowledge.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q59: Is the refresh event preferred now?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Yes. notifyRecordUpdateAvailable for records, and RefreshEvent from lightning\/refresh for views, are the current approaches.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">They replace getRecordNotifyChange and work better with the newer record caching.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q60: How do you avoid needing a refresh at all?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Save through LDS, with the record API functions or a record form, so the cache stays correct.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Use Apex for saves only when you need logic LDS cannot do, and then notify LDS afterwards.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q61: Why is that the better design?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Fewer moving parts, and every other component updates for free.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">It also respects the user&#8217;s access automatically, so there is less security code to write.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q62: What is the difference between notifyRecordUpdateAvailable and RefreshEvent?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">notifyRecordUpdateAvailable tells LDS that specific records changed, so components showing them get fresh data. RefreshEvent asks every component in the view that registered a refresh handler to reload, which suits data that is not tied to one record.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q63: How do you handle a wire that should run only when a value exists?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Leave the reactive parameter undefined until the value is ready. The wire does not run while any parameter is undefined, so it waits on its own.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q64: How do you cache a stable imperative result?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Store it in a field and only call again when an input changes.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">For results that never change in a session, like a list of countries, load once and keep them in a field.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Scenario Based LWC Data Interview Questions<\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q65: Scenario: a wired list never updates when the filter changes. Why?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The parameter is not reactive. Add the $ prefix, and build it in a getter if it combines several fields.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Example: @wire(getCourses, { filters: &#8216;$filters&#8217; }) with get filters() returning a new object.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q66: Scenario: data shows once and then goes stale after an Apex save. What do you add?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">A refresh of the wired result after the save, or move the save to LDS.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">After an Apex save, call refreshApex for wired Apex data, or notifyRecordUpdateAvailable for record API data.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q67: Scenario: refreshApex has no effect. What is wrong?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The data property was passed instead of the whole wired result.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Store the full result in the wired function and pass that to refreshApex.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q68: Scenario: a field is blank even though the record has a value. Why?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The field is not in the requested field list, or the user cannot see it.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Add the field to the fields array, and check field level security for the user&#8217;s profile and permission sets.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q69: Scenario: an Apex method cannot be wired. What does that tell you?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">It is not cacheable=true, usually because it does DML.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Split it into a cacheable read method for the wire and a separate save method called imperatively.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q70: Scenario: a panel is blank and the console is clean. What is missing?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Error handling on the wired result, so a failure shows as nothing.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Add a template branch for error and show error.body.message, so problems are visible.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q71: Scenario: two components show different values for the same record. How?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">One reads through LDS and one through Apex, so they come from different sources.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Move both to the same source, ideally LDS, or refresh the Apex one after LDS changes.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Follow-up you may get: How do you tell LDS about an Apex change? notifyRecordUpdateAvailable with the record IDs.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q72: Scenario: a picklist is empty. What is usually missing?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The record type ID, which getPicklistValues needs.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Get it from getObjectInfo&#8217;s defaultRecordTypeId, or from the record&#8217;s RecordTypeId.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q73: Scenario: a save works for an admin and fails for a user. Why?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/swapnilzambare.com\/blog\/profiles-and-permission-sets-salesforce\/\">Field level security<\/a> on a field in the form. LDS enforces the user&#8217;s access.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Check which field fails, then fix the user&#8217;s permission set or remove the field from the form for that audience.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q74: Scenario: a record form cannot be laid out as design asked. What do you use?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">lightning-record-edit-form with your own arrangement of lightning-input-field elements.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">You control every row and column with SLDS grid classes, and still get validation and save for free.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q75: Scenario: a page is slow on first load with six components. What do you look at?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Whether each one calls Apex separately when LDS could share one cached read.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Move simple record reads to getRecord, combine the remaining Apex calls into one, and <a href=\"https:\/\/swapnilzambare.com\/blog\/lwc-performance-best-practices\/\">load below the fold content lazily<\/a>.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q76: Scenario: a list of 2,000 rows freezes the browser. What do you change?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Server side paging, and a datatable showing one page or loading more as the user scrolls.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/swapnilzambare.com\/blog\/lwc-datatable-advanced\/\">lightning-datatable supports infinite loading<\/a> with onloadmore, so you fetch 50 rows at a time instead of 2,000.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q77: Scenario: a component must show the latest data every time a tab is opened. How?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Listen for the RefreshEvent or refresh in connectedCallback with an imperative call, since connectedCallback runs each time the component is added to the page. For record data, LDS already stays current.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q78: Scenario: an LWC must save a parent and its children in one go. Do you use LDS or Apex?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Apex, because LDS saves one record per call and cannot wrap several in one transaction. Write one @AuraEnabled method with a savepoint, then notify LDS about the changed records.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Q79: Scenario: an interviewer asks which data approach you default to. What do you say?<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The record API first, Apex only when the record API cannot express the need.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">LDS and the UI API first, then Apex only when they cannot express the need, like complex queries or business logic.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Common Mistakes Candidates Make<\/h2>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>Reaching for Apex when a record form would do, the first thing LWC Data Interview Questions check<\/li>\r\n\r\n<li>Forgetting the dollar sign on a reactive wire parameter<\/li>\r\n\r\n<li>Passing data rather than the wired result to refreshApex<\/li>\r\n\r\n<li>Ignoring the error half of a wired result<\/li>\r\n\r\n<li>Marking a method cacheable when it performs DML<\/li>\r\n\r\n<li>Expecting the cache to know about an Apex update<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Best Practices to Mention in an Interview<\/h2>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>Try record forms, then record API wires, then Apex<\/li>\r\n\r\n<li>Request only the fields the component renders<\/li>\r\n\r\n<li>Build wire parameters in a getter so changes refire<\/li>\r\n\r\n<li>Handle data and error on every wired result<\/li>\r\n\r\n<li>Save through the record API so the cache stays correct<\/li>\r\n\r\n<li>Show a spinner and disable the button for imperative calls<\/li>\r\n\r\n<li>Page large lists on the server rather than in the browser<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Official Resources<\/h2>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><a href=\"https:\/\/developer.salesforce.com\/docs\/platform\/lwc\/guide\/\" target=\"_blank\" rel=\"noopener noreferrer\">Lightning Web Components Developer Guide<\/a><\/li>\r\n\r\n<li><a href=\"https:\/\/trailhead.salesforce.com\/content\/learn\/modules\/lightning-web-components-basics\" target=\"_blank\" rel=\"noopener noreferrer\">Lightning Web Components Basics on Trailhead<\/a><\/li>\r\n\r\n<li><a href=\"https:\/\/github.com\/trailheadapps\/lwc-recipes\" target=\"_blank\" rel=\"noopener noreferrer\">Lightning Web Components Recipes<\/a><\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Quick Recap<\/h2>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>LWC Data Interview Questions reward reaching for Apex last<\/li>\r\n\r\n<li>The client cache is shared, so two components cost one request<\/li>\r\n\r\n<li>Reactive parameters need a dollar sign and usually a getter<\/li>\r\n\r\n<li>Wired results carry data and error, and both need handling<\/li>\r\n\r\n<li>refreshApex takes the whole result object<\/li>\r\n\r\n<li>Saving through the record API keeps every component correct<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">What Is Next<\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Coming soon: LWC communication interview questions on events and Lightning Message Service.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>LWC Data Interview Questions with answers on wire adapters, imperative Apex, Lightning Data Service, record forms, caching and refreshApex scenarios.<\/p>\n","protected":false},"author":1,"featured_media":2622,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_swapz_level":"","_swapz_series_part":0,"_swapz_hide_toc":false,"_swapz_hide_featured":false,"_swapz_description":"","footnotes":""},"categories":[250,8,90],"tags":[98,26,91,113],"swapz_series":[],"class_list":["post-2625","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-developer-interview-questions","category-salesforce","category-salesforce-interview","tag-apex","tag-intermediate","tag-interview-questions","tag-lwc"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>LWC Data Interview Questions on Wire and Apex<\/title>\n<meta name=\"description\" content=\"LWC Data Interview Questions with answers on wire adapters, imperative Apex, Lightning Data Service, record forms, caching and refreshApex scenarios.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/swapnilzambare.com\/blog\/lwc-data-interview-questions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"LWC Data Interview Questions on Wire and Apex\" \/>\n<meta property=\"og:description\" content=\"LWC Data Interview Questions with answers on wire adapters, imperative Apex, Lightning Data Service, record forms, caching and refreshApex scenarios.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/swapnilzambare.com\/blog\/lwc-data-interview-questions\/\" \/>\n<meta property=\"og:site_name\" content=\"Swapnil Zambare - Blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-14T07:30:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-22T05:57:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/lwc-data-interview-questions-featured.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2400\" \/>\n\t<meta property=\"og:image:height\" content=\"1260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Swapnil Zambare\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Swapnil Zambare\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"20 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/lwc-data-interview-questions\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/lwc-data-interview-questions\\\/\"},\"author\":{\"name\":\"Swapnil Zambare\",\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/#\\\/schema\\\/person\\\/10b09224c8bcc562716e86789427592a\"},\"headline\":\"LWC Data Interview Questions: Wire, Apex and LDS (65+ Q&#038;A)\",\"datePublished\":\"2026-11-14T07:30:00+00:00\",\"dateModified\":\"2026-11-22T05:57:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/lwc-data-interview-questions\\\/\"},\"wordCount\":4074,\"publisher\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/lwc-data-interview-questions\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/lwc-data-interview-questions-featured.png\",\"keywords\":[\"Apex\",\"Intermediate\",\"Interview Questions\",\"LWC\"],\"articleSection\":[\"Developer Interview Questions\",\"Salesforce\",\"Salesforce Interview\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/lwc-data-interview-questions\\\/\",\"url\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/lwc-data-interview-questions\\\/\",\"name\":\"LWC Data Interview Questions on Wire and Apex\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/lwc-data-interview-questions\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/lwc-data-interview-questions\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/lwc-data-interview-questions-featured.png\",\"datePublished\":\"2026-11-14T07:30:00+00:00\",\"dateModified\":\"2026-11-22T05:57:54+00:00\",\"description\":\"LWC Data Interview Questions with answers on wire adapters, imperative Apex, Lightning Data Service, record forms, caching and refreshApex scenarios.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/lwc-data-interview-questions\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/lwc-data-interview-questions\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/lwc-data-interview-questions\\\/#primaryimage\",\"url\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/lwc-data-interview-questions-featured.png\",\"contentUrl\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/lwc-data-interview-questions-featured.png\",\"width\":2400,\"height\":1260,\"caption\":\"LWC Data Interview Questions featured image with sample question cards\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/lwc-data-interview-questions\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"LWC Data Interview Questions: Wire, Apex and LDS (65+ Q&#038;A)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/\",\"name\":\"Swapnil Zambare - Blog\",\"description\":\"Salesforce &amp; Tech Guides\",\"publisher\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/#organization\",\"name\":\"Swapnil Zambare - Blog\",\"url\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/site-icon-512.png\",\"contentUrl\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/site-icon-512.png\",\"width\":512,\"height\":512,\"caption\":\"Swapnil Zambare - Blog\"},\"image\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/in\\\/theSwapnilZambare\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/#\\\/schema\\\/person\\\/10b09224c8bcc562716e86789427592a\",\"name\":\"Swapnil Zambare\",\"sameAs\":[\"https:\\\/\\\/swapnilzambare.com\\\/blog\"],\"url\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/author\\\/swapnil-zambare\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"LWC Data Interview Questions on Wire and Apex","description":"LWC Data Interview Questions with answers on wire adapters, imperative Apex, Lightning Data Service, record forms, caching and refreshApex scenarios.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/swapnilzambare.com\/blog\/lwc-data-interview-questions\/","og_locale":"en_US","og_type":"article","og_title":"LWC Data Interview Questions on Wire and Apex","og_description":"LWC Data Interview Questions with answers on wire adapters, imperative Apex, Lightning Data Service, record forms, caching and refreshApex scenarios.","og_url":"https:\/\/swapnilzambare.com\/blog\/lwc-data-interview-questions\/","og_site_name":"Swapnil Zambare - Blog","article_published_time":"2026-11-14T07:30:00+00:00","article_modified_time":"2026-11-22T05:57:54+00:00","og_image":[{"width":2400,"height":1260,"url":"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/lwc-data-interview-questions-featured.png","type":"image\/png"}],"author":"Swapnil Zambare","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Swapnil Zambare","Est. reading time":"20 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/swapnilzambare.com\/blog\/lwc-data-interview-questions\/#article","isPartOf":{"@id":"https:\/\/swapnilzambare.com\/blog\/lwc-data-interview-questions\/"},"author":{"name":"Swapnil Zambare","@id":"https:\/\/swapnilzambare.com\/blog\/#\/schema\/person\/10b09224c8bcc562716e86789427592a"},"headline":"LWC Data Interview Questions: Wire, Apex and LDS (65+ Q&#038;A)","datePublished":"2026-11-14T07:30:00+00:00","dateModified":"2026-11-22T05:57:54+00:00","mainEntityOfPage":{"@id":"https:\/\/swapnilzambare.com\/blog\/lwc-data-interview-questions\/"},"wordCount":4074,"publisher":{"@id":"https:\/\/swapnilzambare.com\/blog\/#organization"},"image":{"@id":"https:\/\/swapnilzambare.com\/blog\/lwc-data-interview-questions\/#primaryimage"},"thumbnailUrl":"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/lwc-data-interview-questions-featured.png","keywords":["Apex","Intermediate","Interview Questions","LWC"],"articleSection":["Developer Interview Questions","Salesforce","Salesforce Interview"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/swapnilzambare.com\/blog\/lwc-data-interview-questions\/","url":"https:\/\/swapnilzambare.com\/blog\/lwc-data-interview-questions\/","name":"LWC Data Interview Questions on Wire and Apex","isPartOf":{"@id":"https:\/\/swapnilzambare.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/swapnilzambare.com\/blog\/lwc-data-interview-questions\/#primaryimage"},"image":{"@id":"https:\/\/swapnilzambare.com\/blog\/lwc-data-interview-questions\/#primaryimage"},"thumbnailUrl":"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/lwc-data-interview-questions-featured.png","datePublished":"2026-11-14T07:30:00+00:00","dateModified":"2026-11-22T05:57:54+00:00","description":"LWC Data Interview Questions with answers on wire adapters, imperative Apex, Lightning Data Service, record forms, caching and refreshApex scenarios.","breadcrumb":{"@id":"https:\/\/swapnilzambare.com\/blog\/lwc-data-interview-questions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/swapnilzambare.com\/blog\/lwc-data-interview-questions\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/swapnilzambare.com\/blog\/lwc-data-interview-questions\/#primaryimage","url":"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/lwc-data-interview-questions-featured.png","contentUrl":"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/lwc-data-interview-questions-featured.png","width":2400,"height":1260,"caption":"LWC Data Interview Questions featured image with sample question cards"},{"@type":"BreadcrumbList","@id":"https:\/\/swapnilzambare.com\/blog\/lwc-data-interview-questions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/swapnilzambare.com\/blog\/"},{"@type":"ListItem","position":2,"name":"LWC Data Interview Questions: Wire, Apex and LDS (65+ Q&#038;A)"}]},{"@type":"WebSite","@id":"https:\/\/swapnilzambare.com\/blog\/#website","url":"https:\/\/swapnilzambare.com\/blog\/","name":"Swapnil Zambare - Blog","description":"Salesforce &amp; Tech Guides","publisher":{"@id":"https:\/\/swapnilzambare.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/swapnilzambare.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/swapnilzambare.com\/blog\/#organization","name":"Swapnil Zambare - Blog","url":"https:\/\/swapnilzambare.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/swapnilzambare.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/09\/site-icon-512.png","contentUrl":"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/09\/site-icon-512.png","width":512,"height":512,"caption":"Swapnil Zambare - Blog"},"image":{"@id":"https:\/\/swapnilzambare.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.linkedin.com\/in\/theSwapnilZambare"]},{"@type":"Person","@id":"https:\/\/swapnilzambare.com\/blog\/#\/schema\/person\/10b09224c8bcc562716e86789427592a","name":"Swapnil Zambare","sameAs":["https:\/\/swapnilzambare.com\/blog"],"url":"https:\/\/swapnilzambare.com\/blog\/author\/swapnil-zambare\/"}]}},"_links":{"self":[{"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/posts\/2625","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/comments?post=2625"}],"version-history":[{"count":2,"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/posts\/2625\/revisions"}],"predecessor-version":[{"id":3524,"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/posts\/2625\/revisions\/3524"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/media\/2622"}],"wp:attachment":[{"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/media?parent=2625"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/categories?post=2625"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/tags?post=2625"},{"taxonomy":"swapz_series","embeddable":true,"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/swapz_series?post=2625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}