Spread the love


Salesforce Lightning Interview Questions and Answers

What is Lightning component framework ?

Lightning component framework is UI framework which helps to design dynamic web apps to mobile and desktop with high responsive

What is use of Lightning component framework ?

Lightning component framework helps to design out of box components with rich ecosystem and high performance. It is also Event-Driven architecture

what are the components in Salesforce Lightning?

Components is a piece of code(Building blocks of page) which helps to reusable to anywhere we want.

Which Framework Lightning Supports?

Lightning Supports (Aura) component-based framework.

How many types of events available ?

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.

What is Aura ?

Aura is UI framework to built dynamic web apps for mobile and desktop devices into lightning.

what is SLDS stands for ?

Salesforce Lightning Design System.

What is Lightning Bundle?

Lightning Bundle contains Component,Controller,Helper,style,documentation,rerender,design,SVG with it.

To design Lightning components, Do we need to create a custom domain ?

Yes, we need to custom domain to built lightning component. By using custom domain helps use to make our organization more secure while authentication.

Is there any limit on how many component to have in one Application?

There is no limit on number of components defined within an application by salesforce

Is Lightning Components replacing Visualforce?

No Lightning component is not replacing Visualforce, Visualforce is still supported by Salesforce.

What is Aura? Why do we use the aura: namespace in the code?

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.

Do we need a namespace to develop Lightning Components?

You can have namespace in your org but it is not necessary to have a namespace to develop lightning component.

Is it mandotary to create custom namespaces to develop lightning components ?

No, It’s Optional, But if need we can create with Namespace also.

What is Salesforce lightning experience?

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.

What is difference between Visualforce Components and lightning components?

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.

What is lightning connect?

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.

How do I turn on lightning in Salesforce?

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!

What is OData in Salesforce?

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)

What is renderer in lightning component?

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.

What is the use of lightning in Salesforce?

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.

What are the type of events into Salesforce Lightning component?

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 Salesforce’s system during the life cycle of the lightning app.

What are the basic differences between Application Event and Component Event?

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.

Which interface we are supposed to implement so that a lightning component can be used as quick action?

We need to implement the following “force: lightningQuickAction” so that we can use the component as a Quick Action

Which interface we are supposed to implement so that a lightning component can be used as a Tab?

We need to implement the following “force:appHostable” so that we can use the component as a Tab

How can we use a lightning component in a VisualForce Page? Explain?

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()

How can we call child component controller method from the parent component controller method?

To call a child component’s 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. 

How can we use Lightning Components with the Salesforce1 Mobile App ?

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.

Can we make one component inherit styles/CSS from a parent component, or must we always define it in the component ?

Child component inherits the CSS from its aren’t we do not need to specify it for each component

What is the use of the aura:method tag in Lightning ?

aura:method is used to communicate down the containment hierarchy i.e. parent to child

Can we Include One Lightning component to another ?

Yes we can include one Lightning component in another Lightning component.

Learn more about salesforce admin 

check more interview questions: 

Salesforce Admin Interview Questions and Answers

Keep visiting us to know more about Salesforce Lightning Interview Questions and Answers



Follow us

Don't be shy, get in touch. We love meeting interesting people and making new friends.

Most popular

Most discussed

eskişehir escort - escort eskişehir - mersin escort - escort izmir - bursa escort