0% found this document useful (0 votes)
3 views

Interview Question File -Cloud Intellect

The document contains a comprehensive list of interview questions related to various Salesforce topics, including relationships, sharing security, automation tools, triggers, Apex, asynchronous Apex, test classes, Lightning Web Components (LWC), and integration. Each section includes specific questions that cover fundamental concepts, best practices, and technical details relevant to Salesforce development and administration. This resource serves as a preparation guide for candidates interviewing for Salesforce-related positions.

Uploaded by

Akanksha Nigam
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Interview Question File -Cloud Intellect

The document contains a comprehensive list of interview questions related to various Salesforce topics, including relationships, sharing security, automation tools, triggers, Apex, asynchronous Apex, test classes, Lightning Web Components (LWC), and integration. Each section includes specific questions that cover fundamental concepts, best practices, and technical details relevant to Salesforce development and administration. This resource serves as a preparation guide for candidates interviewing for Salesforce-related positions.

Uploaded by

Akanksha Nigam
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Admin Interview Questions

1 What are different types of relationship in Salesforce?


2 What is Lookup Relationship?
3 What is Master-Detail Relationship?
4 What is many-to-many Relationship?
5 What is Junction Object?
6 What is Rollup Summary?
7 Can we create Rollup Summary on Lookup Relationship?
8 Can we convert Lookup into Master Detail and vise-versa, How?
9 What is Validation Rule?
10 How to implement Validation Rule only on inserting?
11 How to implement Validation Rule only on update?
12 How to convert a 15 digit ID to 18 digit ID?
13 Difference between Master Detail and Lookup Relationship?
14 What are Record Types?
15 What is Page Layout?
16 What is the difference between Lightning Page Layout and Page Layout?
17 How to make field required from Page Layout?
18 What is who id and what is what id?
19 What is external field? What field datatypes can be treated as external
field id?

Sharing security
1 What is Sharing Security in Salesforce?
2 What is Field Level Security?
3 What is Object Level Security?
4 What is OWD?
5 What are Role and Role Hierarchy?
6 Difference between Profile and Role?
7 What are Profiles?
8 What are users in Salesforce?
9 Is profile mandatory for user or not?
10 What is the difference between view all and modify all?
11 From where are we able to give field level and object level security?
12 What are sharing rules in Salesforce?
13 What is the difference between criteria-based & owner-based sharing?
14 What are Public Group and Private Group?
15 How many sharing rules can we create in Salesforce?
16 How many criteria-based sharing rules can we create?
17 How many owner-based sharing rules can we create?
18 What is Permission Set?
19 When we have Profile, then why do we need Permission Set?
20 What is Restriction Rule?
21 What is Duplicate Rule?
22 What is difference between Deactivating and Freezing the User?
23 Can we Perform Authentication setting using Permission Set?

Automation Tool
1 What are different types of automation tool in Salesforce?
2 What is Workflow?
3 What are different criteria in Workflow?
4 How to avoid recursive Workflow?
5 What are time triggers Workflow?
6 On which criteria we cannot apply time Trigger Workflow?
7 What types of action can we perform using Workflow?

Process builder
1 What is difference between Workflow and Process Builder?
2 What action can we performed using Process Builder
3 How to call Apex Class in Process Builder?

Trigger Interview Questions


1 How many types of triggers are there in Salesforce?
2 What are the different Events in Triggers?
3 What is the difference between before & after Triggers?
4 What is the need of Trigger?
5 How will you decide that we need to write a Trigger?
6 What are Trigger Context Variables?
7 What are the Best Practices to Write Trigger?
8 Do we get the record id in before trigger?
9 For which scenarios we write before insert triggers?
10 Can we write before insert trigger to update field on differentobject?
11 When do you get "max trigger depth reached" error?
12 How can you disable triggers temporarily for data loadingpurposes?
13 What is recursive trigger?
14 How can you prevent recursive triggers in Salesforce?
15 Explain the usage of Trigger.new and Trigger.old in a trigger.
16 What is a static variable in a trigger? How is it used?
17 Explain the term "trigger handler" and why it's considered abest
practice in Salesforce development?
18 In a "before update" trigger, can you modify records in Trigger.new
directly? Why or why not?
19 How can you control the order of execution for triggers whenmultiple
triggers are involved on the same object?
20 What is the difference between trigger.new Map &trigger.old Map?
21 In a "before insert" trigger, can you access the record's auto-
generated ID? Why or why not?

