This page was exported from Exams Labs Braindumps [ http://blog.examslabs.com ] Export date:Sun Oct 6 18:18:12 2024 / +0000 GMT ___________________________________________________ Title: [Oct 04, 2023] New Real PDII Exam Dumps Questions [Q96-Q117] --------------------------------------------------- [Oct 04, 2023] New Real PDII Exam Dumps Questions Pass Your PDII Exam Easily with Accurate Salesforce Certified Platform Developer II (PDII) PDF Questions Salesforce Certified Platform Developer II (PDII) is a highly valued certification that validates the skills and knowledge of experienced Salesforce developers. Salesforce Certified Platform Developer II (PDII) certification is designed for professionals who have already earned the Salesforce Certified Platform Developer I credential and are looking to further advance their careers in this field. The PDII exam tests the developers' expertise in developing advanced customizations using Apex and Visualforce, as well as their ability to design and deploy complex business logic and security models.   Q96. Consider the following code snippet:A developer needs to built an interactive Aura component that responds to the user’s input by hiding or showing sections according the user preferences.What are two best practices the developer can implement to hide or show the powerVserView and s-rar.daraVserView inner components, based on the value of the attribute isPowexUser?Choose 2 answersA)B)C)D)  Option A  Option B  Option C  Option D Q97. Just prior to a new deployment, the Salesforce Administrator who configured a new order fulfillment process in a developer sandbox suddenly left the company. The users had fully tested all of the changes in the sandbox and signed off on them.Unfortunately, although a Change Set was started, it was not complete. A developer is brought in to help finish the deployment.What should the developer do to identify the configuration changes that need to be moved into production?  Leverage the Setup Audit Trail to review the changes made by the departed Administrator and identify which changes should be added to the Change Set.  Use the Metadata API and a supported development IDE to push all of the configuration from the sandbox into production to ensure no changes are lost.  Set up Continuous Integration and a Git repository to automatically merge all changes from the sandbox metadata with the production metadata.  In Salesforce setup, look at the last modified date for every object to determine which should be added to the Change Set. Q98. What is the output of the following code snippet? 1 Contact con = new Contact( LastName = ‘JOHNSON’, LeadSource = ‘Web’) 2 3 Savepoint sp = Database.setSavepoint(); 4 insert con; 5 Database.rollback(sp); 6 7 con.LeadSource = ‘Email’ 8 insert con;  A runtime error will be thrown on line 5.  The contact record will be inserted with Leadsource value Web.  A runtime error will be thrown on line 8.  The contact record will be inserted with Leadsource value Email. Q99. An Apex test method is testing a Visualforce page’s controller, which queries for all Opportunities in Salesforce with StageName = ‘Closed’. There are 10,000 existing records that match the criteria. What is the best practice for accessing data in the test method?  Create test data in the test method and use seeAllData=true.  Query existing data in the test method and use seeAllData=true.  Create test data in the test method and use seeAllData=false.  Use @testVisible on the relevant property of the controller Q100. A company has a Lightning Page with many Lightning Components, some that cache reference data. It is reported that the page does not always show the most current reference data.What can a developer use to analyze and diagnose the problem in the Lightning Page?  Salesforce Lightning Inspector Actions Tab  Salesforce Lightning Inspector Event Log Tab  Salesforce Lightning Inspector Transactions Tab  Salesforce Lightning Inspector Storage Tab Q101. Given the following code, what value will be output in the logs by line #8?  5  3  4  2 Q102. What level can a hierarchy custom setting be defined for? (Choose three.)  Users  Groups  Profiles  Roles  Organization Q103. messages are rendering on the page. Which component should be added to the Visualforce page to display the message?         Q104. Consider the following code snippet:Which two steps should the developer take to add flexibility to change the endpolnt and credentials without needing to modify code?Choose 2 answers  Create a Named Credential, endPoint_NC, to store the endpoint and credentials.  Store the URL of the endpoint in a custom Label named endPointURL.  Use req.setEndpoint(,callcut:endPoint_NC,); within the callout request.  Use req.setEndpoint(Label.endPointURL);. Q105. A company has a custom object, Sales Demo Request, that has a lookup to an Opportunity. It is required that a Sales Demo Request record be created when an Opportunity’s Probability is greater than 50%. What is the optimal way to automate this?  Build a Flow on Opportunity.  Create a Workflow on Opportunity.  Use an Apex Trigger on Opportunity.  Build a Process on Opportunity Q106. A developer has requirement to query three fields (id, name, Type) from an Account and first and last names for all Contacts associated with the Account.Which option is the preferred optimized method to achieve this for the Account named ‘Ozene Electronics’?  Account a = (SELECT ID, Name, Type from Account where name= Ozone Electronics;) list 1contacts = (SELECT firstname, lastname from Contacts where accountid=: a -ID0;  Account a = (SELECT ID, Name, Type, (select contat,firstName, Contact,LastName from Account, Contacts) from Account where name; Ozone Electronic’ Limit 1 );  List 1Accounts = (Select ID, Name, Type from Account Join (Select ID, firstname, lastname form Contact where contact account , name ‘ozone electronics));  List 1Contacts = new list ( ); for(Contact c ; 1Select firstname, lastname Account, Name Account,ID Account, Type from Contact where Account: Name=’ electronics’)) ( iContacts.add(c);) Q107. A 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 Q108. A developer wants to create a Visualforce page that allows a user to search for a given account by Name.If the account is found, the account details should be populated on screen. If no account is found, an error message should be displayed to the user.How can this be accomplished? (Choose two.)  Use the (apex: information) tag to display the error message  Use the ApexPages.addMessage() method to add the error message  Use the <apex:pageMessages> tag to display the error message  Use the account.addError() method to add the error message Q109. Choose the correct definition for <apex:actionStatus>  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 Q110. A company has a custom component that allows users to search for records of a certain object type by invoking an Apex Controller that returns a list of results based on the user’s input, when the search Is completed, a searchComplete event is fired, with the results put in a results attribute of the event. The component is designed to be used within other components and may appear on a single page more than once.What is the optimal code that should be added to fire the event when the search has completed?         Q111. The Contact object has a custom field called “Zone.” Its data type is “Text” and field length is 3.What is the outcome after executing the following code snippet in the org?List<Contact> contactsToBeInserted=new List<Contact>(); ContactcontactInstance= new Contact(LastName=’Smith’, Department=’Tech’,Zone_c=’IAD’); contactsToBeInserted.add(contactInstance); contactInstance= new Contact(LastName=’Sm1th’, Department=’Tech’, Zone_c=’PITT’); contactsToBeInserted.add(contactInstance); Database.insert (contactsToBeInserted,true);  Both inserts succeed and the contact record that has the Zone value of ‘PI’I’I’ is set to NULL  A partial insert succeeds and the contact record that has the Zone value ‘IAD’ is inserted  Both inserts succeed and the contact record that has the Zone value of ‘PITT’ is truncated  An unhandled DML exception is thrown and no contact records are inserted Q112. How can Apex class functionality be exposed for invocation from a Lightning process? Choose 2 answers  Expose the class as a custom REST API.  Use the @InvocableMethod annotation.  Extend the ProcessInvocable base class.  Implement the Process.Plugin interface. Q113. Universal Containers stores user preferences in a Hierarchy Custom Setting, User_prefs_c, with a Checkbox field, show_Help_c, Company-Level defaults are stored at the organizational level, but may be overridden at the user level, If a user has not overridden preferences, then the defaults should be used.How should the Show_Help_c preference be retrieved for the current user?  Boolean show = User_Prefs_c, getinstance( ), Show_Help _c;  Boolean show = User_Prefs_c, getValues ( ). Show _Help_c;  Boolean show = User_Prefs_c, getvaluesUserInfo.getUserid() ).Show_Help_c;  Boolean show = User prefs_c, Show_Help_c; Q114. Which three approaches should a developer Implement to obtain the best performance for data retrieval when building a Lightning web component?Choose 3 answers  Use lazy load for occasionally accessed data.  Use layoutTypes : [‘Full’] to display a set of fields.  Use the Lightning Data Service.  Use getRecordUi to obtain metadata.  Use (cacheable-true) whenever possible. Q115. The REST API…  Is based on REST principles and is optimized for loading or deleting large sets of data. You can use it to query, queryAll, insert, update, upsert, or delete many records asynchronously by submitting batches  Provides a powerful, convenient, and simple REST-based web services interface for interacting with Salesforce. Its advantages include ease of integration and development, and it’s an excellent choice of technology for use with mobile applications and web projects  Is used to to create, retrieve, update or delete records, such as accounts, leads, and custom objects, and allows you to allows you to maintain passwords, perform searches, and much more  Is used to to retrieve, deploy, create, update, or delete customizations for your org. The most common use is to migrate changes from a sandbox or testing org to your production environment Q116. A developer writes the following Apex trigger so that when a Case is closed, a single Survey record is created for that Case. The issue is that multiple Survey_c records are being created per Case.What could be the cause of this issue?  A user is creating the record as Closed  A workflow rule is firing with a Create Task action  A workflow rule is firing with a Field Update action  A user is editing the record multiple times Q117. What 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  Loading … Salesforce PDII certification is highly valued in the industry and is recognized by employers as a mark of excellence in Salesforce development. Salesforce Certified Platform Developer II (PDII) certification provides a competitive edge to developers looking to advance their careers in the Salesforce ecosystem. Certified developers are highly sought after by businesses looking to build or maintain custom applications on the Salesforce platform.   Updated PDII Exam Practice Test Questions: https://www.examslabs.com/Salesforce/Salesforce-Developers/best-PDII-exam-dumps.html --------------------------------------------------- Images: https://blog.examslabs.com/wp-content/plugins/watu/loading.gif https://blog.examslabs.com/wp-content/plugins/watu/loading.gif --------------------------------------------------- --------------------------------------------------- Post date: 2023-10-04 09:44:24 Post date GMT: 2023-10-04 09:44:24 Post modified date: 2023-10-04 09:44:24 Post modified date GMT: 2023-10-04 09:44:24