Tech Mahindra Salesforce Developer Interview Questions
Following are the interview questions asked at Tech Mahindra for a Salesforce Developer role with 3+ years of experience.
- What is the difference between for:each and iterator in Lightning Web Components (LWC)?
- How do you implement Lightning Message Service (LMS) with an example?
- What is Lightning Data Service (LDS), and how is it used?
- What is the difference between with sharing and without sharing in Salesforce Apex?
- If a Batch Apex processes 3000 records with a scope of 200, how many debug logs will be generated?
- How would you implement a rule where an Account’s phone cannot match a Contact’s phone?
- What are lifecycle hooks in Lightning Web Components?
- Which executes first: decorators or lifecycle hooks?
- Can we call a Batch Apex class from a future method? If not, why?
- Can we make callouts from Batch Apex?
- How many ways can records be shared in Salesforce?
- Write LWC: Show Datatable with 4 account fields, make use of refresh apex to show latest records changes.
- SOQL: Find all accounts where contact is associated with more that one Opportunity.