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 Accurate Salesforce Platform Developer II questuins and answers. Immediate access to the Far out 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.

Free demo questions for Salesforce Platform-Developer-II Exam Dumps Below:

NEW QUESTION 1

A company decides that every time an Opportunity is created, they want to create a follow up Task and assign it to the Opportunity Owner.
What should a developer use to implement the requirements?

  • A. A Process Builder on Opportunity
  • B. A trigger on Task
  • C. A trigger on Opportunity
  • D. A Process Builder on Task

Answer: A

NEW QUESTION 2

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.
Platform-Developer-II dumps exhibit
What must be added to get the data?

  • A. Add @wire(getData, (name: $name’)} to the account field and this, account = getData ( ) ; to t loadData ( ) function.
  • B. Add this, account = getData (this,name); to the loadData ( ) function.
  • C. Add getData ({ name; this,name}) , then (result=> { this.account = result}) to the LeadData ( ) function.
  • D. Add @wire(getData, {name: $name’}) to the account field and delete loadData ( ) because it is not needed.

Answer: C

NEW QUESTION 3

A Salesforce org has more than 50,000 contacts. A new business process requires a calculation that aggregates data from all of these contact records. This calculation needs to run once a day after business hours.
Which two steps should a developer take to accomplish this? Choose 2 answers

  • A. Use the @future annotation on the method that performs the aggregate calculation.
  • B. Implement the schedulable Interface In the class that contains the aggregate calculation method.
  • C. Use the areadOnly annotation on the method that performs the aggregate calculation.
  • D. Implement the Queuable Interface in the class that contains the aggregate calculation method.

Answer: BD

NEW QUESTION 4

A company has a custom object, Order____c, that has a required, unique, external ID field called Order_Number____c. Which statement should be used to perform the DML necessary to insert new records and update existing records in a List of Order____c records?

  • A. upsert orders;
  • B. merge orders;
  • C. merge orders Order_Number____c;
  • D. upsert orders Order_Number____c;

Answer: D

NEW QUESTION 5

The maximum view state size of a visualforce page is .

  • A. 1mb
  • B. 256kb
  • C. 165kb
  • D. 65kb
  • E. 135kb

Answer: E

NEW QUESTION 6

During the Visualforce Page execution, what step follows immediately after "Evaluate constructors on controller and extensions"?

  • A. Create the view state
  • B. Evaluate constructors, extensions, and expression on attribute definitions on any custom components present
  • C. Evaluate expressions, <apex:page> attribute actions, and other method calls (getters/setters) on main page
  • D. Send HTML to Browser

Answer: B

NEW QUESTION 7

Consider the controller code above that is called from a Lightning component and returns data wrapped in a class.
Platform-Developer-II dumps exhibit
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?

  • A. The member's Name and Option of the class MyDataWrapper should be annotated with @AuraEnabled also.
  • B. The member's Name and Option should not be declared public.
  • C. The member's Name and Option should not have getter and setter.
  • D. Instances of Apex classes such as MyDataWrapper cannot be returned to a Lightning component.

Answer: A

NEW QUESTION 8

A developer created a JavaScript library that simplifies the development of repetitive tasks and features and uploaded the library as a static resource called jsutils in Salesforce. Another developer is coding a new Lightning web component (LWC) and wants to leverage the library.
Which statement properly loads the static resource within the LWC?

  • A. import {jsUtilities} from '@salesforce/reaourceUrljsUtila’;
  • B. import jUtilities from ‘@salesforce/reaourceUrljsUtila’;
  • C. <lightning-require scripts=N { ! SReaourc
  • D. j sUtils}’’/>
  • E. const jsUtility = SA.get ('SReaource.jsUtils');

Answer: B

NEW QUESTION 9

Which of the following exceptions cannot be caught and will force an error? (Choose three.)

  • A. LimitException
  • B. AssertException
  • C. SObjectExceptions
  • D. DMLException
  • E. License exceptions
  • F. ListException

Answer: ABE

Explanation:
SObjectException occurs when accessing a field not queried, or you try to change a field during the wrong dml statement (i.e. an edit-only field being set on insert)
Custom exceptions must extend the "Exception" class

