Today's Offer - Salesforce Certification Training - Enroll at Flat 10% Off.

- Salesforce Blogs -

Salesforce Lightning Interview Questions and Answers

Salesforce Lightning is basically a component-based framework for development from Salesfoce.com aimed at simplification of processes for business users. So le’s understand this topic in detail, and as we know, every interview is different and requires company-specific preparation in addition to the basic know-how of the interview questions. So let’s have a look at some of such questions and answers that would hopefully help you in your next interview.

Salesforce Lightning Interview Questions

Salesforce Lightning Interview Questions & Answers

Q1). What is Lightning?

Lightning refers to a set of tools and technologies which are behind a prominent upgrade to the Salesforce platform.

Read: Difference Between Salesforce Classic and Lightning Experience

Salesforce Lightning Technologies

It has the following components:

  • Experience: It refers to a group of modern user interfaces which are optimized for speed. This involves Lightning Experience, Salesforce 1 Mobile App, and other template-based communities.
  • Lightning Component Framework: It is a JavaScript framework and a group of standard components which let you build reusable components for customization of Lightning Experience, Salesforce 1Mobile app, and template-based communities.
  • Visual Building Tools: It refers to the drag-and-drop technologies for quick and simple app building and customization. Lightning App Builder is used for customization of Lightning Experience and Salesforce 1 Mobile app. Community builder is used for customization of template-based communities.
  • Lightning Exchange: This refers to a section of AppExchange where nearly more than 70 partner components are found for jump-starting the development.
  • Lightning Design System: It refers to the style guides and best practices of modern enterprise UX for building pixel-perfect apps which match the look and appeal of the Lightning Experience and Salesforce 1Mobile app.

Q2). How can Lightning Components be used with the Salesforce 1Mobile App?

Lightning components can be used with Salesforce 1Mobile App by creating a custom Lightning tab which points to our component and includes that tab in our Salesforce 1 Mobile navigation.

Q3). Can a Lightning Component which shows up in both the Mobile and the Desktop User Interfaces be made?

Lightning Components can be directly used in Lightning Experience, the Salesforce 1 Mobile app, template-based communities, and other standalone apps. Additionally, it also includes Lightning components in a Visualforce page, which allows us to use them in Salesforce Classic, Visualforce-based communities and Console.

Q4). Do you think Lightning is an Mvc Framework?

Lightning is a component-based framework.

Q5). Which parts of the Lightning Components are server-side and which are on client-side?

Lightning components make use of JavaScript on the client-side and Apex on the server-side.

Q6). What is the type of different events into Salesforce Lightning Component?

Application Event: The event has a scope which is throughout the lightning App, and any component which has registered for this event gets a notification.

System Event: These are the events which are fired by the Salesforce system during the lifecycle of the app.

Component Event: Scope of this falls within the parent component of this event. All the components declared by the parent will also get notified of this event.

Q7). What is the difference between the component event and the application event?

Component Events: these are used to when the parent and child need to communicate. They make use of bubbling and capture, just like it is used in DOM events. A change in a child component will be communicated to the parent component through the component event.

Application Events: these are basically used for communicating any kind of change in the component to a larger audience. Any component which has been registered for this event will get notified.

Q8). When should component events and application events be used?

It is always a good idea to use a component event over an application event. Component events can be handled only by the components which are above them in the hierarchy of containment. Thus, the usage is limited to the components which need to know them.

Application events are best used when something is handled at the application level, like navigating to a particular record. Application events permit any communication between the components which are in separate parts of the application and have no direct containment relationship.

Read: What is scheduled Apex?

Q9). Which interface is often used for implementation so that a lightning component can be used for quick action?

Implementation can be done following the “force: lightningQuickAction” so that the component can be used for quick action.

Q10). Which interface is often used for implementation so that a lightning component can be used as a Tab?

The lightning component can be used as a Tab by following “force: apps stable.”

Q11). How can a Lightning component be used in a Visualforce page?

A Lightning Component can be embedded in any kind of webpage by a highly powerful and flexible feature called the Lightning out. In Visualforce, some level of complexity comes down. Lightning Component can be used in the Visualforce page in three steps:

  • Add the Lightning Components for Visualforce JavaScript library for the targeted page of Visualforce using the tag.
  • Next, a Lightning app has to be created and referred to in component dependencies.
  • Finally, a JavaScript Function needs to be written which will ultimately create the component on the page by making use of $Lightning.createComponentt() 

Q12). Name a few different Lightning Component bundles?

Different Lightning Component Bundles in Salesforce

13). How can FLS be ensured while working on the Lightning Component?

FLS and CRUD have to be manually enforced in the Apex Controlle, or it can be done using the Lightning Data service wherever possible as it handles both the FLS and CRUD. Both of them are not enforced automatically in case any object is referenced in the Apex Controller.

Q14). How can Lightning Components be used in the Salesforce1 Mobile App?

A lightning tab has to be made, which is aimed at the lightning component which has been created. The tab then has to be included in the salesforce1 Mobile Navigation select list and the newly created tab for it.

Q15). Is it possible to make a Lightning Component that shows up in the mobile and the desktop user interfaces?

Lightning Component refers to a lightning experience which is ready by default and also has compatibility in Salesforce1 App. The layout is responsive and thus adjusts as per the resolution of the screen size. Hence, it cannot be used in desktop and without any separate code.

Q16). What is the limit on the number of components which can be included in one Application?

The number of components which can be defined in an application in Salesforce has no upper limit.

Q17). What do you mean by Aura?

