January 22, 2020

Salesforce Interview Questions and Answers

As of Jan 2020, Salesforce is that the world’s leading

CRM

service provider. They have quite 40% market share within the Cloud

CRM

space and dominates the general CRM space with a market share of 19.7%. They were rated the world’s #1 CRM for 2 consecutive years and if the projected growth of Salesforce is anything to travel by, the necessity for professionals with

Salesforce online training

is only going to exponentially increase. This is where Salesforce enters the image, which is what has prompted me to write down a blog on the foremost commonly asked Salesforce interview questions.

Thanks to the knowledge and wisdom shared by a number of our experts from the industry, I even have shortlisted this definitive list of the highest 50 Salesforce interview questions which can help you breeze through your interview. Hopefully this helps you land a top-notch job within the domain of your passion. In case you attended a Salesforce interview recently, we urge you to post any question you've got faced. Our experts will be happy to answer them for you.

Want to Upskill yourself to urge ahead in Career? Check out the Top Trending Technologies.

Top 20 Salesforce Interview Questions and Answers

This list of Salesforce interview questions is split into 9 sections, each for various aspects of Salesforce.

A. Salesforce fundamentals

B. Declarative features

C. Audit & reporting features

D. Data modeling and data management

E. Logic & process automation

F. Software testing

G. Debug & deployment tools

H. Integration features

I. Programmatic features

A. Salesforce Fundamentals – Salesforce Interview Questions

1. Can two users have the same profile? Can two profiles be assigned to an equivalent user?

Profiles determine the extent of access a user can have during a Salesforce org.

As far as the first part of the question is concerned, Yes. One profile can be assigned to any number of users. Take the instance of a Sales or Service team during a company. The entire teams are going to be assigned an equivalent profile. The admin can create one profile: Sales Profile, which can have access to the Leads, Opportunities, Campaigns, Contacts and other objects deemed necessary by the corporate.

In this way, many users are often assigned an equivalent profile. In case the team lead or manager need access to additional records/ objects then it are often done by assigning permission sets just for those users.

Answering the second a part of the question, each user can only be assigned 1 profile.

2. What are Governor Limits in Salesforce?

In Salesforce, it's the Governor Limits which controls what proportion data or what percentage records you'll store within the shared databases. Why? Because Salesforce is predicated on the concept of multi-tenant architecture. In simpler words, Salesforce uses one database to store the info of multiple clients/ customers. The below image will assist you relate to the present concept.

To make sure no single client monopolizes the shared resources, Salesforce training introduced the concept of Governor Limits which is strictly enforced by the Apex run-time engine.

Governor Limits are a Salesforce developer’s biggest challenge. That is because if the Apex code ever exceeds the limit, the expected governor issues a run-time exception that can't be handled. Hence as a Salesforce developer, you've got to be very careful while developing your application.

Different Governor Limits in Salesforce are:

• Per-Transaction Apex Limits

• Force.com Platform Apex Limits

• Static Apex Limits

• Size-Specific Apex Limits

• Miscellaneous Apex Limits

• Email Limits

• Push Notification Limits

3. What is a sandbox org? What are the various sorts of sandboxes in Salesforce?

A sandbox may be a copy of the assembly environment/ org, used for testing and development purposes. It’s useful because it allows development on Apex programming without disturbing the assembly environment.

When can you use it?

You can use it once you want to check a newly developed Force.com application or Visualforce page. You can develop and test it within the Sandbox org rather than doing it directly in production.

This way, you'll develop the appliance with none hassle then migrate the metadata and data (if applicable) to the assembly environment. Doing this during a non-production environment allows developers to freely test and experiment applications end to finish.

Types of Sandboxes are:

• Developer

• Developer Pro

• Partial Copy

• Full

4. are you able to edit an apex trigger/ apex class in production environment? Can you edit a Visualforce page in production environment?

No, it's impossible to edit apex classes and triggers directly in production environment.

It must be done first in Developer edition or testing org or in Sandbox org. Then, to deploy it in production, a user with Author Apex permission must deploy the triggers and classes using deployment tools.

However, Visualforce pages are often created and edited in both sandbox and in production.

Only if the page has got to do something unique (different values), it might need to be developed via Sandbox.

5. What are the various data types that a typical field record name can have?

A standard field record name can have data sort of either auto number or text field with a limit of 80 chars.

For generating auto numbers, the format must be specified while defining the sector and then for each record that's added, the amount will get auto generated. For example:-

6. Why are Visualforce pages served from a special domain?

Visualforce pages are served from a special domain to enhance security standards and block cross site scripting. Take a look at the highlighted portion in the below Visualforce page:-

B. Declarative Features

7. What is WhoId and WhatId in activities?

WhoID refers to people. Typically: contacts or leads. Example: LeadID, ContactID

WhatID refers to objects. Example: AccountID, OpportunityID

8. what's the utilization of writing sharing rules? Can you use sharing rules to limit data access?

Sharing rules are written to offer edit access (public read and write) or public read only access to certain individuals in Salesforce org. A classic example is when:- only your managers or superiors got to tend extra credentials to your records in objects as compared to your peers.

By default, all users in your organization will have organization-wide-default sharing settings of either Public Read Only or Private.

To give access to more records, which users don't own, we write sharing rules.

Example: Sharing rules are wont to extend sharing access to users publicly groups or roles. Hence, sharing rules aren't as strict as organization-wide default settings. They allow greater access for those users.

As far because the second a part of the question cares , the answer is no. We cannot use sharing rules to limit data access. It is only used for allowing greater access to records.

9. What are the various sorts of email templates which will be created in Salesforce?

The different types of Email templates are listed in the below table:-

C. Audit & Reporting Features

10. What is a bucket field in reports?

