Salesforce Developer Interview Questions

1. Difference between queueable and batch apex? 

Batchable Apex:

  • If it is a long-running complex process then you should go for Batchable Apex and you can have an option to schedule the batch to run at a customized time.
  • It can process up to 50 million records in asynchronous mode.
  • 5 concurrent jobs are allowed to run at a time and future methods are not allowed in the Batch class.
  • Batch Class should implement Database. Batchable interface and it should have three methods start(), execute() and finish() methods.

Queueable Apex:

  • It comes in handy when you need to have both the operations of Batch and future method and it should implement Queueable Interface.
  • If one job is dependent on another job means here we can chain the dependent job in execute method by system.enqueuejob(new secondJob());
  • You can also able to chain up to 50 jobs and in the developer edition, you can able to chain up to 5 jobs only.
  • It will accept non-primitive types like sObjects and it also runs in asynchronous mode.
  • In this Queueable apex, you can get Job Id to monitor the job progress.

2. Security model scenario-based questions

3.What is named credential?
    https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_callouts_named_credentials.htm

4.what is custom settings?
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_customsettings.htm
https://www.janbasktraining.com/blog/custom-setting-salesforce/

5. what is custom metadat?
https://www.mstsolutions.com/technical/custom-metadata-type/
https://www.sfdcpoint.com/salesforce/custom-metadata-types-salesforce/
https://www.blogger.com/blog/post/edit/5106903894331131522/1615048442208027499
https://www.salesforceben.com/custom-metadata-types/

6.decorators in lwc
https://www.sfdcpoint.com/salesforce/decorators-in-lightning-web-component/
https://jayakrishnasfdc.wordpress.com/2020/12/06/track-decorator-in-lightning-web-component-lwc/
https://www.sfdc-lightning.com/2020/01/decorators-in-lightning-web-components.html

7. lwc lifecycle hook?
https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_lifecycle_hooks

8. LDS in LWC?
https://www.emizentech.com/blog/lightning-data-service-in-lwc.html
https://sfdctechie.wordpress.com/2019/12/21/understanding-lds-in-lightning-web-components/
http://www.sfdcpanda.com/reusable-lightning-data-service-detail-page-in-lwc/
http://sfdccodepractices.blogspot.com/2019/06/lightning-data-service.html
https://newstechnologystuff.com/2019/02/02/lightning-web-components-datatable-with-lds-and-apex/

9. Apex test class best practices.
https://www.apexhours.com/apex-test-class-best-practices/

10. Apex best practices
https://mohan-chinnappan-n.github.io/sfdc/bp-apex.html#/31
http://bestirtech.com/blog/2020/06/7-salesforce-com-apex-coding-best-practices/
https://developer.salesforce.com/wiki/apex_code_best_practices


Comments

Popular posts from this blog