PDI Exam Question 266

Which action can a developer take to reduce the execution time of the following code? List<account> allaccounts = [select id from account]; list<account> allcontacts = [select id, accountid from contact]; for (account a :allaccounts){ for (contact c:allcontacts){ if(c.accountid = a.id){ //do work } } }
  • PDI Exam Question 267

    A developer needs to have records with specific field values in order to test a new Apex class. What should the developer do to ensure the data is available to the test?
  • PDI Exam Question 268

    Which resource can be included in a Lightning Component bundle? Choose 2 answers
  • PDI Exam Question 269

    A developer wants to use all of the functionality provided by the standard controller for an object, but needs to override the Save standard action in a controller extension. Which two are required in the controller extension class?
  • PDI Exam Question 270

    Which component is available to deploy using Metadata API? Choose 2 answers