A bucket field allows you to group related records together by ranges and segments, without the utilization of complex formulas and custom fields. Bucketing can thus be wont to group, filter, or arrange report data. When you create a bucket field, you would like to define multiple categories (buckets) that are wont to group report values.

The advantage is that earlier, we had to make custom fields to group or segment certain data.

11. What are dynamic dashboards? Can dynamic dashboards be scheduled?

Before we understand dynamic dashboards, allow us to first understand static dashboards. Static dashboards are the essential dashboard types which will be visible to any user who has made a return of his data. An example of this is often what a Sales manager/ Marketing manager would be ready to see on his Salesforce org. In other words, a traditional dashboard shows data only from one user’s perspective. Now comes the concept of dynamic dashboards.

Dynamic dashboards are wont to display information which is ready-made to a selected user. Let us consider the same example as above. In case the Sales manager wants to look at the report generated specific to just one of his team members, then he can use dynamic dashboards.

You can use dynamic dashboards once you want to point out user-specific data of a specific user, like their personal quotas and sales, or number of case closures, or leads converted etc.

You can also use a normal/ static dashboard once you want to point out regional or organization-wide data to a group of users, like a specific region’s sales number, or a particular support team’s performance on case closures.

As far as the second part of the question is concerned, no we cannot schedule a dynamic dashboard. That is because whenever we open the dashboard, it'll show the info generated in real-time.

12. What are the various sorts of reports available in Salesforce? Can we mass delete reports in Salesforce?

Salesforce Report Types

Another important point to notice here is that, only Summary reports and Matrix reports are often fed as data source for dashboards. Tabular and Joined reports cannot be used as data source for dashboards.

Can we mass delete reports in Salesforce? Of Course we will mass delete reports in Salesforce. The option to mass delete reports are often found under Data Management in Setup.

D. Data Modelling & Data Management – Salesforce online training in Hyderabad

13. What are the various sorts of object relations in salesforce? How are you able to create them?

No list of Salesforce interview questions is complete without involving relationships between objects in Salesforce. Relationships in Salesforce are often wont to establish links between two or more objects.

The different sorts of object relationships in Salesforce are:

1. Master-Detail Relationship (1:n):-

it's a parent-child relationship during which the master object controls the behavior of the dependent child object. it's a 1:n relationship, during which there are often just one parent, but many children.The main concept you would like to be know is that, being the controlling object, the master field can't be empty. If a record/ field in master object is deleted, the corresponding fields within the dependent object also are deleted. this is often called a cascade delete. Dependent fields will inherit the owner, sharing and security settings from its master.You can define master-detail relationships between two custom objects, or between a custom object and standard object as long because the standard object is that the master within the relationship.

2. Lookup Relationship (1:n):-

Lookup relationships are used once you want to make a link between two objects, but without the dependency on the parent object. almost like Master-Detail relationship, you'll consider this as a sort of parent-child relationship where there's just one parent, but many children i.e. 1:n relationship.The difference here is that despite being controlling field, deleting a record won't end in automatic deletion of the lookup field within the child object. Thus the records within the child object won't be affected and there's no cascade delete here. Neither will the kid fields inherit the owner, sharing or security settings of its parent.

3. Junction Relationship (Many-To-Many):-

This kind of a relationship can exist when there's a requirement to make two master-detail relationships. Two master-detail relationships are often created by linking 3 custom objects. Here, two objects are going to be master objects and therefore the third object are going to be hooked in to both the objects. In simpler words, it'll be a toddler object for both the master objects.

14. What happens to detail record when a master record is deleted? What happens to child record when a parent record is deleted?

In a Master-Detail relationship, when a master record is deleted, the detail record is deleted automatically (Cascade delete).

In a Lookup relationship, albeit the parent record is deleted, the kid record won't be deleted.

15. are you able to have a roll up summary field just in case of Master-Detail relationship?

Yes. you'll have a roll-up summary just in case of a master-detail relationship. But not just in case of a lookup relationship.

A roll-up summary field is employed to display a worth during a master record supported the values of a group of fields during a detail record. The detail record must be associated with the master through a master-detail relationship.

There are 4 calculations that you simply can do using roll-up summary field. you'll count the amount of detail records associated with a master record. Or, you'll calculate the sum, minimum value, or maximum value of a field within the detail records.

16. Explain the term “Data Skew” in Salesforce.

“Data skew” may be a condition which you'll encounter when working for an enormous client where there are over 10,000 records. When one single user owns that a lot of records we call that condition ‘ownership data skew’.

When such users perform updates, performance issues are going to be encountered due to “data skew”. This happens when one user/ members of one role own most of the records for a specific object.

17. Explain skinny table. What are the considerations for Skinny Table?

In Salesforce, skinny tables are wont to access frequently used fields and to avoid joins. This largely improves performance. Skinny tables are highly effective, such a lot in order that even when the source tables are modified, skinny tables are going to be in sync with source tables.

Considerations for skinny tables:

• Skinny tables can contain a maximum of 100 columns.

• Skinny tables cannot contain fields from other objects.

• For full sandboxes: Skinny tables are copied to your Full sandbox organizations, as of the Summer ’15 release.

18. Which fields are automatically Indexed in Salesforce?

Only the subsequent fields are automatically indexed in Salesforce:

• Primary keys (Id, Name and Owner fields).

• Foreign keys (lookup or master-detail relationship fields).

• Audit dates (such as SystemModStamp).

• Custom fields marked as an External ID or a singular field.

19. the way to handle comma within a field while uploading using Data Loader?

In a Data Loader .CSV, if there's a comma in field content, you'll need to enclose the contents within double quotation marks: ” “.

E. Logic & Process Automation – Salesforce online training India

20. that criteria in workflow “time dependent workflow action” can't be created?

Time dependent workflow action can't be create for: “created, and each time it’s edited”.