nerdexam
Salesforce

CRT-450 · Question #163

A custom picklist field, Food_Preference__c, exist on a custom object. The picklist contains the following options: 'Vegan','Kosher','No Preference'. The developer must ensure a value is populated…

The correct answer is C. Mark the field as Required on the field definition. See the full explanation below for the reasoning.

Question

A custom picklist field, Food_Preference__c, exist on a custom object. The picklist contains the following options: 'Vegan','Kosher','No Preference'. The developer must ensure a value is populated every time a record is created or updated. What is the most efficient way to ensure a value is selected every time a record is saved?

Options

  • ASet "Use the first value in the list as the default value" as True.
  • BSet a validation rule to enforce a value is selected.
  • CMark the field as Required on the field definition.
  • DMark the field as Required on the object's page layout.

How the community answered

(37 responses)
  • A
    5% (2)
  • B
    3% (1)
  • C
    84% (31)
  • D
    8% (3)

Community Discussion

No community discussion yet for this question.

Full CRT-450 Practice