aiotestking uk

Platform-Developer-II Exam Questions - Online Test


Platform-Developer-II Premium VCE File

Learn More 100% Pass Guarantee - Dumps Verified - Instant Download
150 Lectures, 20 Hours

Actualtests offers free demo for Platform-Developer-II exam. "Platform Developer II", also known as Platform-Developer-II exam, is a Salesforce Certification. This set of posts, Passing the Salesforce Platform-Developer-II exam, will help you answer those questions. The Platform-Developer-II Questions & Answers covers all the knowledge points of the real exam. 100% real Salesforce Platform-Developer-II exams and revised by experts!

Online Platform-Developer-II free questions and answers of New Version:

NEW QUESTION 1

A company uses Salesforce to sell products to customers. They also have an external product information management (PIM) system that is the system of record for products.
A developer received these requirements:
• Whenever a product is created or updated in the PIM, a product must be created or updated as a Product2 record in Salesforce and a PricebookEntry record must be created or updated automatically by Salesforce.
• The PricebookEntry should be created In a Pricebook2 that is specified In a custom setting. What should the developer use to satisfy these requirements?

  • A. Apex REST
  • B. Event Monitoring
  • C. Invocable Action
  • D. SObJect Tree

Answer: A

NEW QUESTION 2

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. workflow
  • B. @future
  • C. Queueable
  • D. Process Builder

Answer: D

NEW QUESTION 3

Platform-Developer-II dumps exhibit
The test method above tests an Apex trigger that the developer knows will make a lot of queries when a lot of Account are simultaneously updated to be customer.
The test method fails at the Line 20 because of too many SOQL queries What is the correct way to fix this?
Platform-Developer-II dumps exhibit
The test method above tests an Apex trigger that the developer knows will make a lot of queries when a lot of Accounts are simultaneously updated to be customers.
The test method fails at the Line 20 because of too many SOQL queries. What is the correct way to fix this?

  • A. Add TesLstartTest() before and Test.stop Test() after both Line 7 of the code and Line 20 of the code.
  • B. Change the DataFactory class to create fewer Accounts so that the number of queries in the trigger is reduced.
  • C. Add TeststartTest() before Line 18 of the code and add Test.stopTest() after line 18 of the code.
  • D. Replace most of the Apex Trigger with Process Builder processes to reduce the number of queries in the trigger.

Answer: C

NEW QUESTION 4

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?
Platform-Developer-II dumps exhibit

  • A. Both inserts succeed and the contact record that has the Zone value of 'PI'IT is set to NULL
  • B. A partial insert succeeds and the contact record that has the Zone value 'IAD1 is inserted
  • C. Both inserts succeed and the contact record that has the Zone value of PITT is truncated
  • D. An unhandled DML exception is thrown and no contact records are inserted

Answer: D

NEW QUESTION 5

A company wants to create a dynamic survey that navigates users through a different series of questions based on their previous responses.
What is the recommended solution to meet this requirement?

  • A. Dynamic Record Choice
  • B. Lightning Process Builder
  • C. Visualforce and Apex
  • D. Custom Lightning Application

Answer: A

NEW QUESTION 6

Universal Containers (UC) has enabled the translation workbench and has translated picklist values. UC has a custom multi-select picklist field, Products____z, on the Account object that allows sales reps to specify which of UC's products an Account already has. A developer is tasked with writing an Apex method that retrieves Account records, Including product_c field.
What should the developer do to ensure the value of Products c is in the current user's language?

  • A. Set the locale on each record in the SOQL result list.
  • B. Use the locale clause in the SOQL query.
  • C. Use toLabel1 Products_c in the fields list of the SOQL query.
  • D. Call the translate ( ) method on each record in the SOQL result list.

Answer: C

NEW QUESTION 7

A company notices that their unit tests in a test class with many methods to create many records for prerequisite reference data are slow. What can a developer to do address the issue?

  • A. Move the prerequisite reference data setup to a TestDataFactory and call that from each test method.
  • B. Move the prerequisite reference data setup to the constructor for the test class.
  • C. Move the prerequisite reference data setup to a static method in the test class and call that from each test method.
  • D. Move the prerequisite reference data setup to a @testSetup method in the test class.

Answer: A

