PwC Salesforce Interview questions

PwC Salesforce Developer Interview Questions

We’ve put together a mixed set of the latest Salesforce Developer interview questions asked at PwC, based on insights from YouTube, LinkedIn courses, and real-life interview experiences.
  1. IMP: Write a trigger to count the number of contacts associated with account. Here in this question interviewer specifically asked to find using aggregate query. Next question he asked : Other then aggregate query what are the different approaches to find find no of contacts associated with the account?
  2. I have 4 batches, write a code which will together give total no. of records executed and total failed records in all 4 batches.
  3. IMP: We have two objects Account and Subscriber, on Subscriber there is checkbox as Recent Subscriber, the Subscriber which got added recently should have true value and other Subscriber should have value as false. Also when Subscriber this Subscriber get deleted then other recent one should be checked as Recent Subscriber.
  4. Write the syntax for query selector all in lwc.
  5. Write an LWC to show Active & In-Active Contacts records. Tip: Do not use table just use loop and print. Like first all active and in another loop print all In-Active.
  6. Trigger to count no of opportunity line items associated with opportunity and show that count on Account custom object.
  7. Write trigger on Order product, it should display most number of sold product on the account. Suppose the most sold product is ‘Keyboard’ and on most_sold_item picklist on account should have value ‘Keyboard’.
  8. Trigger to prevent user from deleting Account if any opportunity record is associated with it.
  9. LWC: Child to parent and parent to child data communication write demo code.
  10. Write LWC component – Show two buttons select all and deselect, on click of select all records from table should selected, and on deselect all should get deselected. Use html table or datatable.
  1. What is the mass-mailing feature in salesforce.
  2. Explain  lookup and master-detail relationships.
  3. As our apex class have without sharing by default then why need to add it explicitly?
  4. Lead conversion process.
  5. Explain security model.
  6. What are connected apps?
  7. How organization level security helps?
  8. How you can make sure that your integration is not leaking the data?
  9. User is not able to see the record what could be the reason? If question is not clear to you then ask cross questions.
  10. Share button is not Visible on page layout what could be the reason?
  11. What is manual sharing?
  12. Difference between work flow and process builder?
  13. Explain LWC Life Cycle.
  14. What is difference between LMS and Pub-Sub model?
  15. What is DOM.
  16. In which stage of LWC DOM is get updates?
  17. What is the key different between after event and before event in trigger.
  18. What is seeAllData=true?
  19. What is apex transaction and how rollback works in salesforce.
  20. Screen flow, Why we use Subflow?
  21. What is experience cloud?
  22. What is partner community?
  23. What is customer community?
  24. What is Sharing sets in experience cloud?
  25. How to create the public sites? What access we need to give in order to make public site?
  26. What is the refresh token?
  27. Difference between oauth 1.0 and oauth 2.0 in salesforce.
  28. Difference between remote site settings and named credentials in salesforce
  29. What is platform events and where do we use it?
  30. Difference between future method and queueable apex?
  31. Why is it not possible to pass a list of objects to a future method? What’s the reason behind this restriction?

Leave a Reply