Introduction
If you are preparing for Salesforce interviews in Big 4 companies such as Deloitte, EY, PwC, and KPMG, the interview process is usually focused on:
- Real-time project experience
- Scenario-based problem solving
- Governor limits and performance optimization
- Integration architecture
- Security and sharing model
- Apex and LWC best practices
- Deployment and DevOps understanding
- Client communication and requirement gathering
For 3–5 years of experience, interviewers expect practical answers rather than textbook definitions. They want to understand:
- How you solved production issues
- How you designed scalable solutions
- How you handled integrations
- How you optimized performance
- How you worked with stakeholders
This guide contains detailed scenario-based Salesforce interview questions with professional answers suitable for Big 4 company interviews.
Section 1: Salesforce Admin + Security Scenario Questions
1. Explain a complex security model you implemented in Salesforce.
Answer
In one of my projects, the client had multiple regional sales teams:
- US Sales Team
- Europe Sales Team
- APAC Sales Team
The requirement was:
- Users should only view records belonging to their region.
- Regional Managers should access records of their subordinates.
- Global Directors should access all records.
- Finance users should only access billing fields.
Solution Implemented
I implemented security using multiple Salesforce features:
Step 1: Organization-Wide Defaults (OWD)
I set:
- Account → Private
- Opportunity → Private
This ensured users could not access others’ records by default.
Step 2: Role Hierarchy
Created hierarchy:
- Sales Rep
- Regional Manager
- Global Director
This allowed managers to automatically access subordinate records.
Step 3: Sharing Rules
Created criteria-based sharing rules for collaboration between teams.
Example:
If Opportunity Type = “Strategic Deal”, share with Executive Team.
Step 4: Profiles and Permission Sets
Used:
- Profiles for baseline access
- Permission Sets for additional permissions
Finance users received field-level access only to billing-related fields.
Step 5: Field-Level Security
Sensitive fields:
- Margin
- Discount
- Revenue Forecast
Were hidden from regular users.
Result
- Improved data security
- Reduced manual sharing
- Met compliance requirements
- Simplified administration
Follow-Up Discussion Points
Interviewers may ask:
- Difference between Profiles and Permission Sets
- When to use Sharing Rules vs Apex Sharing
- Difference between Role Hierarchy and Sharing Rules
2. A user says they cannot see a record. How would you troubleshoot?
Answer
I follow a systematic troubleshooting approach.
Step 1: Verify Object Access
Check:
- Profile
- Permission Sets
Ensure user has:
- Read access
- Tab visibility
Step 2: Verify Record Ownership
Check who owns the record.
If OWD is Private, ownership becomes critical.
Step 3: Check Role Hierarchy
Verify whether the user is above the record owner in hierarchy.
Step 4: Check Sharing Rules
Review:
- Criteria-based sharing
- Owner-based sharing
- Manual sharing
- Team sharing
Step 5: Check Apex Sharing
In custom implementations, verify Apex-managed sharing records.
Step 6: Use “Sharing” Button
The Sharing button helps identify:
- Why a user has access
- Why they do not have access
Step 7: Login As User
Use “Login As” functionality to replicate issue.
Real Scenario
A user could not access Opportunities.
Root cause:
A criteria-based sharing rule failed because a field value changed unexpectedly during integration.
Fix:
Updated integration mapping and re-evaluated sharing.
Section 2: Apex Scenario-Based Questions
3. Explain a trigger framework you implemented.
Answer
In enterprise projects, I avoid writing business logic directly in triggers.
I use a Trigger Framework following best practices:
Architecture
- One Trigger Per Object
- Trigger Handler Class
- Service Layer
- Utility Classes
- Selector Classes
Example Structure
trigger AccountTrigger on Account (
before insert,
before update,
after insert,
after update
) {
AccountTriggerHandler handler = new AccountTriggerHandler();
if(Trigger.isBefore && Trigger.isInsert){
handler.beforeInsert(Trigger.new);
}
if(Trigger.isAfter && Trigger.isUpdate){
handler.afterUpdate(Trigger.new, Trigger.oldMap);
}
}
Benefits
- Reusable code
- Easier testing
- Better maintainability
- Bulkification support
- Separation of concerns
Real Scenario
We had multiple business rules:
- Validate duplicate accounts
- Create onboarding tasks
- Sync external ERP data
- Send notifications
Instead of writing everything in one trigger, we separated logic into service classes.
This reduced deployment issues and improved scalability.
Best Practices Followed
- No SOQL inside loops
- No DML inside loops
- Collections and Maps used
- Exception handling
- Recursion prevention
4. What are governor limits? How did you solve a governor limit issue?
Answer
Governor limits ensure efficient use of Salesforce shared resources.
Common limits:
- 100 SOQL queries
- 150 DML statements
- CPU time limit
- Heap size limit
Real Scenario
We had a trigger on Opportunity.
Issue:
Users received:
Too many SOQL queries: 101
Root Cause
SOQL query was written inside a loop.
Bad Code Example:
for(Opportunity opp : Trigger.new){
Account acc = [SELECT Id, Name FROM Account WHERE Id = :opp.AccountId];
}
Solution
Used Set and Map.
Optimized Version:
Set<Id> accountIds = new Set<Id>();
for(Opportunity opp : Trigger.new){
accountIds.add(opp.AccountId);
}
Map<Id, Account> accMap = new Map<Id, Account>(
[SELECT Id, Name FROM Account WHERE Id IN :accountIds]
);
Result
- Eliminated governor limit issue
- Improved performance
- Reduced execution time
Additional Optimization
Used:
- Queueable Apex
- Future methods
- Batch Apex
For heavy processing.
5. Explain Batch Apex with a real-time scenario.
Answer
Batch Apex is used when processing large data volumes.
Real Scenario
Client requirement:
Every night:
- Process 5 million records
- Update inactive customers
- Archive old data
Why Batch Apex?
Normal Apex cannot process huge records because of governor limits.
Batch Apex processes data in chunks.
Batch Apex Structure
global class CustomerBatch implements Database.Batchable<SObject> {
global Database.QueryLocator start(Database.BatchableContext bc) {
return Database.getQueryLocator(
'SELECT Id, Status__c FROM Customer__c'
);
}
global void execute(Database.BatchableContext bc, List<Customer__c> scope) {
for(Customer__c c : scope){
c.Status__c = 'Inactive';
}
update scope;
}
global void finish(Database.BatchableContext bc) {
System.debug('Batch Completed');
}
}
Advantages
- Processes millions of records
- Handles governor limits efficiently
- Supports scheduling
- Better error handling
Additional Enhancement
Implemented:
- Database.Stateful
- Error logging
- Retry mechanism
- Batch chaining
6. Difference between Future, Queueable, and Batch Apex?
Answer
| Feature | Future | Queueable | Batch |
|---|---|---|---|
| Processing | Async | Async | Async |
| Supports Complex Objects | No | Yes | Yes |
| Chaining | No | Yes | Yes |
| Monitoring | Limited | Better | Full |
| Large Data Processing | No | Medium | Excellent |
| Best Use Case | Simple async task | Medium async logic | Huge data processing |
Real Recommendation
I generally prefer:
- Queueable over Future
- Batch for huge datasets
Because Queueable provides:
- Better monitoring
- Chaining
- Complex object support
Section 3: Integration Scenario Questions
7. Explain a Salesforce integration project you worked on.
Answer
In one project, Salesforce was integrated with SAP ERP.
Business Requirement
When Opportunity becomes Closed Won:
- Create Sales Order in SAP
- Sync Invoice Status back to Salesforce
Integration Pattern Used
- REST API
- Middleware: MuleSoft
- Named Credentials
- Platform Events
Flow
- Opportunity closed in Salesforce
- Platform Event published
- Middleware consumes event
- SAP Order created
- Response sent back to Salesforce
Challenges Faced
1. Duplicate Records
Implemented idempotency using External IDs.
2. Timeout Issues
Used asynchronous Queueable Apex.
3. Error Handling
Created custom logging object.
Security Implemented
- OAuth 2.0
- Named Credentials
- Encrypted fields
Result
- Real-time integration
- Reduced manual work
- Improved order processing speed
8. How do you handle API limits in Salesforce?
Answer
Strategies Used
1. Bulk APIs
Used Bulk API for large data operations.
2. Reduce Unnecessary Calls
Implemented:
- Change Data Capture
- Platform Events
- Incremental sync
3. Middleware Caching
Middleware cached repeated requests.
4. Composite APIs
Used Composite API to combine multiple operations.
5. Async Processing
Used Queueable and Batch Apex.
Real Scenario
An external system continuously queried Salesforce every minute.
Problem:
API limits exceeded.
Solution:
Implemented Platform Events.
Now Salesforce pushes updates instead of polling.
Result:
- Reduced API calls by 80%
- Improved performance
Section 4: LWC Scenario-Based Questions
9. Explain a complex LWC component you developed.
Answer
I developed a dynamic Opportunity Management dashboard using LWC.
Features
- Dynamic filters
- Inline editing
- Real-time calculations
- Pagination
- Lazy loading
- Chart integration
Technologies Used
- Apex Controllers
- Lightning Data Service
- Wire Adapters
- Custom Events
- Pub/Sub
Challenge
Users experienced slow loading.
Optimization Done
1. Lazy Loading
Loaded records page by page.
2. Cacheable Apex
Used:
@AuraEnabled(cacheable=true)
3. Debouncing Search
Reduced unnecessary server calls.
4. Lightning Data Service
Avoided redundant queries.
Result
- Faster UI
- Better user experience
- Reduced server load
10. Difference between @wire and imperative Apex?
Answer
| Feature | @wire | Imperative Apex |
|---|---|---|
| Reactive | Yes | No |
| Automatic Refresh | Yes | Manual |
| Cache Support | Yes | Limited |
| Use for DML | No | Yes |
| Best For | Read Operations | Create/Update/Delete |
Real Usage
I use:
- @wire for fetching reactive data
- Imperative Apex for save/update operations
Example
@wire(getAccounts)
accounts;
Imperative:
saveAccount({acc : this.record})
.then(result => {
console.log(result);
});
Section 5: Scenario-Based Deployment Questions
11. Explain your deployment process.
Answer
In enterprise projects, we follow structured CI/CD deployment.
Environments
- Developer Sandbox
- Integration Sandbox
- UAT
- Staging
- Production
Tools Used
- Git
- Bitbucket/GitHub
- Jenkins
- Salesforce DevOps Center
- SFDX
Deployment Flow
- Developer creates feature branch
- Code review via Pull Request
- Validation in Integration Sandbox
- QA testing
- UAT approval
- Production deployment
Best Practices
- Use unlocked packages where possible
- Maintain deployment checklist
- Run all tests
- Backout strategy prepared
Real Production Issue
Deployment failed because of missing picklist values.
Solution:
Added deployment dependency validation process.
12. How do you handle production issues?
Answer
My Approach
Step 1: Understand Severity
Classify issue:
- Critical
- High
- Medium
- Low
Step 2: Reproduce Issue
Use:
- Debug logs
- Login As
- Sandbox testing
Step 3: Root Cause Analysis
Check:
- Recent deployments
- Automation conflicts
- Validation rules
- Integration logs
Step 4: Hotfix Strategy
If urgent:
- Create quick fix branch
- Validate in sandbox
- Deploy safely
Step 5: Preventive Action
Document:
- RCA
- Lessons learned
- Preventive controls
Real Scenario
A trigger caused Opportunity save failures.
Root cause:
Recursive update.
Fix:
Implemented recursion control using static variables.
Section 6: Scenario-Based Data Questions
13. How do you manage large data volume (LDV) in Salesforce?
Answer
Strategies Used
1. Selective SOQL Queries
Used indexed fields.
2. Skinny Tables
Worked with Salesforce support.
3. Archiving Old Data
Moved historical data externally.
4. Batch Processing
Used Batch Apex.
5. Avoid Full Table Scans
Optimized filters.
Real Scenario
Client had 50 million Case records.
Problem:
Reports and queries were slow.
Solution
- Data archiving
- Indexed filters
- Query optimization
- Custom async processing
Result:
Query performance improved significantly.
Section 7: Trigger and Automation Scenarios
14. Flow vs Process Builder vs Trigger — when do you use each?
Answer
Current Recommendation
Salesforce recommends Flow over Process Builder.
My Approach
| Tool | Use Case |
|---|---|
| Flow | Declarative automation |
| Trigger | Complex logic |
| Batch Apex | Huge processing |
When I Use Flow
- Approval processes
- Screen interactions
- Simple automation
- Notifications
When I Use Apex Trigger
- Complex validations
- Multi-object transactions
- Integration logic
- High-performance requirements
Real Scenario
A flow caused CPU timeout because of multiple nested loops.
Solution:
Moved logic to Apex.
Result:
Improved performance.
15. How do you prevent recursion in triggers?
Answer
Common Problem
Trigger updates same object again.
This causes infinite loop.
Solution
Used static Boolean variable.
Example:
public class TriggerHelper {
public static Boolean isRunning = false;
}
Trigger:
if(!TriggerHelper.isRunning){
TriggerHelper.isRunning = true;
// logic
}
Better Enterprise Approach
Use:
- Static Set
- Framework-based recursion control
Because Boolean fails in bulk operations sometimes.
Section 8: Real-Time Project Questions
16. Describe your most challenging Salesforce project.
Answer
One challenging project involved migrating legacy CRM data into Salesforce.
Challenges
- 20+ million records
- Duplicate data
- Invalid relationships
- Poor data quality
- Tight deadlines
My Responsibilities
- Data mapping
- ETL coordination
- Validation rules
- Integration support
- Batch optimization
Solution
Implemented:
- Bulk API
- Data Loader
- Custom validation framework
- Duplicate management
- Batch error handling
Result
- Successful migration
- Minimal downtime
- Improved data quality
Key Learning
Planning and data cleansing are critical in migration projects.
17. Explain a situation where you improved performance.
Answer
Problem
Opportunity save time was 15–20 seconds.
Root Causes
- Multiple flows
- Heavy trigger logic
- SOQL in loops
- Duplicate validations
Optimization Done
- Combined flows
- Bulkified trigger
- Reduced queries
- Moved async logic to Queueable
- Optimized formulas
Result
Save time reduced to 3–4 seconds.
Section 9: Behavioral + Client-Facing Questions
18. How do you handle changing client requirements?
Answer
In Salesforce projects, changing requirements are common.
My Approach
- Understand impact
- Discuss technical feasibility
- Estimate effort
- Document changes
- Communicate risks
- Update design documents
Real Example
Client requested new approval hierarchy during UAT.
Action Taken
- Conducted impact analysis
- Updated flow design
- Modified sharing model
- Completed regression testing
Result
Delivered enhancement without affecting timeline.
19. How do you handle conflict within the team?
Answer
I focus on:
- Understanding both perspectives
- Discussing facts instead of emotions
- Aligning with project goals
- Finding collaborative solutions
Real Scenario
Developers disagreed on Flow vs Apex implementation.
Resolution
We evaluated:
- Scalability
- Maintenance
- Performance
- Future enhancements
Finally:
Used hybrid approach.
Result:
Better maintainability and team alignment.
Section 10: Frequently Asked Big 4 Salesforce Questions
20. What Salesforce clouds have you worked on?
Sample Answer
I have primarily worked on:
- Sales Cloud
- Service Cloud
- Experience Cloud
Additionally, I have exposure to:
- CPQ
- Marketing integrations
- MuleSoft integrations
21. What is your role in Agile projects?
Answer
I actively participate in:
- Sprint planning
- Story estimation
- Daily standups
- Code reviews
- Sprint demos
- Retrospectives
I also coordinate with:
- Business analysts
- QA teams
- Architects
- Product owners
22. Explain code review best practices.
Answer
During code reviews, I verify:
- Bulkification
- Governor limits
- Naming conventions
- Exception handling
- Test coverage
- Security checks
- Reusability
- Performance optimization
I also ensure:
- No hardcoded IDs
- Proper comments
- Meaningful logs
23. How do you ensure Apex test class quality?
Answer
I follow these practices:
- Test positive and negative scenarios
- Use Test.startTest() and Test.stopTest()
- Create reusable test data factory
- Avoid SeeAllData=true
- Validate assertions properly
- Test bulk scenarios
Example
@isTest
private class AccountServiceTest {
@isTest
static void testCreateAccount(){
Account acc = new Account(Name='Test');
Test.startTest();
insert acc;
Test.stopTest();
Account result = [SELECT Id, Name FROM Account LIMIT 1];
System.assertEquals('Test', result.Name);
}
}
Section 11: Important Lightning Questions
24. Difference between Aura and LWC?
Answer
| Feature | Aura | LWC |
|---|---|---|
| Performance | Slower | Faster |
| Standards | Proprietary | Web Standards |
| Development | Complex | Simpler |
| Reusability | Medium | High |
| Future Support | Limited | Preferred |
Real Recommendation
For new development:
I prefer LWC.
Aura is mainly used when:
- Legacy support needed
- Specific unsupported features required
25. Explain Lightning Data Service.
Answer
Lightning Data Service allows interaction with Salesforce records without writing Apex.
Benefits
- Better performance
- Caching
- Reduced server calls
- Security enforcement
Real Usage
Used LDS for:
- Record forms
- Read-only pages
- Inline editing
Section 12: Architecture-Level Questions
26. How do you design scalable Salesforce solutions?
Answer
I focus on:
1. Reusability
- Service layer
- Utility classes
- Shared components
2. Scalability
- Async processing
- Event-driven architecture
- Platform Events
3. Performance
- Query optimization
- Selective filters
- Caching
4. Security
- CRUD/FLS checks
- Sharing enforcement
- Named Credentials
5. Maintainability
- Documentation
- Code standards
- Modular design
Section 13: Final HR + Self-Introduction Questions
27. Tell me about yourself.
Sample Answer
I am a Salesforce Developer with around 4 years of experience working on enterprise Salesforce applications.
I have experience in:
- Apex
- LWC
- Integrations
- Flows
- Salesforce security
- Deployment processes
I have worked on Sales Cloud and Service Cloud projects involving:
- Automation
- Integrations
- Performance optimization
- Complex business logic
In my current role, I work closely with:
- Business stakeholders
- QA teams
- Architects
- DevOps teams
I enjoy solving complex business problems and building scalable Salesforce solutions.
Final Tips for Big 4 Salesforce Interviews
Technical Preparation
Focus strongly on:
- Apex best practices
- LWC
- Integrations
- Security model
- Governor limits
- Batch/Queueable Apex
- Flow architecture
Communication Skills
Big 4 companies evaluate:
- Client communication
- Requirement gathering
- Presentation skills
- Problem-solving ability
Scenario-Based Thinking
Avoid theoretical answers only.
Always explain:
- Problem
- Solution
- Challenges
- Result
Important Tip
Whenever possible, answer using:
STAR Method
- Situation
- Task
- Action
- Result
This creates strong professional answers.
Conclusion
For 3–5 years of Salesforce experience, interviewers expect:
- Strong fundamentals
- Real project exposure
- Scenario-based thinking
- Clean coding practices
- Integration understanding
- Performance optimization knowledge
If you prepare these questions properly with your real project examples, you can confidently crack Salesforce interviews in Big 4 companies and enterprise organizations.
Bonus Rapid-Fire Questions
- Difference between with sharing and without sharing?
- What are Platform Events?
- Difference between Custom Metadata and Custom Settings?
- What is CDC?
- What are Named Credentials?
- Difference between Master-Detail and Lookup?
- What are External IDs?
- Explain Skinny Tables.
- What is Mixed DML error?
- Explain Transaction Control.
- What is Savepoint and Rollback?
- Difference between Database.insert and insert?
- What are wrapper classes?
- Explain Continuation in Salesforce.
- Difference between REST and SOAP APIs?
- What are governor limits in asynchronous Apex?
- Explain optimistic locking.
- Difference between Queueable and Platform Events?
- Explain Record Types.
- What is Shield Encryption?
Best of Luck
Trusted by 3000+ learners to crack interviews at TCS, Infosys, Wipro, EY, and more.
Want more Real Salesforce Interview Q&As?
- For Beginners (1–4 Yrs Experience) → https://trailheadtitanshub.com/100-real-salesforce-scenario-based-interview-questions-2025-edition-for-1-4-years-experience/
- For Intermediate Developers (4–8 Yrs Experience) → https://trailheadtitanshub.com/100-real-time-salesforce-scenario-based-interview-questions-2025-edition-for-4-8-years-experience/
For All Job Seekers – 500+ Questions from Top Tech Companies → https://trailheadtitanshub.com/500-real-interview-questions-answers-from-top-tech-companies-ey-infosys-tcs-dell-salesforce-more/
- Student Journey – 34 Days to Crack Salesforce Interview → https://trailheadtitanshub.com/crack-the-interview-real-questions-real-struggles-my-students-34-day-journey/
Mega Interview Packs:
- 600 Real Q&A (Recruiter Calls) → https://trailheadtitanshub.com/salesforce-interview-mega-pack-600-real-questions-from-recruiter-calls-with-my-best-performing-answers/
- 100 Real-Time Scenarios (Admin + Apex + LWC + Integration) → 100 Real-Time Salesforce Interview Questions & Scenarios (2026 Edition) – Admin, Apex, SOQL, LWC, VF, Integration – Trailhead Titans Hub
Career Boosters:
- Salesforce Project (Sales Cloud) → https://trailheadtitanshub.com/salesforce-project-sales-cloud/
- Resume Templates (ATS-Friendly) → https://trailheadtitanshub.com/salesforce-resume-templates-that-work-beat-ats-impress-recruiters/




