A perjury.
The questioning has the character of testimony in court. Normally the attorney of the deponent is present.
While the deponent need to nothing but appear, the attorney asking the questions prepares thoroughly.
A trial.
Normally, a court reporter must be in attendance.
A deposition can be used to prepare for a trial and in it.
See Discovery.