Free Certified Platform Developer II Exam Braindumps (page: 15)

Page 15 of 90

Universal Containers uses Big Objects to store almost a billion customer transactions called Customer_Transaction b.

These are the fields on Customer_Transaction b:

Account c
Program c
Points_Earned c
Location c
Transaction_Date c

The following fields have been identified as Index Fields for the Customer_Transaction b object: Account c, Program c, and Transaction_Date c.

Which SOQL query is valid on the Customer_Transaction b Big Object?

  1. SELECT Account__c, Program__c, Transaction_Date__c FROM Customer_Transaction__b
    WHERE Account__c = '001R000000302D3'
    AND Program__c ='Shoppers'
    AND Transaction_Date__c=2019-05-31T00:00Z
  2. SELECT Account__c, Program__c, Transaction_Date__c
    FROM Customer_Transaction__b WHERE Account__c = '001R000000302D3'
    AND Program__c LIKE 'Shop%'
    AND Transaction_Date__c=2019-05-31T00:00Z
  3. SELECT Account__c, Program__c, Transaction_Date__c FROM Customer_Transaction__b
    WHERE Account__c = '001R000000302D3'
    AND Program__c INCLUDES ('Shoppers', 'Womens')
    AND Transaction_Date__c=2019-05-31T00:00Z
  4. SELECT Account__c, Program__c, Transaction_Date__c FROM Customer_Transaction__b
    WHERE Account__c = '001R000000302D3'
    AND Program__c EXCLUDES ('Shoppers', 'Womens')
    AND Transaction_Date__c=2019-05-31T00:00Z

Answer(s): A



Part of a custom Lightning Component displays the total number of Opportunities in the org, which is in the millions. The Lightning Component uses an Apex Controller to get the data it needs.
What is the optimal way for a developer to get the total number of Opportunities for the Lightning Component?

  1. Apex Batch job that counts the number of Opportunity records
  2. SUM() SOQL aggregate query on the Opportunity object
  3. SOQL for loop that counts the number of Opportunities records
  4. COUNT() SOQL aggregate query on the Opportunity object

Answer(s): D



A company notices that their unit tests in a test class with many methods to create many records for prerequisite reference data are slow.
What can a developer to do address the issue?

  1. Move the prerequisite reference data setup to a TestDataFactory and call that from each test method.
  2. Move the prerequisite reference data setup to a @testSetup method in the test class.
  3. Move the prerequisite reference data setup to a static method in the test class and call that from each test method.
  4. Move the prerequisite reference data setup to the constructor for the test class.

Answer(s): B



A developer is asked to build a solution that will automatically send an email to the Customer when an Opportunity stage changes. The solution must scale to allow for 10,000 emails per day. The criteria to send the email should be evaluated after all Workflow Rules have fired.
What is the optimal way to accomplish this?

  1. Use a MassEmailMessage() with an Apex Trigger.
  2. Use a Workflow Email Alert.
  3. Use an Email Alert with Process Builder.
  4. Use a SingleEmailMessage() with an Apex Trigger.

Answer(s): C



Page 15 of 90



Post your Comments and Discuss Salesforce Certified Platform Developer II exam with other Community members:

Jenil Gandhi commented on November 14, 2024
Hi everyone could sone share the certification voucher for PD2.
INDIA
upvote

Aniq commented on December 02, 2023
Hi every one Could some share the certification voucher for PD2
Anonymous
upvote

Rasheed commented on June 07, 2023
Worth the price. I got 50% off when I selected 2 exams.
PAKISTAN
upvote

Lisha commented on September 21, 2022
Thank you!
Anonymous
upvote