Apex Interview Questions


1 What are the Primitive and Non - Primitive Data Types?
2 Difference between Static and non- static method?
3 Difference between with sharing and without sharing on Apex
Class?
4 What does WITH_SECURITYENFORCED does on a SOQL Query?
5 Difference between SOQL and SOSL ?
6 What are the collection variable in Apex and difference between
them?
7 How to handle exceptions in Apex Class?
8 Difference between database methods based DML andStandard
DML statements?
9 What are the different ways to debug an apex code?
10 What do you mean by Type Casting in Apex? Can you convertString
to Integer?
11 How to retrieve data from Map and Set using key? Can we dothe
same with List?
12 Can we edit Apex Class directly in the Production Environment?
13 How to upsert a record using Id or External Id Field as a Upsertkey?
14 Why we use Apex PMD on Salesforce Org?
15 What are the types or error thrown from Apex?

Async Apex Interview Questions


1 What is Asynchronous Apex?
2 Where we can use Asynchronous Apex?
3 What are the benefits of Asynchronous processing?
4 What are the types of Async Apex in Salesforce?
5 Can you make a web service callout from a trigger?
6 What are the advantages of Batch Apex?
7 Why use Batch Apex in Salesforce instead of the normal Apex?
8 What are some best practices when implementing Batch Apex?
9 Can a future method call another non-future method to process
tasks like callouts, and have those methods return data to the
future method for further processing?
10 How many Schedulable Apex jobs can you have at one time? In
other words, what is the maximum number of Apex classes that
can be scheduled concurrently?
11 What are best practices for future methods?
12 Why sObject parameters are not supported in future methods?
13 Can I call Queueable from a Batch?
14 How does Future method helps in avoiding Mixed DML errors?
15 Let’s say, we have run an apex batch to process 2000 records, and
It is running with batch size 200. Now, while doing DML on 298th
record, an error occurred, What will happen in that case?
16 What is Database.QueryLocator & Iterable<sObject>?

Test Class Interview Questions


