3.4K
Mindtree Salesforce Interview Questions
- What are the actions that can be performed in Workflow rules ?
- Given a business requirement, wherein you have to execute all the available actions in a single workflow rule, what would be the sequence of actions ?
- There is a simple SOQL query ‘Select Id, Name from Opportunity’ which fetches millions of records without any selection criterion. How do we optimize the performance of this simple query without using any selection criterion ?
- How can two components who are not related to each other, interact with each other in lightning ?
- Is it possible to invoke an addError() operation on the Trigger.Old list in a delete operation in Trigger ?
- Suppose there are 2 Account records with 3 contacts associated against each Account record. What would be the end result, if I merge these two Account records ?List 3 Governor limits in Apex.
- What should be done to override the governor limit that restricts you from fetching more than 50,000 records in a SOQL query ?
- There is a master-detail relationship between two objects and I want to ensure that the master object should not have more than 10 child records. How can we achieve this without using a trigger ?
- What are skinny tables ? What are they used for ?
- What is the use of @testsetup annotation in a test class ?
- How can a test class access the private members of another class ?
- How can we refresh/reset the governor limits within a test class ?
- Can we call a batch apex program in apex trigger ?
- I want to ensure that once a child record has been added to a master-detail relationship, it cannot be deleted. How can we achieve this using the declarative capability of the platform ?
- What are lightning events ? Where do you use them ?
- In a particular object, I have given only read access to a certain field named as ‘Site__c’ to all users in the organization. However, if I have marked ‘Site__c’ as a required field in the page layout for that object. So, what will happen when a user saves the record in that object through that page layout ?
- What are the different types of attributes that can be added to a lightning component ?
- What is the difference between application level events and component level events in lightning ?
- What is the difference between pageblocktable and datatable in VF pages ?
- What is the use of the ‘transient’ keyword ?
- How can we set-up recurring time-based workflow actions in the platform ?
- Explain the different scenarios wherein you need to use different types of collections i.e List, Set and Map.
- What would happen if I perform a DML update operation on the before update trigger of the same sObject record ?
- What is the use of the <aura:method> tag in Lightning ?
- How do you create RESTful web services using apex ?
- How do you implement Aggregate functions in apex ?
- What is the difference between custom objects, custom settings and custom meta data ?
- What is the use of communities in Salesforce ?
- List the important methods in List, Set and Map
- What are future methods and where are they used ?
- What is the difference between the normal “insert” operation and “Database.insert” operation ? Which is preferred over the other and why ?
- How do you implement the locking functionality of records in apex ?
- What is the difference between SOQL and SOSL query ?
- How do you implement SOAP web services in apex ?
- What are the different context variables available in apex triggers ?
- What are dynamic SOQL queries and how do you prevent SOQL injection in dynamic SOQL queries ?
- What is apex managed sharing ?
- What is the difference between approval process and workflow rules ?
- When do we need to use Javascript remoting and how is it implemented ?
- How can you setup governor limit email warnings in apex ?
- What are the different types of reports in Salesforce ?
- What is analytic snapshot ?
- What is the use of the Database class in apex ?
- What is Lightning connect ?
- What are the most important points to be considered while bulkifying a trigger ?
- How can we schedule apex programs ?
- What is the use of apex email services ?
- What is the return type of SOSL queries ?
- What is the use of the invocable method annotation ?