nerdexam
Salesforce

PDII · Question #34

What is the optimal technique a developer should use to programmatically retrieve Global Picklist options in a Test Method?

The correct answer is A. Use the Schema namespace. See the full explanation below for the reasoning.

Question

What is the optimal technique a developer should use to programmatically retrieve Global Picklist options in a Test Method?

Options

  • AUse the Schema namespace.
  • BUse a static resource.
  • CPerform a callout to the Metadata API.
  • DPerform a SOQL Query.

How the community answered

(20 responses)
  • A
    75% (15)
  • B
    5% (1)
  • C
    5% (1)
  • D
    15% (3)

Community Discussion

No community discussion yet for this question.

Full PDII Practice