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

100 Salesforce Quick Questions For Revision

Uploaded by

chinta bhasker
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

100 Salesforce Quick Questions For Revision

Uploaded by

chinta bhasker
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

100 Salesforce Quick Questions for Revision

Q1. What is meant by a mini page in salesforce?

A mini page layout contains a subset of the items of the existing page layout.
Moreover, the layouts inherit record type and profile associations, related lists, fields,
and field access settings from their associated page layout.

Q2. What is the definition of button overriding?

Several buttons can be overridden such as Edit, New, or View in Salesforce Classic,
Lightning Experience, and mobile independently. Moreover, you might override few
standard buttons with visualforce pages. Also, if you can override the standard
button with visualforce page, VF page should use standard controller to an object
which is related to standard button.

Q3. What do you mean by Apex transaction in the terms of Admin Salesforce?

It basically represents a set of operations that are executed as one unit. These
operations include the DML which is responsible to query records. All the DML
operations in a transaction either complete successfully, In case an error occurs
even in saving a single record, the entire transaction will be reverted back.

Q4. Explain about objects from the Salesforce point of view.

In layman terms, Salesforce objects are database tables that permit the user for
storing the data specific to a company. There are a total of two major object types,
Standard and Custom.

Q5. How to display multiple columns after clicking on the tab?

Firstly, click on the Setup > Create > Objects >

Then select the corresponding object link > Under Search Layouts section > Click
Edit

This will lead to Object Tab > Move the needed fields from Available Fields to
Selected Fields. > Click on Save >

This will do the job for you.


Q6. What will happen to child records if we delete a parent record in case of a
Lookup Relationship?

If we delete the parent object record all the child object records relationship’s field
value will be get deleted. (Entire record won’t be get deleted)

Q7. Can you edit an apex trigger/ apex class in a production environment? Can you
edit a Visualforce page in a production environment?

No, there is no scope of editing an apex class or trigger while in a production mode.
However, Visualforce pages can be created and edited in both sandbox and in
production.

Q8. List all the types of templates that are used to send emails in Salesforce.

The different types of email templates used in the system are,

HTML with letterhead


Visualforce
Custom HTML
Q9. Mention all the different types of reports present in Salesforce? Is it possible to
delete mass reports in the system?

Summary Reports
Joined Reports
Matrix Reports
Obviously, we can mass delete reports in Salesforce. You can find the option for the
same under Data Management in Setup.

Q10. Explain the basic idea of a skinny table.

Skinny tables are used to access frequently used fields and to avoid joins in
Salesforce. Also, it will largely improve the performance. Skinny tables are highly
effective, so much so that even when the source tables are modified, they will be in
sync with source tables.

Q11. What is the advantage of using custom settings?

The advantage of using custom settings is that it allows developers to create a


custom set of access rules for various users and profiles.

Q12. What is the definition of custom labels in Salesforce?


Custom labels are custom text values that can be accessed from Apex classes or
Visualforce pages. Moreover, you can translate these values into any language
compatible with Salesforce.

Q13. Why is the need to write test classes in Salesforce?

Software developers from around the world will unanimously agree that writing code
in test classes makes debugging more efficient. Why? That is because test classes
help in creating robust and error-free code be it Apex or any other programming
language. Since Unit tests are powerful in their own right, Salesforce requires you to
write test classes in Apex code.

Q14. What are some of the actions in workflow?

Field update – Users have the ability to update a field of the same object or the fields
of the parent objects which are at master side in master-detail relationship.
Email alert – Users are allowed to send emails if the criteria meet
New task – There is the option to create a new task
Outbound Message – It helps in making a callout
Q15. What is the feature of list view in salesforce?

List View allows you to see a filtered list of records, such as contacts, accounts, or
custom objects. Moreover, they are stored within a Custom Object component. The
component can represent a custom object or a standard object, like accounts.

Q16. Is there any chance we could disable inline editing?

To enable or disable Inline editing follow the below navigation – Setup–>


Customise–> User Interface–> Enable Inline Editing

Q17. How to identify if a class is a test class?

Test classes can be determined easily because every test class will be annotated
with the @isTest keyword. In the same way, if any method has the keyword
testMethod, it will be treated as a test method.

Q18. State some factors that indicate information loss in salesforce?

Rapid changes in date and time.


Changing the data types from one to another. …
Altering from the multi-select picklist or it can be the mode of changing the checkbox,
etc. to another data types.
Q19. What are the types of custom settings in Salesforce? What is the advantage of
using custom settings?
There are two types of custom setting:

List Custom Settings


