PDII Exam Question 71

A company has reference data stored in multiple custom metadata records that represent default information and delete behavior for certain geographic regions. When a contact is inserted, the default information should be set on the contact. Additionally, if a user attempts to delete a contact that belongs to a flagged region, the user must get an error message. Depending on company personnel resources, what are two ways to automate this?16
  • PDII Exam Question 72

    Part of a custom Lightning component displays the total number of Opportunities in the org, which are in the millions. The Lightning component uses an Apex method 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?
  • PDII Exam Question 73

    What are three reasons that a developer should write Jest tests for Lightning web components?
  • PDII Exam Question 74

    Given the following code:
    Java
    for ( Contact c : [SELECT Id, LastName FROM Contact WHERE CreatedDate = TODAY] )
    {
    Account a = [SELECT Id, Name FROM Account WHERE CreatedDate = TODAY LIMIT 5]; c.AccountId = a.Id; update c;
    }
    Assuming there were 10 Contacts and five Accounts created today, what is the expected result?