Learning corner
A free study plan and 30 interview questions with short answers.
A free 8-week study plan
- Weeks 1โ2: Admin basicsTrailhead Admin Beginner trail. Objects, fields, security, reports.
- Weeks 3โ4: AutomationFlow: record-triggered and screen flows. Validation rules.
- Weeks 5โ6: Apex and SOQLClasses, triggers, test classes, governor limits.
- Week 7: Lightning Web ComponentsBuild a small LWC that shows and edits records.
- Week 8: Mini project and interview practiceBuild a small app, then take our mock test.
30 common interview questions with short answers
1. What is the difference between a profile and a permission set?
A profile gives a user's base access; every user has exactly one. Permission sets add extra access on top and can be given to many users.
2. What is the difference between a lookup and a master-detail relationship?
Master-detail is a tight link: the child can't exist without the parent, it inherits sharing, and you can use roll-up summaries. Lookup is a loose link.
3. What are governor limits?
Limits Salesforce sets on each transaction, such as the number of SOQL queries or DML statements, so that one org can't overload the shared platform.
4. Why should you not put SOQL inside a for loop?
Each query counts toward the limit of 100 SOQL queries per transaction. Query once outside the loop and use a map.
5. What is a trigger, and what is a trigger handler pattern?
A trigger is Apex that runs before or after records change. A handler pattern keeps one trigger per object and moves the logic into a class, which is easier to test and maintain.
6. Before vs after triggers?
Use before triggers to change values on the same record. Use after triggers when you need the record ID or to change related records.
7. What is bulkification?
Writing code that works for 200 records as well as for 1, by using collections instead of single-record logic.
8. What test coverage do you need to deploy Apex?
At least 75% overall, and every trigger needs some coverage. Good tests also check results with asserts.
9. What is the difference between Flow and Apex?
Flow is click-based automation that admins can maintain. Apex is code for complex logic, high volume or integrations.
10. What is a record-triggered flow?
A flow that runs automatically when a record is created, updated or deleted.
11. What are the Lightning Web Component lifecycle hooks?
constructor, connectedCallback, renderedCallback, disconnectedCallback and errorCallback.
12. How does an LWC get Salesforce data?
With the wire service (for example wired Apex or Lightning Data Service) or by calling Apex imperatively.
13. What is @AuraEnabled(cacheable=true)?
It lets an Apex method be called from LWC and caches the result. Cacheable methods can't change data.
14. What is the difference between SOQL and SOSL?
SOQL queries specific objects with conditions. SOSL searches text across many objects at once.
15. What is a sandbox?
A copy of production for building and testing. Types include Developer, Developer Pro, Partial Copy and Full.
16. What is the role hierarchy for?
It lets managers see records owned by people below them.
17. What is OWD?
Organisation-Wide Defaults: the baseline access for each object, such as Private or Public Read Only.
18. What is a validation rule?
A formula that stops a record from saving when data is wrong, with an error message for the user.
19. What is a batch Apex class used for?
Processing large numbers of records in chunks, so limits are not exceeded.
20. What is a future method vs Queueable Apex?
Both run code asynchronously. Queueable can take complex types, can be chained and returns a job ID.
21. How do you call an external REST API from Apex?
Use the HttpRequest and Http classes, with a Named Credential for the endpoint and authentication.
22. What is a Named Credential?
A safe place to store an external endpoint URL and its authentication, so secrets are not in code.
23. What is a custom metadata type?
Configuration data that can be deployed between orgs, such as mapping tables or settings.
24. What is the difference between a workflow, Process Builder and Flow?
Workflow rules and Process Builder are retired tools. Flow is the current tool for automation.
25. How do you prevent recursion in triggers?
Use a static variable or a set of processed IDs to stop the trigger from running again on the same records.
26. What is a junction object?
A custom object with two master-detail relationships, used to create a many-to-many link.
27. What is a dynamic form?
A Lightning page feature that shows or hides fields and sections based on rules, without code.
28. How do you deploy changes?
Change sets, Salesforce CLI (SFDX) or DevOps Center, from sandbox to production.
29. What is Experience Cloud?
Salesforce's product for portals and sites for customers, partners or vendors.
30. Tell us about a problem you solved in Salesforce.
Use a simple structure: the problem, what you tried, what worked, and what you learned. Practise this one.
Free resources
- Salesforce Trailhead (free, official)
- A free Salesforce Developer Edition org for practice
- Our Salesforce glossary
- Our learning and growth stories