Free Certified Platform Developer II Exam Braindumps
Certified Platform Developer II Questions 131–135 (page: 28)

Updated On: 10-Feb-2026

A developer writes the following code:

public with sharing class OrderController() public PaqeReference sendOrder() Order_c order = new Order_c insert order; ExternalOrder externalOrder = new ExternalOrder(order); Http h = new Http(); HttpRequest req = new HttpRequest(); req.setEndpoint('https://www.example.org/v1/orders'); req.setMethod('POST'); req.setBody(JSON.serialize(externalOrder)); HttpResponse res = h.send(req); order = (ExternalOrder)JSON.deserialize(res.getBody(),ExternalOrder.class);

While testing the code, the developer receives the following error message: System.CalloutException : You have uncommitted work pending
What should the developer do? (Choose two.)

  1. Use the asyncSend() method of the HTTP class to send the request in async context
  2. Ensure all callouts are completed prior to executing DML statements
  3. Move the web service callout into an @future method
  4. Use Database.insert (order, true) to immediately commit any database changes

Answer(s): B,C



What is the most efficient way in Visualforce to show information based on data filters defined by an end-user for a large volume of data?

  1. Use the rendered condition in Visualforce to limit data based on data filters
  2. Use filter conditions in a SOQL query to limit data based on data filters
  3. Use an Apex controller to refine raw data based on data filters and store the result in a transient variable
  4. Use an Apex controller to refine raw data based on data filters and store the result in a static variable

Answer(s): B



What is the optimal syntax for adding a link to a case in a Visualforce page? (Choose two.)

  1. <apex:outputLink value="{$URLFOR($Action.Case.Open, case)}" target="blank">
    {Icase.Name} </apex:outputLink>
  2. <apex:outputLink value="/{!case.Id}" target="blank"> {Icase.Name}</ apex:outputLink>
  3. <apex:outputLink value="{!URLFOR($Action.Case.View,case.Id)}" target="blank"> (LIE{!case.Name}</apex:outputLink>
  4. <apex:outputLink value="!viewCase(case.Id)}" target="_blank">{Icase.Name} </ apex:outputLink>

Answer(s): B,C



Which of the following standard fields are indexed? (Choose three.)

  1. Name
  2. CreatedBy
  3. SystemModStamp
  4. LastModifedDdate
  5. RecordType

Answer(s): A,C,E



Which of the following variables are not transmitted in the view state? (Choose two.)

  1. Private
  2. Transient
  3. Public
  4. Static

Answer(s): B,D



Viewing page 28 of 86
Viewing questions 136 - 140 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!