Infosys Salesforce Interview Questions Oct 2026 (159 Real Questions)

CompanyInfosys
Focus AreaSalesforce Developer
Questions159+
Topics8

Infosys Salesforce Developer interview questions shared by candidates with roughly 3 to 5 years of experience across L1, L2 and managerial rounds (updated Oct 2026). Questions are grouped by topic so you can revise Apex, LWC, triggers, security, flows and integration one area at a time. See also our earlier Infosys 2025 questions.

What's Covered

Topics covered in these interviews.

01Apex Triggers & Coding Scenarios25
02Asynchronous Apex & Batch Apex20
03Apex Fundamentals, SOQL & Test Classes26
04Lightning Web Components & Aura31
05Security, Sharing & Access14
06Flows, Admin & Data Management24
07Integration & Deployment14
08Project & HR Round5

All Interview Questions

Every question listed one by one, in a fresh order. Answers are not included, so practise explaining each one in your own words.

Apex Triggers & Coding Scenarios
1What are the trigger events and the purpose of each?
2What are the best practices for triggers? (Expect cross questions on each point.)
3Write a trigger that sets the Opportunity to Closed when all of its Opportunity Line Items are closed.
4Write a trigger to copy the Billing City into the Shipping City when a new Account is created.
5What is Trigger.newMap and what is Trigger.oldMap?
6Write a trigger so that when an Account's email is updated, the related Contacts' email is updated too.
7Explain trigger architecture.
8Write a roll-up summary trigger to update the maximum Opportunity amount on the Account.
9Why should we write only one trigger per object? What do you consider if a second trigger must be added to an object that already has one?
10How do you handle recursion in a big org where updating Account fields keeps re-firing related triggers?
11What is the difference between a before trigger and an after trigger?
12Write a trigger that creates an associated Contact whenever an Account is created.
13Coding question on bulkification: how do you make a trigger bulk safe?
14Write Apex code to store the Account Id as the key and the related Contact names as values.
15When a Contact is updated, fetch the related Opportunities, sum their amounts and store the total in a custom Account field.
16Write a trigger that updates an isClosed field on Account when any related Opportunity is updated to Closed Won.
17What are the ways to avoid trigger recursion?
18Write a roll-up summary trigger that counts the Contacts on an Account.
19Write a trigger to prevent deleting an Account that has related Contacts.
20Write a trigger that updates Opportunities older than 30 days (and not Closed Won) to Closed Lost whenever Account details are updated.
21Write a trigger to stop users from creating a Contact if another Contact with the same email or phone already exists.
22What is the order of execution in Salesforce? Which runs first for a before insert: the flow or the trigger?
23Write a roll-up trigger on the parent object.
24Write a trigger that updates the Billing City on all related Contacts when an Account's Billing City changes.
25Write code with Account Name as the key and its Contacts as the value.
Asynchronous Apex & Batch Apex
26If 10,001 records are processed in batches of 2,000, how many batches run and what happens with the last batch?
27Can we write a query inside the execute method of a batch class?
28What is the difference between a trigger and a future method?
29What is the difference between a future method and Batch Apex?
30What is the difference between a future method and a Schedulable class?
31What is the difference between a future method and Queueable Apex?
32Explain Scheduled Apex.
33How does Batch Apex work and which methods does it have?
34What are the annotations or parameters available on future methods?
35If a future method is called from a trigger, does it get new governor limits?
36What is the difference between synchronous and asynchronous processing?
37Can we perform an update inside the finish method?
38What are the different asynchronous jobs in Apex and how do they differ?
39Write the syntax of a Batch Apex class.
40Why do we need asynchronous Apex? Have you used it in your project, and how?
41When would you use Database.Stateful?
42How many future calls are allowed in one transaction?
43Have you used the extends keyword in Batch Apex?
44How do you handle errors in Batch Apex?
45Can we call a future method from another future method? What exception do we get if we cannot?
Apex Fundamentals, SOQL & Test Classes
46In how many ways can an Apex class be invoked?
47What is Mixed DML and how can we handle it?
48What are the best practices for test classes?
49What is the difference between an abstract class and an interface?
50Can we have a non-abstract method inside an abstract class?
51What do Limits.getQueries() and Limits.getLimitQueries() return?
52What is a wrapper class and where have you used it?
53What is the best way to resolve the SOQL 101 error?
54What are the different clauses in SOQL?
55What is the difference between with sharing and without sharing?
56What are governor limits?
57What is @TestVisible and why is it needed?
58What is the difference between custom settings and custom metadata? Why did you use one over the other for an integration?
59What are the SOQL query limits?
60Explain collections in Apex and how you would use a Set and a List.
61What is the use of the this keyword?
62What is an AggregateResult? Give an example where you would use an aggregate query.
63What is the difference between extends and implements, and when do you use extends?
64Can we call Test.startTest() and Test.stopTest() more than once in the same test method?
65What is the heap size limit?
66What are the disadvantages of nested queries?
67How do you serialize a JSON response in Apex?
68Which is better: isEmpty() or size()?
69What is the difference between a static and a non-static method? How do you decide which to use?
70Explain Map with a scenario.
71What is the difference between private and public access modifiers?
Lightning Web Components & Aura
72Show the syntax for parent-to-child and child-to-parent communication.
73Explain the LWC lifecycle hooks with examples.
74Can we write DML inside a wire method?
75How do you pass an input value from the HTML template to JavaScript?
76What are the decorators in LWC? What is the use of @track and @api?
77Can we communicate from parent to child using @api? How?
78What are the types of communication in LWC?
79You have 100 Visualforce pages and are moving to Lightning. Do you rebuild all of them? What exactly do you do?
80An LWC should fetch the Contacts of a given Account record but shows no response. What could be the reasons?
81What is the difference between @wire and imperative Apex calls?
82Explain a scenario where you used Aura components.
83A button click should make the entire record detail page read only. How would you do it?
84A lookup field should show only records the user owns (for example, AccountId on Contact). How do you achieve it?
85What makes LWC special compared with Aura?
86What is the difference between connectedCallback and renderedCallback?
87What is the difference between .then and .finally in JavaScript promises?
88What is LDS and what is @wire?
89How do you send data to an unrelated component that is not on the same page?
90What are the different events in Aura components?
91Why can't we make imperative Apex calls inside the constructor?
92What are component events and application events in Aura?
93Write an example of parent-to-child communication in LWC.
94What is the difference between == and === in JavaScript?
95Write an example that sends data to an unrelated component through LMS.
96What is an Aura bundle?
97What are the limitations of Lightning Message Service?
98Build an LWC where the user enters search input, the matching Accounts show in a data table, and selecting an Account lists its Contacts.
99What is the difference between constructor and super in LWC?
100What is the difference between Aura and LWC, and between Visualforce and LWC?
101Write the code to show a toast message in LWC.
102Write an example of child-to-parent communication in LWC.
Security, Sharing & Access
103In how many ways can you make a field required?
104In how many ways can you share a record with another user?
105Two users have the same role and profile, but one must not be able to change the record owner. How do you achieve it?
106How do you bypass a validation rule for a particular user?
107Questions on record sharing and Apex managed sharing.
108After a deployment, a user cannot see data. As the developer who received the ticket, how do you help?
109Scenarios on page layouts and field permissions.
110What is the difference between roles and profiles?
111What types of access can be shared inside a Public Group?
112Can we delete a user in production?
113Explain the Salesforce security model.
114The OWD for an object is Private and a manager should not see the records. What should you do?
115What are the types of sharing rules?
116What is the difference between a Queue and a Public Group?
Flows, Admin & Data Management
117When would you use a screen flow?
118How does Email-to-Case work, what is the backend logic, and how do you troubleshoot when a case is not created?
119What are the different types of flows?
120What tasks have you worked on in Service Cloud?
121How do you push objects and data from one org to another? Which objects go first and why?
122What is the purpose of email logs and what is test deliverability?
123Explain the sales process, the objects involved, and the purpose of each (be ready to list mandatory fields).
124What are the different types of reports and dashboards?
125Explain the entire lead process. In how many ways can leads be created?
126What is the difference between Workflow and Process Builder?
127What data migration tools do you know? What is the Data Import Wizard?
128How do you call an Apex class from a flow, and which flows can be invoked from Apex?
129When converting a lead, is creating an Opportunity mandatory?
130Can we insert custom settings through the Data Import Wizard?
131What happens during an upsert?
132What is Flow Orchestrator?
133Explain Sales Cloud and Service Cloud and the objects related to each.
134What license types are available in Experience Cloud?
135What is the difference between static and dynamic dashboards?
136What are assignment rules?
137A dashboard is not loading data properly. How do you troubleshoot?
138When do you use a flow over a trigger, and a trigger over a flow?
139What are the basics of Vlocity?
140With two custom Price Book objects, what are the mandatory fields and how do you deploy standard and custom objects between orgs?
Integration & Deployment
141Explain encryption and decryption in Salesforce.
142What are Platform Events?
143What is the difference between SOAP and REST, and what does each return?
144What are the types of OAuth flows? What is the client credentials flow?
145What is your deployment process? What deployment methods have you used?
146What integration best practices do you follow, and which integration have you implemented in your project?
147What step do you take before calling an endpoint?
148How do you generate a Session Id?
149What are the methods available in REST API?
150What is a WSDL?
151Why do we need a Connected App?
152What are the integration patterns in Salesforce?
153Is it good to make changes directly in a production org?
154Why do we use Remote Site Settings?
Project & HR Round
155Describe your last two to three months of development work.
156Tell me about yourself.
157What is your team size (developers, architects, leads)?
158Which standard objects have you worked on so far?
159Explain your project and your role and responsibilities in the team.

Preparing for a Salesforce developer interview?

Browse more real company interview experiences and hands-on Apex trigger patterns.

Leave a Reply