AI and LLMs · Senior · Question 25 of 75
Why must code execution tools for agents run in a sandbox?
- 1Generated code may be malicious or buggy
- 2Models can only write code that runs in sandboxes
- 3Sandboxes make generated code run much faster
Show the answer
Correct answer: Generated code may be malicious or buggy
Explanation
Isolated containers or microVMs with no secrets, limited network and resource limits contain the damage.