フリー問題

Salesforce Certified JavaScript Developer のフリー問題 18 / 20 問目

問題文

A tool reads one small configuration file at startup, before it accepts any work. Is the synchronous form acceptable here?

選択肢

  1. Yes, because nothing else is pending at that moment and the simpler code has no cost in responsiveness.
  2. No, because the synchronous form is always the wrong choice in a server side program and the asynchronous form must be used for every access to the file system.
  3. No, because a configuration file has to be read through a stream so that a large file does not have to be held in memory at any point during the startup of the tool.
  4. Yes, because the synchronous form is faster for every size of file that a tool has to read at start up time.

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

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