NEW QUESTION 8

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?

  • A. Salesforce Lightning Inspector Storage Tab
  • B. Salesforce Lightning Inspector Actions Tab
  • C. Salesforce Lightning Inspector Event Log Tab
  • D. Salesforce Lightning Inspector Transactions Tab

Answer: A

NEW QUESTION 9

If you have a method "doStuff(List<sObject> records)", which is a valid call?

  • A. doStuff([Select Id From Account]);
  • B. doStuff(List<Account> records);
  • C. doStuff(Account acct);
  • D. doStuff(sObject obj);

Answer: A

NEW QUESTION 10

What are three benefits of using static resources in Visualforce and Lightning Components? Choose 3 answers

  • A. Static resource files can be packaged into a collection of related files in a zip or jar archive.
  • B. Static resource files do not count against an organization's quota of data storage.
  • C. Static resource files are automatically minified.
  • D. Relative paths can be used in files in static resource archives to refer to other content within the archive.
  • E. Static resource files can be referenced by using the $Resource global variable instead of hardcoded IDs.

Answer: ADE

NEW QUESTION 11

How should a developer verify that a specific Account record is being tested in a test class for a visualforce controller?

  • A. Insert the Account in the test class, instantiate the page reference in the test class, then use System.currentPageReference().getParameters{}.put() to set the Account ID.
  • B. Instantiate the page reference in the test class, insert the Account in the test class, then use seeAHData-true to view the Account.
  • C. Insert the Account into Salesforce, instantiate the page reference in the test class, then use System.setParentRecordId().get() to set the Account ID.
  • D. Instantiate the page reference in the test class, insert the Account in the test class, then use System.setParentRecordld().get() to set the Account ID.

Answer: A

NEW QUESTION 12

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 uhoutputText tag to display errors
  • D. Use the uhinputDefaultError tag to display errors

Answer: D

NEW QUESTION 13

What is the best practice to initialize a Visualforce page in a test class?

  • A. Use Test.setCurrentpage,MyTestPage;
  • B. Use Test.currentpage, getParameter, put (MyTestPage);
  • C. Use Test, setCurrentPage(Page.MyTestPage);
  • D. Use controller,currentPage, setPage (MyTestPage

Answer: C

NEW QUESTION 14

As part of a custom development, a developer creates a Lightning Component to show how a particular opportunity progresses over time. The component must display the date stamp when any of the following fields change:
• Amount Probability, Stage, or Close Date
What is the most efficient way to Query such information?

  • A. [Select Amount, CloseDate, StageName, Probability FROM OpportunityHistory WHERE Opportunityld= :oppId];
  • B. [Select Newvalue, Oldvalue From OpportunityField_History Where Oppportunity = oppid AND Field IN
  • C. [Select NewValue, Oldvalue FROM Opportunity FieldHistory WHERE Opportunityld = :oppId AND Field IN
  • D. ('StageName', Probability',Amount /CloseDate')];
  • E. [Select Amount CloseDat
  • F. StageName, Probability FROM Opportunity_History WHERE Opportunityld - :oppId];

Answer: C

NEW QUESTION 15

A developer has created a Visualforce page that uses a third-party JavaScript framework. The developer has decided to supply data to the JavaScript functions using JavaScript Remoting for Apex Controllers.
What is the correct syntax to declare a remote method in Apex? (Choose two.)

  • A. @RemoteAction global static String getTable()
  • B. @RemoteAction global String getTable()
  • C. @RemoteAction public static String getTable()
  • D. @RemoteObject global static String getTableQ

Answer: AC

NEW QUESTION 16

A developer has written an After Update trigger on Account. A workflow rule and field update cause the trigger to repeatedly update the Account records.
How should the developer handle the recursive trigger?

  • A. Deactivate the trigger and move the logic into a Process or Flow
  • B. Deactivate the workflow rule to prevent the field update from executing
  • C. Use a static variable to prevent the trigger from executing more than once
  • D. Use a global variable to prevent the trigger from executing more than once

Answer: C

NEW QUESTION 17
......

P.S. DumpSolutions.com now are offering 100% pass ensure Platform-Developer-II dumps! All Platform-Developer-II exam questions have been updated with correct answers: https://www.dumpsolutions.com/Platform-Developer-II-dumps/ (196 New Questions)