แบบทดสอบที่เชื่อมโยงกับคำแนะนำ · ปานกลาง ระดับ

แบบทดสอบแซนด์บ็อกซ์การดำเนินการโค้ดสำหรับตัวแทน

ทดสอบวิธีที่แซนด์บ็อกซ์ของเอเจนต์แยกโค้ดที่เขียนแบบจำลอง: คอนเทนเนอร์เทียบกับ microVM และ gVisor ขีดจำกัดขาออกของเครือข่าย และขีดจำกัดทรัพยากร เช่น การหมดเวลา

คำถาม 1 ของ 8

เหตุใดโค้ดที่เขียนโดยตัวแทน AI จึงถือว่าไม่น่าเชื่อถือตามค่าเริ่มต้น

ดูตัวอย่างทุกคำถาม8 คำถาม

คำตอบและคำอธิบายจะปรากฏขึ้นเมื่อคุณทำแบบทดสอบ

  1. เหตุใดโค้ดที่เขียนโดยตัวแทน AI จึงถือว่าไม่น่าเชื่อถือตามค่าเริ่มต้น
    • 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
  2. จุดอ่อนด้านความปลอดภัยหลักของคอนเทนเนอร์มาตรฐานเมื่อเปรียบเทียบกับ microVM คืออะไร
    • They cannot limit memory
    • They take minutes to start
    • They share the host's kernel
    • They cannot run Python
  3. gVisor เพิ่มอะไรเพื่อลดความเสี่ยงจากโค้ดที่ไม่น่าเชื่อถือ
    • A user-space kernel that intercepts system calls
    • A hardware security chip
    • A faster file system
    • An antivirus scanner for Python packages
  4. Firecracker microVM เดิมสร้างขึ้นโดย AWS เพื่อขับเคลื่อนบริการประเภทใด
    • Video streaming
    • Email delivery
    • Search indexing
    • Lambda and Fargate
  5. เหตุใดการจำกัดการเข้าถึงเครือข่ายขาออกจึงมักถูกมองว่าเป็นการควบคุมแซนด์บ็อกซ์ที่สำคัญที่สุด เมื่อสามารถทำได้พร้อมท์
    • 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
  6. 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
  7. 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
  8. 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