Top Answers to Salesforce Interview Questions


Salesforce is the top-most Customer Relationship Management (CRM) service provider in the world today. This software dominates the field of Cloud CRM by having over 40 percent of the market share. This Salesforce Interview Questions blog consists of questions that are well-researched and curated by industry experts in the field of Salesforce. Check out these popular Salesforce interview questions to crack Salesforce-related job interviews easily:

Q1. Compare Salesforce Dev 401 with Salesforce Adv Dev 501.
Q2. What is the benefit of Salesforce CRM?
Q3. What are Custom Objects in Salesforce?
Q4. Define Object Relationship in Salesforce.
Q5. List various Object Relations in Salesforce.
Q6. What is an App in Salesforce?
Q7. Explain the advantages of Salesforce using the SaaS platform.
Q8. How does Salesforce deploy Sales Tracking?
Q9. What are Workflows in Salesforce? What are Actions in a Workflow?
Q10. What is a Master–Detail Relationship?

In this Salesforce Interview Questions blog, we have divided the questions into three parts as mentioned below:
1. Basic

2. Intermediate

3. Advanced

Check out this video on Salesforce Interview Questions and Answers

Top Salesforce Interview Questions and Answers

Youtube subscribe

Basic Interview Questions

1. Compare Salesforce Dev 401 with Salesforce Adv Dev 501.

CriteriaSalesforce Dev 401Salesforce Adv Dev 501
What do we learn?Building customized applications, analytical functions, etc.Apex scripts, Developer Console, deploying MVC architecture, etc.
Who can learn?Software and IT professionalsApp and CRM Developers, System Admins, etc.
What is the average annual salary?US$99,000US$141,000

For more information on average salaries paid to Salesforce professionals across the world, click here

2. What is the benefit of Salesforce CRM?

Here are some of the top benefits of Salesforce CRM:

  • Ensuring faster and better sales opportunity
  • Deploying an analytical approach to customer acquisition
  • Reducing cost and improving customer satisfaction
  • Automation of repetitive and less important tasks
  • Improved efficiency and enhanced communication on all fronts

Know more about Why you should go for the Salesforce Certification Training?

3. What are Custom Objects in Salesforce?

Simply put, custom objects are database tables in Salesforce. All data related to an enterprise can be stored in, and for that there is a need for a junction object, which is a custom object. The custom object has a Master–Detail relationship. We can create a Master–Detail relationship between two objects, and then connect a child object as a related list. Custom objects, which can be listed in Custom Settings, has a set of static data that is reusable.

In the process, the custom object has to be defined first and then the following steps need to be followed:

  • Join records with the custom object
  • Custom object data is displayed in custom lists
  • Create a custom tab for the custom object
  • Build page layouts
  • Create a dashboard and a report for analyzing the custom object

Moreover, the custom tab, app, and object can be shared.

4. Define Object Relationship in Salesforce.

In Salesforce, we can link the standard and custom object records in a related list. It is done by the object relationship overview. Various types of relationships can be created in order to connect specific business cases with specific customers. It is possible to create a custom relationship on an object and define various relationship types.

5. List various Object Relations in Salesforce.

Object relations in Salesforce can be of the following types:

  • One to many
  • Many to many
  • Master–Detail

Wish to have a career in Salesforce? For more details, check out the Salesforce Course!

6. What is an App in Salesforce?

An app in Salesforce is a container that contains a name, a logo, and a group of tabs that work as a unit to provide specific functionality. Users can switch between apps using the app’s drop-down menu at the top-right corner of every page.

7. Explain the advantages of Salesforce using the SaaS platform.

Some of the main benefits of Salesforce SaaS are:

  • Its pay-as-you-go model perfectly suites all customers
  • No hassle of infrastructure management
  • All applications are accessed via the Internet
  • Easy integration between various applications
  • Latest features are provided without any delay
  • Guaranteed uptime and security
  • Scalable performance for various operations
  • Ability to access via mobile devices from anywhere

Learn more about Salesforce from this insightful Salesforce blog!

8. How does Salesforce deploy Sales Tracking?

Salesforce is very meticulous when it comes to recording intricate details like sales numbers, customer details, customers served, repeat customers, etc. Salesforce makes it easy to create detailed reports, charts, and dashboards for keeping track of sales.

9. What are Workflows in Salesforce? What are Actions in a Workflow?

A workflow in Salesforce is basically a container or business logic engine that automates certain actions based on particular criteria. If the criteria are met, the actions get executed. When they do not, the record will get saved but no action will be executed.

