Platform-Developer-II Exam - Platform Developer II

certleader.com

It is more faster and easier to pass the Salesforce Platform-Developer-II exam by using Precise Salesforce Platform Developer II questuins and answers. Immediate access to the Replace Platform-Developer-II Exam and find the same core area Platform-Developer-II questions with professionally verified answers, then PASS your exam with a high score now.

Check Platform-Developer-II free dumps before getting the full version:

NEW QUESTION 1

In a previous data audit, It was determined that close to 5 million Opportunity records are stored within the Salesforce environment. The organization-wide default for the object are set to Public Read-Only and most opportunities are related to an external case.
The method is called from a Lightning web component. Some end users do not provide a cased value and experience low performance while running the query.
Which two techniques should the developer implement to avoid low performance queries from executing? Choose 2 answers

  • A. Implement a LIMIT clause within the SOQL query to restrict the result set.
  • B. Ensure the user-provided input is not null before executing the SOQL query.
  • C. Implement the with sharing keyword on the Apex class.
  • D. Use SOSL instead of SOQL queries to perform text-based searches.

Answer: AD

NEW QUESTION 2

Sometimes events on Salesforce need to be handled by an external system due to the scale or type of process being executed. Consider the use case of a user in Salesforce needing to get pricing for an order they are building in Salesforce while on the phone with a customer. The pricing logic already exists in a third-party system. Instead of recreating this logic in Salesforce, it will be leveraged by making a request of the third-party system. The response, in this case the pricing, will be returned and stored back in Salesforce. What is the optimal solution?

  • A. A Visualforce page that can make a real-time Apex callout to display and save the pricing back in Salesforce
  • B. An Apex trigger that upon saving the Order will make a real-time Apex callout, saving the pricing back in Salesforce
  • C. A Process Builder process and Outbound Message to fetch the pricing upon save and store the pricing in Salesforce
  • D. An ETL tool to process batches of newly saved Orders every few minutes to store the pricing back in Salesforce

Answer: B

NEW QUESTION 3