Aura is basically a User Interface framework which is used in the development of dynamic web apps for both the mobile and desktop devices. Aura gives scalable long-lived lifecycle support to the building of apps which are engineered for growth. Aura backs the partitioned multi-tier component development which bridges client and the server. JavaScript is used on the client-side while Java is used on the server-side.

Q18). Do you think a namespace is used for the development of Lightning Components?

A namespace is not essential for the development of a lightning component.

Q19). What is the underlying difference between Visualforce Component and the Lightning Component?

Visualforce page is created by keeping it at the center of the application, and most of its calculation is taken up at the server-side. The lightning component, on the other hand, is created by making use of the component-based framework, and most of the calculations are performed at the side of the client. It gives a more dynamic and rich customer experience. The lightning component is built using the mobile-first approach.

Q20). Are there any CSS styles provided by the Salesforce.com which support the Lightning components?

Salesforce has given the lightning design system as the default CSS which can be used with the Lightning component.

Q21). Do you think Lightning Components are only directed towards mobile apps?

Lightning Components are designed with a mobile-first approach, but the responsive design allows it to give the same experience even over the desktop without the need for writing any separate lines of code.

Read: Top 10 Salesforce Automation Tools: Which Do You Use

Q22). Mention any advantages of lightning?

Lightning has many advantages like an extraordinary component set which lets fast creation of new apps, easy decoupling between the components can be enabled by the event-driven architecture. Also, it is endowed with device awareness, cross-browser compatibility, and an optimized framework for performance.

Q23). Is it possible to integrate Lightning components with another framework like Angular?

Yes, Lightning components can be integrated with any third-party framework like Angular.

Q24). Where can the lightning component be displayed?

The lightning component can be displayed in the following places:

Lightning Component be Displayed in Salesforce

Q25). How can components be deployed to the production org?

Lightning components can be deployed to the production by change sets, force.com, IDE, and Managed Package.

Q26). What is the meaning of Lightning Experience?

Lightning Experience refers to the new User Interface, which is developed by the Salesforce team and is built on a component-based framework and architecture driven by events which provide a highly dynamic and responsive experience to the user. This framework is so designed to give optimum performance by the Client side and the stateless Server architecture.

Q27). What is the use of implements in the lightning component?

Implements are basically used for referring to various interfaces of the platform which enable a component for use in different contexts or granting access to extra context data. A component can often implement multiple interfaces.

Q28). How can we subscribe to an event in Lightning component?

For subscribing to any event in Lightning component, tags have to be included in the containment hierarchy. Subscription of this event is dependent on the type of event, i.e. component event or application event.

Q29). How can we communicate between two different components?

In a Lightning Component Framework, the communication between two components can be accomplished in the following ways:

  • Attributes which pass data down the component hierarchy
  • Lightning Events which pass data up and around the hierarchy of the components 

Q30). What is aura: attribute?

They are like member variables in apex classes, are typed fields and instance of a component. All attributes have been assigned a name and a type which can be marked required by specifying ‘required=true’ and also has a default value. It has a naming rule.

  • It should begin with a letter and an underscore.
  • Mostly they contain only alphanumeric or underscore characters.

Conclusion

Salesforce Lightning is basically designed to simplify processes for various business users who typically do not have any kind of programming experience. It has a huge scope, and thus, the interview preparation needs to be done with a lot of care and seriousness. There are many aspects which have to be touched. The questions mentioned above if done properly will definitely give you an edge over other participants. The only part of an interview is the preparation, which is in your control. As it is said, control the controllable so you should put in all the efforts to make sure that there is nothing left undone in your preparation and you enter the interview room loaded with confidence.

Read: How to Get Certified as a Salesforce Professional and Verify the Certification

Salesforce Tutorial Overview


    Janbask Training

    JanBask Training is a leading Global Online Training Provider through Live Sessions. The Live classes provide a blended approach of hands on experience along with theoretical knowledge which is driven by certified professionals.


Trending Courses

AWS

  • AWS & Fundamentals of Linux
  • Amazon Simple Storage Service
  • Elastic Compute Cloud
  • Databases Overview & Amazon Route 53

Upcoming Class

8 days 24 Dec 2019

DevOps

  • Intro to DevOps
  • GIT and Maven
  • Jenkins & Ansible
  • Docker and Cloud Computing

Upcoming Class

-1 day 15 Dec 2019

Data Science

  • Data Science Introduction
  • Hadoop and Spark Overview
  • Python & Intro to R Programming
  • Machine Learning

Upcoming Class

-1 day 15 Dec 2019

Hadoop

  • Architecture, HDFS & MapReduce
  • Unix Shell & Apache Pig Installation
  • HIVE Installation & User-Defined Functions
  • SQOOP & Hbase Installation

Upcoming Class

0 day 16 Dec 2019

Salesforce

  • Salesforce Configuration Introduction
  • Security & Automation Process
  • Sales & Service Cloud
  • Apex Programming, SOQL & SOSL

Upcoming Class

0 day 16 Dec 2019

QA

  • Introduction and Software Testing
  • Software Test Life Cycle
  • Automation Testing and API Testing
  • Selenium framework development using Testing

Upcoming Class

4 days 20 Dec 2019

Business Analyst

  • BA & Stakeholders Overview
  • BPMN, Requirement Elicitation
  • BA Tools & Design Documents
  • Enterprise Analysis, Agile & Scrum

Upcoming Class

0 day 16 Dec 2019

SQL Server

  • Introduction & Database Query
  • Programming, Indexes & System Functions
  • SSIS Package Development Procedures
  • SSRS Report Design

Upcoming Class

4 days 20 Dec 2019

Comments

Search Posts

Reset

Receive Latest Materials and Offers on Salesforce Course

Interviews