1 What is the minimum code coverage required for Test Class in
Salesforce?
2 What are the annotation for Test Class and Test Method?
3 Why do we use @testSetup in Test Class?
4 Why do we use System.runAs in a Test Class?
5 What is the Test.Start Test and Test.Stop Test, Why do we use it?
6 Why do we use assert statement in Test Class?
7 What are the different types of Assert Statements?
8 What are the Test Classes best practices?
9 What is the default flag for seeAllData on Test Class.
10 Can we query Profile, Permission Set and Permission Set Group (Setup
Objects) records in Test Class?
11 How to handle the code coverage for the API callouts in Test Class?
12 What are the ways to run Test Class in Salesforce?
13 What is the use of TestDataFactory Class in Salesforce?
LWC Interview Questions
1 What do you mean by cacheable = true annotations ?
2 Can we call the @AuraEnabled function in the apex class using wire?
3 @wire(getBoats,{boatTypeId :
this.boatTypeId})getBoats(error,data){}
Will the above code deploy? (Assuming all variables and apex class
function exists).
4 Why do we use $ when passing property in wire function, what
does it mean?
5 Can we call a wire function inside of a Javascript function?
6 When is the wire method/property called in the lifecycle of a
component?
7 What are lifecycle hooks in LWC ?
8 Is wire method called multiple times during lifecycle of component?
9 Is it mandatory to use data,error only in wired method, can I use some
other variable?
10 What is the difference between event.StopPropogation() and
Event.preventDefault()?
11 If we add required attribute in lightning-input, will I get an error on
leaving the field empty ?
12 Are quick actions supported by LWC components ?
13 What is promise? What are the different stages of promise?
14 What is the difference between Promise and Promise.all?
15 How to send data from Parent to Child in LWC?
16 If we have a parent component A and there are two component B and
C as child components. How can we communicate between B and C ?
17 What does composed = true does in an event?
18 What are the best practices of LWC?
19 When you fire an event, can I capture it in same template/component ?
20 Is bubble : false and composed : true possible in an event ?
21 What are callback functions in LWC?
22 Are callback functions synchronous or asynchronous?
23 What is callback hell?
24 What are decorators in LWC?
25 When do I use @track on a property? Do I still need it considering all
properties are by default reactive now?
26 Can I use multiple decorators on one property?
27 Can I deploy component with empty css file?
28 What is difference between var and let in JS?
29 What is LMS?
30 Do we have application events in LWC?
31 How can we navigate user from LWC component to record detail page?
32 What is render() , is it part of lifecycle hook? Why do we use it ?
33 Can I get current user ID in LWC without Apex?
34 What is the difference between ‘==’ and ‘===’ ?
35 Can I call a function annotated with @AuraEnabled(cacheable=true)
imperatively ?
36 Can we do DML in method annotated with@AuraEnabled(cacheable=
true)?
37 How to refresh cache when calling method imperatively?
38 When do we face error of “Cant assign to Read only property”in LWC?
39 Can we put constants inside the class in LWC?
40 How to query all lightning-input, combobox, radio buttons using one
querySelector or do I have to use multiple ?
41 Do you think Aura Web Components and Lightning Web Components
can coexist together?
42 Explain the Lightning Web Component Bundle?
43 What is the purpose of JavaScript file in Lightning Web Component
bundle?
44 What is Meta configuration file in Lightning Web Component?
45 How can you display components HTML conditionally?
46 How can we iterate list in Lightning Web Component?
47 How we can pass data from HTML to JS controller?
48 What are the public properties in Lightning Web Component?
49 Can we call refreshApex only on data part?
50 Can Aura Component contain Lightning Web Component?
51 Can Lightning Web Component contain Aura Component?
52 Can a Lightning Web Component call another Lightning Web
Component?
53 What is Camel case & Kebab case?
54 What is conditional rendering?
55 What is LDS?
56 How to get recordid in LWC?
57 Where we can use Lightning Web Component?
58 What is the use of Package.xml file?
59 Difference between event.target and event.detail?
60 If we have lightning-record-form then why we use lightning-record-
view-form and lightning-record-edit-form in LDS?
61 renderedCallback() method calls parent-to-child or child-to-parent?
62 Can we have multiple JS file in one Component?
63 Can we have multiple HTML file in one Component?
64 How can you access HTML element?
65 How to import Static Resource?
66 Benefits of LWC over Aura?
67 Difference between Classic & Lightning?
68 What is spread operator?
69 When we pass value from parent to child component through@api ,
then can we change that value?
70 Difference between event.stopPropogation &event.preventDefault?
71 Can we use LWC inside Record Triggered Flow?
72 Without using Apex how we can get the data?
73 Can we create LWC component in Developer Console?
74
75 How to render multiple template or Conditional template rendering in
LWC?
76 Difference between Wire & Imperative?
77 Can we perform DML using wire service / can we perform DML
operations in cacheable=true method?
78 Can we add decorators on method?
79 Can we fetch data in connectedCallback() instead of using@wire in
LWC?
80 How to pass data from parent to child?
81 How to pass data from child to parent?
82 How to pass data to grandparent component in LWC?
83 Can we call screenflow inside LWC ?
84 Can we call LWC into screenflow?
85 How can we communicate between unrelated components in LWC?
Integration Interview Questions
1 What do you mean by Inbound and Outbound Integration in
Salesforce?
2 Why we use Remote Site Setting in Salesforce?
3 What is the use of Named Credentials in Salesforce?
4 Why we use Connected App?
5 What is Salesforce Connect?
6 What is Streaming API? Explain the different mechanism ofSteaming
API?
7 Why we use Bulk API in Salesforce? Give examples?
8 What is OAuth?
9 What is REST API and SOAP API?
10 Mention the field data types which can be used as external IDs?

11 Name the maximum possible number of callouts in a singleapex


transaction to an external service?
12 What are the types of APIs you get on Salesforce?
13 What are HTTP methods in Salesforce?

You might also like