Salesforce Interview Questions 1
Salesforce Interview Questions 1
Salesforce Interview Questions 1
2. Which two settings must be defined in order to update a record of a junction object?
• Read/Write access on the secondary relationship
• Read/Write access on the primary relationship
4. Which salesforce org has a complete duplicate copy of the production org including data
and configuration?
Full Sandbox
5. A Salesforce Administrator is creating a record triggered flow. When certain criteria are
met, the flow must call Apex method to execute a complex validation involving several
types of Objects. Which annotation should a developer use to ensure the method can be
used within the flow?
@InvocableMethod
7. Which three steps allow a custom Scalable Vector Graphic (SVG) to be included in a
Lightning web component?
• Import the static resource and provide JavaScript property for it.
• Reference the property in the HTML template.
• Upload the SVG as static resources.
8. As part of a data cleanup strategy, the company wants to proactively delete associated
Opportunity records when a related Account is deleted. Which automation tool should
be used to meet this business requirement?
1
Record-triggered flow.
9. A developer wants to import 500 Opportunity records into a sandbox. Why should the
developer choose to use Data Loader instead of Data Import Wizard?
Data Import Wizard does not support Opportunities.
12. Which org type do you use for building and testing Salesforce solutions?
Scratch Orgs.
13. How many fields will be created by default when we create an Object in Salesforce?
Four.
16. Which Cloud of Salesforce you will refer for Customer appreciation, retention, and reward
system?
Loyalty Management.
2
b. Execute method (used to perform operations on the collected data)
c. Finish method (used for sending emails)
19. Can we call a batch class from a batch class? If yes, how?
Yes, we can call another batch class from the Finish method.
33. What is asynchronous Apex? How many types of asynchronous Apex are there in
Salesforce?
Asynchronous Apex is used to run processes in a separate thread when the resources are
available for execution. There are four types of asynchronous operations available in
Salesforce.
• Future Methods
• Batch Apex
• Queueable
• Scheduled Apex
• Master-Detail
• Lookup Relationship
• Self- Relationship
• External lookup relationship
• Many to Many relationship (Junction Object)
• Hierarchical relationship
45. What are the methods in batch Apex? Can we write a batch Apex by excluding any one of
the methods?
There are three methods in batch Apex. They are:
• Start
• Execute
• Finish
We cannot write a batch Apex without any of these methods. Since it’s an interface, we
have to implement all the methods provided by the batch.
47. What is the use of a change set, and what is the max size of a change set?
Change set is a Salesforce build in feature to move the changes from one sandbox to
another sandbox, which are interconnected. At most, we can have 10,000 components in
a change set.
6
49. Can we revoke the access of a user using a permission set?
No, we can extend the levels of permissions of a user using permission set, but cannot
revoke the permissions.
50. What is the difference between a custom controller and standard controller?
The standard controller is generated by Salesforce for all the objects. Whereas, a custom
controller is defined by us with our custom logic using Apex.
51. What is the benefit of using custom metadata and custom labels?
By using custom metadata/ Custom Label, we can get the data stored in Custom
metadata/ custom labels without writing any SOQL queries.
54. ALL ROWS query will give non-deleted records or deleted records or both?
Both. (*Note: That is why the name “ALL ROWS”.)
7
Example:
get the records from the database where the country of customer = India
Here, Query has some conditions. We will not do any random table searches. Everything
has to be clearly mentioned.
Example:
If the user would like to write a code so that he/she can see records where the word
“Andrew” is used in the database. (Has no connection to any criteria like the above)
Count will display the result of all records while Count Distinct will display only distinct
count. For example, a table has 5 records namely a,a,b,b,c then Count results in 5 while
Count distinct results in 3.
58. What are Wild Characters / LIKE keywords and when are they used?
When we want to make a query on something which is not an exact value, like Name:
“Andrew”, Tech : “Salesforce” etc., (these are exact values), and we only know the approx.
format of it, in this case we can use the Wild characters.
Example:
We do not know that it’s “Salesforce” but we know it starts with “Sal” or ends with “ce”.
8
MIN, MAX, COUNT, SUM, and AVG
Examples:
60. Which function do we use to load data from .CSV and do testing?
Test.loadData()
62. Out of all Approval Processes which one will you select and why?
Jump Start wizard:
• This type is used to create a very simple Approval Process
• This has very few steps
• We get fewer options to configure
• Not regularly used in real-time scenarios
9
65. What are Time Dependent actions in Salesforce?
There are some cases where we do not want to execute a particular action instantly,
rather, we want the particular action to happen after viz. 1 hr, 10 hrs, 10 days, etc., In
such a scenario we can achieve the solution by time-dependent actions in salesforce.
68. What are the types of email templates we can create in Salesforce?
• Text
• HTML (using Letterhead)
• Custom (without using Letterhead)
• Visualforce
Public Group:
• This is a group of people we can add from any department (it’s not necessary that
members of Public Group are from same department)
• Helps to share records with large number of users in one click
• Useful in Manual sharing / Sharing rule.
• Once created, we can use Public Group for any object.
70. What is Sharing Rule and how many types of Sharing rules we have in Salesforce?
To share the records, based on some conditions, we use Sharing Rules (dynamic sharing).
This is also called as Selective Sharing.
10
Types of Sharing Rules:
11
80. What are the different versions in Salesforce?
Salesforce offer 5 different versions: Developer, Essentials, Professional, Enterprise,
Unlimited.
Students can also choose to enroll in dedicated programs for Salesforce Admin, Salesforce
Developer, and Salesforce Lightning Web Components programs. Please connect with our
Admissions team at salesforce@cloudely.com to know the individual program details
including fee and training start date.
Cloudely Inc.
Salesforce Training and Certification Partner
12