There are two types of actions in a workflow in Salesforce:

  • Immediate Actions: Actions that get executed immediately when the record is created or edited
  • Time-dependent Actions: Actions that get executed after a certain duration of time, such as 10 days before a records’ close date. After a certain time period, the workflow rules in Salesforce will re-evaluate the record just to make sure that the rule criteria are met. If the record meets the criteria, the aligned actions will be executed.

Go through the Salesforce Course in London to get a clear understanding of Salesforce!

10. What is a Master–Detail Relationship?

A Master–Detail relationship is basically a parent–child relationship, in which ‘Master’ represents the parent and other details represent the child. If the parent is deleted, then the child also gets deleted. Roll-up summary fields can only be created on Master records, which will calculate the SUM, AVG, and MIN of the child records.


Intermediate Interview Questions

11. What happens to the Detail (Child) record when a Master (Parent) record is deleted?

In a Master–Detail relationship, when a Master record is deleted, the Detail record also gets deleted, automatically.

On the other hand, in a Lookup relationship, the Child record will not be deleted, even if the Parent record is deleted.


Check out this video on Salesforce for Beginners:

Top Salesforce Interview Questions and Answers

Youtube subscribe

12. Can you have a Roll-up Summary field in the case of a Master–Detail Relationship?

Yes, we can have a roll-up summary in the case of a Master-Detail relationship but not in the case of a Lookup relationship. This is because a roll-up summary field is used to display a value in the Master record based on the values of a set of fields in the Detail record.

13. What is an sObject type?

An sObject is any object that can be stored in the platform database. Apex allows the use of a generic sObject abstract type to represent any object.

For example, ‘vehicle’ is a generic type and ‘car’ and ‘motorbike’ are concrete types of ‘vehicle’.

Go through this Salesforce Tutorial to learn Salesforce end to end!

14. What are Triggers in Salesforce? How are they different from Workflows?

Triggers in Salesforce are called Apex Triggers. These are distinct and are available specifically for common and expected actions like lead conversions. It is just a code that is executed before or after a record is inserted or updated.

A trigger is different from a workflow as the former is a piece of code; whereas, a workflow is an automated process and uses no code.

15. What is returns a list of records that have been added recently to sObjects. The records that are yet to be saved in the database are returned. Only insert and update triggers have the sObject list, and records can only be modified in before.trigger.

16. What is the minimum test coverage required in order to deploy a trigger?

  • System Administrator: Customization and administration of an application
  • Standard User: Can edit, view, update, or delete one’s own record
  • Read Only: Able to just view the records
  • Solution Manager: Comes with the standard user permission but also can manage categories and published solutions
  • Marketing User: Able to import leads into the organization, along with standard user permissions

17. Explain the platform. is the entire infrastructure and codebase on which the complete Salesforce application exists. In other words, Salesforce is built on, which is a Platform as a Service (PaaS) that lets us simplify the design, development, and deployment of cloud-based applications and websites. Salesforce Developers can work with Cloud Integrated Development Environment and deploy the applications on servers.

Visit our Salesforce Community to get all your doubts and queries clarified soon!

19. List various types of Reports available in Salesforce.

Below are the types of reports available in Salesforce:

  • Tabular report: In this, the grand total is displayed in a table format.
  • Matrix report: This is an in-depth report wherein there are both row-based and column-based grouping.
  • Summary report: Summary report is a report in which the grouping is on a column basis.
  • Joined report: Joining two or more reports into one creates a joined report.

20. How many Reports can be added to the Salesforce dashboard?

A Salesforce dashboard can be seen as a visual and pictorial representation of a dashboard with the facility to add up to 20 reports.

Learn more about Salesforce from this Salesforce Training in New York to get ahead in your career!


Salesforce Interview Questions - Salesforce Career

21. Explain various Salesforce dashboard components.

Various Salesforce dashboard components are explained below:

  • Gauge: It is used for showing a single value within a range of custom values.
  • Metric: This is used for displaying a single key–value pair. It is possible to click the empty text field next to the grand total and enter the metric label directly on the components. All metrics placed above and below one another in the dashboard column would be displayed as a single component.

Various dashboard components are explained below:

  • Table: The report data can be shown in a column form using Table.
  • Visualforce Page: It is used for creating a custom component or showing information not available in other component types.
  • Custom S-component: This contains the content that is run or displayed in a browser like Excel file, ActiveX Control, Java applet, or custom HTML web form.

22. What is Visualforce in

Visualforce can be defined as the user interface for the platform. It is a component-based framework that can include over 100 in-built components. It includes a tag-based markup language, and each Visualforce tag corresponds to a page or a field.

The Visualforce framework works on the standard MVC paradigm. It is possible to have tight integration with the database and also deploy auto-generated controllers for database objects. Developers can use Apex codes to write their own controllers. It is also possible to access AJAX components, or they can create their own components.

