AIP-C01 练习题

AIP-C01 题目讲解:便宜筛选先做,疑难才升级判断

AIP-C01 练习题讲解。答案 A。多数明显允许/拒绝的查询可以用确定规则或小分类器处理。

AIP-C01 免费试练题 · 考证匠讲解

题目

A developer needs to implement a guardrail to prevent an internal LLM chatbot from answering questions about competitor products. However, checking every user query against a sophisticated LLM-based guardrail adds significant latency and cost. What is the most efficient tiered approach?

A. Use a simple keyword-based filter or a lightweight BERT-based classifier first; only if the check is inconclusive, route to the LLM-based guardrail.
B. Send the query to the LLM-based guardrail and the main model in parallel and discard the response if the guardrail flags it.
C. Rely solely on the system prompt of the main LLM to refuse competitor questions.
D. Manually review all logs at the end of the day and block users who violate the policy.

答案

答案 A。多数明显允许/拒绝的查询可以用确定规则或小分类器处理。

拆题

  • 多数明显允许/拒绝的查询可以用确定规则或小分类器处理。
  • 不确定请求再进入复杂 guardrail,减少平均延迟和成本。
  • 简单词表会有漏报误报,必须用评估集、阈值和升级策略,不可把关键词当完美理解。

每个选项为什么对、为什么错

  • A(正确):先轻量筛选,再对不确定请求深度判定,符合分层成本与延迟目标。
  • B:并行先调用主模型仍花生成成本,且必须阻止任何未审查 token 流出,容易造成泄漏。
  • C:system prompt 不是可靠业务禁止控制,可能被绕过。
  • D:日终人工查看是在输出之后,不能阻止当前违规回答。

放到具体场景里

教学例子:明确 competitor 名称加产品比较意图可拒绝;包含同名普通词而语境不清的请求进入二层。低成本模型高置信允许才放行,模糊区升级,最终 blocked response 不泄露原生成内容。记录 precision/recall 与升级比例,避免为了“快”大幅增加漏检。

检查对象本例条件或动作结果与边界
第一层规则/轻分类器低成本明确判断
疑难区置信阈值间隔升级深度检查
出口完成审查后回答流式 token 同样受控

遇到同类题的判断顺序

  1. 定义政策:明确禁止内容范围。
  2. 快速筛选:处理确定样例。
  3. 升级疑难:复杂判定覆盖边界。
  4. 评估调整:测漏报、误报和升级率。
结论:分层是让昂贵判断用在不确定处,不是降低最终安全标准。

参考资料

继续练这门考试

同一门考试的免费试练题都附这样的完整讲解,做完再看讲解。