Interview practice question
Securing an agent that runs code
Machine Learning · AI Agents · Intermediate
Your data analysis agent executes Python code. How do you secure the execution environment?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Isolated sandbox (containers, microVMs) per session.
- No access to secrets, internal network; restricted internet.
- Resource limits: CPU, memory, time, disk.
- Read-only access to only the user's data.
- Destroy after session; monitor.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.