Hieriarchal Custom Settings.
Custom settings are similar to custom objects and enable application developers to
create custom sets of data, as well as create and associate custom data for an
organization, profile, or specific user. All custom settings data is exposed in the
application cache, which enables efficient access without the cost of repeated
queries to the database. This data can then be used by formula fields, validation
rules, flows, Apex, and the SOAP API.

Q20. What is the difference between a Role and a Profile in Salesforce?

Roles are added optionally whereas profiles are considered to be the mandatory
basic requirements needed to set up a user. Profiles help in controlling Create,
Read, Edit, Delete (CRED) and other object privileges. It also involves system
permission that the user carries like data export.

When considering roles, it is used for sharing records across different enterprises. It
provides users with the record access that is owned by the people and works in a
hierarchical fashion.

Q21. Why do we need to write test classes? How to identify if a class is a test class?

After developing an apex class or apex trigger we should write the unit tests and
ensure that we are able to execute at least 75% of the lines of code. If you are
moving the code from sandbox to production, you need to include all the test classes
at the time of deployment and salesforce will run all the test classes which you
included for the deployment.

Q22. How many callouts to external service can be made in a single Apex
transaction?

A single Apex transaction can make a maximum of 100 callouts to an HTTP request
or an API call.

Q23. What do you mean by lookup relationship?

In real life, you might have seen bridges. The main function of the bridge is to
connect from one end to another. Similar case happens with salesforce, here when
two objects are linked to each other via medium, then it is known as lookup
relationship.
Q24. Can you define a transfer record in salesforce?

The word transfer itself tells you that salesforce is talking about transferring the files
from one place to another. Hence in order to move a file from one destination to
another. You need permission from a salesforce professional (let’s say professional
1) to transfer it to another professional (lets say professional 2)

Q25. What do you mean by audit fields?

In salesforce, a term can be used in multiple ways. In this case, audit filed are
nothing but another name for standard fields.

Q26. Is it possible to call a future method from a batch class?

We cannot call one asynchronous process from another asynchronous process.

Q27. What is an external ID in Salesforce?

An external ID is a custom field which can be used as a unique identifier in a record.


External IDs are mainly used while importing records/ data. When importing records,
one among the many fields in those records need to be marked as an external ID
(unique identifier).

Q28. What are the different types of collections in Apex? What are maps in Apex?

List – ordered and allow duplicates


Set – unordered and won’t allow duplicates
Map – Key and value pair
Maps are used to store data in the form of key-value pairs, where each unique key
maps to a single value.

Q29. What is Trigger.new?

Triger.new is a command which returns the list of records that have been added
recently to the sObjects. To be more precise, those records will be returned which
are yet to be saved to the database. Note that this sObject list is only available in
insert and update triggers, and the records can only be modified in before triggers.

Q30. Is there any chance by which we can create RUS on the master object?

Yes, it is possible in a relationship called master-detail relationship. The RUS known


as Roll-Up Summary fields. Their creations basically done on master records. In
master record, you have the privilege RUS or better known as roll up summary
fields. Once this field is created you can calculate various attributes of child records.
Q31. Name some of the kinds of apex trigger in salesforce?

When we talk about apex triggers then it can be divided into two segments the first
one previous trigger and other is known as the later triggers. Please note that
previous triggers can also be called as before triggers and later triggers can also be
called as after triggers in case of before triggers, they have their usage in the
process of updating and validating the expense of record in salesforce. A care is
taken that they should not get preserved in the record.

Q32. What do you understand by S0QL proclamation in salesforce?

SOQL has its usage to put forward the queries which is responsible for recording the
stuff contained in the database.com.The two kinds of SOQL Statements in
salesforce are as under- The very first is Static SOQL and other is SOQL statement
is called as Dynamic SOQL.

Q33. Is it possible to write test code inside of an apex class or an apex trigger?

We cannot write test code (test methods) inside of the apex trigger. From API
Version 28.0, we cannot write the test methods inside of an apex class which is not
decorated with @isTest. We can write test methods only in a class which is
decorated with @isTest.

Q34. State the most important difference between better and setter methods?

Getters and setters are used to protect your data, particularly when creating classes.
For each instance variable, a getter method returns its value while a setter method
sets or updates its value. … The setter method takes a parameter and assigns it to
the attribute

Q35. In salesforce what do you mean sObject?

Generic sObject means, it can be of any persisted SFDC objects type. … sObject is
the name of the generic abstract type that can be used to represent any persisted
object type.

Q36. How does you find how many users are there is Apex code?

You need to type a function known a userinfo.getuserid () to watch the amount of


users present in apex code.

Q37. List the things that can have on page customization?


