CompanyAlept Consulting
Focus AreaSalesforce Developer
Questions15+
Topics5
Alept Consulting Salesforce developer interview experience, shared by a real candidate.
What's Covered
Topics covered in this interview.
01Lightning Web Components2
02SOQL & Data1
03Apex & Triggers7
04Salesforce Core Concepts2
05General & Experience3
All Interview Questions
Every question asked in this interview, listed one by one.
1What are the different events in aura component.
2Why we use controller.js and helper.js file in aura.
3Explain relationships in salesforce.
4Can we give same method name in controller.js file and apex controller.
5Governor limits.
6Can we call Batch from trigger.
7Can we use webservice in trigger.
8Can we pass sObject as parameter to future method ? if not then why?
9Different methods in batch.
10Why we need @testsetup in test method.
11Explain use to role and profile.
12Can we have more than one profile to user in salesforce.
13What is webservice callout.
14Write a sample code for callout.
15What is difference between with sharing and without sharing.
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 the difference between static and instance variables in Apex?
- What are governor limits? Name five important ones.
- What is the difference between Database.insert and the insert DML statement?
- What is the difference between Batch Apex, Queueable Apex, Future methods and Schedulable Apex?
- When would you use a List, a Set and a Map?
Triggers questions
- How do you bulkify a trigger?
- Why can you not update the records in Trigger.new directly inside an after trigger?
- How do you stop a trigger from running more than once on the same record (recursion)?
- How do you test a trigger with 200 records?
Security and Administration questions
- What are record types and page layouts used for?
- What is the difference between custom settings and custom metadata types?
- What are the different types of sandboxes?
- What is the difference between profiles and permission sets?
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
- What was the most challenging issue you solved recently, and how did you solve it?
- How do you approach debugging a production issue?
- How do you decide between a declarative and a programmatic solution?
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
Security and Administration
- Organization-wide defaults and the role hierarchy
- Profiles, permission sets and permission set groups
- Field-level security and object permissions
- Sharing rules and manual sharing
- Validation rules and bypass techniques
- Record types, page layouts and Lightning pages
How to Prepare
The questions on this page lean towards Apex, Triggers and Security and Administration. 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.
- Draw the sharing model on paper: OWD first, then roles and sharing rules, then permission sets on top.
- 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.