“Babylon 5” actually had an episode on this. The probe carried a bomb and said answer all my questions or else I explode. It had very difficult questions they barely answered. The Captain realized that the probe was sent to DESTROY potential threats. That any aliens that COULD answer the questions and were advanced were to be wiped out by the bomb.
Babylon 5 best scifi show ever made