ExamGecko
Home Home / Salesforce / Certified Platform Developer II

Salesforce Certified Platform Developer II Practice Test - Questions Answers, Page 18

Question list
Search
Search

Related questions











What is the best way to display field-level error messages in Lightning?

A.
ukinputDefaultError
A.
ukinputDefaultError
Answers
B.
ukoutputText
B.
ukoutputText
Answers
C.
auraxomponent
C.
auraxomponent
Answers
D.
apex:message
D.
apex:message
Answers
Suggested answer: A

What is the transaction limit for SOQL queries?

A.
20 (synchronous), 200 (async)
A.
20 (synchronous), 200 (async)
Answers
B.
150 (synchronous), 20 (async)
B.
150 (synchronous), 20 (async)
Answers
C.
150 (synchronous), 200 (async)
C.
150 (synchronous), 200 (async)
Answers
D.
100 (synchronous), 200 (async)
D.
100 (synchronous), 200 (async)
Answers
E.
200 (synchronous), 100 (async)
E.
200 (synchronous), 100 (async)
Answers
Suggested answer: D

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

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

Explanation:

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

If a developer wanted to display error messages with the standard Salesforce Ul styling, what would they use?

A.
<apex:pageMessages>
A.
<apex:pageMessages>
Answers
B.
<apex:message>
B.
<apex:message>
Answers
C.
<apex:outputText>
C.
<apex:outputText>
Answers
D.
<apex:error>
D.
<apex:error>
Answers
Suggested answer: A

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

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

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

A.
Select clause
A.
Select clause
Answers
B.
Filter clause
B.
Filter clause
Answers
C.
Order By clause
C.
Order By clause
Answers
D.
Group By clause
D.
Group By clause
Answers
Suggested answer: B, C

What Salesforce tool lets you deploy/retrieve metadata, check status of apex jobs, and check responses of REST calls?

A.
Force.com Migration Tool
A.
Force.com Migration Tool
Answers
B.
Developer Console
B.
Developer Console
Answers
C.
Workbench
C.
Workbench
Answers
D.
Streaming API
D.
Streaming API
Answers
Suggested answer: C

What are the ways a developer can create test data of Contacts? (Choose two.)

A.
Test.createTestData ()
A.
Test.createTestData ()
Answers
B.
myDataFactory.createContacts(10)
B.
myDataFactory.createContacts(10)
Answers
C.
Test.loadData(Contact.sObjectType, 'staticResource')
C.
Test.loadData(Contact.sObjectType, 'staticResource')
Answers
D.
Test.loadTestRecords(Contact.sObjectType, 'staticResource')
D.
Test.loadTestRecords(Contact.sObjectType, 'staticResource')
Answers
Suggested answer: B, C

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

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

If you wanted to create a record following the update of another (with data from the source object), what is the most customizable approach?

A.
Workflow Rule
A.
Workflow Rule
Answers
B.
Process Builder
B.
Process Builder
Answers
C.
After update Trigger
C.
After update Trigger
Answers
D.
Flow
D.
Flow
Answers
Suggested answer: B
Total 408 questions
Go to page: of 41