Interested in learning Salesforce? Welcome to our Salesforce Training in Sydney!

23. What is a Static Resource in Salesforce?

A static resource lets us upload content that is in the form of .jar and .zip formats, style sheets, JavaScript, and so on. It is recommended to deploy a static resource rather than uploading files to the Documents tab since it is possible to pack a set of files into a directory hierarchy and upload it. These files can easily be referred to in a Visualforce page.

24. Differentiate between Salesforce Object Query Language and Salesforce Object Search Language.

  • Salesforce Object Query Language (SOQL) lets us search only one object. We can query for all types of fields in SOQL. Data Manipulation Language (DML) operations can be performed on the query results.
  • Salesforce Object Search Language (SOSL) lets us search for multiple objects. But, in SOSL, we can query only for texts, emails, and phone numbers. Also, DML operations cannot be performed on the search results.

25. What are the different methods of Batch Apex Class?

Database.Batchable interface contains three methods that must be implemented:

Start method:

global (Database.QueryLocator | Iterable<sObject>) start(Database.BatchableContext bc) {}

Execute method:

global void execute(Database.BatchableContext BC, list<P>){}

Finish method:

global void finish(Database.BatchableContext BC){}

Advanced Interview Questions

26. What are the different types of Collections in Apex?

Collections are the type of variables used to store multiple numbers of records (data). Types of collections in Salesforce are:

  • Lists
  • Maps
  • Sets


27. What are Maps in Apex?

Maps are used to store data in the form of key–value pairs, where each unique key maps to a single value.


Map<String, String> country_city = new Map<String, String>();

28. What is an Apex Transaction?

An Apex transaction represents a set of operations that are executed as a single unit. These operations include DML operations that are responsible for querying records. All the DML operations in a transaction either get completed successfully or get rolled back completely if an error occurs even in saving a single record.

Get certified from the top Salesforce Course in Singapore now!

29. What is the difference between Public Classes and Global Classes in Apex?

A global class is accessible across the Salesforce instance, irrespective of namespaces.

Whereas, public classes are accessible only in the corresponding namespaces.

30. What are Getter and Setter methods?

The get (getter) method is used to pass values from the controller to the VF page.

Whereas, the set (setter) method is used to set the value back to the controller variable.

31. Which fields are automatically indexed in Salesforce?

The following fields are automatically indexed in Salesforce:

  • Custom fields marked as an external ID or a unique field
  • Primary keys (ID, Name, and Owner fields)
  • Audit dates (such as SystemModStamp)
  • Foreign keys (Lookup or Master–Detail relationship fields)

32. A Time-dependent Workflow Action cannot be created for which Workflow?

A time-dependent workflow cannot be created for ‘created, and every time it’s edited.’

Learn complete Salesforce concepts in just 26 hours, by enrolling in our Salesforce Training at Hyderabad!

33. What is Sandbox in Salesforce? What are the types of Sandboxes available?

Sandbox is a similar copy of a Salesforce production for testing, development, and training. The content and size of a sandbox may vary depending on the type of sandbox and the edition of the production organization which is associated with the sandbox. There are four types of sandboxes available:

  • Developer Sandbox
  • Developer Pro Sandbox
  • Partial Data Sandbox
  • Full Sandbox

34. What is Apex Class?

An apex class is a template from which Apex objects can be created. These classes consist of other classes, variables, user-defined methods, exception types, and the static initialization code.

35. What is Salesforce CRM?

It is a cloud-based CRM that doesn’t require IT experts to set up or manage the cloud. One can simply log in and connect to the customers directly. CRM Salesforce system is a well-organized platform that provides information to its customers from different sources. It is a customer-centric system that integrates customers’ information for an organization’s benefit.

Become a master of Salesforce by taking up this online Salesforce Course in Toronto!

36. What is Salesforce Lightning?

Salesforce Lightning is a platform that provides tools to every organization to build next-generation UI and UX in Salesforce. Lightning creates a modern productivity-boosting user experience. It is used to create a fast, beautiful, and unique user experience, just like real lightning, so that sales teams can sell their products faster. Lightning Experience uses an open-source Aura framework. It is a completely re-designed framework to create a modern user interface.

37. Why use Batch Apex instead of Normal Apex?

There are various reasons why Batch Apex is better than Normal Apex.

  • A Normal Apex uses 100 records per cycle to execute SOQL queries. Whereas, a Batch Apex does the same in 200 records per cycle. So, it is very fast when the execution of SOQL queries is considered.
  • A Normal Apex can retrieve 50,000 SOQL queries but, in Batch Apex, 50,000,000 SOQL queries can be retrieved.
  • A Normal Apex has a heap size of 6 MB; whereas, a Batch Apex has a heap size of 12 MB.
  • When executing bulk records, Normal Apex classes are more vulnerable to encountering errors as compared to Batch Apex. The latter is normally error-less.

