Platform-Developer-II Exam - Platform Developer II

certleader.com

Act now and download your Salesforce Platform-Developer-II test today! Do not waste time for the worthless Salesforce Platform-Developer-II tutorials. Download Renovate Salesforce Platform Developer II exam with real questions and answers and begin to learn Salesforce Platform-Developer-II with a classic professional.

Salesforce Platform-Developer-II Free Dumps Questions Online, Read and Test Now.

NEW QUESTION 1

An org has a custom object, Registeration_c that has a lookup relationship to the Opportunity object.
What should a developer use to create a stand-alone Vlsualforce page that displays the Registration c records related to an Opportunity.

  • A. A standard controller with a controller extension
  • B. A controler extension
  • C. A custom controler
  • D. A standard controller

Answer: D

NEW QUESTION 2

Refer to the code snippet below:
Platform-Developer-II dumps exhibit
A custom object called Credit_Memo_c exist in a Salesforce environment. As part of a new feature development that retrieves and manipulates this type of record, the developer needs to ensure race conditions are prevented when a set of records are modified within an Apex transaction.
In the preceding Apex code, how can the developer alter the query statement to use SOQL features to prevent race condition within a transaction?
A)
Platform-Developer-II dumps exhibit
B)
Platform-Developer-II dumps exhibit
C)
Platform-Developer-II dumps exhibit
D)
Platform-Developer-II dumps exhibit

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D

Answer: C

NEW QUESTION 3

Which three approaches should a developer Implement to obtain the best performance for data retrieval when building a Lightning web component?
Choose 3 answers

  • A. Use lazy load for occasionally accessed data.
  • B. Use layoutTypes : ['Full'] to display a set of fields.
  • C. Use the Lightning Data Service.
  • D. Use getRecordUi to obtain metadata.
  • E. Use (cacheable-true) whenever possible.

Answer: ACE

NEW QUESTION 4

When testing batch classes, what must a developer do? (Choose two.)

  • A. Use seeAIIData=true
  • B. Encapsulate code in Test.startTestQ and Test.stopTestQ
  • C. Call the class* "execute" method
  • D. Limit the amount of records you test to < 200

Answer: BD

Explanation:
If you use "seeAIIData=true," you are a bad person

NEW QUESTION 5

Which statement is true regarding the use of user input as part of a dynamic SOQL query?

  • A. Free text input should not be allowed, to avoid SOQL injection
  • B. The String.format() method should be used to prevent injection
  • C. Quotes should be escaped to protect against SOQL injection
  • D. The string should be URL encoded by the input form to prevent errors

Answer: C

NEW QUESTION 6

Platform-Developer-II dumps exhibit
What can be done to improve the performance of the insert trigger shown above?
A) Platform-Developer-II dumps exhibit
B) Platform-Developer-II dumps exhibit
C) Platform-Developer-II dumps exhibit
D) Platform-Developer-II dumps exhibit

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D

Answer: D

NEW QUESTION 7

Which type of controller is best suited when you want to add custom functionality to a standard controller page, or when you want reusable functionality throughout pages?

  • A. Standard Controller
  • B. Standard List/Set Controller
  • C. Controller Extensions
  • D. Custom Controller

Answer: C

NEW QUESTION 8

A company processes Orders within their Salesforce instance. When an Order's status changes to 'Paid' it must notify the company's order management system (OMS). The OMS exposes SOAP web service endpoints to listen for when to retrieve the data from Salesforce. What is the optimal method to implement this?

  • A. Create an Apex trigger and make a callout to the OMS from the trigger.
  • B. Generate the Partner WSDL and use it to make a callout to the OMS.
  • C. Create an Outbound Message that contains the session ID and send it to the OMS.
  • D. Generate the Enterprise WSDL and use it to make a callout to the OMS.

Answer: D

NEW QUESTION 9

A developer i$ tasked Dy Unversai Containers to build out a system to track the container repair process. Containers should be tracked as they move through the repair process, starting when a customer reports an issue and ending when the container is returned to the customer.
Which solution meets these business requirements while following best practices?

  • A. Use Flow Builder|.to develop a Sites page for customers to submit repair requests and track the status of their request.
  • B. involve a Salesforce administrator and build out a declarative solution that works in Salesforce desktop and mobile.
  • C. Build an automated Lightning Application using Application Events to ensure data integrity.
  • D. Use Platform Events with Workflow Rules and RFID integration to ensure proper tracking of the containers.

