PDI Exam Question 246

A developer is creating a test coverage for a class and needs to insert records to validate functionality. Which method annotation should be used to create records for every method in the test class?
  • PDI Exam Question 247

    A developer needs to create records for the object Property__c. The developer creates the following code block:List propertiesToCreate = helperClass.createProperties();try { // line 3 } catch (Exception exp ) {
    //exception
    handling }Which line of code would the developer insert at line 3 to ensure that at least some records are created, even if a few records have errors and fail to be created?
  • PDI Exam Question 248

    Refer to the following code that runs in an Execute Anonymous block:
  • PDI Exam Question 249

    A developer can use the debug log to see which three types of information? Choose 3 answers
  • PDI Exam Question 250

    A developer has to Identify a method in an Apex class that performs resource intensive actions in memory by iterating over the result set of a SOQL statement on the account. The method also performs a DML statement to save the changes to the database. Which two techniques should the developer implement as a best practice to esure transaction control and avoid exceeding governor limits? Choose 2 answers