CompanyASTIR IT Solutions
Focus AreaSalesforce Developer
Questions21+
Topics4
ASTIR IT Solutions Salesforce developer interview experience, shared by a real candidate.
What's Covered
Topics covered in this interview.
01Lightning Web Components8
02SOQL & Data3
03Apex & Triggers4
04General & Experience6
All Interview Questions
Every question asked in this interview, listed one by one.
1Explain LWC decorators.
2Tell me about LWC lifecycle looks. When we use what.
3In lighting web component why we use $ while passing parameter to Apex method.
4Why we use @AuraEnabled(cacheable=true)
5What is Aura method type?
6What are events in Aura.
7Communication from child to parent in Aura.
8How can we call lighting component from Visualforce page.
9Query: Write SOQL to Accounts and their related Contacts where Account name is 'AstirIT'.
10What are junction objects?
11Give me and example of standard junction objects?
12What are the best practices for trigger?
13 Trigger: Count number of Opportunity associated with an Account. Save it to the Number of Opportunity field on Account.
14What is the purpose of Governor limits?
15What is refresh apex.
16Explain salesforce multitenant architecture.
17Can we create dependent fields in salesforce?
18What is SLDS? tell me some classes you have recently used.
19Controllers in Visualforce page.
20Two Controllers the same time in Visualforce page.
21What is viewstate in Visualforce page.
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.
Apex questions
- What is a wrapper class, and when do you use one?
- What does @AuraEnabled(cacheable=true) do?
- How do you handle exceptions in Apex, and what is a custom exception?
- What is a SOQL for loop, and why is it useful for large result sets?
- What is Database.Stateful in Batch Apex?
Triggers questions
- How do you test a trigger with 200 records?
- What is the difference between addError on a record and addError on a field?
- What happens when a trigger and a record-triggered Flow run on the same object?
- What are the trigger context variables?
Lightning Web Components questions
- How do you navigate between pages using NavigationMixin?
- What is shadow DOM, and what is synthetic shadow in LWC?
- How do you write Jest tests for a Lightning web component?
- What are the main differences between Aura components and LWC?
SOQL and Data questions
- What is a selective query, and why does it matter for large data volumes?
- What is the difference between WITH SECURITY_ENFORCED and WITH USER_MODE?
- How do you query deleted records (ALL ROWS)?
General and experience questions
- How do you handle code reviews and technical debt on your team?
- What is your experience with agile or scrum on Salesforce projects?
- How do you keep up with new Salesforce releases?
Concepts to Revise
Based on the questions on this page, these are the areas most worth revising.
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
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
How to Prepare
The questions on this page lean towards Apex, Triggers and Lightning Web Components. Spend most of your revision time there, then cover the remaining topics lightly.
- Practise explaining governor limits and bulkification with a real example from your own project.
- 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.
- 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.