The on-page customization can have the following parameters.The first one is page
layout like, another thing are Fields, Buttons, Custom Links and the last but not the
least one is Related Lists.

Q38. What is Record Type?

For an object based on the Record Type, we can show different fields and different
picklist values by assigning different page layouts for the record types and profiles.
After creating the record type, on the record type detail page user can see all the
picklist data type fields, user can edit the picklist and decide which values should
display for this particular record type.

Q39. What are the types of Sandboxes?

Developer Sandbox
Developer pro sandbox
Partial data sandbox
Full copy sandbox
Q40. What is the object relationship in salesforcedotcom (SFDC)?

It is used to link custom object records to standard object records in a related list.

Q41. If required can two users share the same profile? If yes, how?

Yes, in salesforce it is possible to assign a similar profile to different people, teams,


or managers. The advantage of this is that at the same time entire team or group of
people can hold access to crucial data, for example, an HRM team named ‘HRM
Profile’ can have access to candidates, employees, lead data, conversion ratio, etc.
If someone who is at the managerial level wants access to additional data, which the
others can’t access, it will require permission.

Q42. Let’s say that the two objects have been merged using the r/s which appear as
a field in the secondly record. How will it appear in the primary record?

In primary record it will come as related list. Now you have to know when two
objects are connected as per clients needs then the two objects behave diffenly. One
behaves as custom object and the other r behaves as standard object

Q43. There are multiple bindings used in visualforce. Can you name them?

There are three types of bindings in visualforce They can be stated as action
binding, component binding and data bindings. Data binding portrays all the data that
is present in the controller. Action binding refers to all the action methods that are
present in the controller. Finally, in case of component bindings, it refers to the
process of the components that is present in visual force page.

Q44. How many different types of data can a set accumulate in salesforce?

An assemblage of six data types can be accumulated in a set. These are known as
built-in Apex types, primitive types, collections, user defined types, collections,
primitive types, and sObjetcs.

Q45. Out of two apex class, identify the most important difference?

The two apex class can be regarded as public class and the global class. The term
global itself states that when particular information can be accessed all over the
salesforce, then it can be termed as global class. In global class, you don’t need
namespaces. In public class, namespace is required.

Q46. What is Governor Limits for DML statements?

Number of DML statements per transaction: 150 (as a whole including insert, update,
delete and undelete)

Number of rows processed per DML statement: 10000

Q47. Will you be able to customize visualforce and Apex directly in the production
org?

Visualforce can be directly customized in the production whereas Apex cannot be


directly customized in the production org rather it can be changed and then deployed
via the sandbox and also should meet the test coverages.

Q48. What are the inline visualforce pages?

On a record detail page we can embed visualforce pages. Assume that you are
displaying inline VF page on Account record detail page. VF page should be
standard controller to Account Object.

Q49. What Is The Use Of The Aura: method Tag in Lightning?

Use aura:method to define a method as part of a component’s API. This enables you
to directly call a method in a component’s client-side controller instead of firing and
handling a component event.

Q51. Give an example of Lightning Components of Server-side and Client-side?


In a lightning component, the client-side is a component page and the JavaScript
controller and the server-side is the apex controller and the databases.

Q52. Can we integrate Lightning Components with a different framework, such as


Angular?

Absolutely, there is provision of combining various lightning components with other


frameworks such as Angular.

Q53. Highlight various reasons to lose data in salesforce.

Changing data and date-time.


Altering to percent, number, and currency from other data types.
Changing from multi-select picklist, checkbox, auto number to other types.
Altering to multi-select picklist from any type except picklist.
Changing to auto-number except from text.
Q54. What are the different data types that a standard field record name can have?

A standard field record name can have data type of either auto number or text field
with a limit of 80 chars.

Q55. Brief something on the bucket field in reports?

The bucket field in Salesforce Reports is an incredibly powerful functionality used to


quickly categorize values for a field in a report without the need to have a custom
formula field at the object level. Bucket fields in Salesforce are available in Tabular
reports, Summary Reports and Matrix reports.

Q56. What are the various events on which a trigger can fire?

You can write triggers that fire whenever one of the following operations occurs:
DML statements ( INSERT , UPDATE , DELETE ) on a particular table or view,
issued by any user. DDL statements ( CREATE or ALTER primarily) issued either by
a particular schema/user or by any schema/user in the database.

Q57. Can you explain visual component in salesforce?

Visual component in salesforce comes in two forms. One can be standard


component which is already predefined and the other can be custom component that
is build to understand the behavior of the user. When a salesforce professional tries
to send any information from visual force page to salesforce, then visual force
components has to be used.

