📚 首页 / architecture-exercises / README.md

architecture-exercises — 架构决策训练集

用户原始简报第 9 节的硬指标:≥30 个完整场景决策题。本目录交付 32 题(EX01–EX32),四类各 8 题,每题完整八要素。这是把 13 个模块的知识收束为「架构师肌肉记忆」的练兵场——对应 CURRICULUM_PLAN.md 的场景题格式标准。

怎么用

  1. 先修:每题都假设你读过对应模块 README(题内标注模块出处,如「模块 07 §8」)。
  2. 做题:每题给出 Scenario / Constraints / Options 三要素。先别往下翻——写下你的选择 + 理由 + 你认为的 tradeoffs,再去对答案。
  3. 对答案:答案五要素(Best choice / Why / Why other choices are weaker / Tradeoffs / What would change the answer)统一放在各文件末尾的「答案与解析」小节,与题目分离,防止顺读泄底。
  4. 评分自检:答对 Best choice 只算一半分;你能独立复述「What would change the answer」才算真正掌握——架构题的答案是条件的函数,不是标签。
  5. 术语:考题术语保持英文(如 prompt caching、orchestrator-worker、metadata pre-filter),与认证考试语境一致。

难度标注:★☆☆ 基础(单概念决策)|★★☆ 进阶(多概念权衡)|★★★ 综合(跨模块/陷阱题)。

题目索引

#标题核心张力(英文)难度所在文件
EX01法务合同库问答RAG or long context?★☆☆scenarios-retrieval-context.md
EX02电信运营商 8M token 知识库RAG or long context?★☆☆scenarios-retrieval-context.md
EX03客服 RAG 的「加料」提案more context or better retrieval?★★☆scenarios-retrieval-context.md
EX04销售分析助手RAG or tool query / database?★★☆scenarios-retrieval-context.md
EX05年度更新的编码手册fine-tuning or RAG?★★☆scenarios-retrieval-context.md
EX06金标块总被忽略reranking + position (Lost in the Middle)★★☆scenarios-retrieval-context.md
EX07竞品情报分析pre-built RAG or agentic search?★★☆scenarios-retrieval-context.md
EX08多租户知识库prompt-level or retrieval-level permissions?★★★scenarios-retrieval-context.md
EX09集团 AI 平台接入 30+ 系统API or MCP?★★☆scenarios-tools-mcp.md
EX10创业公司的一个天气 APIAPI or MCP?★☆☆scenarios-tools-mcp.md
EX11组织架构树与 wiki 库Tool or Resource?★★☆scenarios-tools-mcp.md
EX12退款流水线Claude decides or application decides?★★☆scenarios-tools-mcp.md
EX13CRM 批量修改与外发邮件automatic write or human approval?★★☆scenarios-tools-mcp.md
EX14支付工具超时retry, reconcile, or give up? (idempotency)★★★scenarios-tools-mcp.md
EX15参数错误率高的录入 agentstrict tool use or prompt discipline?★★☆scenarios-tools-mcp.md
EX162MB 日志工具结果trim, summarize, or server-side processing?★★☆scenarios-tools-mcp.md
EX17日均 5000 份合同审查Workflow or agent?★☆☆scenarios-agents-orchestration.md
EX18退款审批的灰区判断Agent or deterministic code?★★☆scenarios-agents-orchestration.md
EX19每日并购尽调报告Single or multi-agent?★★☆scenarios-agents-orchestration.md
EX20跨模块代码重构Single or multi-agent?(反例)★★☆scenarios-agents-orchestration.md
EX21十分钟后要的文档摘要synchronous or asynchronous?★☆☆scenarios-agents-orchestration.md
EX22实时客服 + 疑难工单分层synchronous or asynchronous?★★☆scenarios-agents-orchestration.md
EX23研究型 agent 不收敛stopping conditions & budgets★★☆scenarios-agents-orchestration.md
EX24千条评论双视角分析parallelization pattern (fan-out/voting)★★☆scenarios-agents-orchestration.md
EX25客服流量 85/15 分层larger model or smaller model?★☆☆scenarios-production-security.md
EX26抽取任务 F1 卡在 0.82larger model or better prompt?★★☆scenarios-production-security.md
EX27100k token 知识前缀cache or not cache?★★☆scenarios-production-security.md
EX28高度个性化的实时前缀cache or not cache?(反例)★★☆scenarios-production-security.md
EX29HR 数据库的部门隔离which layer enforces permissions?★★☆scenarios-production-security.md
EX30邮件里的注入指令which layer prevents exfiltration?★★★scenarios-production-security.md
EX31大促期间 API 529retry strategy under overload★★☆scenarios-production-security.md
EX32夜间 20 万条评估请求Batch API or synchronous? (cost)★☆☆scenarios-production-security.md

出题与依据说明

📚 目录