Salesforce Platform Developer I (legacy) — Question 97

A developer wants to store a description of a product that can be entered on separate lines by a user during product setup and later displayed on a Visualforce page for shoppers.
Which field type should the developer choose to ensure that the description will be searchable in the custom Apex SOQL queries that are written?

Answer options

Correct answer: A

Explanation

The Text Area field type allows for multiline input and is indexed for searchability in Apex SOQL queries, making it suitable for the developer's needs. Other options like Text and Text Area (Rich) may not support multiline inputs or searchability in the same way, while Text Area (Long) is not necessary for standard descriptions.