Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

1. What is dynamic Apex?

Dynamic Apex allows users to execute Dynamic queries using Dynamic SOQL and SOSL
and also helps in the creation of sObjects dynamically. Dynamic Apex enables developers
to: Access object information and fields metadata.
2. What are the different events for an Apex Trigger?
3. What’s the difference between queueable Apex, batch Apex and schedulable
Apex?
4. How can we allow Apex to be called by Lightning components?
5. How can an external system integrate into Salesforce?
6. How can we secure credentials used for outbound integrations?
7. Why would we use Lightning Web Components over Aura components and
vice versa?
8. How can we enforce Sharing Rules within our Apex code?
9. What are Custom Metadata Types and why would we use them?
10. What are the types of Salesforce licenses available? What are their limits?
11. What is the junction object in Salesforce Triggers and what is its purpose?
12. What are decorators? List some built-in decorators provided by LWC.
13. What is a Wrapper Class?
14. Why do we need to write test classes? How to identify if a class is a test
class?
15. What is an external ID in Salesforce? Which all field data types can be used
as external IDs?
16. BEST PRACTICE TO FOLLOW WHILE WRITING TRIGGER
17. LWC Lifecycle hook
18. BEST PRACTICE TO FOLLOW WHILE WRITING Test Classes in Apex
19. What is custom setting.
20. How to deactivate trigger.
21. Inherited sharing
22. What is exceptions. Name 5 exceptions
23. What are system events
24. What is batch class
25. Why Queueable batch we are using if we have batch apex?
26. Can we call Queueable from another Queueable?
27. Differences between Future and Queueable Apex:
28. Order of Execution
29. Calling child from Parent in LWC:
30. Difference between insert and database.insert:
31. Can we Convert Master to Lookup
32. Use of Roll Up Summary
33. Can we Convert lookup to master
34. Have you worked on sales/ service cloud
35. What is a promise method in LWC
36. Why Promises are so much important for Lwc? & What are the
common use cases?
(https://learnfrenzy.com/blog/lwc-scenario-based-interview-questio
ns
)
37. Difference Between sales and service cloud
38. What is SLDS and the use of the Salesforce Lightning Design System?
39. How can we navigate user from LWC component to record detail page?
->NavigationMixin service
40. What is meant by VisualForce
41. Suppose you have written a LWC which has the @wire decorator to get the
data from apex. But you are unable to get the data from the server. You
checked your apex code but could not figure out the issue. What could be one
of the reason?
Solution:- check whether you have used cacheable=true along with @AuraEnabled
annotation in the apex method.
42. Is wire method called multiple times during lifecycle of component ?
Solution: Every time the @api record gets updated the wire method gets
called again. So yes it might be called several times.

43. explanation about Custom and standard Controllers in VisualForce


44. Can we call a batch class from a batch class ? If yes, how ? (Yes in finish
method)
45. Can we call batch apex into another batch in execute method?
Solution: System.AsyncException: Database.executeBatch cannot be called
from a batch start, batch execute, or future method.
46. When do you need to go beyond a standard controller and code custom
Apex?

47. Different types of Integration patterns available in Salesforce


(https://www.apexhours.com/salesforce-integration-interview-questions/
)

48. 1. **Question:** How many types of flows are available within Salesforce, and
what are their use cases?

49. **Question:** In the context of Process Builder, if you wish to call an Apex
method, what steps and considerations are involved in achieving this?

50. **Question:** Suppose you have a class with multiple methods, and you only
want specific methods to be invokable. How can you restrict the invocability of
certain methods?

51. **Question:** What is the role of summary fields in Salesforce, and how do
they contribute to data reporting and analysis?

52. **Question:** If you need to establish a roll-up summary on a lookup


relationship in Salesforce, what approach would you take to accomplish this?

53. **Question:** If you have a class with a specific method that should only be
called from a trigger and not from other contexts, how can you enforce this
behavior in Salesforce?

54. **Question:** What are null pointer exceptions in Salesforce, and how can
they be prevented or handled?
55. **Question:** Can you explain the concept of future methods in Salesforce,
and what considerations should be made when using them?

56. **Question:** In future methods, is it possible to pass any parameters, and if


so, how is it accomplished?

Trigger questions:-

1. Creates the number of contacts which are equal to the number which we will enter in
the Count__c field on the Account Object.
2. Create a trigger when an account BillingCity is updated, update all its contacts
MailingCity with account BillingCity
3. prevents user to delete contact which is associated with the any account. When user
tries to delete associated contact ,User will be presented with the error "Contact
associated with account cannot be deleted"
4. send email notification after new student record created into the system.
Trigger makes use of handler class to send an email notification. Trigger collects
newly created student records and send them to the handler class to process
further for the email notification.
5. When we create the Account record, the Account Owner will be automatically added
to the Sales Rep field. When we update the Account owner of the record, then also
the Sales Rep will be automatically updated.
6. Write a Trigger on contact to Get the highest and the lowest salary of the contact
in its account.
7. if industry is banking amount is 1000 else 500 before insert on account

LWC Hands on: (Write Apex helper class, html, js,js meta)

1. On Home Page show Account Name and Phone no. in table form where
Account Industry=’Finance’
2.

You might also like