Answer: A

NEW QUESTION 10

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 11

A developer has a Visual force page that automatically assign ownership of an Account to a queue save. The page appears to correctly assign ownership, but an assertion validating the correct ownership fails.
What can cause this problem?

  • A. The test class does not use the Bulk API for loading test data.
  • B. The test class does not retrieve the updated value from the database.
  • C. The test class does not use the seeAllData=true annotation,
  • D. The test class does not implement the Queueabfe interface.

Answer: B

NEW QUESTION 12

Where in a query can you use Geolocation and Distance? (Choose two.)

  • A. Select clause
  • B. Filter clause
  • C. Order By clause
  • D. Group By clause

Answer: BC

NEW QUESTION 13

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 14

A company wants to build a custom Lightning Component that will display a specified Account Field Set and that can only be added to the Account record page. Which design resource configuration should be used?
Option A
Platform-Developer-II dumps exhibit
Option B
Platform-Developer-II dumps exhibit
Option C
Platform-Developer-II dumps exhibit
Option D
Platform-Developer-II dumps exhibit

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D

Answer: D

NEW QUESTION 15

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 an After Trigger on Account to upd|ate its related contact records on update
  • B. Create a Workflow Rule on Account to update related child Contact records
  • C. Create a Lightning Process on Account to update related child Contact records
  • D. Create a scheduled batch job that updates all contact address fields based on the related account record.

Answer: C

NEW QUESTION 16

What is a consideration when using bind variables with dynamic SOQL? (Choose two.)

  • A. Dynamic SOQL cannot reference fields on bind variables
  • B. Dynamic SOQL cannot use bind variables
  • C. Bind variables must be public or global
  • D. Bind variables must be in local scope

Answer: AD

NEW QUESTION 17

A large company uses Salesforce across several departments. Each department has its own Salesforce Administrator. It was agreed that each Administrator would have their own sandbox in which to test changes. Recently, users notice that fields that were recently added for one department suddenly disappear without warning. Also, Workflows that once sent emails and created tasks no longer do so. Which two statements are true regarding these issues and resolution? Choose 2 answers

  • A. A sandbox should be created to use as a unified testing environment instead of deploying Change Sets directly to production.
  • B. Page Layouts should never be deployed via Change Sets, as this causes Workflows and Field-level Security to be reset and fields to disappear.
  • C. The administrators are deploying their own Change Sets, thus deleting each other's fields from the objects in production.
  • D. The administrators are deploying their own Change Sets over each other, thus replacing entire Page Layouts and Workflows in Production

Answer: AD

NEW QUESTION 18

An Apex trigger and Apex class increment a counter, Edit_Count_c, any time that the Case is changed.
Platform-Developer-II dumps exhibit
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)
Platform-Developer-II dumps exhibit
B)
Platform-Developer-II dumps exhibit
C)
Platform-Developer-II dumps exhibit
D)
Platform-Developer-II dumps exhibit

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D

Answer: A

NEW QUESTION 19

A Visualforce page loads slowly due to the large amount of data it displays. Which strategy can a developer use to improve the performance?

  • A. use lazy loading to load the data on demand, instead of in the controller's constructor.
  • B. use an <apex:actionPoller> in the page to load all of the data asynchronously.
  • C. use Javascript to move data processing to the browser instead of the controller.
  • D. Use the transient keyword for the List variables used in the custom controller.

Answer: A

NEW QUESTION 20

Users upload .csv files in an external system to create account and contact records in Salesforce. Up to 200 records can be created at a time. The users need to wait for a response from Salesforce in the external system, but the data does not need to synchronize between the two systems.
Based on these requirements, which method should a developer use to create the records in Salesforce?

  • A. REST API request using composite/vbatch/
  • B. REST API request using composite/tree/
  • C. Apex web services
  • D. Bulk API 2.0

Answer: D

NEW QUESTION 21
......

100% Valid and Newest Version Platform-Developer-II Questions & Answers shared by Dumps-files.com, Get Full Dumps HERE: https://www.dumps-files.com/files/Platform-Developer-II/ (New 196 Q&As)