Salesforce Interview Question
Salesforce Interview Question
Cost savings: You are only charged for the resources you utilize, without any upfront investment
needed.
Scalability: Easily scale resources based on your demand.
Flexibility: You can conveniently access resources and applications from anywhere as long as
you have an internet connection.
Security: Cloud providers typically implement robust security measures to safeguard data.
Salesforce Ecosystem
Question 11. Where can you submit, discuss, and vote on ideas related to Salesforce products
and services?
Answer- Salesforce IdeaExchange is a website where people who use Salesforce can share their
ideas about how to make it better.
Question 12. Tool that allows developers to write, debug, and test code directly within the
Salesforce platform is known as?
Answer- Developer Console.
Question 13. How can user represent a data model to stakeholders in Salesforce?
Answer- Using Schema Builder.
Question 14. Which Salesforce functionality enables users to search for records across all
objects?
Answer- Global Search.
Question 15. Where can a user navigate to refer latest documentation about a Salesforce
functionality?
Answer- Salesforce help
Want to Learn Salesforce Flows? Learn with our Salesforce Flow Course
Data Modeling
Standard objects are available by default in your Salesforce org such as Accounts, Contacts and
Lead. Custom objects are created by users to meet the business requirements.
Different record types in Salesforce allows us to display some specific fields to users based on
their profile.
Master Detail Relationships (One to Many): It is a strongly coupled relationship between two
objects where if the parent record gets deleted associated child record also get deleted.
Question 22. Can Standard object be on the detail side of the Master-detail relationship?
Answer- No, Standard object cannot be on the detail side if we have custom object as Master of
the Master-detail relationship.
Example of some common standard fields are Created By, Owner, Last Modified By.
Question 24. How many custom fields can be created per object in Salesforce?
Answer- Depending on the Salesforce org edition, the limit has been defined for maximum
number of custom fields to be created per object.
Personal Edition – 5, Contact Manager – 25,
Group Edition – 100, Essentials Editions – 100,
Professional Edition – 100, Enterprise Edition – 500,
Unlimited and Performance Edition – 800,
Developer Edition – 500
Question 25. At max how many field relationships can be created on an object?
Answer- Maximum 40 relationships can be created on an object.
Question 26. Where should a user navigate to know about the deleted fields in Salesforce?
Question 27. How many lookup relationship fields can be created in an Object?
Answer- Either you can create 38 look-up and 2 Master-Detail relation fields, or you can create
all 40 as look-up fields as per your requirement.
You can choose from a variety of functions, including SUM, COUNT, MIN, MAX, and AVG.
Question 31. How many Roll-up summary fields can be created per object?
Answer- 40 per object is the maximum limit.
Question 32. Can we convert a Master – Detail relation to Lookup?
Answer-Yes, we can do that, but we need to DELETE the rollup summary field on the Master
record if it is created before the master-detail to lookup conversion.
User can check the profiles available in your Salesforce instance in following way.
These layouts allow you to include various elements such as fields, sections, links, and custom
buttons, along with a few other features, to enhance the user experience.
These fields possess read only properties means we cannot edit and enter any value in this field.
When executing a SOSL query, a list of sObjects is returned, and this search can be conducted
across various objects simultaneously.
You used SOQL only when you are sure in which object the data is supposed to be queried.
Question 39. What is Data Import Wizard?
Answer- With the Data Import Wizard, you can easily bring in data for various standard
Salesforce objects such as accounts, contacts, leads, solutions, campaign members, and person
accounts.
Additionally, you can import data for custom objects. It allows you to import a maximum
of 50,000 records in one go. We cannot import Opportunity object records into Salesforce using
Data Import Wizard.
It enables users to inspect specific records and their associated fields, leading to faster and more
efficient issue identification and resolution.
Question 42. Is creating the Roll-up Summary field possible in look-up relationships?
Answer- No, it is only available in master-detail relationship
These rules make sure that the information is correct before it can be saved.
Question 46. What is Cascade delete in Salesforce?
Answer- When a parent record is deleted its associated child record also gets deleted. this
phenomenon in Salesforce is known as Cascade deletion.
These types of metadata store records in a memory cache, resulting in faster data retrieval when
executing a query.
Question 50. Which Salesforce field type perform calculations based on other fields’ values?
Answer- Formula field.
Question 51. What type of relationship exists between an Account and a Contact Object?
Answer- Lookup relationship, despite not being in a Master-Detail Relationship, these standard
objects exhibit similar behavior due to the ability to control record access for Contacts through
their parent records.
Question 53. Can the Data Import Wizard can be used to delete records in Salesforce?
Answer- No, The Data Import Wizard allows you to import, update, or upsert records, but it
does not support record deletion.
Question 54. Which field type enables users to input alphanumeric combinations and securely
store them in encrypted form?
Answer- Text (Encrypted)
Question 55. Which type of custom field would allow users to choose multiple options from a
list?
Answer- Multi-select picklist.
Process Automation
Flows can be used to collect and update data, automate approvals, create records, and perform
other tasks.
You can still modify previously created Process Builders in your Salesforce org.
Question 62. How many maximum Flow versions can be there for each Flow?
Answer- 50, to create more flow versions, you need to delete the older versions.
Question 65. What is the latest API version used in Salesforce Flows?
Answer- 57
Question 66. What is the difference between a flow and a flow template?
Answer- A flow is a customized business solution created by a user. While a flow template is a
pre-built, reusable flow provided by Salesforce, which can be customized to fit specific
requirements.
Question 70. What are different types of classic email templates in Salesforce?
Answer- Text, HTML with LetterHead, Custom and VisualForce.
Question 71. How to configure to receive error emails while debugging a Salesforce Flow?
Answer- Setup >> Process Automation >> Process Automation settings >> Send Process or
Flow Error Email to.
Security
Question 74. How can you keep a track on login history of a user in your Salesforce org?
Answer- Using Login History feature from the setup menu we can achieve this. The login
history of your organization for the past 6 months can be accessed and downloaded by user.
Question 75. How many login history record we can track using login history in Setup?
Answer- 20000 records of last six months can be tracked.
Question 83. Name some deployment tools that can be used for deployment in Salesforce?
Answer- Gearset, Ant migration tool, Copado and Flosum.
Question 84. What is difference between freeze user and deactivate user in Salesforce?
Answer- When a user is frozen in Salesforce, their access to the Salesforce organization is
restricted while their Salesforce license is still assigned to them.
On the other hand, apart from restricting the access to the org, deactivating a user in Salesforce
makes their license available for assigning to another user.
Question 88. What Salesforce feature would restrict users from logging in outside of specific
hours?
Answer- Login hours Salesforce feature prevents login outside the specific hours.
Question 90. Is it possible to restrict permission for users using permission set?
Answer- No, permission sets are always used to extend the permissions and not to restrict them.
In simpler terms, this trigger is responsible for modifying the values based on the data inserted
into another record.
This is accomplished using a global class known as Batch Apex, which implements the
Database.Batchable interface. Maximum batch size can be of 2,000 records.
The start method is the first one that runs at the beginning of the job. Its purpose is to gather the
records or objects that need to be processed by the execute method.
The execute method gets executed for every set of records that are passed to it. Its main function
is to handle all necessary processing for each group of data.
The finish method is used for carrying out post-processing tasks, such as sending
confirmation emails or running additional operations after all batches have been processed. This
method is called once all batches have been completed
It can provide information about any exceptions or failures that take place during the execution.
Question 101. What is the minimum test coverage required for deploying a class?
Answer- 75%
The report can also be customized further by applying filters, grouping the data, or visualizing it
in a graphical chart.
Question 106. Which type of report can be used for dashboard components?
Answer- Summary reports and Matrix reports.
Question 108. How many bucket fields can be added for each report type in Salesforce?
Answer- Upto 5 bucket fields.
Question 112. How many fields can be added to each custom report type?
Answer- 1,000 fields can be added.
--------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------
What is difference between workflow and trigger in Salesforce?
Workflow is automated process that fired an action based on Evaluation criteria and rule criteria.
We can access a workflow across the object. Trigger is a piece of code that executes before or
after a record is inserted or updated. We can use 20 DML operations in one trigger.
What is trigger ?
Trigger is piece of code that is executes before and after a record is Inserted/Updated/Deleted
from the force.com database.
What is Database.AllowCallouts?
To use a callout in batch Apex, you must specify Database.AllowsCallouts in the class
definition. For example: global class SearchAndReplace implements
Database.Batchable<sObject>, Database.AllowsCallouts{ //Business logic you want
by implementing Batchable interface methods } Callouts include HTTP requests as well as
methods defined with the webService keyword.
What is workflow ?
It is automated process that fired an action based on evalution criteria and rule cretria and Path :
Setup – Create – Workflow & Approval process
4. What are governor limits in Salesforce, and how do they affect Triggers?
Governor limits in Salesforce are runtime limits enforced by the Apex runtime engine
to ensure that code does not monopolize shared resources. If a trigger exceeds these
limits, it is terminated and rolled back. Therefore, understanding and coding with
these limits in mind is crucial to developing in the Salesforce environment.
The purpose of a Trigger handler class is to separate the logic of your Trigger from
the Trigger itself. This separation leads to code that is easier to maintain and test. The
handler class contains the methods that carry out the operations needed when the
Trigger fires.
To write a test class for a Trigger, you’ll need to write test methods that create the
data needed for the Trigger to fire, perform the DML operation to fire the Trigger, and
then use System.assert methods to verify that the Trigger had the expected effects.
Salesforce requires at least 75% code coverage to deploy Triggers to production.