PDII Exam Question 6

Universal Containers is leading a development team that follows the source-driven development approach in Salesforce. As part of their continuous integration and delivery (CI/CD) process, they need to automatically deploy changes to multiple environments, including sandbox and production. Which mechanism or tool would best support their CI/CD pipeline in source-driven development?
  • PDII Exam Question 7

    Refer to the following code snippet:
    Java
    public class LeadController {
    public static List<Lead> getFetchLeadList(String searchTerm, Decimal aRevenue) { String safeTerm = '%'+searchTerm.escapeSingleQuotes()+ '%'; return [ SELECT Name, Company, AnnualRevenue FROM Lead WHERE AnnualRevenue >= :aRevenue AND Company LIKE :safeTerm LIMIT 20
    ];
    }
    }
    A developer created a JavaScript function as part of a Lightning web component (LWC) that surfaces information about Leads by wire calling getFetchLeadList when certain criteria are met. Which three changes should the developer implement in the Apex class above to ensure the LWC can display data efficiently while preserving security?1
  • PDII Exam Question 8

    A company recently deployed a Visualforce page with a custom controller that has a data grid of information about Opportunities in the org. Users report that they receive a "Maximum view state size limit" error message under certain conditions. According to Visualforce best practice, which three actions should the developer take to reduce the view state?
  • PDII Exam Question 9

    The Salesforce admin at Cloud Kicks created a custom object called Region__c to store all postal zip codes in the United States and the Cloud Kicks sales region the zip code belongs to.
    Object Name: Region__c
    Fields: Zip_Code__c (Text), Region_Name__c (Text)
    Cloud Kicks wants a trigger on the Lead to populate the Region based on the Lead's zip code. Which code segment is the most efficient way to fulfill this request?1234
  • PDII Exam Question 10

    Universal Charities (UC) uses Salesforce to collect electronic donations in the form of credit card deductions from individuals and corporations. When a customer service agent enters the credit card information, it must be sent to a 3rd-party payment processor for the donation to be processed. UC uses one payment processor for individuals and a different one for corporations. What should a developer use to store the payment processor settings for the different payment processors, so that their system administrator can modify the settings once they are deployed, if needed?