Interview Question
Interview Question
Interview Question
LWC:
https://www.crsinfosolutions.com/61-lwc-lightning-web-component-interview-questions/
Scenario based:
● https://www.mygreatlearning.com/blog/salesforce-interview-questions/
● https://svrtechnologies.com/salesforce-scenario-based-interview-questions/
● https://www.sfdc-lightning.com/p/salesforce-scenario-based-interview.html
● https://tekslate.com/15-sample-triggers-different-scenarios
● https://www.sfdcamplified.com/2020/10/triggerscenarios.html
● https://learnfrenzy.com/blog/trigger-scenario-based-questions-in-salesforce
● https://www.sfdc-lightning.com/p/salesforce-interview-questions.html
Topic:
● API
○ Rest
○ SOAP
○ WEB CALLOUT
○ BASIC Auth
○ Auth 2.0
● Security
○ Sharing & visibility
○ Profile
○ Role
○ Group
○ User & licence
○ Permission set group
● Flow
● Data manaement
● Process builder
● Workflow
● Approval process
● Report dashboards
● Object, layout(page , search etc), record type, validation rule
● Aura
● LWC
● VF
● Email alert, template, letterhead
● Governance limit
● Execution flow
● SOQL , SOSL
● Workbench, vs code
● Postman
● Connected App
● Service cloud:
○ Objects
○ Entitlement
○ Milestone
○ Case assignment
○ Email-to-case
○ Support process
● Sales cloud
○ Object
○ Lead assignment
○ Sales process
○ Forecast
○ Quota
● Community
○ Licences
○ Partner object
○ Service object
○ Sites
● Migration
● Instance difference- Prod and sandbox including license
● Test class
● Debug
● Dev console
●
A. Salesforce fundamentals
B. Declarative features
C. Audit & reporting features
D. Data modelling and data management
E. Logic & process automation
F. Software testing
G. Debug & deployment tools
H. Integration features
I. Programmatic features
Salesforce fundamentals
1. Can two users have the same profile? Can two profiles be assigned to the same
user?
2. What are Governor Limits in Salesforce?
a. Different Governor Limits in Salesforce are:
Declarative Features
1. What is WhoId and WhatId in activities?
2. What is the use of writing sharing rules? Can you use sharing rules to restrict data
access?
a. By default, all users in your organization will have organization-wide-
default sharing settings of either Public Read Only or Private.
3. What are the different types of email templates that can be created in
Salesforce?
Software Testing
1. Why do we need to write test classes? How to identify if a class is a test class?
2. What is minimum test coverage required for trigger to deploy?
Integration
1. What is an external ID in Salesforce? Which all field data types can be used as external
IDs?
2. How many callouts to external service can be made in a single Apex transaction?
3. How can you expose an Apex class as a REST WebService in Salesforce?
a. @RestResource annotation to expose it as a REST resource. You can then use
global classes and a WebService callback method.
b. custom Apex REST Web service method always uses system context.
4. What happen when user do not have create permission of object but have access of rest
class and method.
a. Run in system context and no error
b. Invoking a custom Apex REST Web service method always uses system context.
Consequently, the current user’s credentials are not used, and any user who has
access to these methods can use their full power, regardless of permissions,
field-level security, or sharing rules
5.
Programmatic Features
1. What is the trigger?
2. What is the difference between Trigger and Workflow?
3. What is a static resource in Salesforce?
4. What is the difference between a standard controller and a custom controller?
a. Standard controller in Apex, inherits all the standard object properties and
standard button functionality directly. It contains the same functionality and logic
that are used for standard Salesforce pages.
5. How can we implement pagination in Visualforce?
a. To control the number of records displayed on each page, we use pagination. By
default, a list controller returns 20 records on the page. To customize it, we can
use a controller extension to set the pageSize.
6. How can you call a controller method from JavaScript?
a. To call a controller method (Apex function) from JavaScript, you need to use
actionfunction.
7. How to get the UserID of all the currently logged in users using Apex code?
a. UserInfo.getUserId()
8. How many records can a select query return? How many records can a SOSL query
return?
a. SOQL: 50,000.
b. SOSL: 2,000
9. What is an attribute tag? What is the syntax for including them?
10. What are the three types of bindings used in Visualforce? What does each refer to?
a. Data bindings, which refer to the data set in the controller
b. Action bindings, which refer to action methods in the controller
c. Component bindings, which refer to other Visualforce components.
11. What are the different types of collections in Apex? What are maps in Apex?
12. How can you embed a Visualflow in a Visualforce page?
a. Add the <flow:interview> component somewhere between the <apex:page> tags.
b. <apex:page>
<flow:interview name="flowuniquename"/>
</apex:page>
Workflow Question:
1. What is a workflow?
Lightning
● Have you ever created a Lightning component without Apex? What did the component
do? How did you approach it?
LWC
Code:
https://www.mygreatlearning.com/blog/salesforce-interview-questions/
Customization
Q11. What is Track Field History?
Q12. What are the Activities in Salesforce?
Q13. How to rename the tab?
Q14. How to display multiple columns after clicking on the tab?
Q15. What is the difference between ISBLANK() AND ISNULL()?
Q16. What is dependent picklist?
Q17. What is the architecture of the salesforce?
Q18. What is the difference between 15 digit and 18 digit id in Salesforce?
Q19. What is Record Type?
Q20. What is the difference between detail page and edit page?
Q21. What is out of box functionality?
Q22. What are the different types of tabs?
Q23. What is validation rule?
Q24. There are two fields, if the user populate two field values if we combine those values
uniqueness should be maintain, how to achieve this without coding?
Q25. What are Governor Limits?
Q26. For which data type we can unable external id?
Q27. What is list view?
Q28. What is Inline editing?
Q29. How to disable Inline editing?
Q30. What is Enhanced list view?
Q31. What is search layout?
Q32. What is mini page layout and how to enable?
Q33. What is lead process?
Q34. What is sales process?
Q35. What is Support process?
Q36. What is web-to-lead?
Q37. What is Queue?
Q38. What is public group?
Q39. What are the Assignment rules?
Q40. What are Auto-Response Rules?
Q41. What are the Escalation rules?
Relationships
Q42. Is it possible to create the Master – Detail Relationship field for the child object which is
having existing records?
Q43. Is it possible to convert Mater – Detail Relationship to Look Up Relationship?
Q44. Is it possible to delete junction – Object in case of Mater – Detail Relationship?
Q45. What will happen if we undelete the deleted Junction Object?
Q46. What will happen to child records if we delete a parent record in case of Lookup
Relationship?
Q47. What will happen to child records if we delete a parent record in case of Master Detail
Relationship?
Q48. What is Junction Object?
Q49. For a junction object if we delete one of the parent record what will happen to child
records?
Apex Triggers
Q101. What are the trigger events?
Q102. What are the trigger context variables?
Q103. Availability of trigger.old and trigger.new for the different trigger events?
Q104. Read/Write accessibility of trigger.old and trigger.new?
Q105. When to use before triggers and when to use after triggers?
Q106. For the same event if there are multiple triggers on the object, how to control the order of
execution?
Q107. What are the recursive triggers and how to avoid?
Q108. What is MIXED-DML-OPERATION error and how to avoid?
Q109. Following Custom Objects are available in the organization
Q110. What is the order of execution in salesforce?
Q111. There is a validation rule which will fire if amount = 100 and will display the error
message. There is a workflow rule which will fire if amount > 100 and will update amount field to
100. One of user saved the record by giving value as 1000. What will the value of the amount
field?
Q112. There is a before trigger which will fire if amount = 100 and will display the error
message.
Q113. What will the value of the amount field?
Batch Apex
Q114. What is Batch Apex?
Q115. What are the Batch Apex methods?
Q116. How to schedule batch apex?
Q117. How to schedule batch apex in minutes/hours?
Q118. How to maintain the state between the methods of batch class?
Q119. Is it possible to call batch class from one more batch class?
Q120. Is it possible to call future method from a batch class?
Q121.How to cover the code for a batch class?
Q122. How many batch jobs can be active/queued at a time?
Q123. Is it possbile to write batch class and schedulable class in a same class?
Test Classes
Q124. What is the purpose of writing the test class?
Q125. Is it possible to write test code inside of an apex class or apex trigger?
Q126. Syntax of testMethod
Q127. What is the purpose of seeAllData?
Q128. What is the purpose of Test.startTest() and Test.stopTest()?
Q129. What is the purpose of system.runAs()?
Q130. What are the assert statements? What is the purpose?
Q131. What is the purpose of Test.isRunningTest()?
Q132. What is the purpose of @TestVisible?
Q134. What are the test class best approaches?
Visualforce Basics
Q135. Visualforce Basics.
Q136. What is the difference between system mode (system context) and user mode (user
context)?
Q137. What are the types of controllers available for the visualforce page?
Q138. Following classes are there what will be the priority – controller=”MainClass”
extensions=”ClassA,ClassB,ClassC” click to see the question in detail. A method with the name
save exists in all the classes mentioned above. Which will execute first and what is the order?
Q139. What is View State?
Q140. What are the Static Resources?
Q141. What is the defference between Static Resources and Documents?
Q142. How to display error messages on VF (Visualforce) page?
Q143. What is RecordSetVar?
Q144. What is the difference between dataTable and pageBlockTable?
Q145. Maximum number of records displayed on the VF page?
Q146. How to display more records beyond the supported limit on the VF page?
Q147. What is the difference between inputText and inputField?
Q148. What is the difference between outputText and outputField?
Q149. What is pagination and what are the ways to achieve it?
Q150. What is Wrapper Class?
Q151. What are the custom labels? Custom Label is a memory location where we can store the
text. Where to use?
Q152. What are the Custom Settings?
Q153. What is the difference between List Custom Settings and Custom Object?
Q154. What is the difference between rendered, rerender, renderAs and contentType?
Q155. What is button overriding?
Q156. What are the inline visualforce pages?
Q157. What is the use of immediate attribute?
Q158. What are the parameters and how many ways we can pass the parameters?
Q159. What is retURL and saveURL?
Q160. What are the Visualforce Components?
Q161. When to use VF Component?
Q162. What is the order of execution of VF page?
Q173. In the lightning component framework, which resource can be used to fire events?
● Javascript controller actions
● Third party web service code
● Third party JavaScript code
● Visualforce controller actions
Q174. Which data type or collection of data types can SOQL statements populate or evaluate
to?
● A single SObject
● An integer
● A String
● A list of SObjects
● A Boolean
Q175. What is the benefit of the Lightning component framework?
Q176. A developer creates a custom controller and custom Visualforce page with the below
code block:
Q177. What does the user see when accessing the custom page?
Q178. Which user can edit the record after it has been locked for approval?
● Any user with a higher role hierarchy
● User who is assigned as the current approver
● Any user who dropped the record previously
● An Administrator
Q179. Which statement about change set deployment is correct?
● They use an all or none deployment model
● They require a deployment connection
● They can be used to transfer contact records
● They can be used to deploy custom setting data
● They can be used only between related organizations.
Q180. A developer runs the following anonymous code block:
Q181. What is the result?
Q182. What is the proper process for an Apex Unit Test?
Q183. Where can the custom roll-up summary fields be created using standard object
relationships?
● On opportunity using Opportunity Product records.
● On Account using Case records
● On Quote using Order records
● On Campaign using Campaign member records
● On Account using Opportunity records.