This page was exported from Free Exams Dumps Materials [ http://exams.dumpsmaterials.com ] Export date:Thu Nov 21 17:07:31 2024 / +0000 GMT ___________________________________________________ Title: [Q84-Q108] Latest PDII Exam with Accurate Salesforce Certified Platform Developer II (PDII) PDF Questions [Feb 21, 2023] --------------------------------------------------- [Feb 21, 2023] Latest PDII Exam with Accurate Salesforce Certified Platform Developer II (PDII) PDF Questions Practice To PDII - DumpsMaterials Remarkable Practice On your Salesforce Certified Platform Developer II (PDII) Exam Certification Path Salesforce Platform Developer I, Superbadge Apex Specialist, Superbadge Data Integration Specialist, Superbadge Aura Components Specialist and Superbadge Advance Apex Specialist Certification can act as a prerequisite for this exam.   QUESTION 84When developing a Visualforce page that will be used by a global organization that does business in many languages and many currencies, which feature should be used? (Choose three.)  Custom Labels  convertCurrency()  Global Labels  Translation Workbenc  getLocalCurrency() QUESTION 85A developer Is tasked with ensuring that email addresses entered into the system for Contacts and for a Custom Object called Survey_Response__c do not belong to a list of blacklisted domains. The list of blacklisted domains will be stored In a custom object for ease of maintenance by users. Note that the Survey_Response__c object is populated via a custom visualforce page.What is the optimal way to implement this?  Implement the logic in an Apex trigger on Contact and also implement the logic within the Custom visualforce page controller.  Implement the logic in the Custom Visualforce page controller and call that method from an Apex trigger on Contact.  Implement the logic in a helper class that is called by an Apex trigger on Contact and from the Custom Visualforce page controller.  Implement the logic in a Validation Rule on the Contact and a validation Rule on the Survey_Response__c object. QUESTION 86What is the transaction limit for the number of records using QueryLocator?  50,000  50,000,000  100,000  5,000,000  There is no limit QUESTION 87Choose the correct definition for <apex:actionFunction>  Allows for controller methods to be called directly from Javascript. Must be encapsulated in tags. Unlike actionSupport, these functions can be called directly from Javascript code  Sends an AJAX request according to the time interval you specify. If this ever gets re-rendered, it resets  Adds AJAX support to another component (e.g. onClick, onMouseUp, onFocus, etc.)  Can be associated with an AJAX request (actionFunction/actionSupport/actionPoller) and shows content conditionally depending on the status of the request (in progress/complete). Use the “id” field to specify name; use “status” field on related components to connect them  Signifies which components should be processed by the server when an AJAX request is generated QUESTION 88A customer has a single Visualforce page that allows each user to input up to 1500 sales forecasts and instantly view pivoted forecast calculations. Users are complaining that the page is loading slowly, and they are seeing error messages regarding heap and view state limits. What are three recommendations to optimize page performance?  Segregate calculation functionality from input functionality.  Specify the list of sales forecasts as transient.  Implement pagination and reduce records per page.  Create formula fields to compute pivoted forecast calculations.  Use JavaScript Remoting instead of controller actions. QUESTION 89Choose the correct definition for <apex:actionSupport>.  Allows for controller methods to be called directly from Javascript. Must be encapsulated in <apex:form> tags. Unlike actionSupport, these function<apex:actionPoller>s can be called directly from Javascript code  Sends an AJAX request according to the time interval you specify. If this ever gets re-rendered, it resets  Adds AJAX support to another component (e.g. onClick, onMouseUp, onFocus, etc.)  Can be associated with an AJAX request (actionFunction/actionSupport/actionPoller) and shows content conditionally depending on the status of the request (in progress/complete). Use the “id” field to specify name; use “status” field on related components to connect them  Signifies which components should be processed by the server when an AJAX request is generated QUESTION 90A company wants to run different logic based on an Opportunity’s record type. Which code segment handles this request and follows best practices?A)B)  Option A  Option B QUESTION 91A developer created a custom component to display an HTML table. The developer wants to be able to use the component on different Visualforce Pages and specify different header text for the table. Which tag should the developer use inside the component?  < apex:variable>  < apex:define>  < apex:param>< meta charset=”utf-8″ />< apex:param>  < apex:attribute> QUESTION 92A developer is creating unit tests for code that makes SOAP web service callouts. The developer needs to insert some test data as a part of the unit tests setup. What are three actions to enable this functionality?  Surround the callout with Test.startTest(), Test.stopTest().  Surround the data insertion with Test.startTest(), Test.stopTest().  Implement the WebServiceMock interface.  Update code to call Test.setMock().  Implement the HttpCalloutMock interface. QUESTION 93Recently a Salesforce org’s integration failed because it exceeded the number of allowed API calls in a 24-hour period. The integration handles a near real-time, complex insertion of data into Salesforce. The flow of data is as follows: * The integration looks up Contact records with a given email address and, if found, the integration adds a Task to the first matching Contact it finds. If a match is not found, the integration looks up Lead records with a given email address and, if found, the integration adds a Task to the first matching Lead it finds. * If a match is not found, the integration will create a Lead and a Task for that newly created Lead. What is one way in which the integration can stay near real-time, but not exceed the number of allowed API calls in a 24-hour period?  Use the REST API as well as the SOAP API to effectively double the API calls allowed in a 24-hour period.  write a custom Apex web service that, given an email address, does all of the logic the integration code was doing.  Create several Apex InboundEmailHandlers to accept calls from the third-party system, thus bypassing the API limits.  Create an Inbound Message that, using Flow, can do all of the logic the integration code was doing. QUESTION 94A large company uses Salesforce across several departments. Each department has its own Salesforce Administrator. It was agreed that each Administrator would have their own sandbox in which to test changes. Recently, users notice that fields that were recently added for one department suddenly disappear without warning. Also, Workflows that once sent emails and created tasks no longer do so. Which two statements are true regarding these issues and resolution? Choose 2 answers  A sandbox should be created to use as a unified testing environment instead of deploying Change Sets directly to production.  Page Layouts should never be deployed via Change Sets, as this causes Workflows and Field-level Security to be reset and fields to disappear.  The administrators are deploying their own Change Sets, thus deleting each other’s fields from the objects in production.  The administrators are deploying their own Change Sets over each other, thus replacing entire Page Layouts and Workflows in Production QUESTION 95A custom Visualforce controller calls the ApexPages.addMessage() method, but no messages are rendering on the page. Which component should be added to the Visualforce page to display the message?A)B)C)D)  Option A  Option B  Option C  Option D QUESTION 96What are three benefits of using static resources in Visualforce and Lightning Components? Choose 3 answers  Static resource files can be packaged into a collection of related files in a zip or jar archive.  Static resource files do not count against an organization’s quota of data storage.  Static resource files are automatically minified.  Relative paths can be used in files in static resource archives to refer to other content within the archive.  Static resource files can be referenced by using the $Resource global variable instead of hardcoded IDs. QUESTION 97Which method should be used to convert a Date to a String in the current user’s locale?  Date.format  Date.parse  String.format  String. valueOf QUESTION 98A corporation has many different Salesforce orgs, with some different objects and some common objects, and wants to build an application that can create, retrieve, and update common object records in all of the different orgs.Which method of integration should the application use?  Apex REST Web Service  SOAP API with the partner WSDL  SOAP API with the Enterprise WSDL  Metadata API QUESTION 99How long is field history retained?  18 Months  12 Months  24 Months  6 Months  36 Months Explanation/Reference:QUESTION 100Which two relationship queries use the proper syntax? (Choose two.)SELECT Id, Name, Account__r.Name FROM Contact WHERE Account__r.Industry  ‘Media’  SELECT Name, (SELECT LastName FROM Contacts__r) FROM Account  SELECT Name, (SELECT LastName FROM Contacts) FROM Account  SELECT Id, Name, Account.Name FROM Contact WHERE Account.Industry = ‘Media’ QUESTION 101Which statement is true about scheduled Apex? Choose 3 answers  The schedule of an Active scheduled Apex class cannot be updated through the Salesforce User Interface.  Scheduled Apex is executed only when system resources are available.  Scheduled Apex only supports asynchronous callouts through the use of @future methods and Apex Batches.  Scheduled Apex classes can only be defined by extending the Schedule base class.  There is no limit on Scheduled Apex jobs because they are executed asynchronously QUESTION 102What should a developer do to invoke a SOAP web service from Apex? Choose 2 answers  Invoke the web service from a trigger.  Generate an Apex class from the WSDL.  Annotate the method With @future (callout=true)  Configure the remote site settings. QUESTION 103What is a consideration when testing batch Apex? Choose 2 answers  Test methods must execute the batch with a scope size of less than 200 records.  Test methods must call the batch execute () method once.  Test methods must use the @isTest (SeeAllData=true) annotation.  Test methods must run the batch between Test. startTest () and Test.stopTest QUESTION 104What is the transaction limit on the number of “sendEmail” method calls?  20  10  50  100  There is no limit QUESTION 105A company processes Orders within their Salesforce instance. When an Order’s status changes to ‘Paid’ it must notify the company’s order management system (OMS). The OMS exposes SOAP web service endpoints to listen for when to retrieve the data from Salesforce.What is the optimal method to implement this?  Generate the Enterprise WSDL and use it to make a callout to the OMS.  Generate the Partner WSDL and use it to make a callout to the OMS.  Create an Outbound Message that contains the session ID and send it to the OMS.  Create an Apex trigger and make a callout to the OMS from the trigger. QUESTION 106An Apex trigger creates an Order__c record every time an Opportunity is won by a Sales Rep. Recently the trigger is creating two orders. What is the optimal method for a developer to troubleshoot this?  Run the Apex Test Classes for the Apex trigger to ensure the code still has sufficient code coverage.  Turn off all Workflow Rules, then turn them on one at time to see which one causes the error.  add system.debug() statements to the code and use the Developer Console logs to trace the code.  Set up debug logging for every Sales Rep, then monitor the logs for errors and exceptions. QUESTION 107What is the top-level namespace that provides the ability to use Chatter in Apex?  RestApi  ChatterApi  FeedApi  ConnectApi QUESTION 108How many Territories can an instance of salesforce have?  100  200  400  500  1000  Loading … Exam Questions and Answers for PDII Study Guide Questions and Answers!: https://www.dumpsmaterials.com/PDII-real-torrent.html --------------------------------------------------- Images: https://exams.dumpsmaterials.com/wp-content/plugins/watu/loading.gif https://exams.dumpsmaterials.com/wp-content/plugins/watu/loading.gif --------------------------------------------------- --------------------------------------------------- Post date: 2023-02-21 13:03:28 Post date GMT: 2023-02-21 13:03:28 Post modified date: 2023-02-21 13:03:28 Post modified date GMT: 2023-02-21 13:03:28