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

we provide Downloadable Salesforce Platform-Developer-II exam cost which are the best for clearing Platform-Developer-II test, and to get certified by Salesforce Platform Developer II. The Platform-Developer-II Questions & Answers covers all the knowledge points of the real Platform-Developer-II exam. Crack your Salesforce Platform-Developer-II Exam with latest dumps, guaranteed!

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

NEW QUESTION 1

This sales team needs a custom Visualforce page to enter sales orders. When a product is selected on the Visualforce page, a web service is invoked to determine if the product is in stock, and the result is displayed on the page.
How can a developer write this page to display the result of the web service and ensure governor limits for concurrent usage are not exceeded?

  • A. Use Continuation that is invoked when a Submit button is clicked.
  • B. Use visualforce Remoting to handle the web service callout.
  • C. Use the Salesforce Metadata API in the web service callout.
  • D. Use an Apex trigger with callout=true annotation.

Answer: A

NEW QUESTION 2

A developer must create a custom pagination solution for accessing approximately 2000 records and displaying 50 records on each page. Data from Salesforce will be accessed via an API and not via Apex.
How can the developer meet these requirements? (Choose two.)

  • A. Use a StandardSetController
  • B. Use CURSOR 50 in SOQL queries
  • C. Use OFFSET in SOQL queries
  • D. Use LIMIT 50 in SOQL queries

Answer: CD

NEW QUESTION 3

A developer wrote an Apex class to make several callouts to an external system.
If the URLs used in these callouts will change often, which feature should the developer use to minimize changes needed to the Apex class?

  • A. Session Id
  • B. Connected Apps
  • C. Remote Site Settings
  • D. Named Credentials

Answer: D

NEW QUESTION 4

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 5

If the "PageReference.setRedirect" Apex function is set to True, what type of request is made?

  • A. Get request
  • B. Postback request
  • C. If PageReference points to the same controller and subset of extensions, postback request, otherwise get request

Answer: A

NEW QUESTION 6

What is a consideration when testing batch Apex? (Choose two.)

  • A. Test methods must execute the batch with a scope size of less than 200 records
  • B. Test methods must call the batch execute() method once
  • C. Test methods must use the @isTest (SeeAIIData=true) annotation
  • D. Test methods must run the batch between TeststartTestQ and Test.stopTestQ

Answer: AD

NEW QUESTION 7

