Kvíz spojený s průvodcem · Střední úroveň
Sandboxy provádění kódu pro agenty Kvíz
Testuje, jak sandboxy agentů izolují modelem napsaný kód: kontejnery vs mikroVM a gVisor, limity odchozích sítí a omezení zdrojů, jako jsou časové limity.
Otázka 1 z 8
Proč je kód napsaný agentem AI ve výchozím nastavení považován za nedůvěryhodný?
Náhled každé otázky8 otázky
Odpovědi a vysvětlení se zobrazují, jak budete v kvízu.
- Proč je kód napsaný agentem AI ve výchozím nastavení považován za nedůvěryhodný?
- Because models cannot write working code
- Because it can be buggy, wasteful or shaped by prompt injection
- Because interpreted languages are always insecure
- Because operating systems block AI-generated code
- Jaká je hlavní bezpečnostní slabina standardních kontejnerů ve srovnání s mikroVM?
- They cannot limit memory
- They take minutes to start
- They share the host's kernel
- They cannot run Python
- Co přidává gVisor ke snížení rizika z nedůvěryhodného kódu?
- A user-space kernel that intercepts system calls
- A hardware security chip
- A faster file system
- An antivirus scanner for Python packages
- MikroVM Firecracker byly původně vyrobeny společností AWS pro napájení jakých služeb?
- Video streaming
- Email delivery
- Search indexing
- Lambda and Fargate
- Proč je omezení odchozího přístupu k síti často považováno za nejdůležitější kontrolu sandboxu, když je možné rychlé vložení?
- It makes code run faster
- It prevents code from sending data or secrets to outside servers
- It stops the model from generating code
- It lowers memory usage
- Which control specifically defends against a fork bomb?
- A read-only file system
- A network allowlist
- A cap on the number of processes via cgroups
- Removing environment variables
- What is the recommended way to give sandboxed code access to a credential it genuinely needs?
- Put the API key in an environment variable
- Hard-code it into the prompt
- Store it in the scratch directory
- Route access through a narrow proxy or tool call instead of exposing the secret
- Which statement reflects the guide's warning about a common misconception?
- A sandbox limits damage from code but does not make the agent's answers correct or its granted tools harmless
- Sandboxes make agents completely safe
- Sandboxes are only needed for compiled languages
- WebAssembly sandboxes cannot run Python