Salesforce Lightning Interview Questions & Answers

In this post, I am going to post some useful questions and answer related to Salesforce Lightning environment.

  1. What are the type of events into Salesforce Lightning component
    1. Application Event(Salesforce Document)
    2. Component Event
    3. System Event(Salesforce Document)
  2. What is the basic difference between Application Event and Component Event
    1. The major difference between application and component event is that component event is used in the child to parent components and application event can be used throughout the application and any component can handler the application event.
  3. Which interface need to implement so that you can use the lightning component as the quick action.
    1. force:lightningQuickAction
  4. Which interface need to implement so that you can use the lightning component as Tab like custom object and VF page.
    1. force:appHostable
  5. Can we use Lightning Component into VF page? If yes how?
    1. Yes, using lightning out the functionality of the salesforce lightning component.
    2. For more details see Here
  6. How can we call child component controller method from the parent component controller method?
    1. Yes, we can call using aura methods.
    2. Salesforce Document
  7. What are the different Lightning component bundles?
    1. Component
    2. Controller
    3. Helper
    4. Style
    5. Document
    6. Design
    7. SVG
    8. Renderer
    9. More Info Here(Salesforce Document)
  8. What is the use of Document and Renderer in the lightning component?
    1. Document: – A description, sample code, and one or multiple references to example components
    2. Client-side renderer to override default rendering for a component.
  9. How to ensure FLS while working with Lightning Component?
    1. Lightning Data Services already ensures Field Level Security and we can also use the Apex using isAccessible, isCreateable, isDeleteable, isCreateable and etc methods of Schema class.
  10. Why we should go for Lightning Component instead of VF pages?
    1. See Here
  11. What is the difference between a lightning tag and UI tags?
    • A lightning tag has inbuilt SLDS we do not need to put extra effort to improve the look and feel, also it has may awesome tags to handle the Error or bad inputs. Error handling is very easy for lightning tags.
  12. What is the Difference between Lightning tags and Force tags?
    • The main difference between the Lightning tags and force tags is force tags works as apex:inputField tags work on the VF page. For example, if we are using forceInputField for the picklist field then it will show the input in picklist format with the respected values. It also supports the lookup/master input fields
  13. How can we navigate from one component to another component?
    • Yes. With the help of lightning:navigate tag and then use the page reference in JS Controller.
  14. In case of Parent to Child Component why we should use Component event instead of Application Event?
    • Because of the security issue as Application Event can be handled by any component so sensitive data be compromised

Happy reading and All the Best  🙂

I will keep updating the questions and answers.

 

Advertisements

8 thoughts on “Salesforce Lightning Interview Questions & Answers

  1. Jitendra December 18, 2018 / 5:51 am

    Awesome! well explained… Thank You

    Like

  2. technicalinterviewquestions January 25, 2018 / 12:04 pm

    Hi Amit Singh,

    Interesting..! Really these questions are very useful for those who are preparing for Salesforce Interview. Good work.. keep it up…

    Here I am leaving a link of number of Interview questions which may help for Salesforce Developers to perform well at Interview: Salesforce Interview Questions

    Like

    • Amit Singh January 27, 2018 / 8:31 am

      Thank you and happy it helps you 🙂

      Enjoy Learning 😉

      Like

  3. Johnd174 January 5, 2018 / 10:47 pm

    As I web site possessor I believe the content material here is rattling great , appreciate it for your hard work. You should keep it up forever! Good Luck. kfecedekdfce

    Like

    • Amit Singh December 28, 2017 / 3:04 pm

      Glad to hear that it helps you.

      Please share it with your friends.

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s