nerdexam
Salesforce

PDII · Question #193

A Visualforce page needs to make a callout to get billing information and tax information from two different REST endpoints. The information needs to be displayed to the user at the same time and…

The correct answer is B. A Continuation for both the billing callout and the tax callout. See the full explanation below for the reasoning.

Question

A Visualforce page needs to make a callout to get billing information and tax information from two different REST endpoints. The information needs to be displayed to the user at the same time and the return value of the billing information contains the input for the tax information callout. Each endpoint might take up to two minutes to process. How should a developer implement the callouts?

Options

  • AA Continuation for the billing callout and an HTTP REST callout for the tax callout
  • BA Continuation for both the billing callout and the tax callout
  • CAn HTTP REST callout for both the billing callout and the tax callout
  • DAn HTTP REST callout for the billing callout and a Continuation for the tax callout

How the community answered

(26 responses)
  • A
    15% (4)
  • B
    73% (19)
  • C
    8% (2)
  • D
    4% (1)

Community Discussion

No community discussion yet for this question.

Full PDII Practice