If you want to build your career as Salesforce Associate, Admin, Developer, Consultant, Business Analyst, Quality Analyst or in Sales Career, Service Careers, Marketing Careers in Salesforce Ecosystem then this is a Unique Opportunity for Everyone!!!
No matter whether you are a Student, Fresher, Non-IT Professional or IT Professional. Everyone can learn Salesforce!
This bootcamp will help you to prepare for Associate Cert, Admin Cert, PD1 Cert, App Builder Cert and BA Cert.
All you need is: - Laptop - Internet - Daily 1.5 Hours (4 Days a week) - Follow Sanjay Gupta Tech School on LinkedIn - Trust in Sanjay Gupta
You need to forget about? - Money - Confusion - Fraud - False Promises
Timeline: Total Weeks : 20 Total Hours : 80-100 When : Daily 1.5 hour (Monday - Thursday) Start Date : 23 January, 2023 Time: 8.30 - 10 PM IST
Hello, everyone. I am Sanjay Gupta. Welcome back on Sanjay Gupta Tech School. So as you
can see, this is day 98 of Salesforce Learning Bootcamp. And like we have a couple of more
sessions remaining in this bootcamp. So this 100 days, or you can say 100 session bootcamp,
I just started in January and it is about to end. So in today's session, I will be talking
about Salesforce development question and answers. So as you can see, I have total 117
interview questions, which are based on Apex trigger, test class, asynchronous Apex, APIs,
integration. So you might be thinking like what all those questions are. Okay, so let's
discuss a few of these questions. And before proceeding further, I just want to share one
information with you like if you want to have this document with you, so it is already
pre-recorded. So here, if you go to study Salesforce, so under interview preparation, in
Q&A section, you will find this and in my telegram channel also, you will find the PDF of
this deck, which I am sharing in front of you. Okay, so I hope you know from where you can get
this. If you still are not able to find the telegram group, so telegram group and telegram
channel, both the links are available in the description of this video. So just go through the
description of this video, you will find the telegram channel or group. And if you go to the
files section, there you will find this deck. Still, if you are not able to find so just bring me in
the telegram group, I will reshare it. Okay, so now I'm starting with a question. So there will be
a few basic questions that I will be skipping quickly. And the difficult one we'll be discussing
together. And if you have any question that you want to ask, so you can just paste that question
in the chat. Okay, so moving forward. Okay, so this is the first and basic question like if you're
it, it basically belongs to freshers. If you're a fresher, so interviewer may ask like, what is
APEX? So you can just say APEX is an object oriented programming language. And it is similar to
Java, what all syntax we have in Java. So it is also having same syntaxes. And it is like strongly
typed, as it validates references to objects at compile time, you can integrate it with the
database. So all the S objects that you're creating, no matter whether it is custom or standard, so
you can interact with those S objects with the help of APEX, right. And if you want to implement
any automation, or you want to call some web services. So for that purpose, you can also use
APEX. Right? So all these answers, if you, if you explain to the interviewer, so it will give a
good impact. Okay. Now moving on to the next. So data type, it is very basic question. So I'm just
skipping it. Then yeah, this is important question, what are collections available in APEX? So
basically, we have three collections available in APEX. So first one is list. Second one is set.
And third one is map. Right. So basically, if we if we compare all three collections, so set,
sorry, list basically store like values, it can contain duplicate values as well. And if you want
to get any value, so we can apply indexes, right. And we can store any type of value. So if I go to
the next slide, then you will be able to see. So these are the data types which we can use to create
list. So we can create list of primitive type collection as object, user defined type or built in
type. So user defined type or built in type are related to basically APEX classes. So if you have
predefined APEX classes, or user defined APEX classes, so for those also, you will be able to
create some list. And it is ordered collection. So all the elements will be stored one after
another. So that's why you will be able to access the values with the help of index. Right. And you
can you can say some examples as well, if it is a written as well, like one on one interview, and
you have a piece of paper where you can write some example, or like it is online interview, if you
are able to share your screen. So these these are the examples that you can type, like, we can
create a list of string account integer. So accordingly, you can explain, okay. So this was
list now we have set. So set is basically unordered collection, it cannot contain duplicates. So this
is the major difference between list and set. So in case of list, we can store duplicates. But in
case of set, we cannot store duplicates. So it always stores unique values, right? So that you
need to remember and data types, you can see these are same. So the data types which we can use
for list, all data types we can use for set as well. So primitive collection as object user defined
data type or built in types. Okay. Here indexes are not available. So you because it is unordered,
so you cannot use index to access the elements. So these are some examples. So if you are following
all the sessions of the bootcamp, so you are already aware of this, then we have map. So map is
basically a collection of key value pair, it is important. So in many of the interviews, like
interviewed asked, like, can you elaborate about map, the working of map, so key value pair, keys
should be unique value should be duplicated, values can be duplicate. And data types, you can
see primitive collection as object user defined data type built in type. So key and value can be
of any data type. Okay, so these are some examples that you can mention. Right. So next is a
difference between for loop and for each loop. So for loop basically runs for particular rotation,
whereas in for each loop, you can just create a list, list set map, whatever you want. Right. So
these are the examples. So I hope like you got to know like in this document, all the important
interview questions are listed. So it is very much important to go through with this document. And if
you want to find this document, I'm again, iterating this so document link is available, document is
available in the telegram group or telegram channel. And both the links are available in the
description. So from there, you can get this and mark my word this, this document is basically
related to development. So that's why in today's mock interview, I am not like interacting without
any document. So document is important for today's mock interview, because you should know where all
the questions are collected along with the answers. So knowingly, I just used this deck in front of
you so that you can know the source. So next is what is SOQL? It is very important question. So you
need to prepare like, if you want to interact with your SObject, you want to get some data. So for
that, we use SOQL and how to write it. Then SOSL as well. So many interviews can ask like difference
between SOQL and SOSL. So you should know the differences. Then developer console, I think it is
very easy query editor. Yeah, we have in developer console that you should know. Then what is
execute anonymous window. So if you want to run any Apex code, and we want to select particular lines
that we want to execute, or we want to open the logs, and code won't be saved. So these are some key
features if you're working with anonymous window that you should know. Then what is system.debug? I
think it is very easy. So I can skip I hope everybody knows about this. Then what is DML? This is very
much important. SOQL and DML, these two are very important. So if you are experienced as well, so
then also interview can ask like, what is DML and what operations we can do. So insert, update, delete,
undelete, these all operations we can do. And merge operation also we can do with the help of DML. So
when you explain DML, so next question will be like, what will be the governor limits, right? So governor
limits, you just need to remember for a few. So here we have a table with the help of this table, I think you
can learn the governor limits, right? So whenever someone is asking about SOQL, DML, so you can just
say like, these are the governor limits related to those. Okay, so all these governor limits are
collected here. Then next is like, what is database class? And can you compare DML with database
class? So in database class, lots of methods are available. Here you can see the list, insert, update,
absurd, delete, undelete, merge, right? So then these are the features of database class. So basically, if
you have a list, and if it is partially like inserted or updated, so few few records are successful, and
few are failing. So that kind of scenario we can implement with the help of database class methods. So
here you can see the comparison between DML and database class methods are listed, right? So
basically, you need to compare. So in DML, we need to apply, like if we have any error coming up, so we
can apply try and catch blocks in in database methods, like we can have partial success or partial
failure. So that kind of scenario we can implement. So it depends on the business requirement, which
approach you want to implement, either go with DML or go with database class methods. But it is
important interview question. So you should go through that. Then exception handling, what is
exception handling and how we can implement it, right? So if, if you want to control or you want to
handle runtime error, right, so exception is basically runtime error, if you want to handle that. So for
that, you can implement try catch blocks. Okay, then parent child as well, it is also important, how we
can implement it, what is the purpose, what is the relationship name, how we can find that. So
everything is available here. So you just need to prepare it well. So there will be two questions. One
is parent to child SOQL, and one is child to parent SOQL. Okay, so there is one question in the chat,
Vishnu is asking when do you use the future method, the trigger for a callout. So basically, if you
want to run certain process asynchronously, not immediately, so in that case, through trigger, you
can call future methods. So future method will be running in the background whenever resources are
available. So for asynchronous processing, we implement future method and we call it. So for web
services, like where we know like immediate response won't be available. So in that situation, we can
go with the asynchronous thing. So these are two questions parent to child. And this one is child to
parent. So both are basically using underscore underscore R. So it is already explained in the
bootcamp. So through these slides, I think you will be able to prepare its answer as well. Then debug
log is also important. So whenever you are running any code, so through this log, what information you
can see. So we have database changes, we have HTTP callouts, we have APEX errors, we have resources
used by APEX, we have automated workflow processes. So all these things, with the help of logs, we'll
be able to identify. So everything you need to remember, like if this kind of question comes to
you, right. So I hope you understood like why I'm not like picking question and answering why I'm
using this document because there are lots of questions. And in one hour session, I cannot cover
all the sessions. So that's why knowingly I'm using referencing this document so that whoever is
watching this video, they see like there is a document, there's a document created and how you can
get this document. This document is available on study Salesforce.com. This document is available in
the telegram group or telegram channel of Sanjay Gupta Tech School. And those links are available in
the description, you can find it from there. So after discussing a few things about APEX, now next
we have trigger. Trigger is also important if we talk about interview, right. So in trigger, like
basically what is trigger, it is very much important. So here you can see six points are listed. So in
one paragraph, like one by one, step by step, all these points you need to explain. So triggers are
basically initiated whenever a record is inserted, updated, deleted and undeleted. We can perform
both operations like before and after. Then whatever things we cannot do through point and
click. So it is like used for that purpose. Then we can do things using triggers that we can do
through APEX, including execution of SOQL, DML or calling custom methods. Trigger we can create on
both standard and custom objects. And by default, it is active. So this is basics of trigger, right?
Now, there can be multiple questions on trigger like how to write trigger, what are the syntax,
right? Then this is like types of trigger, before trigger, after trigger, then what all events are
available. So you need to remember all these seven events before insert, before update, before delete,
after insert, after update, after delete and after undelete, right? These are also important. Then
trigger context variables, this is also important, like is executing, what does it mean, is insert, is
update. So whenever we implement trigger, so we generally use these context variables, is delete, is
before, is after, is undelete, size, right? Okay, next is trigger.new and trigger.newmap. This is
also important. So new is basically list and new map is a map and both contains newly created
records, right? So if you are like doing insert, update, undelete triggers, so in that case, data
will be available into trigger.new and if you are doing insert, after insert, before update, after
update and after undelete, then this trigger.newmap will be having the data, right? So in this depth,
you need to remember these things. Then we have trigger.old versus trigger.oldmap, right? So
before update, after update, before delete, after delete and same for this old map. So old is again a
list, map is again, sorry old map is a map, right? So you just need to remember the events as well,
like on which event these list and map will be having the data. So Shubhasini is asking, can I
do a DML before callout? I think yes. Prior to callout, like if you are going into the callout
before that, I think you can do synchronously anything. What to do when records are failed
when performing batch epics? So I think when it will show you some success failure results
or maybe like in your final method, you can have something. So Vishnu, without future annotation,
if you want to callout, so for that, I think you need to use integration REST API.
So Mani is asking, can we use nested for loops in, let me just check it. Okay, nested for loop in
epics class and trigger. Yes, we can, but you can avoid that nested loop with the help of map.
So we generally avoid implementing nested loop. So if you can use map, so in a loop, you can avoid
it. Then next question can be like, can we call epics class through trigger? So yes.
So we need to implement a trigger, then we implement trigger handler. So it is part of
best practice. So whenever any trigger specific question comes to you, you need to explain it
as per best practice. Like if you are implementing a trigger, so it would be good like we implement
trigger handler separately. Okay. So Arun Kumar, this omni channel, I think it is related to
service cloud. So if you're talking about service cloud, then I think it is mandatory to learn.
As an admin, like it is optional, but if you're specifically working on a service cloud,
then it is must. Okay, moving next, you need to know that trigger best practices. So I think in
one of the previous session I already covered. So one trigger per object, bulkify, logic less
trigger, avoid using SQL and DML inside the loop, avoid hitting governor limits, avoid nested loops,
try to use map instead, use static Boolean variable to avoid recursive trigger. Right. So these were
some best practices that you can throw. Then what is recursive trigger? So this is also important.
So in case of like update scenario, it happens. So you need to know what is recursive trigger.
You can give an example as well. So here one example is written like when you update a record
from UI, then trigger will be called. Now in trigger as well, you applied update DML. So it
will call same trigger again and it ends up as recursive. Right. So you can create a static
variable with the help of that you can prevent. Then can we apply validation through trigger? Yes,
we can use add error method so we can apply that. Can a trigger call a batch class? So yes,
we can call a batch class in the trigger as we do in the normal Apex code. Then can a trigger make
a call Apex callout method? Yes, we can call a callout method in Apex trigger. But the only
condition is that it has to be an asynchronous callout because the trigger flow cannot wait
on the response received by the callout method. So I think this this answer is for those who are
asking about the callout thing. Then what is trigger bulkification? So for multiple records
like if your trigger is able to perform the operation so that that will be called as a
bulkified trigger. Is there any limit on number of triggers defined on an object? Yes, we can
define as many triggers on an object but it is recommended to have one trigger per object as the
order of execution of different trigger is not guaranteed and any trigger can start execution
its execution first. Then trigger and order of execution so this is like these are lots of steps
so you need to go through and you can make a summary of this. So total 20 points are available
so generally this much lengthy questions are not asked but if you can remember it step by step so
that would be good. Then what is Apex test class? This is also important. Test classes what we can
do with help of test class you need to remember this. Then benefits of Apex unit test. So all
these questions are already having some answers and I already elaborated these answers in detail.
These are not having one-liner answer for each question you can see lots of points are written.
So everything is available here and maybe what I will do after completion of this session like in
the telegram group as well as telegram channel I will be sharing these PDF documents once again
for admin, flow, development and LWC. LWC I will be sharing tomorrow so I will be sharing
these PDFs with you again so that you can prepare for interview. As you can see like Salesforce
announced 3300 new jobs and I think soon other companies will also like hire large number of
resources as freshers or experienced folks so like you should be prepared. You don't know like
whenever there will be an opportunity. So I think this is important about test class
then test class index this is also important we need to use at the rate is test annotation
before the class and before the method as well. Then is test and test method the differences you
need to know then test.startTest and test.stopTest this is also important. So here you can see four
points are available and if you want to control governor limits for each method those you are
implementing in the test class. So for that purpose basically we implement test.startTest
and test.stopTest. This is also an important interview question. Then this is the example
so I think with the help of this example you can back your answer. So real time examples are
very much important if you are able to do and next is at the rate test setup. So for bulk data
creation in a class in a test class we can use at the rate test setup. Then we have test utility or
data factory class. So there is one question like what is the difference what is the difference
between at the rate test setup and data factory class which will you prefer. So basically if you
are creating bulk data in the test class itself. So in that case you can use at the rate test setup
but if you want to reuse that bulk data that you created in one test class into another test
classes as well. So in that case you can implement test utility or data factory classes.
So these are two ways to create bulk data. Generally we prefer this data factory class
because this class methods can be called into any test class. Then a certain test class this
is very much important. So in each test method you should implement this. So that you can
make sure whatever functionality you are testing with the help of test method it is working fine
right. So assert and assert equals these are two methods. So in assert we need to pass two
parameters and assert equals we need to pass three parameters and that third
like message parameter in both the methods are optional.
Okay so next is Apex test class best practices that everybody should know if you are working
as a developer. So these are some points that you need to know right. Then is test see all data
equals to true annotation. So you can see the complete description is available here. So you
can just go through and learn this. So Shahid telegram channel link is available in the description
of this video. If you if you see the description of this video you will find that. Still I am going
to share both again. So I have one telegram group and one telegram channel so you can join both.
So I shared both here. So first is telegram channel and second one is telegram group.
So in telegram channel I am updating everything where only I can post the things and telegram
group is for you so that you can collaborate with each other right. So I will be posting
all these PDFs into telegram channel. So Shrikant is asking difference between is test and test
method. So both are same. If I go back so we have two things at the rate is test and test method.
So the way of writing is different rest are same. So generally we prefer this at the rate is test
annotation because with this way it is very easy to identify like this is a test method.
The next is assert this we already discussed and best practices then see all data equals to true
then using the run as method so it is also important. So generally whenever we implement
any test class so that code runs in the system mode admin but if you want to run any method
as particular user so in your test class you can use run as method right. So all the necessary
things that you need to know about that it is written over here. So you just need to go through
depth then this is the example like how we can implement. So let's say I queried profile then
I am initiating some user and then that user I am passing into system.run as and then I am
writing the code. So this much code you need to write in your test method. So in that case like
you can just test whether your code is working fine or not. Then asynchronous it is also important
why we use it so call outs then if you are having any operation which requires higher
governor limits then code that needs to run at a certain time. So you have schedule
apex classes for that. So these are some asynchronous processes that you can implement.
So benefits user efficiency scalability higher limits. This is a table which is very much
important so it kind of gives you a summary like overview and the different scenarios
right. Then governor limits and execution limits and asynchronous processing that you need to go
through. Challenges what is future. So I think this we already discussed in our bootcamp sessions
also. So what is future it is mentioned over here. So all the necessary things summarized.
So this is a summarized document this pdf if you go through so it will it will make you ready for
the interview anytime. Then when to use future methods right. So everything is written over here
then best practices of future method right then things to remember while using future method. So
all the things I have summarized whatever important things you need to know what is
batch apex then how batch apex works then which method we need to use in batch apex.
So there are three methods basically start execute and finish then what is the use of start method
what is the use of execute method then what is the use of finish method. So all three methods
are explained here in three different slides right. So I hope now you are realizing like how
much important this document is. So everybody those who are watching this session right now I
think you might be like you might be thinking like can we have this document. So after this
session I will be sharing it in the telegram channel so that you can have it. Then best
practices, queueable apex then benefits of queueable apex. So I think with the help of
this document you will be able to like go through with all the key concepts those you need to know
before jumping for an for a developer interview right. Then this is crone expression that you
need to know like how we can create it what is the meaning of each and every element that we
are using here. Then scheduling apex, API integration, how many types of API, about rest API,
about soap API, bulk API, streaming API, then API details right. So when to use rest API, when to
use soap API, when to use chat rest API, user interface API, analytics rest API, then when to
use bulk API, metadata API. So everything is available here in this. So you just need to go
through right. So integration like I think Ankit covered. So all these things are related here.
Then when to well like what do you understand with callout, what do you understand with web
services. So these are two different things that you need to know right. Then WSDL, then how soap
can be accessed, then how to use external WSDL file. So all these things are related to integration,
what is remote site setting, then how soap and rest communicates, then what are the methods in
rest like HTTP GET, POST, DELETE, PUT. Then rest request consists with four components that you
should know. Then what is JSON right. So all these things you need to know. So this was last slide
right. So I hope now you must be like aware like how you can prepare yourself for developer
interview with the help of this document. So let me try if I can share this document with you.
Okay so maybe I will be sharing this link with you after this session right. So that you will
be having this document with you. So again I am iterating this like I will be sharing this
document in the telegram channel right. I will be sharing this document in the telegram channel.
So I am sharing that telegram channel link here once again so that you can join.
So Manishankar basically we can perform batch epics at specified time with the help of schedulable
epics. So Sumit is saying there is no not this type of telegram group. So I think with the help
of these links so I just pasted link one more time if you click on that link you will be able to.
Otherwise like if you go to the description of this stream you will have all the links listed
over there. Just just scroll a little bit you will find all the important links to follow.
Okay so this was about I just wanted to share this document with you live so that you have like
this kind of document exist and its pdf will be available in the telegram channel. So those who
want this just subscribe the telegram channel there you will be having all the details.
And still if you want it without telegram channel so here if you go to studiesalesforce.com
so under interview preparation you have this Q&A videos if you click on this link so here you will
find all the pdf which I explained earlier. Right so these these are the things which are already
there. Okay yes Sumit without certification also you can get a job but certification will add on
some values and just to iterate again like I just launched the Salesforce job readiness program
so these are like limited seats paid program so lots of folks are requesting like your free
bootcamp is awesome we learned a lot but we need a mentor who can guide us on daily basis clear our
doubts have a regular interaction so for them I created these two premium programs one is for
admin app builder QA and BA which will be for two months and another is for
Apex LWC integration and only studio which will run for four months so if you or anyone whom you
know want to start their Salesforce journey so ask them to register so they can just click on register
now and they will land up on this form they just need to fill their name and email address and
my team will reach out to them and then they can join this premium courses and you can see like
very very less amount is mentioned here so I just did some research and as per market standard
these rates are very less and I myself will be dedicating six months for covering up these two
things for the folks. Right so anybody if interested in this so ask them and if if
if they want self-learning if if you are committed to self-learning you can mentor
yourself then on left hand side you can see free session tech reps are also available so I'm not
removing all these free sessions they are still there anytime you can go through but if you are
not a sales if you are not a self-study self-paced learning person then I think these premium boot
camps will be worthy for you. Okay so with this note I think I just shared all the important
insights with you so tomorrow I will be having one more session where I will share Aura and LWC
related question and answers will share the pdf as well right and then I will be having one last
session of this boot camp that will be day 100 and in that day 100 I will be having one announcement
so as you can see I updated the session tracker if you see the session tracker so I will be
announcing one big giveaway in that day 100 so today we are doing day 98 then tomorrow I will
be completing day 99 and then maybe on Saturday or Sunday I will be doing this day 100 right so
just join that and it will be there we won't be talking about study it will be like interaction
session with all the learners with me so I will be taking your feedbacks and will be announcing
this giveaway will be sharing my journey as well why I started this boot camp and what is my vision
or mission for the community right so I received lots of like appreciation love following subscribers
viewers through this boot camp and it like gave me so much name and fame across the globe
and I'm very much happy and blessed like almighty gave me this opportunity so I'm happy like I was
able to share all the knowledge and able to collect all the knowledge with my teaching
and people are liking that and I was able to collect all the resources and which is available
with you in this excel sheet and it will be available forever free of cost right so don't
think like I am doing some paid sessions as well so I will be removing this so they are available
with you forever anytime if anybody wants like self-paced learning they can go through all these
things okay so with this note I take your leave for today I will see you tomorrow with the LWC
related Q&A sessions okay thank you so much guys see you tomorrow bye everyone