Questions On Apex
Questions On Apex
8. What are the best practices for writing test classes in Apex?
10. Explain the difference between Database.QueryLocator and List in batch Apex.
Visualforce & Lightning Components
14. What are the key differences between Visualforce and Lightning Components?
15. How do you use Lightning Data Service (LDS) in a Lightning Component?
18. What is the Aura framework, and how does it relate to Lightning?
22. How do you use SOQL to retrieve data from multiple objects?
23. What are relationship queries in SOQL, and how do they work?
24. Explain how you can avoid hitting SOQL limits in your code.
25. How can you use SOSL to search across multiple objects?
26. What are the considerations for using aggregate queries in SOQL?
33. What is the difference between a lookup relationship and a master-detail relationship?
35. What is a junction object, and when would you use one?
38. What are External IDs, and how are they used in Salesforce?
42. What are the different deployment tools available for Salesforce?
44. What are the advantages of using Salesforce DX for development and deployment?
55. Explain how you use the HttpRequest and HttpResponse classes in Apex.
56. What is the difference between a REST API and a SOAP API?
66. What is the purpose of the with sharing and without sharing keywords in Apex?
68. What are the best practices for securing Visualforce pages?
78. What are the key differences between Autolaunched and Screen Flows?
80. Explain how you can trigger a flow from a custom button.
Testing & Debugging
82. What are some strategies for achieving high code coverage?
83. How do you use the Salesforce Developer Console for debugging?
84. Explain the purpose of Test Setup and Test Teardown in Apex test classes.
91. What are some best practices for writing Apex code?
94. What are the best practices for creating custom objects and fields?
96. What are some key considerations for designing a Salesforce data model?
99. What are some best practices for managing profiles and permission sets?