Salesforce Admin, Development, and LWC Interview Questions with Answers
## Salesforce Admin Interview Questions with Answers
### Basics
1. **What is Salesforce, and how does it differ from traditional CRM software?**
Salesforce is a cloud-based CRM platform that offers tools for sales, service, and marketing.
Unlike traditional CRMs, it requires no on-premise infrastructure and is highly customizable.
2. **Explain the Salesforce data model. What are objects, fields, and records?**
Objects are tables in Salesforce (e.g., Account), fields are columns (e.g., Name), and records are
rows (e.g., a specific account).
3. **What is a Salesforce profile, and how does it differ from a role?**
Profiles control access to objects, fields, and tabs, while roles control record-level visibility through
the role hierarchy.
4. **How does sharing work in Salesforce?**
Sharing is determined by OWD (Org-Wide Defaults), role hierarchy, sharing rules, and manual
sharing.
5. **What are record types, and when would you use them?**
Record types allow you to create different business processes, picklists, and page layouts for
different users.
... [CONTENT TRUNCATED FOR SAMPLE PURPOSE]
## Salesforce Developer Interview Questions with Answers
### Apex
1. **What are Apex triggers?**
Triggers are Apex scripts that execute before or after DML operations. Example: A trigger that
updates a field after a record is inserted.
2. **How do you avoid recursion in triggers?**
Use a static variable in a helper class to ensure the trigger runs only once per transaction.
3. **What is the difference between `with sharing` and `without sharing`?**
"With sharing" enforces sharing rules for the current user, while "without sharing" ignores them.
... [CONTENT TRUNCATED FOR SAMPLE PURPOSE]
## LWC (Lightning Web Component) Interview Questions with Answers
1. **What is Lightning Web Component (LWC)?**
LWC is a modern JavaScript-based framework for building UI components in Salesforce. It uses
web standards.
2. **How do you handle events in LWC?**
Use `dispatchEvent` for custom events and the `on<EventName>` syntax for standard events.
3. **What is the `@wire` decorator in LWC?**
The `@wire` decorator is used to fetch data from Salesforce or external systems reactively.
...