NEW QUESTION 10

Which use case can only be performed by using asynchronous Apex?

  • A. Scheduling a batch process to complete in the future
  • B. Processing high volumes of records
  • C. Updating a record after the completion of an insert
  • D. Calling a web service from an Apex trigger

Answer: D

NEW QUESTION 11

A developer must perform a complex SOQL query that joins two objects in a Lightning component. how can the Lightning component execute the query?

  • A. Use the SaJesforce Streaming API to perform the SOQL query.
  • B. Create a Process Builder to execute the query and invoke from the Lightning component.
  • C. Invoke an Apex dass with the method annotated as ©AiraEnabled to perform the query.
  • D. Write the query in a custom Lightning web component wrapper and invoke from the Lightning component.

Answer: D

NEW QUESTION 12

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. Organization Id
  • B. Session Id
  • C. Username and Password
  • D. Security Token

Answer: AC

NEW QUESTION 13

What is the transaction limit on the max timeout for all callouts?

  • A. 120 seconds
  • B. 60 seconds
  • C. 120 seconds (synchronous); 200 seconds (async)
  • D. 60 seconds (synchronous); 200 seconds (async
  • E. There is no limit

Answer: A

NEW QUESTION 14

A developer is creating a Lightning web component that contains a child component. The property stage is being passed from the parent to the child. The public property is changing, but the setOppList function is not being invoked.
Platform-Developer-II dumps exhibit
What should the developer change to allow this?

  • A. Move the logic from connectedCalIback() to constructor().
  • B. Create a custom event from the parent component to set the property.
  • C. Move the logic from connectedCallback() nto renderedCallback().
  • D. Move the logic to a getter/setter pair.

Answer: D

NEW QUESTION 15

The use of the transient keyword In Visualforce Page Controllers helps with which common performance issued?

  • A. Reduces View State
  • B. Improves Query Performance
  • C. Improves Page Transfers
  • D. Reduces Load Times

Answer: A

NEW QUESTION 16

A developer created a Lightning web component for the Account record page that displays the five most recently contacted Contacts for an Account. The Apex method, getRecentContacts, returns a list of Contacts and will be wired to a property in the component.
Platform-Developer-II dumps exhibit
Which two lines must change in the above ode to make the Apex method able to be wired? Choose 2 answers

  • A. Add AuraEnanled(cacheabletrue) to the line 08
  • B. Remove private from line 09.
  • C. Add @AuraEnabled (cacheabletrue) to line 03.
  • D. Add public to line 04.

Answer: CD

NEW QUESTION 17

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?

  • A. Aura Components
  • B. Lightning Web Components
  • C. Visualforce
  • D. Lightning Experience Builder

Answer: C

NEW QUESTION 18

Part of a custom Lightning Component displays the total number of Opportunities in the org, which is in the millions. The Lightning Component uses an Apex Controller to get the data it needs. What is the optimal way for a developer to get the total number of Opportunities for the Lightning Component?

  • A. SUM() SOQL aggregate query on the Opportunity object
  • B. SOQL for loop that counts the number of Opportunities records
  • C. COUNT() SOQL aggregate query on the Opportunity object
  • D. Apex Batch job that counts the number of Opportunity records

Answer: C

NEW QUESTION 19

The following code segment is railed from a Trigger handler class from the Opportunity trigger:
Platform-Developer-II dumps exhibit
Which two changes should improve this code and make it more efficient? Choose 2 answers

  • A. Move the DML outside of the for loop.
  • B. Move the SOQL to fetch the account record outside of the for loop.
  • C. Move business logic inside the Opportunity trigger.
  • D. Use Triginstead.old instead of Trigger.new.

Answer: AB

NEW QUESTION 20

When developing a Visualforce page that will be used by a global organization that does business in many languages and many currencies, which feature should be used? (Choose three.)

  • A. Custom Labels
  • B. convertCurrency()
  • C. Global Labels
  • D. Translation Workberic
  • E. getLocalCurrency()

Answer: ABD

NEW QUESTION 21
......

P.S. Dumps-files.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.dumps-files.com/files/Platform-Developer-II/ (196 New Questions)