@isTest static void testAccountUpdate() { Account acct = new Account({Name = 'Test'); acct.Integration Updated_c = false; insert acct; CalloutUtil.sendAccountUpdate (acct.Id); Account acctAfter = [SELECT Id, Integration Updated_c FROM Account WHERE Id = :acct.Id] [0]; System.assert(true, acctAfter.Integration_Updated_c); } The test method above calls a web service that updates an external system with Account information and sets the Account's Integration_Updated c checkbox to True when it completes. The test fails to execute and exits with an error: "Methods defined as TestMethod do not support Web service callouts." What is the optimal way to fix this?

  • A. Add if (!Test.isRunningTest()) around CalloutUtil.sendAccountUpdate.
  • B. Add Test.startTest() before and Test.stopTest() after CalloutUtil.sendAccountUpdate.
  • C. Add Test.startTest() before and Test.setMock and Test.stopTest() after CalloutUtil.sendAccountUpdate.
  • D. Add Test.startTest() and Test.setMock before and Test.stopTest() after CalloutUtil.sendAccountUpdate.

Answer: B

NEW QUESTION 8

0f Universal Containers uses Big Objects to store almost a billion customer transactions called Customer_Transaction__b. These are the fields on Customer_Transaction__b: Account__c Program__¢ Points_Earned__c Location__c Transaction_Date__c The following fields have been identified as Index Fields for the Customer_Transaction b object: Account__c, Program__c, and Transaction_Date__c. Which SOQL query is valid on the Customer_Transaction__b Big Object?

  • A. SELECT Account__c, Program__c, Transaction_Date__c FROM Customer_Transaction__b WHERE Account__c = ‘001R000000302D3' AND Program__c ='Shoppers' AND Transaction_Date c=2019-05-31T00:00Z
  • B. SELECT Account__c, Program__c, Transaction_Date__c FROM Customer_Transaction__b WHEREAccount__c = '001R000000302D3' AND Program__c LIKE ‘Shop%’ AND Transaction_Date c=2019-05-31T00:00Z
  • C. SELECT Account__c, Program__c, Transaction_Date__c FROM Customer_Transaction__b WHERE Account__c = '001R000000302D3' AND Program__c EXCLUDES (‘Shoppers’, ‘Womens’) ANDTransaction_Date__c=2019-05-31T00:00Z
  • D. SELECT Account__c, Program__c, Transaction_Date__c FROM Customer_Transaction__b WHERE Account__c = ‘001R000000302D3' AND Program__c INCLUDES (‘Shoppers’, ‘Womens’) AND Transaction_Date__c=2019-05-31T00:00Z

Answer: A

NEW QUESTION 9

Which of the following standard fields are indexed? (Choose three.)

  • A. Name
  • B. CreatedBy
  • C. SystemModStamp
  • D. LastModifedDdate
  • E. RecordType

Answer: ABC

NEW QUESTION 10

A developer has requirement to query three fields (id, name, Type) from an Account and first and last names for all Contacts associated with the Account.
Which option is the preferred optimized method to achieve this for the Account named ‘Ozene Electronics’?

  • A. Account a = (SELECT ID, Name, Type from Account where name= Ozone Electronics;) list 1contacts = (SELECT firstname, lastname from Contacts where accountid=: a -ID0;
  • B. Account a = (SELECT ID, Name, Type, (select contat,firstName, Contact,LastName from Account, Contacts) from Account where name; Ozone Electronic' Limit 1 );
  • C. List 1Accounts = (Select ID, Name, Type from Account Join (Select ID, firstname, lastname form Contact where contact account , name 'ozone electronics));
  • D. List 1Contacts = new list ( );for(Contact c ; 1Select firstname, lastname Account, Name Account,ID Account, Type from Contactwhere Account: Name=' electronics')) ( iContacts.add(c);)

Answer: B

NEW QUESTION 11

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 a single trigger on Contact for both after update and before update and callout to helper classes to handle each set of logic.
  • B. Write an after update trigger on Contact for the Is Primary logic and a separate before update trigger onContact for the last name logic.
  • C. write an after update trigger on Account for the Is Primary logic and a before update trigger on Contact for the last name logic.
  • D. write a Validation Rule on the Contact for the Is Primary logic and a before update trigger on Contact for the last name logic.

Answer: A

NEW QUESTION 12

Within the System.Limit class, what would you call to get the total limit you can call in a single transaction?

  • A. get[typeOfLimit] —> (E
  • B. getDMLStatements())
  • C. getLimit [typeOfLirr.it] —> (E
  • D. getLin~.it DY.LSt aterr.ents () )

Answer: B

NEW QUESTION 13

A developer has written the following method: static void processList(List<sobject> input){ Which code block can be used to call the method?

  • A. processList (ace)
  • B. processList ([FIND 'Acme" 'RETURNING Account])
  • C. processList([SELECT Id, Name FROM sObject WHERE Type = 'Account'])
  • D. for Account ace : [SELECT Id, Name FROM Account])

Answer: C

NEW QUESTION 14

A developer is trying to decide between creating a Visualforce component or a Lightning component for a custom screen. Which functionality consideration impacts the final decision?

  • A. Does the screen need to be accessible from the Lightning Experience UI?
  • B. Will the screen make use of a JavaScript framework?
  • C. Does the screen need to be rendered as a PDF?
  • D. Will the screen be accessed via a mobile app?

Answer: A

NEW QUESTION 15

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 16

Which of the following variables are not transmitted in the view state? (Choose two.)

  • A. Private
  • B. Transient
  • C. Public
  • D. Static

Answer: BD

NEW QUESTION 17
......

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