ForceLearn

Lightning

Sharing is caring!

Salesforce lightning interview question and answers

Q. What is Lightning component framework ?
A. Lightning component framework is UI framework which helps to design dynamic web apps to mobile and desktop with high responsive
Q. What is use of Lightning component framework ?
A. Lightning component framework helps to design out of box components with rich ecosystem and high performance. It is also Event-Driven architecture
Q. What are component in Salesforce Lightning ?
A. Components is a piece of code(Building blocks of page) which helps to reusable to anywhere we want.
Q. Which Framework Lightning Supports ?
A. Lightning Supports (Aura) component-based framework.
Q. How many types of events available ?
A. Component Event Scope of this event is within itself or the parent component of this event, all the components declared within the parent component would get notified of this event( managed by the component itself).

Application Event is handled by all components that are subscribed to the event. These events are essentially a traditional publish-subscribe model.
Q. What is Aura ?
A. Aura is UI framework to built dynamic web apps for mobile and desktop devices into lightning.
Q. What is SLDS stands for ?
A. Salesforce Lightning Design System.
Q. What is Lightning Bundle?
A. Lightning Bundle contains Component,Controller,Helper,style,documentation,rerender,design,SVG with it.
Q. To design Lightning components, Do we need to create a custom domain ?
A. Yes, we need to custom domain to built lightning component. By using custom domain helps use to make our organization more secure while authentication.
Q. Is it mandotary to create custom namespaces to develop lightning components ?
A. No, Its Optional, But if need we can create with Namespace also.
Q. What is Salesforce lightning experience?
A. Lightning Experience is a modern user interface that helps your sales reps sell faster and your service reps support customers more productively. Lightning Experience includes many new features and entirely redesigned pages, but not every Salesforce feature is supported in Lightning Experience.
Q. What is difference between Visualforce Components and lightning components?
A. Visualforce components are page-centric and most of the work is done on the server. Lightning is designed from the component up, rather than having the concept of a page as its fundamental unit. Lightning Components are client-side centric, which makes them more dynamic and mobile friendly.
Q. What is lightning connect?
A. Lightning Connect lets you seamlessly access data from external sources, side-by-side with your Salesforce data. You can pull data from legacy systems such as SAP, Microsoft and Oracle in real time, without making a copy of the data in Salesforce.
Q. How do I turn on lightning in Salesforce?
A. From Setup in Salesforce Classic, click Get Started in the Migration Assistant tile at the top of the menu. On the Turn It On tab in the Migration Assistant, click the button to switch it to Enabled. That’s it!
Q. What is OData in Salesforce?
A. Lightning Connect enables your users to view and search records that are stored outside Salesforce, such as data in an enterprise resource planning (ERP) system. To connect to an external data source, Lightning Connect uses the Open Data Protocol (OData)
Q. What is renderer in lightning component?
A. When a component is rendered or rerendered, the aura:valueRender event, also known as the render event, is fired. Handle this event to perform post-processing on the DOM or react to component rendering or rerendering. The event is preferred and easier to use than the alternative of creating a custom renderer.
Q. What is the use of lightning in Salesforce?
A. Lightning makes it easier to build responsive applications for any device. Lightning includes these technologies: Lightning components give you a client-server framework that accelerates development, as well as app performance, and is ideal for use with the Salesforce mobile app and Salesforce Lightning Experience.
Q. What are the type of events into Salesforce Lightning component?
A. Application Event Scope of this event is throughout the lightning App and any component which has registered for this event would get a notification.
Component Event Scope of this event is within itself or the parent component of this event, all the components declared within the parent component would get notified of this event.
System Event- these are the events fired by Salesforces system during the lifecycle of the lightning app.
Q. What are the basic differences between Application Event and Component Event?
A. Component events are used to do communication between child and parent. They use bubbling and capture same as used in DOM events. A change in a child component can be communicated to the parent component via component event.

Application events are used to communicate any change in the component to a broader audience. Any component who has registered for this event will get a notified.
Q. Which interface we are supposed to implement so that a lightning component can be used as quick action?
A. We need to implement the following force: lightningQuickAction so that we can use the component as a Quick Action
Q. Which interface we are supposed to implement so that a lightning component can be used as a Tab?
A. We need to implement the following force:appHostable so that we can use the component as a Tab
Q. How can we use a lightning component in a VisualForce Page?
A. A Lightning component can be embed in any webpage using a very powerful and flexible feature, Lighting out. When used with Visualforce some complexity becomes simpler.
Lightning component can be added to Visualforce page in three steps:
1. We have to first Add the Lightning Components for Visualforce JavaScript library to your targetted Visualforce page using the tag.
2. Next we have to create and refer a Lightning app which is used to the component dependencies.
3. Lastly we need to write a JavaScript function which will finally create the the component on the page using $Lightning.createComponent()
Q. How can we call child component controller method from the parent component controller method?
A. To call a child components controller method, we need to first create a aura:method which is publically accessible, aura:method is used to communicate down the containment hierarchy i.e. parent to child.
Q. How can we use Lightning Components with the Salesforce1 Mobile App ?
A. We need to first make a lightning tab which points to the lightning component we created and then we have to include that tab in the salesforce1 Mobile Navigation select list and the newly created tab to it.
Q. Can we make one component inherit styles/CSS from a parent component, or must we always define it in the component ?
A. Child component inherits the CSS from its arent we do not need to specify it for each component
Q. What is the use of the aura:method tag in Lightning ?
A. aura:method is used to communicate down the containment hierarchy i.e. parent to child
Q. Can we Include One Lightning component to another ?
A. Yes we can include one Lightning component in another Lightning component
Q. Is there any limit on how many component to have in one Application?
A. There is no limit on number of components defined within an application by salesforce
Q. Is Lightning Components replacing Visualforce?
A. No Lightning component is not replacing Visualforce, Visualforce is still supported by Salesforce.
Q. What is Aura? Why do we use the aura: namespace in the code?
A. Aura is a UI framework for developing dynamic web apps for mobile and desktop devices. Aura provides a scalable long-lived lifecycle to support building apps engineered for growth.Aura supports partitioned multi-tier component development that bridges the client and server. It uses JavaScript on the client side and Java on the server side.
Q. Do we need a namespace to develop Lightning Components?
A. You can have namespace in your org but it is not necessary to have a namespace to develop lightning component.

 

Keep Visiting us !! we will update more questions

 

No tags for this post.

Like Us for FB Page

Trailhead Profile

Subscribe Us




Global View