Ikibazo gihuza ibibazo · Hagati Urwego
Kode yo Gukora Sandbox kubakozi Ikibazo
Gerageza uburyo agasanduku ka sandbox gatandukanya moderi-yanditse kode: kontineri vs microVMs na gVisor, imipaka ya egress imipaka, hamwe numutungo wigihe nkigihe.
Ikibazo 1 Bya 8
Kuki kode yanditswe n'umukozi wa AI isuzumwa nk'iy'ubwoba by default?
Reba buri kibazo8 ibibazo
Ibisubizo nibisobanuro bigaragara mugihe ufata ikibazo.
- Kuki kode yanditswe n'umukozi wa AI isuzumwa nk'iy'ubwoba by default?
- 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
- Ni iki kibazo cy'umutekano cy'ingenzi ku bikoresho bisanzwe ugereranije na microVMs?
- They cannot limit memory
- They take minutes to start
- They share the host's kernel
- They cannot run Python
- Ni iki gVisor yongeraho kugira ngo igabanye ibyago by'ikode itizewe?
- A user-space kernel that intercepts system calls
- A hardware security chip
- A faster file system
- An antivirus scanner for Python packages
- Firecracker microVMs zashyizweho na AWS mu buryo bwo guteza imbere serivisi z'ikihe?
- Video streaming
- Email delivery
- Search indexing
- Lambda and Fargate
- Kuki kugenzura imbuga z'inyuma bikunze gufatwa nk'igikorwa cy'ingenzi cyo gushyira mu cyumba igihe prompt injection iboneka?
- 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