PDI Platform Developer I (PDI)

Loading demo links...

Showing 10–12 of 15 questions

Question 10

Application Events follow the traditional publish-subscribe model. Which method is used to fire an event?

Select an option, then click Submit answer.

  • Fire()

  • Emit()

  • RegisterEvent()

  • FireEvent()


Question 11

A company has a custom object, Sales, }_Help_Request__c, that has a Lookup relationship to Opportunity. The Seles Help Request__c has a mumber field, Number_ct_Hours__c, that represents the amount of time spent on the Sales_Help Request__C.

A developer is tasked with creating a field, total_Hour2__c, on Opportunity that should be the sum of all of the Number_of_Hours_c values for the Sales_Help_Request__c records related to that Opportunity.

What should the developer use to implement this?

Select an option, then click Submit answer.

  • A roll-up summary field on the sales Help_Request__c object

  • A trigger on the Opportunity object

  • A roll-up summary field on the Opportunity object

  • A record-triggered flow on the Sales Help Request__c object

Question 12

Given the following Apex statement:

Account myAccount = [SELECT Id, Name FROM Account];

What occurs when more than one Account is returned by the SOQL query?

Select an option, then click Submit answer.

  • The variable, myAccount, is automatically cast to the List data type.

  • The first Account returned is assigned to myAccount.

  • The query fails and an error is written to the debug log.

  • An unhandled exception is thrown and the code terminates.