Q58. How can we use Lightning Components with the Salesforce1 Mobile App?
From Setup, enter Tabs in the Quick Find box, then select Tabs. Click New in the
Lightning Component Tabs related list. Select the Lightning component that you
want to make available to users. Enter a label to display on the tab.

Q59. What is the significance of loading spinner in the lightning component?

Salesforce lightning Spinner is useful while the data being loaded on component
body. Lightning Spinners is CSS loading indicators that should be display when
retrieving data from server or performing slow computations.

Q60. Explain about Salesforce Application Programming Index (API)?

Hi, API stands for Application Programming Interface. –> Salesforce provides
programmatic access to your organization’s information using simple, powerful, and
secure application programming interfaces[API’s].

Q61. Explain the various Standard Profiles in Salesforce.

Standard Profiles :- Standard Profiles in Salesforce are default created with


force.com which cannot be renamed or deleted. System Administrator :- System
administrator is the super user and can customize every application in an
organization. Standard User :- Standard user can View, Edit and delete their own
records.

Q62. What are the features of Developer sandbox?

It copy only configuration changes from the production.


It doesn’t allow to copy real time data.
We can test the configuration changes with sample data.
The maximum sample data limit is 200mb.
Refresh time interval is one day.
Q63. What is the junction object and what purpose does it serve?

We use Junction objects to create many to many relationships between objects. If


you take the Recruiting application example, you can see that a Position can be
linked to many Candidates, and a Candidate can apply for different Positions.

Q64. How many batch jobs can be active/queued at a time?

A user can activate up to 5 batch jobs at a time without any potential issue.

Q65. Differentiate between the detail page and the edit page?
Whenever user try to create a new record or edit an existing record user can input
the values for the fields, this page is nothing but edit page.

After creating a new record or editing an existing record, user can see the
information of the record, this page is nothing but detail page.

Q66. What is the use of writing sharing rules? Can you use sharing rules to restrict
data access?

No, sharing rules cannot restrict data access. Sharing rules are used by
administrators to automatically grant users within a given group or role access to
records owned by a specific group of users.

Q67. What is a static dashboard?

Static dashboards are the basic dashboard with fixed view (Single user perspective)
and which is visible to any user who has made a report out of his data.

Q68. Can you have a roll-up summary field in case of a Master-Detail relationship?

Yes. You can have a roll-up summary in case of a master-detail relationship. But not
in case of a lookup relationship. A roll-up summary field is used to display a value in
a master record based on the values of a set of fields in a detail record.

Q69. What is Data Skew in salesforce?

In Salesforce, data skew occurs when more than 10000 child object records are
related to a single parent object record, or more than 10000 records of any object
are owned by a single Salesforce user. This skewness leads to major performance
hits and long-running processes which are something that one should avoid.

Q70. What are the advantages to use a custom setting in salesforce?

All custom settings data is exposed in the application cache, which enables efficient
access without the cost of repeated queries to the database. This data can then be
used by formula fields, validation rules, flows, Apex, and the SOAP API.

Q71. Highlight some benefits of the custom label in salesforce.

Custom labels enable developers to create multilingual applications by automatically


presenting information (for example, help text or error messages) in a user’s native
language. Custom labels are custom text values that can be accessed from Apex
classes, Visualforce pages, Lightning pages, or Lightning components.
Q72. List out the auto indexed fields in salesforce.

The fields which are declared as Primary key, Foreign key, custom fields which are
,marked as unique or an external ID are auto indexed.

Q73. What is a FlexiPage in lightning?

In Salesforce Lightning component the flexiPage Represents the metadata


associated with a Lightning page. A Lightning page represents a customizable
screen made up of regions containing Lightning components.

Q74. How to create a popup in the lightning component?

How to display modal popup on button’s click in Lightning Component ? To display


modal popup in your component first create a button in your Component which will
be used to show & hide modal popup. True & False value.

Q75. How would you describe the multitenant architecture in salesforce?

In a multi-tenant architecture, there is one common application serviced to multiple


clients. So, in this case, the developer can create an application, upload it onto the
cloud, and share it with multiple clients.

Q76. State the most important difference between better and setter methods?

Getters and setters are used to protect your data, particularly when creating classes.
For each instance variable, a getter method returns its value while a setter method
sets or updates its value. You may validate the given value in the setter before
actually setting the value.

Q77. List out the data types which can be used for defining External ID’s.

Auto-Number, Text, Number, and E-Mail are some of the data types can be used to
define external ID’s.

Q78. How many email can be send per method?

Total 10 email can be send per method.

Q79. What is Partition class?

Partition class is an Base class of Cache.OrgPartition and Cache.SessionPartition.


