フリー問題

DevOps Tools Engineer のフリー問題 4 / 20 問目

問題文

A public API must gain a new optional member without breaking existing clients. Which change is safe, and which one is not?

選択肢

  1. Adding an optional property to a response is safe because unknown members are ignored by well written clients, while removing a member or narrowing its accepted range breaks callers and therefore requires a new version of the interface.
  2. Adding an optional property to a response is safe because unknown members are ignored by well written clients, while removing a member or narrowing its accepted length breaks callers and therefore requires a new channel of the interface.
  3. Adding an optional method to a response is safe because unknown members are blocked by well written clients, while removing a member or narrowing its accepted range breaks callers and therefore requires a new version of the interface.
  4. Adding an optional method to a response is safe because unknown members are blocked by well written clients, while removing a member or narrowing its accepted length breaks callers and therefore requires a new channel of the interface.

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

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