100% Pass Your PDII Exam Dumps at First Attempt with PremiumVCEDump
Penetration testers simulate PDII exam PDF
NEW QUESTION 10
A developer needs test data for Apex test classes.
What can the developer use to provide test data to the test methods? (Choose two.)
- A. myDataFactory.createTestRecords (10)
- B. List<sObject> Is = Test.loadData (Lead.sObjectType, 'myTestLeads');
- C. List<sObject> Is = Test.loadDat (Lead.sObjectType, $Resource + 'myTestLeads');
- D. Database.createTestRecords (10)
Answer: A,B
NEW QUESTION 11
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?
- A. Queueable
- B. Process Builder
- C. @future
- D. workflow
Answer: B
NEW QUESTION 12
<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?
- A.

- B.

- C.

- D.

Answer: C
NEW QUESTION 13
When should you use the "transient" property on variables?
- A. Static variables that you want transmitted as part of the view state to save space
- B. Large variables in order to save space
- C. Variables that you want transmitted as part of the view state. Static variables also don't get transmitted
- D. Variables that you don't want transmitted as part of the view state. Static variables also don't get transmitted
Answer: D
NEW QUESTION 14
A customer requires that when the billing address field on an Account gets updated, the address field on all its related contact records should reflect the same update.
How can this requirement be met with minimal customizations?
- A. Create a scheduled batch job that updates all contact address fields based on the related account record.
- B. Create an After Trigger on Account to upd|ate its related contact records on update
- C. Create a Lightning Process on Account to update related child Contact records
- D. Create a Workflow Rule on Account to update related child Contact records
Answer: C
NEW QUESTION 15
A 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?
- A. Create formula fields to compute pivoted forecast calculations.
- B. Use JavaScript Remoting instead of controller actions.
- C. Specify the list of sales forecasts as transient.
- D. Segregate calculation functionality from input functionality.
- E. Implement pagination and reduce records per page.
Answer: A,B,E
NEW QUESTION 16
A company exposes a REST web service and wants to establish two-way SSL between Salesforce and the REST web service. A certificate signed by an appropriate certificate authority has been provided to the developer.
What modification is necessary on the Salesforce side? (Choose two.)
- A. Update the code to use HttpRequest.setClientCertificateName()
- B. Create an entry for the certificate in Certificate and Key Management
- C. Update the code to use HttpRequest.setHeaderQ to set an Authorization header.
- D. Configure two-factor authentication with the provided certificate
Answer: A,B
NEW QUESTION 17
Refer 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
- A. Line 6
- B. Line 20
- C. Line 11
- D. Line 16
Answer: A,B
NEW QUESTION 18
A developer needs test data for Apex test classes.
What can the developer use to provide test data to the test methods? (Choose two.)
- A. myDataFactory.createTestRecords (10)
- B. List<sObject> Is = Test.loadData (Lead.sObjectType, 'myTestLeads');
- C. List<sObject> Is = Test.loadDat (Lead.sObjectType, $Resource + 'myTestLeads');
- D. Database.createTestRecords (10)
Answer: A,B
Explanation:
Explanation/Reference:
NEW QUESTION 19
What is a valid request for the following REST method? (Choose two.)
@HttpPost global static void myPostMethod(String si, Integer il, Boolean bl, String 52)
- A. il" : 123, "SI" : "my first string", "S2" : "my second string", "bl" : false
- B. <request> <sl>"my first string"</sl> <il>123</il> <sZ>!,my second string"</32> <bl>false</bl>
</request> - C. si" : "my first string", 11" : "123", "bl" : "false", "S2" : "my second string"
- D. <request> <sl>my first string</sl> <ll>123</il> <32>my second string</32> <bl>false</bl> </request>
Answer: A,B
NEW QUESTION 20
An Apex Trigger creates a Contract record every time an Opportunity record is marked as Closed and Won.
This trigger is working great, except (due to a recent acquisition) historical Opportunity records need to be loaded into the Salesforce instance. When a test batch of records are loaded, the Apex Trigger creates Contract records. A developer is tasked with preventing Contract records from being created when mass loading the Opportunities, but the daily users still need to have the Contract records created. What is the most extendable way to update the Apex Trigger to accomplish this?
- A. add the Profile Id of the user who does the data loading to the Trigger so the Trigger won't fire for this user.
- B. Add a Validation Rule to the Contract to prevent Contract creation by the user who does the data loading.
- C. Use a List Custom Setting to disable the Trigger for the user who does the data loading.
- D. Use a Hierarchy Custom Setting to disable the Trigger for the user who does the data loading.
Answer: D
NEW QUESTION 21
A developer migrated functionality from JavaScript demoting to a Lightning web component and wants to use the existing getOpportunities() method to provide data.
Which modification to the method is necessary?
- A. The method must return a JSON Object.
- B. The method must return a String of a serialized JSON Array.
- C. The method must be decorated with (cacheable=true).
- D. A The method must be decorated with @AuraEnabled.
Answer: D
NEW QUESTION 22
A developer has created a solution using the SOAP API for authenticating Communities users.
What is needed when issuing the login() Call? (Choose two.)
- A. Session Id
- B. Security Token
- C. Username and Password
- D. Organization Id
Answer: C,D
NEW QUESTION 23
A developer must create a way for external partners to submit millions of leads into Salesforce per day.
How should the developer meet this requirement?
- A. Create a web service on Heroku that uses Heroku Connect
- B. Publicly expose a Visualforce page via Force.com Sites
- C. Publicly expose an Apex Web Service via Force.com Sites
- D. Host a Web-to-Lead form on the company website
Answer: A
NEW QUESTION 24
A developer has been asked to create code that will meet the following requirements:
Receives input of: Map<ld, Project_c), List<Account>
Performs a potentially long-running callout to an outside web service
Provides a way to confirm that the process executed successfully
Which asynchronous feature should be used?
- A. Database.AllowCallouts interface
- B. @future (callout=true)
- C. Schedulable interface
- D. Queueable interface
Answer: D
NEW QUESTION 25
The head of recruiting at Universal Containers wants to provide all internal users the ability to search for open positions by role, department, and location via a new recruiting app, In addition to search, users of the app should be able to refer a fried, apply for a position, and review the status of their current submissions. The app should be made available in Salesforce Mobile, but offline access is not required.
Given these requirements, what is the recommended approach to developer the app?
- A. Lightning Experience Builder
- B. Visualforce
- C. Salesforce SDK
- D. Lightning Web Components
Answer: C
NEW QUESTION 26
An 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?
- A. 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.
- B. write an after update trigger on Account for the Is Primary logic and a before update trigger on Contact for the last name logic.
- C. write a Validation Rule on the Contact for the Is Primary logic and a before update trigger on Contact for the last name logic.
- D. write a single trigger on Contact for both after update and before update and callout to helper classes to handle each set of logic.
Answer: D
NEW QUESTION 27
<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?