Global with sharing class MyRemoter { public String accountName { get; set; } public static Account account
{ get; set; } public AccountRemoter(} {} @RemoteAction global static Account getAccount (String acccuntName) { account = [SELECT Id, Name, NumberOfEmployees FROM Account WHERE Name =
:accountName]; return account; } } Consider the Apex class above that defines a RemoteAction used on a
Visualforce search page. Which code snippet will assert that the remote action returned the correct Account?

  • A. MyRemoter remote = new MyRemoter(); Account a = remote.getAccount ({'TestAccount'); System.assertEquals, ‘TestAcccunt', a.Name -;
  • B. Account a = MyRemoter.getAccount ('TestAccount'): System.assertEquals{ ‘TestAccount', a.Name };
  • C. MyRemoter remote = new MyRemoter('TestAccount'};Account a = remote.getAccount {);System.assertEquals(, ‘'TestAccount', a.Name -;
  • D. Account a = controller.getAccount('TestAccount’); System.assertEquals(, ‘TestAccount', a.Name } ;

Answer: B

NEW QUESTION 4

Universal Containers decided to use Salesforce to manage a new hire interview process. A custom object called candidate as created with organization-wide default set to Private. A lookup on the Candidate object sets an employee as an the viewer user

  • A. The record can be shared using a permission set.
  • B. The record can be shared using a sharing rule.
  • C. The record cannot be shared with the current setup
  • D. The record can be shared an Apex class.

Answer: D

NEW QUESTION 5

What is the transaction limit for the number of SOSL queries?

  • A. 20
  • B. 2,000
  • C. 100 (synchronous), 200 (async)
  • D. 200 (synchronous), 100 (async)
  • E. There is no limit

Answer: A

NEW QUESTION 6

A developer built a Component to be used at the front desk for guests to self-register upon arrival at a kiosk. The developer is now asked to create a Component for the Utility Tray to alert Users whenever a guest has arrived at the front desk. What should be used?

  • A. Changelog
  • B. Component Event
  • C. Application Event
  • D. DML Operation

Answer: C

NEW QUESTION 7

What is a potential design issue with the following code?
Platform-Developer-II dumps exhibit

  • A. SOQL could be avoided by creating a formula field for StageName in Account from the related Opportunity
  • B. The code will result in a System.LimitException : Too many script statements error
  • C. The code will result in a System.DmException:Entity_is_Deleted error
  • D. The code will result in a System.LimitException: Apex CPU time limit exceeded error

Answer: D

NEW QUESTION 8

How many Territories can an instance of salesforce have?

  • A. 400
  • B. 200
  • C. 1000
  • D. 100
  • E. 500

Answer: E

NEW QUESTION 9

A company represents their customers as Accounts that have an External ID field called
Customer_Number____c. They have a custom Order (Order____c) object, with a Lookup to Account, to represent Orders that are placed in their external order management system (OMS). When an order is fulfilled in the OMS, a REST call to Salesforce should be made that creates an Order record in Salesforce and retates it to the proper Account. What is the optimal way to implement this?

  • A. Perform a REST GET on the Account and a REST POST to update the Order____c with the Account's record ID.
  • B. Perform a REST PATCH to upsert the Order____c and specify the Account's Customer_Number____c in it.
  • C. Perform a REST GET on the Account and a REST PATCH to upsert the Order____c with the Accounts record ID.
  • D. Perform a REST POST to update the Order c and specify the Account's Customer_Number____c in it.

Answer: B

NEW QUESTION 10

A Lightning web component exists in the system and displays information about the record in context as a modal. Salesforce administrators need to use this component within the Lightning App Builder.
Which two settings should the developer configure within the xml resource file? Choose 2 answers

  • A. Set the IsExposed attribute to True.
  • B. Set the IsVisible attribute to True.
  • C. Specify the target to be lightning__RecordPage.
  • D. Specify the target to be lightning__AppPage.

Answer: AC

NEW QUESTION 11

Universal Containers wants to be able to bring up an Account detail page and view a table of containers
currently being rented. The user wants to be able to dick on a container In the table and quickly edit and save the location of the container.
In addition to this, the page should have a section that shows the location of each container on a map. Universal Containers wants the map to re-render whenever the location of a container is changed.
What can a developer use to accomplish this task?

  • A. Two Lightning Components leveraging Application Events
  • B. Two Visualforce Page Components leveraging Application Events
  • C. A single visualforce Page leveraging Platform Events
  • D. Two Lightning Components leveraging Platform Events

Answer: A

NEW QUESTION 12

A developer created a class that implement he Queueable interface, as follows:
As part of the deployment process, the developer is asked to create a corresponding test class. Which two actions should the developer take to successfully execute the test class?
Choose 2 answers

  • A. Ensure the running user of the test class has, at least, the View All permission on the Order object
  • B. Enclose System.enqueueJob (new orderQueueable Job ( }) within Tes
  • C. starttest and Test, stoptest ()
  • D. Implement seeAllData-true to ensure the Queueable )ob is able to run in bulk mode.
  • E. Implement Test.isRunningtest ( ) to prevent chaining jobs during test execution.

Answer: CD

NEW QUESTION 13

A company has a custom component that allows users to search for records of a certain object type by invoking an Apex Controller that returns a list of results based on the user's input, when the search Is completed, a searchComplete event is fired, with the results put in a results attribute of the event. The component is designed to be used within other components and may appear on a single page more than once.
What is the optimal code that should be added to fire the event when the search has completed?
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: B

NEW QUESTION 14

Which statement is true about using ConnectApi namespace (also called Chatter in Apex)? (Choose two.)

  • A. Chatter in Apex methods honor the 'with sharing' and 'without sharing' keywords
  • B. Chatter in Apex operations are synchronous, and they occur immediately
  • C. Chatter in Apex methods do not run in system mode; they run in the context of the current user
  • D. Many test methods related to Chatter in Apex require the IsTest (SeeAIIData=true) annotation

Answer: CD

NEW QUESTION 15

Consider the code above.
Platform-Developer-II dumps exhibit
When a user dicks on the Link of a Contact's name, what happens'

  • A. The outputPanel refreshes, showing the Contacts details.
  • B. A new page opens, showing the Contact's details.
  • C. The page refreshes, showing the Contact's details.
  • D. Nothing happens: the commandLink is missing an action attribute.

Answer: A

NEW QUESTION 16

Which statement is true regarding both Flow and Lightning Process? (Choose two.)

  • A. Can use Apex methods with the @lnvocableMethod annotation
  • B. Are both server-side considerations in the Order of Execution
  • C. Can use Apex that implements the Process.Plugin interface
  • D. Are able to be embedded directly into Visualforce pages

Answer: AC

NEW QUESTION 17

What is the transaction limit for SOQL queries?

  • A. 20 (synchronous), 200 (async)
  • B. 150 (synchronous), 20 (async)
  • C. 150 (synchronous), 200 (async)
  • D. 100 (synchronous), 200 (async)
  • E. 200 (synchronous), 100 (async)

Answer: D

NEW QUESTION 18

What Visualforce tag can be used to display custom messages in pages using the Salesforce Ul styling for errors, warnings, and other types of messages?

  • A. <apex:customMessage>
  • B. <apex:error>
  • C. <apex:message>
  • D. <apex:pageMessage>

Answer: D

NEW QUESTION 19

Within the System.Limit class, what would you call to get the number of calls made in your transaction?

  • A. get [typeOfLimit] —> (E
  • B. getDXLStaterr.ents () )
  • C. getLimit [typeOf Limit] —> (E
  • D. getLirr.it DXLSt at err.ents () )

Answer: A

NEW QUESTION 20

Universal Containers wants to use a Customer Community with Customer Community Plus licenses so their customers can track how many of containers they are renting and when they are due back. Many of their customers are global companies with complex Account hierarchies, representing various departments within the same organization. One of the requirements is that certain community users within the same Account hierarchy be able to see several departments' containers, based on a junction object that relates the Contact to the various Account records that represent the departments. Which solution solves these requirements?

  • A. A Custom Report Type and a report Lightning Component on the Community Home Page
  • B. An Apex Trigger that creates Apex Managed Sharing records based on the junction object's relationships
  • C. A Custom List View on the junction object with filters that will show the proper records based on owner
  • D. A Visualforce page that uses a Custom Controller that specifies without sharing to expose the records

Answer: A

NEW QUESTION 21
......

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