フリー問題

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

問題文

A museum's Lightning web component lists exhibits, and the team wants repeat visits to the page to show the list without waiting for the server. A developer plans to annotate the Apex method with the cacheable attribute. Which statement describes the constraint that comes with that choice?

選択肢

  1. The method can still perform DML when the component calls it imperatively rather than with a wire, and the cache is bypassed.
  2. The method may only read data, so a method that inserts, updates, or deletes records cannot be marked cacheable, a read-only contract.
  3. Results are held on the server for every user in the org, so the developer has to clear the org's cache partition after a data change before the component can show the new values.
  4. The method must be declared without the static modifier so that each component instance owns its own copy of the cached result, with one cache per instance.

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

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