Free Certified Platform Developer II Exam Braindumps
Certified Platform Developer II Questions 116–120 (page: 25)

Updated On: 10-Feb-2026

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?

  1. Named Credentials
  2. Session ID
  3. OAuth access token
  4. Security token

Answer(s): B



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



Viewing page 25 of 86
Viewing questions 121 - 125 out of 424 questions


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

AI Tutor AI Tutor 👋 I’m here to help!