Bài kiểm tra có liên kết hướng dẫn · Trung bình Cấp độ
Câu đố về hộp cát thực thi mã dành cho đại lý
Kiểm tra cách hộp cát tác nhân tách biệt mã viết theo mô hình: vùng chứa so với microVM và gVisor, giới hạn đầu ra mạng và giới hạn tài nguyên như thời gian chờ.
Câu hỏi 1 của 8
Tại sao mã được viết bởi tác nhân AI theo mặc định được coi là không đáng tin cậy?
Xem trước mọi câu hỏi8 câu hỏi
Câu trả lời và giải thích xuất hiện khi bạn làm bài kiểm tra.
- Tại sao mã được viết bởi tác nhân AI theo mặc định được coi là không đáng tin cậy?
- 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
- Điểm yếu bảo mật chính của vùng chứa tiêu chuẩn so với microVM là gì?
- They cannot limit memory
- They take minutes to start
- They share the host's kernel
- They cannot run Python
- gVisor bổ sung gì để giảm rủi ro từ mã không đáng tin cậy?
- A user-space kernel that intercepts system calls
- A hardware security chip
- A faster file system
- An antivirus scanner for Python packages
- Các microVM Firecracker ban đầu được AWS xây dựng để cung cấp loại dịch vụ nào?
- Video streaming
- Email delivery
- Search indexing
- Lambda and Fargate
- Tại sao việc hạn chế quyền truy cập mạng đi thường được coi là biện pháp kiểm soát hộp cát quan trọng nhất khi có thể thực hiện tiêm nhanh?
- 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