ExamGecko
Ask Question

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

List of questions

Question 111

Report
Export
Collapse

A developer is writing unit tests for the following method:

Salesforce Certified Platform Developer II image Question 111 67758 09232024003105000000

Which assertion would be used in a negative test case?

System.assertEquals(true, isFreezing(null))
System.assertEquals(true, isFreezing(null))
System.assertEquals (true, isFreezing('O')
System.assertEquals (true, isFreezing('O')
System.assertEquals(null, isFreezing('asdf))
System.assertEquals(null, isFreezing('asdf))
System.assertEquals(true, isFreezingClOO'))
System.assertEquals(true, isFreezingClOO'))
Suggested answer: C
asked 23/09/2024
Yosra Chabchoub
38 questions

Question 112

Report
Export
Collapse

During the order of execution of a Visualforce page GET request, what happens after this step?

Evaluate constructors on controllers and extensions

Evaluate constructors and expressions on custom components
Evaluate constructors and expressions on custom components
Create view state if <apex: form> exists
Create view state if <apex: form> exists
Send the HTML response to the browser
Send the HTML response to the browser
Evaluate expressions, action attributes, and method calls
Evaluate expressions, action attributes, and method calls
Suggested answer: A
asked 23/09/2024
Christodoulos Chiras
29 questions

Question 113

Report
Export
Collapse

A developer needs to create a service that will process an email sent to it and create an account and contact using the contents of the email as data for the records.

How might a developer accomplish this requirement?

Use the Apex Inbound Email Handler
Use the Apex Inbound Email Handler
Use the Fuel API with Email Data Extensions
Use the Fuel API with Email Data Extensions
Use Heroku Data Clips to Process Email
Use Heroku Data Clips to Process Email
Use Auto-launched Flow and Process Builder
Use Auto-launched Flow and Process Builder
Suggested answer: A
asked 23/09/2024
xingrui li
36 questions

Question 114

Report
Export
Collapse

How can Apex be used with Visual Workflow?

To set the version of a Flow being run
To set the version of a Flow being run
To start a Flow automatically
To start a Flow automatically
To add custom styling to a Flow
To add custom styling to a Flow
To control access to a Flow
To control access to a Flow
Suggested answer: B
asked 23/09/2024
Darin Ambrose
40 questions

Question 115

Report
Export
Collapse

An integration user makes a successful login() call via the SOAP API.

What can be used in the SOAP header to provide server authorization for subsequent API requests?

Named Credentials
Named Credentials
Session ID
Session ID
OAuth access token
OAuth access token
Security token
Security token
Suggested answer: B
asked 23/09/2024
Massimiliano Parisi
39 questions

Question 116

Report
Export
Collapse

A customer has a single Visualforce page that allows each user to input up to 1500 sales forecasts and instantly view pivoted forecast calculations. Users are complaining that the page is loading slowly, and they are seeing error messages regarding heap and view state limits.

What are three recommendations to optimize page performance? (Choose three.)

Segregate calculation functionality from input functionality
Segregate calculation functionality from input functionality
Specify the list of sales forecasts as transient
Specify the list of sales forecasts as transient
Implement pagination and reduce records per page
Implement pagination and reduce records per page
Create formula fields to compute pivoted forecast calculations
Create formula fields to compute pivoted forecast calculations
Use JavaScript Remoting instead of controller actions
Use JavaScript Remoting instead of controller actions
Suggested answer: A, C, E
asked 23/09/2024
charles ratchagaraj
37 questions

Question 117

Report
Export
Collapse

A developer is creating unit tests for code that makes SOAP web service callouts. The developer needs to insert some test data as a part of the unit tests setup.

What are three actions to enable this functionality? (Choose three.)

Surround the callout with TeststartTest(), Test.stopTest()
Surround the callout with TeststartTest(), Test.stopTest()
Surround the data insertion with Test.startTest(), Test.stopTest()
Surround the data insertion with Test.startTest(), Test.stopTest()
Implement the WebServiceMock interface
Implement the WebServiceMock interface
Update code to call Test.setMock()
Update code to call Test.setMock()
Implement the HttpCalloutMock interface
Implement the HttpCalloutMock interface
Suggested answer: A, C, D
asked 23/09/2024
Demilson Mantegazine
37 questions

Question 118

Report
Export
Collapse

Which of the follow be used together in DML operations (transaction)? (Choose two.)

Acco u nt - Acco u ntS ha re
Acco u nt - Acco u ntS ha re
Case - CaseComment
Case - CaseComment
Opportunity - User
Opportunity - User
Account - Order
Account - Order
Suggested answer: B, D
asked 23/09/2024
christopher patrick
32 questions

Question 119

Report
Export
Collapse

A developer has generated Apex code from a WSDL for an external web service. The web service requires Basic authentication.

What code should the developer use to authenticate?

Http.setHeader ('Authorization' , 'Basic QthZGprjpchVulHNchFtZQ!)
Http.setHeader ('Authorization' , 'Basic QthZGprjpchVulHNchFtZQ!)
stub.inputHttpHeaders_x.put('Authorization' , 'Basic QthZGprJpchVulHNchFtZQ')
stub.inputHttpHeaders_x.put('Authorization' , 'Basic QthZGprJpchVulHNchFtZQ')
Http.setAuthentication('Basic QthZGprjpchVulHNchFtZQ')
Http.setAuthentication('Basic QthZGprjpchVulHNchFtZQ')
stub.authentication.put ('Authorization','Basic QthZGprjpchVulHNchFtZQ')
stub.authentication.put ('Authorization','Basic QthZGprjpchVulHNchFtZQ')
Suggested answer: B
asked 23/09/2024
Adrian Mark
29 questions

Question 120

Report
Export
Collapse

What is the correct syntax for calling a controller action from a Visualforce page and updating part of the page once the action is completed? (Choose two.)

<apex : commandFunction action=?l { ! Save} " value="Save" rendered^"thePageBlock"/>
<apex : commandFunction action=?l { ! Save} " value="Save" rendered^"thePageBlock"/>
<apex: actionFunction action=" { ! Save} " name=!,Save" rerender=l,thePageBlock1'/>
<apex: actionFunction action=" { ! Save} " name=!,Save" rerender=l,thePageBlock1'/>
<apex:commandButton action="{!Save}" value="Save" redraw="thePageBlock"/>
<apex:commandButton action="{!Save}" value="Save" redraw="thePageBlock"/>
<apex: actionSupport action="{ ISave} " event=llonchange1' rerender="thePageBlock"/>
<apex: actionSupport action="{ ISave} " event=llonchange1' rerender="thePageBlock"/>
Suggested answer: B, D
asked 23/09/2024
Wislon Pereira
36 questions
Total 438 questions
Go to page: of 44
Search

Related questions