Kuiz berkaitan panduan · Sederhana Tahap

Kotak Pasir Pelaksanaan Kod untuk Kuiz Ejen

Menguji cara kotak pasir ejen mengasingkan kod bertulis model: bekas lwn mikroVM dan gVisor, had keluar rangkaian dan had sumber seperti tamat masa.

Laluan panduan yang berkaitanKotak Pasir Pelaksanaan Kod Untuk Ejen
soalan 1 daripada 8

Mengapakah kod yang ditulis oleh ejen AI dianggap sebagai tidak dipercayai secara lalai?

Pratonton setiap soalan8 soalan

Jawapan dan penjelasan muncul semasa anda mengambil kuiz.

  1. Mengapakah kod yang ditulis oleh ejen AI dianggap sebagai tidak dipercayai secara lalai?
    • 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. Apakah kelemahan keselamatan utama bekas standard berbanding dengan mikroVM?
    • They cannot limit memory
    • They take minutes to start
    • They share the host's kernel
    • They cannot run Python
  3. Apakah yang ditambahkan oleh gVisor untuk mengurangkan risiko daripada kod yang tidak dipercayai?
    • A user-space kernel that intercepts system calls
    • A hardware security chip
    • A faster file system
    • An antivirus scanner for Python packages
  4. MikroVM mercun pada asalnya dibina oleh AWS untuk menggerakkan jenis perkhidmatan yang manakah?
    • Video streaming
    • Email delivery
    • Search indexing
    • Lambda and Fargate
  5. Mengapakah mengehadkan akses rangkaian keluar sering dianggap sebagai kawalan kotak pasir yang paling penting apabila suntikan segera boleh dilakukan?
    • 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