0% found this document useful (0 votes)
29 views10 pages

Questions On Apex

Uploaded by

dhanyagbhat100
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views10 pages

Questions On Apex

Uploaded by

dhanyagbhat100
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Apex Programming

1. What are the different types of Apex triggers?

2. How can you prevent recursion in Apex triggers?

3. Explain the difference between before and after triggers.

4. What are Governor Limits in Salesforce?

5. How do you handle bulk data operations in Apex?

6. What is the difference between Database.insert and insert?

7. How do you manage exceptions in Apex?

8. What are the best practices for writing test classes in Apex?

9. How can you make an Apex class singleton?

10. Explain the difference between Database.QueryLocator and List in batch Apex.
Visualforce & Lightning Components

11. What is Visualforce, and how does it work in Salesforce?

12. How do you create a custom controller in Visualforce?

13. Explain the role of Standard Controllers in Visualforce.

14. What are the key differences between Visualforce and Lightning Components?

15. How do you use Lightning Data Service (LDS) in a Lightning Component?

16. What are the different types of Lightning Components?

17. How do you pass data between components in Lightning?

18. What is the Aura framework, and how does it relate to Lightning?

19. How do you optimize the performance of Lightning Components?

20. Explain the concept of Lightning Web Components (LWC).


SOQL and SOSL

21. What is the difference between SOQL and SOSL?

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?

27. How do you write a subquery in SOQL?

28. Explain the use of WITH and GROUP BY clauses in SOQL.

29. How do you perform a semi-join or anti-join in SOQL?

30. What is the purpose of ALL ROWS in a SOQL query?


Salesforce Data Model

31. What are the different types of relationships in Salesforce?

32. How do you create a master-detail relationship?

33. What is the difference between a lookup relationship and a master-detail relationship?

34. How do you handle orphaned records in a master-detail relationship?

35. What is a junction object, and when would you use one?

36. How do you manage field history tracking in Salesforce?

37. Explain the different types of roll-up summary fields.

38. What are External IDs, and how are they used in Salesforce?

39. How do you use schema builder in Salesforce?

40. How do you manage large data volumes in Salesforce?


Deployment & DevOps

41. How do you manage deployments in Salesforce?

42. What are the different deployment tools available for Salesforce?

43. Explain how you use Change Sets in Salesforce.

44. What are the advantages of using Salesforce DX for development and deployment?

45. How do you manage version control in a Salesforce project?

46. What is the role of the Metadata API in Salesforce deployment?

47. Explain how CI/CD can be implemented in Salesforce.

48. What are Unlocked Packages in Salesforce?

49. How do you manage environments in a Salesforce development lifecycle?

50. What are some best practices for deploying to production?


Integration & API

51. What are the different types of APIs available in Salesforce?

52. How do you create a REST API in Salesforce?

53. What is the purpose of the Salesforce Connect?

54. How do you integrate Salesforce with an external system?

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?

57. How do you handle authentication in Salesforce APIs?

58. What is an External Object, and how is it used in Salesforce?

59. Explain the concept of Named Credentials in Salesforce.

60. How do you manage API limits in Salesforce?


Security & Permissions

61. How do you handle data security in Salesforce?

62. What is the difference between Profiles and Permission Sets?

63. How do you implement field-level security in Salesforce?

64. Explain how sharing rules work in Salesforce.

65. How do you use Role Hierarchies in Salesforce?

66. What is the purpose of the with sharing and without sharing keywords in Apex?

67. How do you secure API access in Salesforce?

68. What are the best practices for securing Visualforce pages?

69. How do you manage encryption in Salesforce?

70. What is the purpose of Shield Platform Encryption?


Salesforce Flow & Process Automation

71. What are the different types of automation tools in Salesforce?

72. How do you create a flow in Salesforce?

73. What is the difference between Process Builder and Flow?

74. How do you manage bulk updates in Process Builder?

75. Explain the use of Approval Processes in Salesforce.

76. What are the limitations of Workflow Rules in Salesforce?

77. How do you debug a flow in Salesforce?

78. What are the key differences between Autolaunched and Screen Flows?

79. How do you use scheduled actions in Process Builder?

80. Explain how you can trigger a flow from a custom button.
Testing & Debugging

81. How do you write effective test classes in Apex?

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.

85. How do you handle asynchronous calls in Apex tests?

86. What are some common causes of test failures in Salesforce?

87. How do you use the @isTest annotation in Apex?

88. How do you debug issues in a Lightning Component?

89. What are the best practices for logging in Salesforce?

90. How do you use the Apex Replay Debugger?


Salesforce Best Practices

91. What are some best practices for writing Apex code?

92. How do you manage large datasets in Salesforce?

93. Explain how you would optimize a slow SOQL query.

94. What are the best practices for creating custom objects and fields?

95. How do you manage technical debt in a Salesforce project?

96. What are some key considerations for designing a Salesforce data model?

97. How do you handle bulk data operations in Salesforce?

98. Explain the importance of using custom labels in a Salesforce project.

99. What are some best practices for managing profiles and permission sets?

100. How do you ensure maintainability and scalability in a Salesforce application?

You might also like