フリー問題

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

問題文

A ticketing platform's component asks Apex for all 60,000 events in the catalog and renders them in a table. It fails in production but worked with the 300 events in the developer's scratch org. What should change?

選択肢

  1. Split the retrieval across 60 separate Apex methods that each return 1,000 events and call them all from the component, and no single invocation builds a large response and each limit is measured on its own.
  2. Have Apex return only the page of rows the table is showing, and additionally annotate the method as cacheable so the client keeps each page, which removes the heap concern because the records are then held in the browser instead of on the server.
  3. Raise the number of rows the component requests to the query row limit of 50,000, which is the highest number that a transaction may retrieve at once.
  4. Have Apex return only the page of rows the table is showing, plus the total count, because the transaction has a 6 megabyte heap and the response has to be built and transferred as well.

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

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