Cognizant Salesforce interview questions 2025
We’ve put together a mixed set of the latest Salesforce Developer interview questions asked at Cognizant, based on insights from YouTube, LinkedIn courses, and real-life interview experiences.
- Suppose we have two object A and B and they are related with Master-Detail relationship. So as we know that if we delete record in master then child record will automatically deleted. So now what if we recover the record from recycle bin will the child record will also get recovered and if yes then will it also recover the master detail relationship or not ?
- What we can access in Profiles but not in Permission Sets?
- In how many ways you can share a record in Salesforce.
- From where you can change the setting of “Grant Access Using Hierarchy”.
- There are 2 users, user A and user B which are having same roles and profiles. Now requirement is like user A should be able to change the owner of the record but user B should not be able to change it. How you will achieve this ?
- What is Territory Sharing in Salesforce?
- How can we make a LWC available for only Account object and not for any other object?
- In how many ways apex can be called in LWC.
- Explain Lifecycle hooks in LWC.
- Render method vs conditional rendering in LWC.
- Can multiple triggers be executed on the same object in salesforce?
- What happens in order of execution in salesforce when a trigger executes an error?
- Can we call trigger from batch apex?
- Is batch apex Stateful or Stateless.
- Why can’t we call future method from batch apex ?
- Can we write SOQL inside an execute method in Batch apex?
- Write a SOQL query to find out the duplicates account names.
- Write a SOQL query to find out contacts that has not been modified even once.
- If future methods cannot be called in Batch class then how we can perform callouts in batch as it is also asynchronous in nature?
- What will happen if I get more than 50 million records even after applying filters in batch apex?
- Can I call Apex class from flow in Salesforce?
- There is an opportunity and user A is the owner of that opportunity and there is another user B who has all the permission like edit delete view all everything except modify all, now user B is trying to delete this opportunity which is owned by user A and there is a sharing rule by which we are sharing this opportunity to user B with all the permissions available yet user B is not able to delete this opportunity, he is getting insufficient access what is the major reason ?
- What if a future method is called within a trigger and there is an SQL error in the future method?
- What is the difference between Batch apex and Queueable apex?