Salesforce is the leading cloud computing software-as-a-service (SaaS) customer relationship management (CRM) software, which is used to offer a customized experience to businesses. It helps businesses to manage services like customer acquisition and customer retention, and grow the overall customer base. Being one of the most popular CRM software, many companies like Amazon, Adidas, American Express, Google, Twitter, Facebook, etc. are using Salesforce. Approximately 72% of the top-rated marketing firms stated that they would increase their spending on tools like Salesforce till 2020. In addition, most of the companies prefer Salesforce and are migrating their apps to Salesforce. All these facts imply an increased demand for salesforce developers and salesforce administration experts. Below chart depicts the estimated jobs in 2020 pertaining to the Indian markets:     Thus, to get a good job, cracking a Salesforce job interview is must.Here is the list of top most frequently asked Salesforce interview questions that will help you get through with your upcoming interview and land a high-end job in the field of your passion. This article will help you if you are preparing for Salesforce interview, with some of the common Salesforce interview questions asked, along with answers.

Q1. What is Salesforce?

  Ans. Salesforce is world’s No.1 customer relationship management (CRM) platform that aids individuals manage the database in a very stimulating manner. It is the product of a company of the same name. This integrated platform aids in the smooth functioning of multiple departments including marketing and sales, and receive a single, shared view of every customer. Some of the services and products that Salesforce offers are:
  • Sales Cloud
  • Service Cloud
  • Exact Market Cloud
  • AppExchange
  • Community Cloud
  • Commerce Cloud
  • Analytics Cloud
  • App Cloud
  • IoT Cloud
  • Health Cloud
  • Chatter
  • Salesforce1
Almost every industry including communications, health care, media, financial services, government, retail, logistics, etc. actively use Salesforce.  

Q2. What are the benefits of Salesforce CRM?

Ans. Below mentioned are some of the benefits of using Salesforce CRM:
  • It helps in enhanced communication with customers.
  • It improves customer service.
  • It aids in improving analytical data and reporting.
  • It is a great tool for automation and relieves a business from repetitive and less important tasks.
  • Greater efficiency in managing multiple teams.
  • Helps in individual client’s account planning.

Q3. What do you understand by sandbox org? Define the different types of sandboxes available in salesforce.

Ans. In a company, various departments require data for different purposes like development, testing, and training. Thus to ease this functionality, salesforce offers a feature to make different copies of your production organization called sandbox. These sandboxes are isolated from the main production and hence whatever operations are being performed in the sandbox will have no effect on production organizations. The below image gives different stages where the sandbox will help to create different environments. Types of sandboxes
  • Developer Sandbox
  • Developer Pro Sandbox
  • Partial Data Sandbox
  • Full Sandbox
Developer Sandbox Yes   Yes Yes Yes
Developer Pro Sandbox Yes Yes Yes No
Partial Data Sandbox Yes Yes No No
Full Sandbox Yes No No No

Q4. What is the object relationship in salesforcedotcom (SFDC)?

Ans. It is used to link custom object records to standard object records in a related list. During the interview, you can also explain the different types of relationships by creating custom relationships domains of an object.


Q5. How many types of relationships are included in SFDC?

Ans. Relationship in Salesforce is known as a two-way association where one object is associated with the other. This helps in viewing related data and makes it easy for users to make a quick analysis. It also helps in eliminating inconsistency and repetitions of data so that one can quickly derive values. Majorly four types of relationships are included in SFDC:
  • Lookup relationship
  • Master-detail relationship
  • Many-to-many relationships
  • Hierarchical relationship

Q6. What do you mean by a lookup relationship?

Ans. Lookup relationship helps in interlinking two objects and it can also associate an object with itself. But in a lookup relationship, it is not possible to relate an object with its own campaign member object. However,  a campaign member object can be easily linked with any other object.  

Q7. How is a lookup relationship different from a master-detail relationship?

Ans. As in salesforce, the master-detail relationship is a parent-child, where the parent (master) controls some traits of the child (detail) and both are tightly connected. Thus, when working on the master-detail relationship in salesforce, it is compulsory to define the parent record for that particular child which is not requisite in lookup relationship. Another major difference is that when a parent in a master-detail relationship is deleted, the child details also get deleted automatically. However, in the lookup relationship, there is no impact on the child even if the details in the parent field are erased.  

Q8. What are Junction Objects in Salesforce?

