This page was exported from Exams Labs Braindumps [ http://blog.examslabs.com ] Export date:Sat Nov 23 12:26:29 2024 / +0000 GMT ___________________________________________________ Title: Go to PDII Questions - Try PDII dumps pdf [Q44-Q64] --------------------------------------------------- Go to PDII Questions - Try PDII dumps pdf Dumps Practice Exam Questions Study Guide for the PDII Exam Q44. A Salesforce developer created a Contact validation rule so that the Email field cannot contain “abc.com.” There is an active workflow rule that updates the Email field of a contact record to “test@abc.com” if the contact’s First Name field contains the word “Test.” A customer tries to create a Contact record with the first name “Test Contact” and the email “test@test.com.” What behavior will be observed?  The customer will receive a system error message.  The contact record will be created with the email address “test@abc.com.”  The customer will receive a validation error message.  The contact record will be created with the email address test@test.com. Q45. 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 Q46. Universal Containers wants to use an external Web Service provided by a third-party vendor to validate that shipping and billing addresses are correct. The current vendor uses basic password authentication, but Universal Containers might switch to a different vendor who uses OAuth. What would allow Universal Containers to switch vendors without updating the code to handle authentication?  Custom Setting (List)  Custom Metadata  Named Credential  Dynamic Endpoint Q47. A lead developer for a Salesforce organization needs to develop a page-centric application that allows the user to interact with multiple objects related to a Contact The application needs to implement a third-party JavaScript framework such as Angular, and must be made available in both Classic and Lightning Experience.Given these requirements, what is the recommended solution to develop the application?  Aura Components  Lightning Web Components  Visualforce  Lightning Experience Builder Q48. An Apex trigger and Apex class increment a counter, Edit_Count_c, any time that the Case is changed.A new process on the case object was just created in production for when a Case is created or updated< since the process was created, they are reports that the Count is being incremented by more than one on Case edit.Which change in the Apex code will fix the problem?A)B)C)D)  Option A  Option B  Option C  Option D Q49. Within the System.Limit class, what would you call to get the number of calls made in your transaction?  Get[typeOfLimit] –> (Ex. getDMLStatements())  GetLimit[typeOfLimit] –> (Ex. getLimitDMLStatements()) Q50. A Lightning Component has a section that displays some information about an Account and it works well on the desktop, but users have to scroll horizontally to see the Description field output on their mobile devices and tablets.Which option has the changes to make the component responsive for mobile and tablet devices?         Q51. There is an Apex controller and a Visualforce page in an org that displays records with a custom filter consisting of a combination of picklist values selected by the user.The page takes too long to display results for some of the input combinations, while for other input choices it throws the exception, *Maximum view state size limit exceeded.What step should the developer take to resolve this issue?  Split the layout to filter records in one Visualforce page and display the list of records in a second page using the same Apex Controller.  Adjust any code that filters by picklist values since they are not indexed.  Use a StandardSetController or SOQL LIMIT in the Apex controller to limit the number of records displayed at a time.  Remove instances of the transient keyword from the Apex controller to avoid the view state error. Q52. A developer needs test data for Apex test classes.What can the developer use to provide test data to the test methods? (Choose two.)  List<sObject> Is = Test.loadData (Lead.sObjectType, ‘myTestLeads’);  myDataFactory.createTestRecords (10)  Database.createTestRecords (10)  List<sObject> Is = Test.loadDat (Lead.sObjectType, $Resource + ‘myTestLeads’); Q53. After a Platform Event is defined in a Salesforce org, events can be published via which two mechanisms? Choose 2 answers  internal Apps can use Outbound Messages  Internal Apps can use Process Builder.  External Apps require a custom Apex web service.  External Apps can use the standard Streaming API. Q54. Line 1 public class AttributeTypes Line 2 { Line 3 private final String[] arrayItems; Line 4 Line 5 @AuraEnabled Line 6 public List<String> getStringArray() { Line 7 Strings+ arrayItems = new String*+, ‘red’, ‘green’, ‘blue’ -; Line 8 return arrayItems; Line 9 } Line 10 } Consider the Apex controller above that is called from a Lightning Aura Component. What is wrong with it?  Line 1: class must be global  Lines 1 and 6: class and method must be global  Line 6: method must be static  Line 8: method must first serialize the list to JSON before returning Q55. A 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. Q56. A company needs to automatically delete sensitive information after 7 years. This could delete almost a million records every day.How can this be achieved?  Schedule an @future process to Query records older than 7 years, and then recursively invoke itself in 1,000 record batches to delete them.  Perform a SOSL statement to find records older than 7 years, and then delete the entire result set.  Use aggregate functions to query for records older than 7 years, and then delete the AggregateResult objects.  Schedule a batch Apex process to run every day that Queries and deletes records older than 7 years. Q57. A developer has created a Visualforce page for inputting data and needs to display errors at the field level.What tag should the developer use?  < apex:messages>  < apex:pageMessages>  < apex:message>  < apex:pageMessage> Q58. Consider the controller code above that is called from a Lightning component and returns data wrapped in a class.Consider the controller code above that is called from a Lightning component and returns data wrapped in a class.The developer verified that the Queries return a single record each and there is error handing in the Lightning component, but the component is not getting anything back when calling the controller getSomeData().What is wrong?  The member’s Name and Option of the class MyDataWrapper should be annotated with @AuraEnabled also.  The member’s Name and Option should not be declared public.  The member’s Name and Option should not have getter and setter.  Instances of Apex classes such as MyDataWrapper cannot be returned to a Lightning component. Q59. A company has a custom object. Request__c. that has a field, Completed__c. and a Lookup to Opportunity, Opportunity__c.Which SOQL query will get a unique list of all of the Opportunity records that have a Completed Request?         Q60. What 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 ExplanationExplanation/Reference:“Scope” parameter in “executeBatch” can be set up to 2,000 recordsQ61. When calling a RESTful web service, the developer must implement two-way SSL authentication to enhance security. The Salesforce admin has generated a self-sign certificate within Salesforce with a unique name of “ERPSecCertificate”.Consider the following code snippet:Which method must the developer implement in order to sign the HTTP request with the certificate?  req.setHeader(‘certificate’, ‘ERPSecCertificate’);  req.setSecure(‘ERPSecCertificare)’;  req.setClientCertificateName(‘ERPSecCertificate’);  req.setSecureCertificate( ‘ERPSecCertificate’); Q62. What Visualforce tag can be used to display custom messages in pages using the Salesforce UI styling for errors, warnings, and other types of messages?  < apex: customMessage>  < apex:error>  < apex:message>  < apex:pageMessage> Q63. A developer is building a Lightning web component to get data from an Apex method called getData that takes a parameter, name. The data should be retrieved when the user clicks the Load Data button.Exhibit.What must be added to get the data?  Add @wire(getData, (name: $name’)} to the account field and this, account = getData ( ) ; to t loadData ( ) function.  Add this, account = getData (this,name); to the loadData ( ) function.  Add getData ({ name; this,name}) , then (result=> { this.account = result}) to the LeadData ( ) function.  Add @wire(getData, {name: $name’}) to the account field and delete loadData ( ) because it is not needed. Q64. What is a valid request for the following REST method? (Choose two.)@HttpPost global static void myPostMethod(String sl, Integer il, Boolean bl, String 52)  <request> <sl>my first string</sl> <11>123</il> <32>my second string</32>  <b1>false</bl> </request><request> <sl>”my first string”</sl> <il>123</il> <sZ>”my second string”</32>  <bl>false</bl> </request>sl” : “my first string”, 11″ : “123”, “b1” : “false”, “S2” : “my second  string”il” : 123, “S1” : “my first string”, “S2” : “my second string”, “bl” : false  Loading … Free Salesforce Developers PDII Exam Question: 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: 2022-11-06 15:29:35 Post date GMT: 2022-11-06 15:29:35 Post modified date: 2022-11-06 15:29:35 Post modified date GMT: 2022-11-06 15:29:35