Kcloud Technologies – Salesforce Developer Interview Questions Following questions are asked at KCloud for Salesforce Developer with 3.5 YOE. Interview Happen in December 2024
What's Covered
Topics covered in this interview.
All Interview Questions
Every question asked in this interview, listed one by one.
More Salesforce Interview Questions to Practice
The extra questions below are not from this interview. They cover the same topics and are commonly asked in Salesforce developer interviews, so they make good practice before your own round.
Triggers questions
- What is the difference between Trigger.new and Trigger.newMap?
- What is a trigger handler framework, and why use one?
- Can you make a callout from a trigger? How?
- How do you bulkify a trigger?
- Why can you not update the records in Trigger.new directly inside an after trigger?
Lightning Web Components questions
- What is Lightning Data Service, and which base components use it?
- How do you handle errors returned from an Apex call in LWC?
- What is the difference between document.querySelector and this.template.querySelector?
- How do you render content conditionally in LWC?
Apex questions
- What is a SOQL for loop, and why is it useful for large result sets?
- What is Database.Stateful in Batch Apex?
- How do you read values from custom metadata types in Apex?
- What is the difference between static and instance variables in Apex?
Flows and Automation questions
- What is a subflow, and why would you use one?
- How can a Flow call Apex?
- What is the status of Workflow Rules and Process Builder, and how do you migrate them to Flow?
General and experience questions
- Tell me about your current project and your role in it.
- What was the most challenging issue you solved recently, and how did you solve it?
- How do you approach debugging a production issue?
Concepts to Revise
Based on the questions on this page, these are the areas most worth revising.
Triggers
- Context variables: isBefore, isAfter, isInsert, isUpdate, isDelete, isUndelete
- Trigger.new, Trigger.old, Trigger.newMap and Trigger.oldMap, and in which events each exists
- One trigger per object with a handler class
- Preventing recursion with static variables
- addError to block a save with a message
- Testing triggers with single and bulk records
Lightning Web Components
- Lifecycle hooks: constructor, connectedCallback, renderedCallback, disconnectedCallback
- Decorators: @api, @track, @wire and when each is needed
- Parent to child and child to parent communication using properties and custom events
- Lightning Data Service and the uiRecordApi functions
- Calling Apex: wire versus imperative, and cacheable methods
- Template directives: if:true, for:each, key and lwc:if
Apex
- Governor limits for SOQL, DML, CPU time and heap size
- Bulkification: no SOQL or DML inside loops
- Sharing keywords and how they affect record access
- Asynchronous Apex: future, queueable, batch and schedulable
- Test classes: test data, System.assert, Test.startTest and Test.stopTest
- Collections and wrapper classes
How to Prepare
The questions on this page lean towards Triggers, Lightning Web Components and Apex. Spend most of your revision time there, then cover the remaining topics lightly.
- Write a trigger with a handler class from memory, then test it with 200 records to prove it is bulk safe.
- Build one small component that uses @wire, an imperative Apex call and a custom event, and be ready to explain each part.
- Practise explaining governor limits and bulkification with a real example from your own project.
- Say your answers out loud. Interviewers listen for clear, structured explanations, not memorised definitions.
- Prepare one or two real examples from your own projects for the general questions.
Preparing for a Salesforce developer interview?
Browse more real company interview experiences and hands-on Apex trigger patterns.