Free Certified Platform Developer II Exam Braindumps (page: 30)

Page 30 of 90

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.)

  1. Segregate calculation functionality from input functionality
  2. Specify the list of sales forecasts as transient
  3. Implement pagination and reduce records per page
  4. Create formula fields to compute pivoted forecast calculations
  5. Use JavaScript Remoting instead of controller actions

Answer(s): A,B,C



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.)

  1. Surround the callout with Test.startTest(), Test.stopTest()
  2. Surround the data insertion with Test.startTest(), Test.stopTest()
  3. Implement the WebServiceMock interface
  4. Update code to call Test.setMock()
  5. Implement the HttpCalloutMock interface

Answer(s): A,C,D



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

  1. Account - AccountShare
  2. Case - CaseComment
  3. Opportunity - User
  4. Account - Order

Answer(s): A,B



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?

  1. Http.setHeader ('Authorization' , 'Basic QthZGprjpchVulHNchFtZQ')
  2. stub.inputHttpHeaders_x.put('Authorization' , 'Basic QthZGprjpchVulHNchFtZQ')
  3. Http.setAuthentication('Basic QthZGprjpchVulHNchFtZQ')
  4. stub.authentication.put ('Authorization','Basic QthZGprjpchVulHNchFtZQ')

Answer(s): B



Page 30 of 90



Post your Comments and Discuss Salesforce Certified Platform Developer II exam with other Community members:

Jenil Gandhi commented on November 14, 2024
Hi everyone could sone share the certification voucher for PD2.
INDIA
upvote

Aniq commented on December 02, 2023
Hi every one Could some share the certification voucher for PD2
Anonymous
upvote

Rasheed commented on June 07, 2023
Worth the price. I got 50% off when I selected 2 exams.
PAKISTAN
upvote

Lisha commented on September 21, 2022
Thank you!
Anonymous
upvote