- A. Option D
- B. Option C
- C. Option A
- D. Option B
Answer: B
NEW QUESTION 28
A developer must create a way for external partners to submit millions of leads into Salesforce per day. How should the developer meet this requirement?
- A. Publicly expose an Apex Web Service via Force.com Sites.
- B. Publicly expose a Visualforce page via Force.com Sites.
- C. Create a web service on Heroku that uses Heroku Connect.
- D. Host a Web-to-Lead form on the company website.
Answer: C
NEW QUESTION 29
A developer wants to integrate invoice and invoice line data into Salesforce from a custom billing system. The developer decides to make realtime callouts from the billing system using the SOAP API. Unfortunately, the developer is getting a lot of errors when inserting the invoice line data because the invoice header record doesn't exist yet.
What will help ensure ne transactional Integrity of the integration?
- A. Develop a custom Apex web service to handle a custom JSON data structure with both invoice header and related invoice lines.
- B. Use an ETL tool and the Bulk API running nightly, thus ensuring all of the data is handled at the same time.
- C. Set the AIIOrNoneHeader to true when calling each of create() for invoice headers and create() for invoice lines.
- D. Create the invoice header and the related invoice lines in the same create() call leveraging External Ids.
Answer: D
NEW QUESTION 30
A developer needs to create a Lightning page for entering Order Information. An error message should be displayed if the zip code entered as part of the Order's shipping address is not numeric. What is a recommended way for the error message be displayed to the end user?
- A. Use the apex:message tag to display errors.
- B. Use the aura:component tag to display errors.
- C. Use the ui:outputText tag to display errors.
- D. Use the ui:inputDefaultError tag to display errors
Answer: D
NEW QUESTION 31
......
All PDII Dumps and Training Courses: https://www.premiumvcedump.com/Salesforce/valid-PDII-premium-vce-exam-dumps.html
Help candidates to study and pass the Salesforce Certified Platform Developer II (PDII) Exams hassle-free: https://drive.google.com/open?id=17fKXe68f1JrnTtfR-O0MyMYd_-Imd8N6