Salesforce Platform Developer I (legacy) — Question 285

A developer is asked to set a picklist field to `˜Monitor' on any new Leads owned by a subnet of Users.
How should the developer implement this request?

Answer options

Correct answer: B

Explanation

The correct approach is to use a before insert Lead trigger, which allows the developer to modify the Lead record before it is saved to the database. An after insert trigger would not allow changes to the Lead before it is committed, while a Workflow Rule Field Update is not suitable for initial record creation. A formula field cannot be used to set values during record creation.