JOBSEEKER?

Salesforce Interview Questions

Practice for Salesforce interviews by solving TestDome questions. Our interview questions are used by more than 7,000 companies and 450,000 individual test takers.

Jobseekers: Certify Your Knowledge

Take a Certification Test

Companies: Use Our Tests for Screening

Buy a Pack Of Candidates

Need to practice your Salesforce skills for an upcoming job interview? Try solving these Salesforce interview questions that test knowledge of Apex, Visualforce, object relationships, and other skills. We’ll provide feedback on your answers, and you can use a hint if you get stuck.

These Salesforce interview questions are examples of real tasks used by employers to screen job candidates such as Salesforce developers, and others that require working with and customizing the Salesforce platform.

1. User Wish

Database schema Object relationship
   
Easy  

A website dedicated to wish lists uses following Salesforce objects:

Management wants to add a field to the User object that will contain the number of Wish objects the User has. What is the behavior of those objects and what needs to be done to add the new field?

(Select all acceptable answers.)

Deleting a Wish will delete all User objects that are associated with it.
Deleting a User will delete all Wish objects that are associated with it.
The User is the master record in this Master-Detail relationship.
Adding a rollup field that counts the number of Wish objects in relation to the User object will fulfill the goal of having Wish count in the User object.
Adding a query field that counts the number of Wish objects to the User object will accomplish the goal of having Wish count in the User object. 
In a Master-Detail relationship, the Master contains the field with the Detail identification.
   


2. Account Name

Apex SOSL
   
Easy 

Fill the blanks in the following Apex code snippet, so that a SOSL query selects the Name field in all Account objects where any field contains the word "John":

 results = [FIND '' IN ALL FIELDS RETURNING ];
   


3. Date Output

Date functions Visualforce
   
Easy  

Fill in the blanks in the following Visualforce code snippet, so that the outputText element outputs the current date in the following format: day/month/year. The day and month should always have two digits, and the year should have four digits. The param element should be an expression that always returns the current date.

For example, if the date is 6th of March, 2020, the outputText should be: "06/03/2020".

<apex:outputText value="">
  <apex:param value=""/>
</apex:outputText>
   


If you feel ready, take one of our timed public Salesforce Interview Questions tests:
Salesforce

Salesforce Online Test (Easy)

Not exactly what you are looking for? Go to our For Jobseekers section.
Dashboard Start Trial Sign In Home Tour Tests Questions Pricing For Jobseekers