フリー問題

Salesforce Certified Platform Developer のフリー問題 11 / 20 問目

問題文

A furniture retailer already has two active record-triggered flows on the case object that set fields on the case itself. A new requirement says a case can only be closed if the related order has been delivered and the related invoice has been paid. Where should this new rule live?

選択肢

  1. In a third record-triggered flow, because adding a flow is always cheaper than adding a class that the team then has to cover with tests and to maintain in version control alongside the rest.
  2. In Apex, because a class replaces the two existing flows as well and consolidating everything about the case into one trigger is the documented best practice for objects that already have automation.
  3. In a validation rule on the case, because validation rules run for every entry point including the API and they can reference fields on any object in the org through the relationship names available in the formula editor.
  4. In Apex, because validation that spans several objects is one of the documented reasons to write Apex, while the existing single-record field updates stay in the flows that already own them.

解答・解説を確認するには

正解と解説の確認、回答の記録には無料登録が必要です。登録すると演習モードでフリー問題に回答し、正誤と解説をその場で確認できます。