Ans. Junction objects help in creating many-to-many relationships in salesforce. It is known as the custom object having two master relationships in salesforce. For example: while working on different projects, you encounter different ‘Bug’ and for the one projects there can be several ‘Bugs’. This is a form of many-to-many relationships and with the help of ‘Junction object’, this relationship can be established.  

Q9. Explain Governor Limits.

Ans. These are salesforce’s way of forcing you to write scalable and competent code. This limit controls the number of records one can store in the shared database. Different limits in salesforce are:
  • Email limits
  • Size-specific apex limits
  • Per-transaction apex limits
  • Static apex limits
  • com platform apex limits
  • Miscellaneous Apex Limits
  • Push Notification Limits

Q10. What do you understand by Visualforce Page?

Ans. Visualforce is a kind of Salesforce markup language, which defines the user interface components present on This markup language similar to HTML and developers can use it for performing tasks like:
  • Develop user interface
  • Define the custom tabs
  • Integrate and customize the sidebars in salesforce console
  • Create and customize help pages
  • Add menu in Salesforce1
  • Manage the home page in the account tab


Q11. Why Visualforce pages have a different domain?

Ans. Visualforce pages are deliberately given a different domain because salesforce gives exclusive attention to security and data safety. Thus, with a separate domain, it blocks the cross-site scripting.


Q12. Define Tab in Salesforce.

Ans. Tab is a feature useful to display custom object data that is embedded in a particular application. Some of the tabs that are available in salesforce are:
  • Custom object tabs
  • Web tabs
  • Flexible page tabs
  • Lightning page tabs
  • Visualforce tabs

Q13. Can you edit an apex class in the production environment?

Ans. No, it is impossible to edit an apex class in the production environment directly. However, to make any such changes in the apex class, it is recommended to do the required changes in Sandbox. After that, you can edit the same code via Changeset, eclipse, or migration tool.  

Also Read>> Take That Big Career Leap with e-Learning!


Q14. What may cause data loss?

  Ans. As Salesforce CRM is cloud-based software, the entire data of a business is stored on a cloud. However, due to the below reasons, one may lose the data:
  • Changing to auto-number except for the text
  • Modifying to number, currency, and percent from other data types
  • Changing from text-area to URL, email, phone, and text
  • Changing from the checkbox, auto number, multi-select picklist to other types

Q15. Define workflow in salesforce.

Ans. Workflow helps in automation of tasks related to specific business processes in Salesforce. It gives access to the workflow related to all the objects that are present.  

Q16. Name some actions in the workflow.

Ans. Following are some of the actions available in the workflow:
  • Task
  • Outbound message
  • Email alert
  • Field update

Q17. What are the different object relations in salesforce?

Ans. There are three types of object relations:
  • One to many
  • Many to many
  • Master-detail

Q18. State the importance of app in salesforce.

Ans. Salesforce has a container that can store multiple tabs including logo and names. This group of tab helps in customizing the apps as per the user requirements. It also enables building new apps and at the same time combine the custom and standard tabs. Below are the steps to create an app:  
  1. Go to ‘Setup’ in salesforce
  2. Choose the ‘Build’ option
  3. Select ‘Create’ option
  4. Select ‘App’ option
  5. Click on ‘New’

Q19. Name some of the popular types of app that one can create in salesforce.

Ans. There are two types of apps:
  • Custom apps which can be used as per your business model
  • Console apps which are useful in the client service business model

Q20. What is a dashboard?

Ans. It is a pictorial representation of the report. Dashboards help users measure the impact of the users and identify trends.  

Q21. What is WhatId in activities?

Ans. In salesforce, WhatId refers to objects. It is also referred to as Opportunity ID or Account ID. WhatID is known to represent objects that are nonhuman like accounts, opportunities, cases, etc. By nature, WhatID is Polymorphic and is related to the ID of an object.  

Q22. How WhoID is different from WhatID?

Ans. Unlike whatID, WhoID refers to people’s things and not to non-human objects. For example, contact id or a lead id represents a human. When a lead or contact id is present, the WhatId of the object will remain empty. In case   any shared activity is enabled, it refers to the primary contact. The below image highlights the difference clearly.

Q23. How to store records in salesforce?

Ans. There are multiple ways to store records including images, files, important documents, notes, etc. Some of the commonly used ways are:
  • Attachments
  • Google drive
  • Chatter Files
  • Libraries

Q24. What is Audit Trail?

Ans. Audit trail helps in tracking the recent setup changes made by the administrators of your company. It also offers information about the changes to your salesforce in the last 6 months. For viewing all the changes, one needs the permission “View Setup and Configuration.”  