Are you interested in learning Salesforce from experts? Here is Intellipaat’s Salesforce Course in Bangalore to make you industry-ready!

38. How can you call an Apex Class in Salesforce?

Ways to call an Apex class in Salesforce are as follows:

  • From the Visualforce page
  • From Developer Console
  • From JavaScript links
  • By using a trigger
  • From another class
  • From home page components

39. How will you create a many-to-many relationship?

A many-to-many relationship can be created by using a junction object. A Junction object is a custom object that has two Master–Detail relationships.

40. What are the different types of Reports available in Salesforce?

Based on the structural differences, Salesforce has four different types of reports:

Tabular ReportA tabular report displays data in the form of an Excel-like table that provides a list of items with the grand total.
Joined ReportA joined report is a combined report having multiple blocks that show data from different reports, either of the same or of different report types.
Matrix ReportA matrix report works for 2-dimensions and allows to group records row-wise and column-wise.
Summary ReportIn a summary report, the view is in a table form only, but it has more functionalities like grouping rows (only), viewing subtotals, and creating charts.

41. How does Salesforce track sales?

There are unique procedures followed by every company for tracking their sales. Various companies track the performance of sales by data analysis. The tracking system of Salesforce allows companies to collect basic details for evaluating the performance, such as:

  • Customers who are served daily
  • Number of daily sales
  • Day-to-day report of sales from Sales Managers
  • Sales figures on a weekly, monthly, or quarterly basis depending on organizations’ needs
  • Details of the repeat customers who serve as the key factor for the growth of any organization

42. What is the junction object?

Junction objects help associate two objects. They are custom objects in Salesforce that allow building a master-detail relationship established between two different data objects. It uses a many-to-many relationship to link many junction objects to several records.

Example: If a candidate applies for a job, then the job profile can be connected to many applicants, and the candidate can be linked to several other jobs as well. Here, the junction object will be the ‘job profile.’

43. What is the difference between a role and a profile in Salesforce?


A role helps manage and regulate the Salesforce access that affects reports. Also, it allows controlling user visibility over data within an organization. Users who can access the data and perform operations on it are given a specific role. Candidates with a specific role can share the reports with other team members.


A profile is an essential component of any organization. Moreover, it is compulsory for all users to verify their identity for legal authorization. It helps secure an organization’s data from illegal visitors. It is not permissible to operate Salesforce without having a profile. It also controls the types of records that a user can see.

44. What is a wrapper class in Salesforce?

A wrapper class is a type of container class in Salesforce that contains a group of objects as its segments. Also, the wrapper class is of an abstract data type.

In Salesforce, we use a wrapper class to envelop collected data. A programmer defines the wrapper class that acts as custom objects, along with its properties.

Moreover, the instances of a wrapper class help represent distinct objects in the corresponding table on a Visualforce page.

45. What are the reasons that can cause data loss in Salesforce?

There are various reasons due to which Salesforce data can be lost, and they are:

  • Altering the date and time
  • Converting parameters such as number and currency from other data types
  • Importing data that, at times, goes wrong
  • Moving the text, URL, or email from the text area
  • Altering auto-number and checkbox
  • Modifying the multi-select picklist to other types

20 thoughts on “Top Salesforce Interview Questions and Answers”

  1. Hi,
    From last few months I was looking for some good stuff on Salesforce. But I was getting normal questions but yesterday one of my friends suggests me Intellipaat to gain expertise for Salesforce Interview then I visited here and got a good stuff. These are updated questions which are mostly asked in the interview. Continue with great work.

  2. These are great questions to share with us.
    Any links that you recommend for either of the Salesforce Administrator Exams?

  3. Hi Intellipaat!! all info is very awesome but the thing is about DATA LOADER. I suggest you to put info about it.

  4. I recently attended the interview, these Q’s almost cover 70% of the questions asked in my interview round. Kudos

  5. Hi, I am preparing for salesforce developer interview. Apart from this what all topics I need to concentrate on?plz help me

    1. Hi,Every good Salesforce developer must also be a good admin, so you’ll see a lot of non-coding related questions in every developer interview you’re in. So prepare most frequently asked questions of Salesforce Admin also.

  6. I searched everywhere but got normal questions on Salesforce. These bunch of questions allow me to prepare on the latest interview trends in Salesforce.

  7. Hello ,thanks for your informations about salesforce’s term.Now I will use for preparing my first salesforce exam in adm.

Leave a Reply

Your email address will not be published. Required fields are marked *