This page was exported from Exams Labs Braindumps [ http://blog.examslabs.com ] Export date:Wed Dec 4 9:08:46 2024 / +0000 GMT ___________________________________________________ Title: Read Online PDII Test Practice Test Questions Exam Dumps [Q165-Q183] --------------------------------------------------- Read Online PDII Test Practice Test Questions Exam Dumps Easily To Pass New PDII Premium Exam Updated [Jan 06, 2023] Salesforce PDII Exam Syllabus Topics: TopicDetailsTopic 1Select scenarios where code reuse is applicable and how the reuse should be implemented Describe the Apex features available for error handling and maintaining transactional integrityTopic 2Given a set of requirements, choose the appropriate integration technique Given a scenario, formulate the deployment process, supporting tools, and mechanismsTopic 3Identify inefficiencies and demonstrate the ability to resolve them identify the considerations of interactions between multiple processesTopic 4Identify the appropriate dynamic Apex feature to use in the solution Given a scenario, propose and justify the optimal programmatic or declarative solutionTopic 5Demonstrate knowledge of the best practices for writing Apex triggers Identify the keywords used in a SOQL query and explain where they're used in a query's structureTopic 6Compare and contrast the usage of Visualforce and Apex controllers Describe the use cases for and benefits of external IDsTopic 7Describe the messaging techniques and best practices when displaying errors in user interfaces Differentiate DML statements and types of database eventsTopic 8Apex code or trigger that is not performing as expected Identify use cases for different types of custom metadata and custom settingsTopic 9Apply techniques and tools for testing Visualforce controllers and controller extensions Outline the benefits of adopting a low-code approach in SalesforceTopic 10Identify how an Apex method can be made available for use by Lightning Web Components Determine if a declarative or custom-coded solution should be implementedTopic 11Analyze a set of requirements and determine the benefits of using asynchronous or batch Apex coding Demonstrate knowledge of the localization features and capabilities and how they affect coding What is the duration of the PDII Exam Number of Questions: 60Length of Examination: 120 minutesFormat: Multiple choices, multiple answersPassing Score: 68% How to study the PDII Exam There are two main types of resources for preparation of certification exams first there are the study guides and the books that are detailed and suitable for building knowledge from ground up then there are video tutorial and lectures that can somehow ease the pain of through study and are comparatively less boring for some candidates yet these demand time and concentration from the learner. Smart Candidates who want to build a solid foundation in all exam topics and related technologies usually combine video lectures with study guides to reap the benefits of both but there is one crucial preparation tool as often overlooked by most candidates the practice exams. Practice exams are built to make students comfortable with the real exam environment. Statistics have shown that most students fail not due to that preparation but due to exam anxiety the fear of the unknown. ExamsLabs expert team recommends you to prepare some notes on these topics along with it don't forget to practice Salesforce PDII exam dumps which been written by our expert team, Both these will help you a lot to clear this exam with good marks.   Q165. A developer needs to implement a system audit feature that allows users, assigned to a custom profile named “Auditors”, to perform searches against the historical records in the Account object. The developer must ensure the search is able to return history records that are between 12 and 24 months old.Given the code below, which select statement should be inserted below as a valid way to retrieve the Account History records ranging from 12 to 24 month old?         Q166. A developer wrote a trigger on Opportunity that will update a custom Last Sold Date field on the Opportunity’s Account whenever an Opportunity is closed. In the test class for the trigger, the assertion to validate the Last Sold Date field fails.What might be causing the failed assertion?  The test class is not using System.runAs() to run tests as a Salesforce administrator  The test class has not re-queried the Account record after updating the Opportunity  The test class has not defined an Account owner when inserting the test data  The test class has not implemented seeAllData=true in the test method Q167. The 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. Q168. What is the transaction limit on the number of “sendEmail” method calls?  20  10  50  100  There is no limit Reference:The reserveEmailCapacity methods let you declare how many emails you want to send prior to actuallysending, allowing you to handle limit errors prematurelyQ169. Exhibit:Consider the above trigger intended to assign the Account to the manager of the Account”s region. Which two changes should a developer make in this trigger to adhere to best practices? Choose 2 answers  Use a Map accountMap instead of List accountList.  Use a Map to cache the results of the Region__c query by Id.  Move the Region__c query to outside the loop.  Remove the last line updating accountList as it is not needed. Q170. A developer is writing a Visualforce page that queries accounts in the system and presents a data table with the results. The users want to be able to filter the results based on up to five fields. However, the users want to pick the five fields to use as filter fields when they run the page.Which Apex code feature is required to facilitate this solution’  Streaming API  Dynamic SOQL  Report API  Dynamic variable binding Q171. Recently 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. Q172. What are three benefits of using declarative customizations over code? Choose 3 answers  Declarative customizations generally require less maintenance.  Declarative customizations do not require user testing.  Declarative customizations cannot generate run time errors.  Dectarative customizations will automatically update with each Salesforce release.  Declarative customizations are not subject to governor limits. Q173. Exhibit:What can be done to improve the performance of the insert trigger shown above?         Q174. Which of the following exceptions cannot be caught and will force an error? (Choose three.)  LimitException  AssertException  SObjectExceptions  DMLException  License exceptions  ListException ExplanationExplanation/Reference:SObjectException occurs when accessing a field not queried, or you try to change a field during the wrong dml statement (i.e. an edit-only field being set on insert) Custom exceptions must extend the “Exception” classQ175. A developer wrote a Visualforce page for Sales Reps to add products to an order. The page takes a URL query parameter, productFamily, which filters the product results. The test method for the filter behavior has an assertion failing due to an incorrect number of results. Why could the test be failing? Choose 2 answers  The test does not call Test.startTest()  The test does not create product data.  The test is not run by a System Administrator.  The test does not set the current page reference. Q176. A developer has a Batch Apex process, Batch_Account_Sales, that updates the sales amount for 10,000 Accounts on a nightly basis. The Batch Apex works as designed In the sandbox. However, the developer cannot get code coverage on the Batch Apex class.The test class is below:What is causing the code coverage problem?  The batch process will not recognize new accounts created in the same session  The account creation already sets the sates amount to 0.  The executeBatch must fail within test. startTest ( ) and – test. stopTest().  The batch needs more than one account record created. Q177. 1 Contact con = new Contact( LastName =’Smith’, Department = ‘Admin’)2 insert con;3 Contact insertedContact=[select Name from Contact where id=:con.Id];4 Savepoint sp_admin = Database.setSavepoint();5 con.Department = ‘HR’;6 update con;7 Database.rollback(sp_admin);8 System.debug(Limits.getDmlStatements());Given the following code, what value will be output in the logs by line #8?  5  3  4  2 Q178. A developer needs to send Account records to an external system for backup purposes. The process must take a snapshot of Accounts as they are saved and then make a callout to a RESTful web service. The web service can only receive, at most, one record per call.Which feature should be used to implement these requirements?  @future  Queueable  Process Builder  Workflow Q179. A developer created a new trigger that inserts a Task when a new Lead is created. After deploying to production, an outside integration is periodically reporting errors. Which change should the developer make to ensure the integration is not affected with minimal impact to business logic?  Use the Database method with allOrNone set to False.  use Try/Catch block after the insert statement.  Remove the Apex Class from the Integration User’s Profile.  Deactivate the Trigger before the Integration runs. Q180. <lightning: layout multipleRows=”true”> <lightning: layoutItem size=”12″>{!v.account.Name} </flighting: layoutitem> <lightning:layoutitem 3ize=”12″>{!v. account .AccountNumber} </lighting: layoutitem> <lightning: layoutitem size=”12″>{!v.account. Industry} </lighting: layoutitem> </lightning: layout>Refer to the component code above.The information displays as expected (in three rows) on a mobile device.However, the information is not displaying as desired (in a single row) on a desktop or tablet.Which option has the correct component changes to display correctly on desktops and tablets?         Q181. A developer is writing unit tests for the following method:public static Boolean isFreezing(String celsiusTemp){ if(String.isNotBlank (celsiusTemp) && celsiusTemp.isNumeric()){ return Decimal.valueof(celsiusTemp) <0; } return null; }Which assertion would be used in a negative test case?  System.assertEquals(true, isFreezing(null))  System.assertEquals (true, isFreezing(‘0’)  System.assertEquals(null, isFreezing(‘asdf’))  System.assertEquals(true, isFreezing(‘IOO’)) Q182. Assuming the CreateOneAccount class creates one account and implements the Queuetable interface, which syntax tests the Apex code?A)B)C)D)  Option A  Option B  Option C  Option D Q183. Consider the following code snippet:A developer created the following test class to provide the proper code coverage for the snippet above:However, when the test runs, no data is returned and the assertion fails.However, when the test runs, no data is returned and the assertion fails.Which edit should the developer make to ensure the test class runs successfully?  Enclose the method call within Test. startTest () and Test , stop Test ()  Implement the seeAllData=true attribute in the @isTest annotation.  Implement the without sharing keyword in the searchfeature Apex class.  Implement the setFixedSearchResults method in the test class.  Loading … PDII Certification All-in-One Exam Guide Jan-2023: 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-01-06 12:34:18 Post date GMT: 2023-01-06 12:34:18 Post modified date: 2023-01-06 12:34:18 Post modified date GMT: 2023-01-06 12:34:18