The subclasses are used to partition the Organization and Session.
Q80. What is the use of an Outbound Message?

Outbound message is used to send a message to external web services or an


application when the record is created or updated in the Salesforce. Outbound
messages can be triggered by using Workflow, Approval process, and Entitlement
process.

Q81. How to rename the tab?

Tab name will be decided based on the Plural Label of the custom object, to rename
go to corresponding object detail page and rename the plural label.

Q82. What is the different type of deployment in salesforce?

There are three ways to deploy changes in a Salesforce production environment:


with the Force Migration Tool, a Changeset, or the Force.com IDE.

Q83. How does Salesforce track sales details?

Salesforce track sales Performance by: Use the performance chart on the Home
page in Lightning Experience to track your sales performance or the performance of
your sales team against a customizable sales goal. The performance chart displays
data based on your sales team’s opportunities if you have an associated team.

Q84. Does the user can create insert their own custom logo while creating their own
custom applications?

Yes user can upload their custom logo in documents and then they choose that logo
for organization.

Q85. What are the ways to call the Apex class?

You can call an Apex class from Trigger as well. Triggers are called when a specified
event occurs and triggers can call the Apex class when executing.

Q86. How many LR(lookup relationship) fields can be created in an object?

Each object can have one or two masters or up to 8 details. You can have a Total of
40 Relationship fields with a Maximum of 2 Master-Detail Relationships. So you can
have all 40 as Lookup Relationship fields, 38 Lookup and 2 MD 39 Lookup and 1 MD
relationship fields on an object.

Q87. Give some details about Apex Programming Language.


Apex is a strongly typed, object-oriented programming language that allows
developers to execute flow and transaction control statements on the Lightning
platform server in conjunction with calls to the Lightning Platform​ API. … Apex code
can be initiated by Web service requests and from triggers on objects.

Q88. What are the default indexed fields in Salesforce?

The following fields are indexed by default: primary keys (Id, Name and Owner
fields), foreign keys (lookup or master-detail relationship fields), audit dates (such as
LastModifiedDate), and custom fields marked as External ID or Unique.

Q89. What are the permission sets?

A Permissions set is a collection of settings or permissions and is used to extend the


user functional access without changing actual profiles. You can use permission sets
to various types of users to extend the functionality access regardless of their roles.
It is time taking task to create a profile; instead of this, you could easily create a
permission set.

Q90. Explain Javascript remoting for apex controllers?

JavaScript remoting is a tool that front-end developers can use to make an AJAX
request from a Visualforce page directly to an Apex controller. JavaScript remoting
allows you to run asynchronous actions by decoupling the page from the controller
and to perform tasks on the page without having to reload the entire page.

Q91. Difference between < apex:inputText / > Vs < apex:inputField / > ?

apex:inputText: An HTML input element of type text. Use this component to get user
input for a controller method that does not correspond to a field on a Salesforce
object.

apex:inputField: An HTML input element for a value that corresponds to a field on a


Salesforce object.

Q92. What is the procedure to get the Security token in Salesforce?

To gain access to your security token, go to “Setup” (appears in the top right corner,
under your name). In the left side menu column (under Personal Setup), open the
drop down item “My Personal Information.” The option to reset your security token
will appear right under password reset option.

Q93. What do you understand by box functionality?


Functionalities are available within the Salesforce platform (i.e. no need to code).

Q94. What are Governor Limits in Salesforce?

In Salesforce, it is the Governor Limits that controls how much data or how many
records you can store in the shared databases. Why? Because Salesforce is based
on the concept of multi-tenant architecture. In simpler words, Salesforce uses a
single database to store the data of multiple clients/ customers.

Q95. What is the difference between a standard controller and a custom controller?

A custom controller is the user defined an Apex class that implements all of the logic
for a page without leveraging a standard controller. Whenever the visualforce pages
need to run entirely in system mode and it does not enforce the permissions and
field-level security of the current user the custom controller works.

Q96. Is it possible to bypass Grant Access Using Hierarchies in the case of standard
objects?

No, by default, the Grant Access Using Hierarchies option is enabled for all objects,
and it can only be changed for custom objects.

Q97. What will happen to child records if we delete a parent record in case of a
Lookup Relationship?

In the case of Lookup Relationship, if you delete Master Record, all corresponding
Child Records will not be deleted. But if you want to delete child records in this case,
you can create a trigger through which on master record deletion the child records
will get deleted. It will behave like a master-detail relationship.

Make sure that you have in-depth knowledge of all the basic concepts used in
Salesforce. These Salesforce Interview Questions are based on the trends in
previous years. Moreover, we hope that it will help you to crack almost every
Salesforce interview in your career.

You might also like