問題文
Two teams at a bank must deliver an integration on a tight deadline. The architect proposes agreeing on the API specification first, before either the provider or the consumer starts coding. Why does defining the specification first help the project?
選択肢
- Agreeing on the specification first removes the need to test the integration later; a written specification guarantees that the running code will match it exactly.
- With the contract agreed up front, the provider and the consumer can build in parallel against the same specification instead of waiting for each other.
- It ensures the two teams never have to speak to each other again at any point in the remainder of the project.
- It lets the consumer skip the specification entirely and read the provider's source code instead, which is quicker to start with.