問題文
A school district needs a short intake form: three questions, one branch, then create a record. The requesting administrators expect to reword the questions each term. A developer offers to write a Lightning web component. What should the team weigh?
選択肢
- A Lightning web component embedded in a screen flow, and the administrators get the flow's configuration surface for the branch while the component supplies the three questions, which is what the documentation recommends.
- A Lightning web component, because a component always renders faster than a flow screen that the platform has to assemble on the server again for each step of the way through the form itself.
- A screen flow, and additionally an Apex class invoked from it to create the record, because a flow can display screens and gather values but cannot write a record to the database on its own account.
- A screen flow, because administrators can reword the screens and change the branch themselves without a deployment, and no Apex test class is needed for what the flow does on its own.