Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam CRT-450 All Questions

View all questions & answers for the CRT-450 exam

Exam CRT-450 topic 1 question 161 discussion

Actual exam question from Salesforce's CRT-450
Question #: 161
Topic #: 1
[All CRT-450 Questions]

A custom picklist field, Food_Preference__c, exists 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?

  • A. Mark the field as Required on the field definition.
  • B. Set ג€Use the first value in the list as the default valueג€ as True.
  • C. Mark the field as Required on the object's page layout.
  • D. Set a validation rule to enforce a value is selected.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
danielarro
1 year, 1 month ago
Selected Answer: A
Setting the field as required is the best option. Having a default value works too but will imply having garbage (incorrect) data
upvoted 2 times
...
gsori
1 year, 3 months ago
Selected Answer: A
Setting the field as required in the field definition should satisfy the requirement. Indeed by configuring the field that way, you'll get an error when trying to create/update a record, thus forcing you to select a pick list value.
upvoted 2 times
...
NB0703
1 year, 3 months ago
Selected Answer: B
Using a default make sure you'll always have a value on this field.
upvoted 1 times
irina_735
1 year, 2 months ago
And what if user selects "--None--" in the field?
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...