As promised earlier, we are here with Part 2 of Salesforce Interview Questions for young candidates. Make sure to check out the previous post before you begin with the current one.
Part 2 Questions
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.
Check out the previous post here: https://mytutorialrack.com/top-100-salesforce-interview-questions-part-1/