Job 38:5 (ESV)

5 Who determined its measurements surely you know! Or who stretched the line upon it?

God’s questions are clearly ironical, and yet we should not interpret them as vengeful. God is lovingly granting the court case that Job had requested. In the process, he is admonishing Job as a father admonishes his son.