ExamGecko
Ask Question

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

List of questions

Question 171

Report
Export
Collapse

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

ukinputDefaultError
ukinputDefaultError
ukoutputText
ukoutputText
auraxomponent
auraxomponent
apex:message
apex:message
Suggested answer: A
asked 23/09/2024
Robert Akehurst
34 questions

Question 172

Report
Export
Collapse

What is the transaction limit for SOQL queries?

20 (synchronous), 200 (async)
20 (synchronous), 200 (async)
150 (synchronous), 20 (async)
150 (synchronous), 20 (async)
150 (synchronous), 200 (async)
150 (synchronous), 200 (async)
100 (synchronous), 200 (async)
100 (synchronous), 200 (async)
200 (synchronous), 100 (async)
200 (synchronous), 100 (async)
Suggested answer: D
asked 23/09/2024
Mary Cris Barreda
33 questions

Question 173

Report
Export
Collapse

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

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

Explanation:

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

asked 23/09/2024
Arlind Tereziu
41 questions

Question 174

Report
Export
Collapse

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

<apex:pageMessages>
<apex:pageMessages>
<apex:message>
<apex:message>
<apex:outputText>
<apex:outputText>
<apex:error>
<apex:error>
Suggested answer: A
asked 23/09/2024
Dilip Kumar
37 questions

Question 175

Report
Export
Collapse

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

Create the view state
Create the view state
Evaluate constructors, extensions, and expression on attribute definitions on any custom components present
Evaluate constructors, extensions, and expression on attribute definitions on any custom components present
Evaluate expressions, <apex:page> attribute actions, and other method calls (getters/setters) on main page
Evaluate expressions, <apex:page> attribute actions, and other method calls (getters/setters) on main page
Send HTML to Browser
Send HTML to Browser
Suggested answer: B
asked 23/09/2024
H Barral Vila
33 questions

Question 176

Report
Export
Collapse

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

Select clause
Select clause
Filter clause
Filter clause
Order By clause
Order By clause
Group By clause
Group By clause
Suggested answer: B, C
asked 23/09/2024
Sam Patel
34 questions

Question 177

Report
Export
Collapse

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

Force.com Migration Tool
Force.com Migration Tool
Developer Console
Developer Console
Workbench
Workbench
Streaming API
Streaming API
Suggested answer: C
asked 23/09/2024
Ahmed Alghadeer
31 questions

Question 178

Report
Export
Collapse

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

Test.createTestData ()
Test.createTestData ()
myDataFactory.createContacts(10)
myDataFactory.createContacts(10)
Test.loadData(Contact.sObjectType, 'staticResource')
Test.loadData(Contact.sObjectType, 'staticResource')
Test.loadTestRecords(Contact.sObjectType, 'staticResource')
Test.loadTestRecords(Contact.sObjectType, 'staticResource')
Suggested answer: B, C
asked 23/09/2024
Lakshmi Yechuri
40 questions

Question 179

Report
Export
Collapse

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

doStuff([Select Id From Account]);
doStuff([Select Id From Account]);
doStuff(List<Account> records);
doStuff(List<Account> records);
doStuff(Account acct);
doStuff(Account acct);
doStuff(sObject obj);
doStuff(sObject obj);
Suggested answer: A
asked 23/09/2024
Adrian Kustosz
36 questions

Question 180

Report
Export
Collapse

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

Workflow Rule
Workflow Rule
Process Builder
Process Builder
After update Trigger
After update Trigger
Flow
Flow
Suggested answer: B
asked 23/09/2024
Oleksii Ivanov
45 questions
Total 438 questions
Go to page: of 44

Related questions