InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Which interface should you use to retrieve the record's id from the record Detail page? |
|
Answer» We should USE the FORCE:hasRecordId interface to retrieve the RECORD’s ID from the record DETAIL page. |
|
| 2. |
What do you understand about lightning:navigation in the context of Salesforce Lightning? |
|
Answer» For navigating to a page reference or constructing a URL from the given page Reference, we use lightning: navigation. The page reference object MUST be defined in order to navigate. page Reference is a JAVASCRIPT object that refers to a page and provides a defined structure that specifies the page's type and values.
|
|
| 3. |
What are our options for debugging our components? |
|
Answer» There are NUMEROUS approaches to COMPONENT debugging. The simplest and quickest is to use console logging statements to log variables THROUGHOUT code execution. However, this is a rather limiting technique, and there are far BETTER ways to debug our components. To remove minification and provide clearer error messages, the first step is to enable "Lightning Debug Mode." Additionally, we can utilise our browser's debugging tools to set breakpoints to inspect the precise execution of code within our components, evaluate variables at runtime, and walk through our code to better understand what's going on and figure out what's WRONG. |
|
| 4. |
What are attributes in the context of Salesforce Lightning? What are the parameters that must necessarily be provided? |
|
Answer» Attributes are variables that are used to store VALUES. The NAME, type, default, description, and ACCESS of the attribute are all defined. The aura:attribute> tag is used, which requires the name and type attributes to be FILLED in. However, only the parameters name and types are necessarily required. |
|
| 5. |
Is it possible to use a Lightning component that works with both mobile and desktop interfaces? |
|
Answer» Lightning components, Salesforce1 mobile app, custom STANDALONE apps, and template-based communities MAY all be used DIRECTLY in Lightning Experience. The Visualforce page uses Lightning components for use in Salesforce Visualforce communities as well as the conventional environment. So, YES it is possible to use a lightning component that works with both mobile and desktop interfaces. |
|
| 6. |
What is the purpose of using Lightning's Aura: method Tag? |
|
Answer» The Aura: method tag can be used to specify a component API function. As a result, there's no need to fire and handle a component event, and we may CALL the method in the component's controller directly from the CLIENT. It also makes the code REQUIRED for a parent component to invoke a method on a child component that is a PART of the parent component easier to understand. |
|
| 7. |
Is it possible to use Aura Components with Lightning Web Components and vice versa? |
|
Answer» As it's not feasible to add generic elements to custom components, AURA components can't be used in Lightning Web components (in other WORDS, a parent Lightning Web component can only be made up of Lightning Web components). You can, however, incorporate Lightning Web components into Aura components (i.e. parent Aura components can contain both Aura Components and LWC). They can ALSO deal with one other's events. |
|
| 8. |
Is it possible to integrate Lightning with a third-party framework? |
|
Answer» Yes, Lightning MAY be used in CONJUNCTION with other FRAMEWORKS, such as Angular. Aura components can ALSO be used with a third-party FRAMEWORK. However, a third-party framework cannot be used directly within Lightning Web Components. |
|
| 9. |
What are the Salesforce constraints on the maximum number of components per app? |
|
Answer» No, there is no RESTRICTION to the NUMBER of COMPONENTS that can be USED in an APPLICATION. |
|
| 10. |
What do you understand by bound and unbound expressions in the context of Salesforce Lightning? |
Answer»
|
|
| 11. |
Is it possible to link one Lightning component to another? |
|
Answer» YES, ONE Lightning COMPONENT can be included within ANOTHER Lightning. |
|
| 12. |
What are the different types of component bundles for lightning components? |
|
Answer» A Mark-ups, JavaScript controller, a Helper, a Renderer, and other COMPONENTS make up each Lightning Component (Component Bundle). A screenshot of components in the developer console view is shown below. The Types of Lightning Component Bundles are as follows:
|
|
| 13. |
What are the core principles of the Salesforce Lightning UI? |
|
Answer» Four ESSENTIAL design ideas were used to create the Lightning Experience UI, which SLDS embodies. They are as follows :
|
|
| 14. |
What is the Salesforce Lightning Experience? |
|
Answer» Salesforce Lightning Experience is a user interface that is modern, fast, and intelligent, and it is built on established Salesforce1 Mobile APP technology. To construct modern corporate APPLICATIONS, it INTEGRATES the Lightning Designing System (LDS), Lightning App Builder, and Lightning Components. Salesforce Lightning Experience is a next-generation productive user interface for Salesforce.com's sales and supports staff. Salesforce.com has introduced Salesforce1 for mobile applications, as well as two user interfaces for desktop versions of Salesforce traditional and lightning Salesforce. Lightning Experience (or LEX for short) introduces a completely new client-side architecture, DEPARTING from the server-side rendering given by its predecessors (Salesforce Classic) and Visualforce. Visualforce UIs can still be used with Lightning Experience for backwards compatibility, but they won't have the same amount of extensibility or visual appeal as custom UIs DESIGNED with the Lightning framework. |
|
| 15. |
What are the benefits of using Salesforce Lightning Design System (SLDS)? |
|
Answer» Salesforce Lightning Design System (SLDS) gives you the tools to construct apps that follow Lightning Experience's CONCEPTS, design language, and best practices. The following are some of the advantages that make SLDS so beneficial:
|
|
| 16. |
What do you understand about the Salesforce Lightning Design System (SLDS)? |
|
Answer» The Salesforce LIGHTNING Design System (SLDS) allows you to CREATE Lightning Experience-style applications WITHOUT WRITING a single line of CSS. SLDS is a CSS framework that allows you to USE the icons, colour palettes, and fonts that our designers use to create Lightning Experience. |
|
| 17. |
What do you understand about Lightning Data Service (LDS) in the context of Salesforce Lightning? |
|
Answer» Lightning Data Service (LDS) is used to CREATE, delete, update, and load records in our component without using Apex code. Lightning Data Service is in charge of field-level security and sharing regulations. Lightning Data Service enhances efficiency and user interface consistency while simplifying access to Salesforce data. At its most basic level, Lightning Data Service can be thought of as the Lightning components' version of the Visualforce standard controller. While this statement is exaggerated, it serves to highlight a point. Use Lightning Data Service to access and alter Salesforce data in your components wherever possible. The Lightning Data Service makes data access easier than utilising a server-side Apex controller. Read-only access can be declared explicitly in the markup of your component. Your component's JavaScript controller has nearly the same amount of code for data modification, and you can get rid of the Apex entirely. All of your data access code is condensed inside your component, reducing complexity dramatically. Aside from the CODING, Lightning Data Service has other advantages. It is based on highly efficient local STORAGE that is SHARED by all components that make use of it. Lightning Data Service records are cached and shared between components. |
|
| 18. |
What are the different sorts of Salesforce Lightning Events? |
|
Answer» There are four types of Salesforce Lightning Events. They are as follows:
|
|
| 19. |
Explain how the two programming models, the Aura and the Lightning Web Framework coexist together? |
|
Answer» We can mix up the Aura and LWC components. The ultimate parent component is Aura. Auras contain both LWC and Aura components, whereas Lightning WEB Components only have their own component.
|
|
| 20. |
What are the benefits of using the Lightning Web Components (LWC) over the Aura components? |
|
Answer» The distinction between the Lightning Web Components and the Aura Components is only visible to those working behind the SCENES. However, Salesforce and the community recommend that developers use LWCs when building SPAs for the following reasons:
|
|
| 21. |
What are the benefits of using the Aura components programming model? |
|
Answer» Following are the benefits of using the Aura components programming model :
|
|
| 22. |
What are the different programming models that can be used to develop lightning components? Explain them. |
|
Answer» For LIGHTNING components, there are two different programming models. The first is to build out Aura components using the Aura framework, and the second is to use the newer Lightning Web Components (LWC) framework.
|
|