Q25. Which things you can see via Audit Trail?

Ans. We can check things like:
  • Date and time
  • Last user who made any changes
  • The updated change (what the change which was made)

Q26. Mention some email templates that are created in salesforce?

Ans. The different types of email templates that can be created in salesforce are:
  • Visual force
  • HTML with letterhead
  • Custom HTML
  • Text email template

Also Read>> 5 Essential Powerpoint Tricks – Change the way you present!


Q27. Name some examples of Custom field types.

Ans. In salesforce, multiple custom fields are supported and some of them are mentioned below: URL, text. text area, lookup relationship, email, date, percent, phone, currency, number, picklist, auto number, checkbox, formula, hierarchical relationship, master-detail relationship, roll-up summary, and more.  

Q28. What fields are indexed by default in salesforce?

Ans. Some of the fields that are indexed in salesforce are:
  • Primary keys like ID, name, owner fields
  • Audit dates like LastModifiedDate
  • Foreign keys like lookup and master-detail relationship fields
  • Custom fields marked with external ID or unique ID

Q29. What is ‘role’ in salesforce?

Ans. In salesforce, a role is used to meet the data roll up expectations. It enables higher-level users in the hierarchy to obtain access to your company’s data uploaded in salesforce. It monitors the data-sharing rules as per the defined hierarchy. The authorities have the power to control and modify the access and sharing rules. However, it is not mandatory to define the ‘role’ for users.  

Q30. How are ‘Profiles’ different from ‘Roles’?

Ans. Unlike roles, assigning profiles is a mandatory task in salesforce. The basic objective of a profile in salesforce is to outline the Access and User Permissions and apart from this, it controls other things like:
  • All object permissions including create, delete, edit, and read
  • All field permissions including view and edit
  • Permission related to Record Type
  • App visibility permissions
  • Define the login hours
  • Permission related to Tab Access
  • Permission related to page layouts
Hence, a profile defines overall data visibility permissions as per the pre-defined hierarchy and it is compulsory to define a profile for every user.  

Q31. If required can two users share the same profile?

Ans. Yes, in salesforce it is possible to assign a similar profile to different people, teams, or managers. The advantage of this is that at the same time entire team or group of people can hold access to crucial data, for example, an HRM team named ‘HRM Profile’ can have access to candidates, employees, lead data, conversion ratio, etc. If someone who is at the managerial level wants access to additional data, which the others can’t access, it will require permission.


Q32. Can you schedule a dynamic dashboard?

Ans. No, it is not possible to schedule a dynamic dashboard in Salesforce.  Nevertheless, it is possible to refresh you have an enterprise edition, unlimited edition, or performance edition.  

Also Read>> Best IT Companies to Work for in India


Q33. Define the sharing rule.

Ans. It is used when a user wants to enable access to other users.  

Q34. Name the different types of reports available in salesforce.

Ans. The various reports are given below:
  • Matrix report
  • Summary report
  • Tabular report
  • Joined report

Q35. State difference between data table tags and page block tags.

Ans. Below are some of the common differences:  
Page Block Tags Data Table Tags Visualforce Page
Acquires default Salesforce styles Doesn’t Inherit any Salesforce styles No inheritance of salesforce styles
Is included under <apex: pageBlock> No need for <apex: pageBlock> Offers complete control over
Requires one or more <apex:column> to display data CSS styles can be used No need of <apex: column>
Limits upto 1,000 items Limits upto 5,000 items Limits upto 1,000 items

Q36. Are you equipped to track sales details?

Ans. Yes, I have tracked the sales details in the salesforce. It helps in collating data related to fields like:
  • Number of customers we serve on a day-to-day basis
  • Daily sales number
  • Sales reports
  • Repeat customer details

Q37. What do you mean by an interface in apex?

Ans. It is a collection of those elements which are unimplemented and each method consists of a method signature. Here, the body of every method is empty and every apex must have a different apex class that provides the method a body. All the interfaces in apex are global and methods in the interface are public and abstract methods. Defining an apex in the interface is comparable to a new class in apex.  

Q38. What do you mean by batch apex in salesforce?

Ans. Whenever data is available in large bulk, it is named as a batch. Thus, to process every Query separately, batch apex allows the breaking of a single job into flexible chunks. It helps in executing 10,000+ records by performing an operation to the batch of records, for example, a batch of 200 records at once.

Q39. What are the triggers in Salesforce?

