Free PDI – Platform Developer I (PDI) Practice Test Question

Free demo downloads

Loading demo links...

Showing 13–15 of 15 questions

Question 13

developer created this Apex trigger that calls MyClass .myStaticMethod:

trigger myTrigger on Contact(before insert) ( MyClass.myStaticMethod(trigger.new, trigger.oldMap); }

The developer creates a test class with a test method that calls MyClass.mystaticMethod, resulting in 81% overall code coverage. What happens when the developer tries to deploy the trigger and two classes to production, assuming no other code exist?

Select an option, then click Submit answer.

  • ○

    The deployment fails because the Apex trigger has no code coverage.

  • ○

    The deployment fails because no assertions were made in the test method.

  • ○

    The deployment passes because the Apex code has required (>75%) code coverage.

  • ○

    The deployment passes because both classes and the trigger were included in the deployment.


Question 14

Since Aura application events follow the traditional publish-subscribe model, which method is used to fire an event?

Select an option, then click Submit answer.

  • ○

    ernit()

  • ○

    fireEvent()

  • ○

    fire()

  • ○

    registerEvent()


Question 15

AW Computing tracks order information in custom objects called order__c and order_Line_ c - Currently, all shipping information is stored in the order__c object.

The company wants to expand Its order application to support split shipments so that any number of order_Line__c records on a single order__c can be shipped to different locations.

What should a developer add to fulfill this requirement?

Select an option, then click Submit answer.

  • ○

    Order_shipment_Group_c object and master-detail field on order_Line_c

  • ○

    Order_shipment_Group_c object and master-detail field on order_c

  • ○

    Order_shipment_Group_c object and master-detail field to order_c and Order Line_c

  • ○

    Order_shipment_Group_c object and master-detail field on order_shipment_Group_c