This page was exported from Exam for engine [ http://blog.test4engine.com ] Export date:Mon Nov 18 5:59:20 2024 / +0000 GMT ___________________________________________________ Title: Latest PDII exam dumps with real Salesforce questions and answers [Q62-Q78] --------------------------------------------------- Latest PDII exam dumps with real Salesforce questions and answers PDII Exam in First Attempt Guaranteed Salesforce PDII (Salesforce Certified Platform Developer II) certification exam is designed for professionals who have advanced knowledge of Salesforce development. This certification validates the expertise of developers in building custom applications on the Salesforce platform. With this certification, developers can demonstrate their skills and knowledge of advanced development techniques, such as Apex programming language, Visualforce, and Lightning Component Framework.   NEW QUESTION 62What 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 NEW QUESTION 63Choose the correct definition for <apex:actionFunction>.  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 codeB 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 NEW QUESTION 64A company uses a custom-built enterprise resource planning (ERP) system to handle order management.The company wants Sales Reps to know the status of orders so that if a customer calls to ask about their shipment, the Sales Rep can advise the customer about the order’s status and tracking number if it is already shipped.Which two methods can make this ERP order data visible in Salesforce? (Choose two.)  Ensure real-time order data is in Salesforce using the Streaming API  Use Salesforce Connect to view real-time Order data in the ERP system  Write a cron job in Salesforce to poll the ERP system for order updates  Have the ERP system push the data into Salesforce using the SOAP API NEW QUESTION 65Refer to the code below:When the code runs, it results In a System Limit Exception with the error message: Apex heap size too large.What should be done to fix this error’  Use a SOQL for loop to process the data.  Convert the Lis: into a 5tc.  Use Limits.getLimitHeapSize().  Use a try/catch block to catch the error. NEW QUESTION 66Consider the following code snippet:Choose 2 answers  import getOrders from ,@salesforce/apex/OrderController.getAvailableOrders’;  import ( LightningElement-apt ) from ‘lwc*.-  import getOrders from @salesforc/apex/c.OrderController.getAvailablOrd#re’;  import { LightningElement, wire ) from ‘lwc’; NEW QUESTION 67The Account edit button must be overridden in an org where a subset of users still use Salesforce Classic. The org already has a Lightning Component that will do the work necessary for the override, and the client wants to be able to reuse it,How should a developer implement this?  Override the edit button for both Lightning and Classic with a Lightning Component.  Override the edit button for Lightning with a Lightning Page; and for Classic, override the edit button with a Visualforce pag That contains the Lightning Component.  Override the edit button for Lightning with a Lightning Component; and for Classic, override the edit button with a Visualforce page that contains the Lightning Component.  the edit button for both Lightning and Classic with a new Visualforce page. NEW QUESTION 68A developer wrote an Apex method that makes an HTTP callout to an external system to get specialized data when a button is clicked from a custom Lightning web component on the Account record page.Recently, users have complained that it takes longer than desired for the data to appear on the page after clicking the button.What should the developer use to troubleshoot this issue?  Lightning Inspector  Devdoper Console  Salesforce CU  Event Logs NEW QUESTION 69Universal Containers has an Apex trigger on Account that creates an Account Plan record when an Account is marked as a Customer. Recently a workflow rule was added so that whenever an Account is marked as a Customer, a ‘Customer Since’ date field is updated with today’s date.Since the addition of the workflow rule, two Account Plan records are created whenever the Account is marked as a Customer.What might cause this to happen?  The workflow rule is configured to evaluate when a record is created and every time it is edited.  The workflow rule field update is marked as ‘Re-evaluate Workflow Rules After Field Change.”  The Apex trigger does not use a static variable to ensure it only fires once.  The Apex trigger is not bulk safe and calls insert inside of a for loop. NEW QUESTION 70A developer writes a lightning web component that displays a dropdown list of all custom objects in the org from which a user will select Apex method prepares and returns data to the component.What should the developer do to determine which objects to include m the response?  Check the isCustom ( ) value on the sObject describe result.  Use the getCustomObject ( ) method from the Schema class.  Import the list of all custom objects from @salesforce/schema.  Check the getObjectType () value for Custom’ or ‘Standard’ on the sObject describe result. NEW QUESTION 71Refer to re code segment above.When following best practices for writing Apex taggers, which two lots are wrong or cause for concern?Choose 2 answers  Line 6  Line 11  Line 16  Line 20 NEW QUESTION 72Which two queries are selective SOQL queries and can be used for a large data set of 200,000 Account records? Choose 2 answers  SELECT id FROM ACCOUNT WHERE Name = !: ‘ ‘  SELECT id FROM ACCOUNT WHERE Name = Null  SELECT id FROM ACCOUNT WHERE Name = Null AND Customer_Number_c= ‘ValueA’  SELECT id FROM ACCOUNT WHERE id IN (list of Account Ids) NEW QUESTION 73A Visualforce page loads slowly due to the large amount of data it displays.Which strategy can a developer use to improve the performance?  Use Javascript to move data processing to the browser instead of the controller.  Use the transient keywords for the List variables used in the custom controller.  Use lazy loading to load the data on demand, instead of the controller’s constructor.  Use an <apex:actionPoller> in the page to load all of the data asynchronously. NEW QUESTION 74A developer is creating a page in App Builder that will be used in the Salesforce mobile app.Which two practices should the developer follow to ensure the page operates with optimal performance?Choose 2 answers  Limit five visible components on the page.  Limit 25 fields on the record detail page.  Limit the number of Tabs and Accordion components.  Analyze the page with Performance Analysis for App Builder. NEW QUESTION 75A developer has created a Team Member sObject that has a Master-Detail relationship to a Project sObject and a Lookup relationship to the User sObject. The developer must ensure that a User listed on a Team Member record has Read-Write access to the parent Project record.How can the developer accomplish this if the Project sObject has a Private sharing model and thousands of Project records?  Create a Controller that uses the Without Sharing keyword  Create a Criteria-Based Sharing Rule on the Project sObject  Create a Team Member Trigger that inserts Project_Share records  Create a Project Sharing Rule that shares to the Team Member Group NEW QUESTION 76Business rules require a Contact to always be created when a new Account is created. What can be used when developing a custom screen to ensure an Account is not created if the creation of the Contact fails?  use the Database.Delete method if the Contact insertion fails.  Disable validation rules on Contacts and set default values with a Trigger.  use the Database.Insert method with allOrNone set to False.  use setSavePoint() and rollback() with a try/catch block. NEW QUESTION 77An org has a requirement that an Account must always have one and only one Contact listed as Primary. So selecting one Contact will de-select any others. The client wants a checkbox on the Contact called ‘Is Primary’ to control this feature. The client also wants to ensure that the last name of every Contact is stored entirely in uppercase characters.What is the optimal way to implement these requirements?  Write an after update trigger on Contact for the Is Primary logic and a separate before update trigger on Contact for the last name logic.  Write a Validation Rule on the Contact for the Is Primary logic and a before update trigger on Contact for the last name logic.  Write an after update trigger on Account for the Is Primary logic and a before update trigger on Contact for the last name logic.  Write a single trigger on Contact for both after update and before update and callout to helper classes to handle each set of logic. Explanation/Reference:NEW QUESTION 78What is a consideration when testing batch Apex? (Choose two.)  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 (SeeAIIData=true) annotation  Test methods must run the batch between TeststartTestQ and Test.stopTestQ  Loading … The Salesforce PDII exam covers a wide range of topics, including Apex programming, data management, user interface design, testing and debugging, and integration with external systems. Candidates should be familiar with advanced Apex features such as dynamic Apex, asynchronous Apex, and Apex sharing and visibility. They should also have a solid understanding of Salesforce data modeling and schema design, as well as experience building custom Lightning components and Visualforce pages. Earning the PDII certification is not only a validation of an individual's technical skills and expertise but also an indication of their commitment to continuous learning and professional development. As a result, PDII certified developers are highly sought after by organizations that require advanced-level Salesforce developers to design and implement complex business solutions. Additionally, PDII certified developers are eligible for higher-paying job opportunities and are recognized as experts in the Salesforce development community.   Exam Sure Pass Salesforce Certification with PDII exam questions: https://www.test4engine.com/PDII_exam-latest-braindumps.html --------------------------------------------------- Images: https://blog.test4engine.com/wp-content/plugins/watu/loading.gif https://blog.test4engine.com/wp-content/plugins/watu/loading.gif --------------------------------------------------- --------------------------------------------------- Post date: 2023-06-09 16:13:40 Post date GMT: 2023-06-09 16:13:40 Post modified date: 2023-06-09 16:13:40 Post modified date GMT: 2023-06-09 16:13:40