Ans. Triggers are a form of apex code, which are known as programmatic event handlers in salesforce. It is also a class containing 12 static context variables and it gets executed only after the Database Manipulation Language (DML) operation occurs. These triggers usually run on the server-side and can handle DML operations.  

Q40. Which events you can specify in an Apex Trigger?

Ans. It is possible to declare multiple trigger events in one trigger only when each trigger is separated by a comma. Below is the list of events that we can specify in apex trigger:
  • Before Insert
  • Before Update
  • Before Delete
  • After Insert
  • After Update
  • After Delete
  • After Undelete

Q41. How it is possible to enable the development mode in salesforce?

Ans. Enabling the development mode in salesforce is an essential step for every developer as only after enabling the mode it is possible for the developers to embed Visualforce page editor in the browser. Once the mode is enabled, we can see both the code and preview of Visual page on the same window. Below are the steps to enable development mode:
  • Go to Name
  • Click on Advanced User (here you can edit assignments, create new groups, and create new Queue. Also can check the Salesforce login history)
  • Click on the edit button as it will enable the salesforce development mode
  • Further, click on the user section where you will find the Development mode button
  • Click on the button to enable the mode
  • Click on the Save button

Q42. What are the major difference between SOQL and SOSL in salesforce?

Ans. Below is the difference between SOQL and SOSL
Salesforce Object Query Language Salesforce Object Search Language
Returns records Returns fields
Records belong to single sObject Belongs to multiple sObject
Retrieves data by using “Select” keyword Retrieves data by using “Find” keyword
Used in Apex class only Used in both Apex class and Triggers
Works on different objects at the same time Doesn’t work on different objects at the same time and requires different SOQL queries for multiple objects

Q43. What are static and dynamic SOQL?

Ans. SOQL helps in finding the records of salesforce organization and SOQL queries are of two types – static SOQL and dynamic SOQL. Below are major differences between both:  
Static SOQL Dynamic SOQL
Query is written between array brackets [ ] Query is written between ( )
Helpful when there are no dynamic changes in the query Helps in creating dynamic and flexible applications

Q44. How do you go ahead with Bulkification in salesforce?

Ans. Due to the Governed limits, it is essential to write codes that are Bulkified. This helps in combining the relatable task in APEX. Some steps that we usually follow are:
  • Avoid using index values
  • Use each loop for n number of records
  • Avoid using SOSL code inside the loop
  • Avoid using DML code
  • Store data in the form of different collections

Q45. Which Javascript remoting requests support configuration?

Name Datatype
Buffer Boolean
Escap Boolean
Timeout Integer

Q46. What are the advantages of using the Salesforce SaaS platform?

Ans. Below are some of the advantages:
  1. It is cost-effective due to the pay-as-you-go model.
  2. It relieves you from investing in infrastructure.
  3. It has all the latest features and integration of new features is fast when compared to other SaaS platforms.
  4. Here, security is the utmost priority resulting in no loss and misuse of data.
  5. As users can access all applications through the internet, the data can be accessed from any corner of the world.

Q47. What is the use of the getCompactSerialization() method of JWS class?

Ans. This string returns compact data on JWS in the form of concentrated serialized data because its string contains:
  • Encoded JWS header
  • Encoded JWS Payload
  • Encoded JWS signature strings

Q48. What is the use of ProjectionNode class?

Ans. The ProjectionNode class is used to add aggregate functions in the query. Some of the methods  included in this class are:  
Methods in ProjectionNode class
min() Returns the field’s minimum value
max() Returns the field’s maximum value
sum() Returns the field’s sum
avg() Returns the field’s average
alias(name) Mentions column’s output names

Q49. What is the Salesforce Application Programming Index (API)? Name some of the most popular APIs.

Ans. Salesforce APIs help in interacting with the systems using multiple ways. Note: all the APIs will operate in the same manner across both platforms and Some of the common salesforce APIs are:
  • Metadata API
  • Apex API
  • Apex SOAP
  • Rest
  • Rest API
  • Bulk API
  • Apex Rest
  • Streaming API
  • Chatter API

Q50. What are and

Ans. is a SaaS CRM application whereas is a platform to support the developers and businesses in building customized enterprise applications. The major difference between both is that Salesforce is a SaaS product whereas is PaaS (Platform-as-a-Service) product. Salesforce helps the users to store data of applications and helps in building and operating applications that are connected with the Salesforce data. uses HTML, CSS, and JavaScript to develop customized apps.