FDE 工程师面试问题考察的是你能否在入职第一天就胜任工作:针对混乱的数据和不稳定的 API 编写可运行的代码,设计尊重企业身份与安全的 RAG 或 AI Agent 系统,将其部署到客户的云环境中,用评测证明其有效,并在艰难的客户对话中稳住局面。 本指南汇集了 150 道高价值的前沿部署工程师面试题及参考答案:80 道按主题和面试轮次组织的核心问题,40 道关于 30 天交付、现场故障升级、安全 Agent、Kubernetes、Terraform 和高级 AI 架构的进阶实战场景题,30 道关于生产级 Python、RAG 评测、LangGraph、Bedrock 和 Microsoft Foundry 以及作品集项目的扩展问题,外加一份 12 周备考路线图。
如何使用本指南:
- 应届生和初级工程师: 掌握基础、编程和 GenAI 部分,并准备好为自己项目中的每一个决策进行答辩。
- 有经验的开发者、DevOps 和云工程师: 预计会在 RAG、Agent、集成、身份和云方面考察深度,并且至少会有一道完整的系统设计题。
高级候选人: 面试官会重点考察故障排查、利益相关者和系统设计场景,并在每个回答中寻找权衡、评测和运维方面的考量。
请大声练习回答。这里的措辞是参考范例,而非照本宣科的脚本。
| Round | Format | What it really tests | Questions in this guide |
|---|---|---|---|
| Practical coding | Live coding or a short take-home: parse data, call an API, fix a bug | Working code, edge cases, tests, reading unfamiliar code | 14 to 21 |
| AI system design | Whiteboard or doc: RAG assistant, agent, evaluation setup | Requirements first, access control, failure modes, evaluation, cost | 22 to 41, 77 to 80 |
| Cloud, integration and security | Often folded into design: deployment, identity, secrets, networking | Whether the design survives a security review and on-call | 42 to 62 |
| Troubleshooting | A broken system and its logs or traces | Method, hypotheses, evidence, prevention | 63 to 68 |
| 轮次 | 形式 | 真正考察的内容 | 本指南中的题目 |
| Behavioural | Past experience: ownership, ambiguity, failure | Evidence that you finish things and own mistakes | 74 to 76 |
实战编程 | 现场编程或简短的带回家作业:解析数据、调用 API、修复 Bug | 可运行的代码、边界情况、测试、阅读陌生代码 | 14 至 21
| Dimension | Weak signal | Strong signal |
|---|---|---|
| Requirements | Jumps to a solution | Asks about users, data, systems and success criteria first |
| Coding | Happy-path code, silent on errors | Validation, timeouts, retries, idempotency and a test or two |
| Security | Mentioned only when prompted | Identity, authorisation and data flow raised unprompted |
| Evaluation | "It looked good in testing" | Test set, metrics, release gates and online monitoring |
| Operations | Deployment ends at "push to cloud" | IaC, CI/CD, observability, rollback and runbooks |
| Customer handling | Over-promises or argues | Listens, scopes, says no with an alternative, writes things down |
行为面试 | 过往经历:担当、模糊性、失败 | 证明你能完成事情并承担错误 | 74 至 76
1. What is a Forward Deployed Engineer, in one minute?
客户环节是区分 FDE 面试循环与标准软件工程循环的关键。许多编码能力很强的候选人对此准备最少,最终因此失去 offer。在所有环节中,面试官通常围绕相同的维度打分:
2. How is an FDE different from a software engineer, solutions architect, consultant and ML engineer?
需求 | 直接跳到解决方案 | 先询问用户、数据、系统和成功标准
| Role | Main focus | Typical output | Measured on |
|---|---|---|---|
| Product software engineer | Features for many customers from a roadmap | Code in the vendor's product | Feature quality and velocity |
| Solutions architect | Designs that fit the platform to the customer | Reference architectures, guidance, reviews | Technical win and design quality |
| Consultant | Advice, process, programme management | Assessments, roadmaps, recommendations | Engagement delivery |
| ML engineer | Models, training and serving pipelines | Models and ML infrastructure | Model quality and reliability |
| Forward Deployed Engineer | One customer's problem, end to end | Production code and integrations in the customer's stack | Business outcome in production |
3. Isn't an FDE just a solutions architect who codes?
4. How is an FDE different from an IT consultant or a services delivery engineer?
面试官用这些问题开场,以确认你真正理解这份工作的本质。回答要简洁;冗长含糊的定义是早期的负面信号。
5. How is an FDE different from an ML engineer? Who owns the model?
回答: 前沿部署工程师是一种嵌入式驻扎在客户处的软件工程师,负责交付一个解决特定业务问题的生产系统,并从需求发现、部署到可衡量的成果全程负责。Palantir 推广了将工程师“前沿部署”到客户组织的模式;如今 AI 实验室和企业软件公司招聘 FDE,是为了让 GenAI 和 AI Agent 系统在真实企业中落地运行。
6. Is an FDE a support or customer-success role?
“前沿”意味着贴近客户的数据、身份提供商、网络、审批流程和人员。工作成果是在客户环境中运行的代码,而不是幻灯片。想了解全貌,请参阅前沿部署工程师做什么。
7. Why are cloud providers and AI companies investing in forward deployed engineering now?
回答: 这五种角色都能编写或设计系统,但区别在于谁来确定需求、谁负责运行中的系统,以及以什么标准衡量绩效。FDE 是唯一对在单一客户环境中交付一个可用且被采纳的系统负责的角色。
Customer problem -> Discovery -> Requirement -> Data -> AI architecture -> RAG / Agent -> Tools / MCP -> APIs -> Security -> Cloud -> Deploy -> Observe -> Evaluate -> Optimise -> Business outcome
解决方案架构师 | 设计契合客户需求的平台方案 | 参考架构、指导、评审 | 技术胜出与设计质量
8. "We want AI for our operations team." That is all the customer says. What do you do?
机器学习工程师 | 模型、训练与服务流水线 | 模型与 ML 基础设施 | 模型质量与可靠性
9. What do you ask in the first discovery session for an internal knowledge assistant?
前沿部署工程师 | 深入解决一位客户的完整问题 | 在客户技术栈中编写生产代码与集成 | 对生产环境的业务成果负责
- 面试提示: 不要贬低其他岗位。要说明这些岗位的重叠之处,以及 FDE 的职责有何不同。FDE vs solutions architect vs solutions engineer 有更深入的探讨。
- FDE 不就是一个会写代码的解决方案架构师吗?
- 回答: 不是。区别在于对生产系统的所有权。解决方案架构师负责设计,通常交接给交付团队;而 FDE 会亲自编写集成服务,在上线前夜 11 点调试身份认证流程,搭建评测体系,并坚持到系统真正被使用为止。
4. FDE 与 IT 顾问或服务交付工程师有何不同?
10. How do you define success metrics for an AI pilot?
回答: 顾问通常靠提供咨询获得报酬,服务工程师靠交付既定范围的工作获得报酬;而 FDE 的职责是找到正确的问题、构建工程解决方案,并将可复用的模式反哺到产品或平台中。
- 在实践中,界限往往是模糊的,印度服务公司和 GCC 中的许多 FDE 也从事客户项目。区分性的特质在于工程深度(你能读懂并修改客户的代码)、倾向于交付小而可用的增量,以及把一次性的修复转化为可复用的组件,例如连接器、评测框架或部署模板。
- FDE 与机器学习工程师有何不同?模型由谁负责?
11. How do you decide whether a problem needs an LLM, an agent, or neither?
在基础模型时代,企业价值大多来自模型周围的系统,因此 FDE 的工作是选择和约束模型,而不是训练模型。FDE 仍应充分理解嵌入、微调权衡和评测,以便知道何时需要引入机器学习专家。
12. How do you assess whether the customer's data is ready?
回答: 不是。支持岗位解决现有产品中的问题,客户成功岗位推动采用和续约。而 FDE 设计并构建客户业务流程所依赖的系统,经常做出架构决策,并对其承担生产环境责任。
13. What goes into the scope document for a short pilot?
接触客户是工程影响力的放大器,而非替代品。优秀的 FDE 能把客户模糊的目标变成运行中的系统,而该项目中的模式往往会转化为产品功能。
7. 为什么云服务商和 AI 公司现在都在投入前沿部署工程?
14. Parse this CSV/JSON export from a customer's system and produce a cleaned summary.
回答: 因为企业 AI 的难点已经从构建演示转移到在真实数据和记录系统上运行一个受治理的系统。这一差距需要工程师深入客户环境中去弥补。
15. Call a third-party REST API that is rate-limited and occasionally fails. Make it reliable.
Retry-After
, handle pagination, and use idempotency keys on writes so a retry cannot create duplicates.
for attempt in range(max_retries):
try:
r = client.get(url, timeout=10)
if r.status_code in RETRYABLE:
raise Retryable(r)
r.raise_for_status()
return r.json()
except (Retryable, Timeout):
sleep(backoff(attempt))
raise GaveUp(url)16. This integration worked yesterday and fails today. Here are the logs. Debug it.
回答: 在提出任何方案之前先进行探索。询问用户是谁,当前哪项任务最耗时或最容易出错,涉及哪些数据和系统,“更好”是什么样子,以及由谁签字确认。然后收窄到一个可衡量的用例,并提出一个小的首个交付物,同时明确非目标。
17. Write a function that maps records from System A's schema to System B's.
9. 在内部知识助手的首次探索会议中,你会问什么问题?
18. Wrap a slow internal API behind a clean service the AI layer can call.
回答: 问那些能决定范围、可行性和成功标准的问题:如今谁在问什么问题,答案存放在哪里,谁有权查看什么,以及你如何判断它是否有效。
19. Write a webhook receiver for ticket events that is safe against duplicates and replays.
源系统(SharePoint、Confluence、文件共享、工单历史)、负责人和更新频率
20. The LLM must return JSON for a downstream system. How do you make that reliable in code?
权限模型:用户组、机密文档、区域限制
class Claim(BaseModel):
policy_no: str
amount: Decimal
category: Literal["motor", "health"]
try:
claim = Claim.model_validate_json(raw)
except ValidationError as e:
claim = retry_with_feedback(raw, e)21. You need to call an API for 20,000 records quickly without getting throttled. How?
Answer: Use bounded concurrency, for example
asyncio
with a semaphore or a worker pool sized to the API's documented limits, combined with backoff on 429, checkpointing so a crash resumes rather than restarts, and a report of failed records for reprocessing.
10. 你如何为 AI 试点定义成功指标?
22. Why do tokens and context windows matter to an FDE?
业务: 平均处理时长、首次联系解决率、每周节省的小时数
23. What does temperature control, and is a model deterministic at temperature zero?
质量: 在商定的测试集上的答案正确性和忠实度,以及 AI Agent 的任务成功率
24. What causes hallucinations, and how do you reduce them in an enterprise system?
运营: p95 延迟、可用性、每次成功任务的成本
25. How does function calling (tool calling) work, and who executes the function?
安全: 零未授权操作、无跨权限泄露、升级率
26. How do you choose a model for an enterprise use case?
11. 你如何判断一个问题需要 LLM、AI Agent,还是两者都不需要?
27. When would you choose RAG, fine-tuning or a plain API integration?
答案: 使用能满足需求的最简单方案。确定性工作用规则、SQL 或普通集成;总结、提取等语言任务用一次 LLM 调用;路径已知时用带 LLM 步骤的固定工作流;只有当路径确实无法预先确定时才用 AI Agent。
AI Agent 会增加成本、延迟、不确定性,并扩大安全攻击面。当你说服客户放弃他们并不需要的 AI Agent 时,面试官会非常满意。
28. Walk me through a production RAG pipeline end to end.
实际案例: 设想一家零售商想要一个“AI Agent”来回答“我的订单在哪里?”。调用订单 API 加上模板化回复就能覆盖大多数情况;LLM 只需要用来理解问题并组织回复措辞。
Sources -> parse -> chunk -> embed -> index(+ACL) User -> SSO -> query rewrite -> hybrid retrieve -> ACL filter -> rerank -> LLM + citations -> answer / abstain -> trace -> eval
29. How do you choose a chunking strategy?
检查访问路径和审批、数据归属、重复和冲突版本、缺失的权限元数据、扫描件与电子文档、个人数据,以及数据变更频率。将发现记录下来,并给出可行性判断。
30. Why use hybrid search and reranking instead of vector search alone?
答案: 内容要足以让任何人清楚要构建什么、不构建什么,以及试点将如何评判:问题陈述、用户、范围内的业务流程、明确的非目标、数据源、集成、安全假设、成功标准、风险、里程碑、签批负责人和变更流程。
31. The source documents are scanned PDFs with tables. What do you do?
实战编程问题(Python、API、数据处理)
32. How do you keep the index fresh, including deletions and permission changes?
14. 解析客户系统导出的这份 CSV/JSON 文件,并生成清洗后的摘要。
33. How do you enforce document permissions in RAG?
答案: 先检查数据并就数据提问:编码、分隔符、重复项、缺失字段、日期格式和文件大小。然后编写一个带显式校验的小型解析器,将坏行连同原因收集到拒绝列表中而不是直接崩溃,最后才进行转换和聚合。
34. When would you use agentic RAG or GraphRAG instead of a single retrieval step?
15. 调用一个有速率限制且偶尔失败的第三方 REST API。让它变得可靠。
35. What makes something an agent rather than a workflow?
,处理分页,并在写操作上使用幂等键,确保重试不会产生重复数据。
36. What makes a good tool for an agent?
Answer: A narrow, well-named action with a strict input schema, clear descriptions of when to use it, idempotent behaviour where possible, and errors written so the model can recover. Separate read tools from write tools, and make destructive actions require approval.
Prefer
propose_status_change
plus an approval step over a generic
update_ticket
that accepts any field. Fewer, sharper tools reduce wrong calls and make policy enforcement simple.
37. What is MCP, and when would you use it instead of calling an API directly?
Answer: MCP (Model Context Protocol) is an open protocol, introduced by Anthropic in late 2024, for connecting AI applications to tools and data. A host application uses MCP clients to talk to MCP servers, which expose tools, resources and prompts over stdio locally or HTTP remotely, with OAuth-based authorisation defined for HTTP transports.
答案: 复现故障,阅读实际的错误信息,然后按可能性从高到低依次验证假设:凭证过期或密钥已轮换、API 架构或版本变更、证书或 DNS 变更、速率限制、任一侧的部署变更,或输入数据有问题。
38. You are building an MCP server that exposes ServiceNow incident lookups. What do you get right?
17. 编写一个函数,将 System A 的架构中的记录映射到 System B 的架构。
MCPServer
(
from mcp.server import MCPServer
), previously
FastMCP
; check current SDK documentation before an interview. The
MCP server Python tutorialwalks through a build.
39. How does A2A differ from MCP?
答案: 获取两边的架构,并明确哪个系统是唯一事实来源。保持映射显式且可测试,用声明式的字段规则表而不是嵌套的条件语句;决定未映射字段和无效值的处理方式,并记录每一次转换以备审计。
40. How do you design agent memory for an enterprise assistant?
18. 将一个缓慢的内部 API 封装成一个 AI 层可以调用的干净服务。
41. Design an agent that updates support tickets in ServiceNow or Jira safely.
答案: 构建一个小型 FastAPI(或类似)服务,包含输入校验、类型化响应、超时、只在数据适合缓存的地方做缓存、结构化错误和健康检查。最重要的是,传递用户的身份,让 AI 以用户的权限执行操作,而不是使用超级用户账户。
Enterprise integration and identity
Most FDE time goes into integration and identity, and most go-live delays come from here. These questions separate people who have shipped from people who have demoed.
42. Should an AI agent act as the user, as a service account, or as itself?
这与通过 MCP(Model Context Protocol)将 API 作为工具暴露时使用的模式相同:窄接口契约、模型可以据此行动的清晰错误,以及在服务中强制执行的授权。
43. What practical issues do you expect when integrating with Salesforce, ServiceNow or Jira?
答案: 验证签名,检查时间戳窗口,存储事件 ID 并忽略已处理过的事件,快速确认收到,然后从队列中异步执行真正的工作。
44. How do you wire Entra ID sign-in into an AI app and use it for retrieval permissions?
大多数工单和 CRM 平台都会重试投递,所以重复是常态而非异常。让处理过程幂等(以事件或记录 ID 为键的 upsert),将失败发送到死信队列,并提供一个重放工具,以便在故障后无需手工编辑数据即可恢复。
45. Batch sync or event-driven integration: how do you choose?
46. The customer's core system is legacy with no REST API. How do you integrate?
答案: 使用提供商的结构化输出或工具调用功能并配合 schema,无论如何都用 Pydantic 校验结果,失败时附带校验错误重试一次。如果仍然失败,则路由到备用方案,而不是把坏数据传给下游。
也要验证业务规则,而不仅仅是类型:超过保单限额的金额是合法的 JSON,但仍然是错误的。
47. How would you deploy an AI assistant securely in the customer's AWS or Azure account?
答案: 使用有界并发,例如
48. Where do secrets live, and how do they rotate?
用信号量或按 API 文档规定的限额配置大小的 worker 池,结合对 429 的退避重试、检查点机制以便崩溃后恢复而不是重新开始,以及生成失败记录报告以便重新处理。
49. The service works locally but cannot reach the model endpoint inside the customer's VPC.
GenAI 和 LLM 基础
- 你不会被要求推导注意力机制,但会被问到模型行为如何影响成本、可靠性和设计。请用工程术语回答。
- 为什么 token 和上下文窗口对 FDE 很重要?
- 答案: 因为成本和延迟随输入和输出 token 的数量而扩展,而上下文窗口限制了单次调用能容纳多少指令、历史记录和检索内容。这两者直接影响架构设计和客户的账单。
50. On AWS, which services would you reach for to build and run an agent in 2026?
23. temperature 控制什么?模型在 temperature 为零时是确定性的吗?
51. What is the equivalent stack on Azure?
答案: temperature 控制 token 采样的随机性:抽取和分类用低值,起草文本用较高值。即使在零值下,输出在不同运行或模型版本之间也不保证完全一致,因此系统不能依赖确切的措辞。
52. Containers or serverless for an AI service, and what does the CI/CD pipeline look like?
答案: 模型根据模式生成看似合理的内容,而不是基于经过验证的事实库,因此它们会自信地填补空白。减少幻觉的方法包括:将回答锚定在检索到的来源上、要求提供引用、允许模型回答“我不知道”、将输出约束到 schema,以及用验证步骤检查高风险回答。
25. 函数调用(工具调用)是如何工作的?由谁来执行函数?
53. What is prompt injection, and how do you defend against it?
答案: 你用名称和 JSON schema 描述工具;模型返回一个结构化请求,要求带参数调用某个工具;你的代码验证并执行它,然后把结果返回给模型。模型本身从不执行任何东西。
- 这种分离就是安全边界:授权、输入验证和速率限制都在你的代码中,因此一个被操纵的模型只能请求,不能行动。
- 如何为一个企业用例选择模型?
54. How do you handle personal data and India's DPDP Act in an AI application?
答案: 先根据约束条件筛选候选,再依据证据做决定。约束条件:数据驻留和区域可用性、获批的托管平台(Amazon Bedrock、Microsoft Foundry 中的模型、Vertex AI)、许可协议、上下文长度和延迟。证据:在客户自己的评测集上的质量,以及每个成功任务的成本。
55. What layers of guardrails would you put around an LLM application?
27. 什么时候你会选择 RAG、微调或简单的 API 集成?
56. What does AI governance look like on a real engagement?
答案: 当答案依赖于不断变化或受权限控制的知识并需要引用时,选择 RAG。微调适用于保持一致的格式、语气或拥有大量示例的窄任务,而不是用于添加会变化的事实。当答案存在于结构化数据中时,使用简单的集成或 SQL 查询;并非所有事情都需要 LLM。
57. How would you threat-model and red-team an agent before go-live?
RAG 是企业最常见的首个用例,因此要准备好应对深度提问。如需更大的检索题库,请使用 RAG 面试问题 页面;本节聚焦 FDE 视角。
28. 请从头到尾讲讲一个生产环境的 RAG 流水线。
58. The assistant is live. How do you know whether it is any good?
答案: 数据摄取:连接数据源,解析、分块、嵌入并连同元数据(来源、版本、访问组)一起建立索引。查询阶段:对用户进行身份验证,可选地重写查询,使用按权限过滤的混合搜索进行检索,重排序,组装有界的上下文,生成带引用的答案,并在证据不足时拒绝回答。围绕它的还有:评测、追踪和刷新任务。
59. What would you put in observability for an AI system?
答案: 遵循文档的结构:按标题、章节和列表边界切分,而不是按固定的字符数;分块要足够小以保证针对性,又要足够大以独立成意,并将章节标题和文档元数据带入每个分块。
60. How do you evaluate an agent, not just a single answer?
30. 为什么使用混合搜索和重排序,而不是仅用向量搜索?
61. When is LLM-as-a-judge reliable, and what are its pitfalls?
答案: 向量搜索能处理同义改写,但对精确标识符较弱;关键词搜索(BM25)能捕捉政策编号、错误代码和产品名称。将两者融合,然后用交叉编码器或重排序模型对顶部候选结果进行重排序,通常能显著提升精确度。
62. What is AgentOps, and how do you release changes to prompts, tools and models safely?
实际案例: 设想一个 GCC IT 服务台,用户会粘贴错误代码。纯向量搜索返回的是大致相似的文章;而关键词匹配能找到提到该确切代码的那篇文章。
31. 源文档是带表格的扫描版 PDF。你会怎么做?
63. Users report that the RAG chatbot gives wrong answers. How do you debug it?
答案: 把解析当作一等工程问题来对待:对扫描件使用 OCR,进行版面感知的抽取,将表格转换为结构化行或重复表头的 markdown,并保留页码以便引用。在建立任何索引之前,先在样本上检查抽取质量。
- 糟糕的解析会悄悄限制答案质量的上限,之后没有任何模型能修复它。
- 你如何保持索引的更新,包括删除和权限变更?
- 回答: 使用变更数据流或内容哈希进行增量同步,当源文档被删除时删除或标记墓碑(tombstone),按计划或在变更事件时重新同步访问组,并对文档进行版本管理,使被取代的文档不再被检索到。
64. Retrieval is correct: the right chunk is in context, but the answer is still wrong. What now?
33. 在 RAG 中如何强制执行文档权限?
- 回答: 在检索时进行过滤,使用从源系统同步的访问元数据,以及来自身份提供商的用户身份和所属组。绝不要依赖提示词来隐藏内容,因为任何到达模型的内容都可能泄露。
- 用负面用例进行测试:A 组的用户必须从 B 组的文档中获得零个分块,被撤销权限的用户必须在约定的同步窗口内失去访问权限。第 78 题在一个完整设计中应用了这一点。
34. 什么时候应该使用 Agentic RAG 或 GraphRAG,而不是单步检索?
65. An agent created a ServiceNow ticket that the user was not authorised to raise. Walk through the fix.
回答: Agentic RAG 是指模型规划多个检索步骤或选择数据源,适用于跨系统的多部分问题。GraphRAG 适用于答案依赖于实体之间关系的情况,例如哪些供应商与哪些合同相关联。两者都会增加延迟和成本,因此只有在评测表明单步检索失败时才使用它们。
identity -> authorisation -> tool policy -> input validation -> risk scoring -> approval (if needed) -> execution -> audit log
Agentic AI、工具、MCP 与 A2A
- Agent 是企业风险集中的地方,因为它们会对记录系统执行操作。面试官看重的是控制力,而不是聪明。Agentic AI 面试问题页面对这些模式有更深入的介绍。
- 什么使一个系统成为 Agent 而不是工作流?
- 回答: 在工作流中,由你的代码决定步骤顺序;在 Agent 中,由模型在运行时通过在循环中选择工具来决定下一步,直到它判断目标已达成。许多生产环境中的“Agent”实际上只是包含一两个模型驱动决策的工作流,而这通常是件好事。
66. Cost per request is around ₹8 and the target is ₹0.50 (illustrative). How do you get there?
解释这一权衡:自主性以可预测性、成本和可测试性为代价换取灵活性。通过步骤限制、每个状态允许的工具列表以及明确的停止条件来加以约束。
| Illustrative driver | Fix |
|---|---|
| Large model for every step | Route classification and extraction to a small model; keep the large one for hard answers |
| Twenty chunks of context per call | Rerank and send the top few; summarise long histories |
| Agent loop averaging many calls | Cap steps, use a fixed workflow where the path is known |
| Repeated FAQs answered from scratch | Prompt caching for static prefixes; a semantic cache for common questions where safe |
| Retries and failed calls | Fix validation failures upstream; count cost per successful task, not per call |
回答: 一个范围狭窄、命名清晰的操作,具有严格的输入模式(schema)、清晰的使用时机描述、尽可能幂等的行为,以及能让模型从中恢复的错误信息。将读取工具与写入工具分开,并要求破坏性操作必须经过审批。
67. Users say answers have become worse this week. Walk me through it.
优先选择
- 加上一个审批步骤,而不是一个接受任意字段的通用
- 工具。更少、更精准的工具可以减少错误调用,并使策略执行变得简单。
- 什么是 MCP?什么时候会用它而不是直接调用 API?
68. After launch, p95 latency jumps and some requests fail with throttling errors from the model service.
What I would check:
- Throttling and quota metrics for the model, by region and model ID
- Retry storms: is client retry logic multiplying load? Add jitter and a circuit breaker
- Token volume per request: did context size grow?
- Streaming: are users waiting for full responses unnecessarily?
- 当同一能力需要在多个 AI 宿主或 Agent 之间复用,或客户已将其作为标准时,使用 MCP。在单一应用内且只有一个固定集成时,直接调用 API 即可。MCP 面试题有更深入的讲解。
面试提示: 指出 MCP 标准化的是连接,而不是安全。授权、输入校验和审计仍然由你的服务器负责。
69. The customer's security team is sceptical and wants to block the project.
Answer: Treat them as partners. Ask exactly what worries them: data leaving the tenancy, model providers training on their data, access control, logging, prompt injection. Answer each specifically and offer a written security note with a data-flow diagram, storage locations, retention, identity integration and a threat model.
38. 你正在构建一个暴露 ServiceNow 事件查询功能的 MCP 服务器。你会把哪些方面做对?
70. Your demo fails in front of the customer's leadership.
回答: 先做只读工具,使用窄化的 schema,将最终用户的身份传递到 ServiceNow 而不是使用共享管理员账号,通过分页和字段过滤使响应适配上下文窗口,实施速率限制,对个人数据进行脱敏,并为每次调用记录结构化日志。
71. Mid-project, the customer keeps adding "small" requests.
72. The customer insists on an agent that closes tickets with no human review. You think it is a bad idea.
Answer: Say no to the risky version and yes to the goal. Explain the risk in their terms: wrong closures, audit findings, frustrated users. Offer a safer path: draft-and-approve first, measured accuracy over a few weeks, then automation for the lowest-risk categories once evidence supports it.
(
73. You are behind schedule. Give the steering committee a two-minute update.
),之前是
Status: amber. Go-live moves 2 weeks. Why: HR data access approved late. Done: RAG answers pass eval on 3 of 4 areas. Plan: parallel testing, scope cut on area 4. Decision needed: accept phase-2 for area 4?
39. A2A 与 MCP 有何不同?
74. Tell me about something you owned end to end, including unclear requirements.
回答: MCP 将 Agent 连接到工具和数据;A2A(Agent2Agent)将 Agent 与其他 Agent 相连。A2A 是由 Google 创建的开放协议,现作为 Linux 基金会项目托管。Agent 通过 Agent Card 宣告自身能力,并使用 JSON-RPC 通过 HTTP 交换任务和消息。
75. Walk me through a root cause analysis you wrote.
当独立构建和拥有的 Agent(可能来自不同供应商)需要相互委派工作时,使用 A2A。在同一个团队的系统内,普通函数调用或图框架更简单。参见 A2A 协议详解。
76. Tell me about a time you were wrong in front of a stakeholder.
回答: 将短期状态(当前对话和任务)与长期记忆(跨会话保留的偏好或事实)分开,按用户或租户划分长期记忆的范围,存储时附带来源和有效期,并让用户可以查看和删除它。
77. Design an agent that works across Salesforce, Jira, ServiceNow and AWS for a GCC's customer-escalation process.
User (Teams) -> SSO -> Orchestrator (graph)
-> Tool gateway / MCP servers
-> Salesforce: account, entitlements
-> Jira: linked bugs, release status
-> ServiceNow: incident, change records
-> AWS: CloudWatch metrics (read-only)
-> Policy + approval -> write actions
-> Audit log + traces -> evaluation- FDE 的大部分时间都花在集成和身份上,而大多数上线延期也源于此。这些问题能区分出真正交付过系统的人和只做过演示的人。
- AI Agent 应该以用户身份、服务账号身份,还是以自身身份行事?
- 回答: 默认以用户身份、使用委托的、范围受限的令牌行事,这样 AI Agent 永远不会拥有超出用户本身的权限。对于后台任务,使用具有狭窄权限范围的专用 Agent 身份,绝不要使用共享管理员账号。
78. Design a permission-aware RAG assistant for a bank's internal policies.
对于 Microsoft Entra ID,这意味着使用诸如代表用户的令牌交换流程来访问下游 API;其他身份提供商也有等价的令牌交换模式。在每个操作上同时记录人类身份和 Agent 身份。AI Agent 身份与访问涵盖了这些模式。
User -> SSO (Entra ID) -> API -> retrieve(query, user_groups, latest) -> rerank -> LLM + citations -> answer / abstain -> trace -> eval Sync job: docs + ACLs -> index (tombstones)
79. Design an IT-operations multi-agent platform that triages alerts and proposes remediations.
回答: API 速率限制和配额、分页、字段级和记录级安全、每个客户高度定制的字段和工作流、独立的沙箱和生产实例、API 版本变更,以及会重试的 webhook 或事件投递。
80. Design a claims-document processing system for an insurer with strict cost and accuracy targets.
44. 如何将 Entra ID 登录接入 AI 应用,并将其用于检索权限?
回答: 使用 OpenID Connect 让用户登录,在 API 端验证令牌(签名、签发者、受众、过期时间),读取组或角色声明,并将其映射到检索和工具授权时使用的访问过滤器。
81. A customer wants an enterprise AI agent in production in 30 days. How do you plan it?
一个面试官喜欢的细节:当用户属于很多组时,令牌可能携带超额指示器而不是完整的组列表,因此 API 必须通过 Microsoft Graph 查询组。对该查询做短暂缓存,并处理撤销。
| Days | Focus | Deliverable |
|---|---|---|
| 1 to 5 | Discovery with business owners, security and IT | One-page scope: workflow, users, success metric, data sources, out-of-scope list |
| 6 to 10 | Data, identity and system access; architecture and risks | Architecture, access requests raised, evaluation set of 50 to 100 real cases |
| 11 to 15 | Thin end-to-end prototype on real data, read-only tools | Working demo with baseline evaluation scores |
| 16 to 20 | Integration, permissions, guardrails, human approval for write actions | Tested build in staging, threat model reviewed |
| 21 to 25 | Deployment, monitoring, runbooks, pilot users | Pilot release with dashboards and rollback |
| 26 to 30 | Measure against the baseline, fix the top failures | Results report, demo and next-phase roadmap |
82. The AI system fails during a live business operation and the customer escalates. What do you do in the first hour?
- 云(AWS 和 Azure)——FDE 面试
- 你不需要成为云架构师,但你的设计必须能通过客户的安全审查和运维团队的检验。许多 FDE 团队主要在 AWS 上工作,而在以微软为核心的企业中 Azure 也很常见。
83. How do you write a P1 incident update for a customer?
84. The customer says the agent completed a task, but the transaction never happened. How do you investigate?
85. A customer demands a feature you believe is unsafe, such as an agent deleting production records autonomously. What do you say?
添加带脱敏的日志、预算和告警,以及文档化的回滚方案。说明你会遵循客户的落地区和打标标准,而不是自创一套。
86. A customer architect and your engineering team disagree on the architecture. How do you resolve it?
48. 密钥存放在哪里,如何轮换?
87. How would you measure the ROI of an enterprise AI solution?
Set the baseline before you build. Example: 5,000 support tickets a month, 20 minutes each by hand, 8 minutes with AI assistance. Time saved = tickets x (old time - new time) = 5,000 x 12 minutes = 1,000 hours a month. Convert that with the customer's real loaded labour cost, then subtract model inference, cloud, human review, development and maintenance costs. Report quality alongside it (error rate, escalations, customer satisfaction), because time saved on wrong answers is not a saving.
88. The customer wants AI in a regulated process, such as loan approval. How do you approach it?
回答: 存放在托管密钥存储中(AWS Secrets Manager、Azure Key Vault 或同类产品),绝不放在代码、镜像、git 中的环境文件或提示词里。工作负载通过自身的身份(IAM 角色、托管标识)获得访问权限,轮换是自动化的,服务无需重新部署即可获取新凭证。
89. Call a customer's inventory API that sometimes returns HTTP 500 or takes 20 seconds. Show retries and timeouts.
import logging
import requests
from requests.adapters import HTTPAdapter
from urllib3.util.retry import Retry
log = logging.getLogger(__name__)
session = requests.Session()
retry = Retry(
total=3,
backoff_factor=1, # waits grow between attempts
status_forcelist=[429, 500, 502, 503, 504],
allowed_methods=["GET"], # only retry idempotent calls
)
session.mount("https://", HTTPAdapter(max_retries=retry))
def get_inventory(url):
try:
resp = session.get(url, timeout=(3, 10)) # connect, read
resp.raise_for_status()
return resp.json()
except requests.Timeout:
log.warning("inventory API timed out", extra={"url": url})
except requests.HTTPError as err:
log.warning("inventory API error: %s", err)
except requests.RequestException as err:
log.error("inventory API request failed: %s", err)
return None90. Process a 10 GB CSV without loading it into memory.
import pandas as pd
def process_large_csv(path, out_path):
total = 0
for i, chunk in enumerate(pd.read_csv(path, chunksize=100_000)):
valid = chunk.dropna(subset=["account_id", "amount"])
valid.to_csv(out_path, mode="a", header=(i == 0), index=False)
total += len(valid)
return total91. Implement a rate limiter: 10 requests per minute per user.
import time
class TokenBucket:
def __init__(self, capacity, refill_per_sec):
self.capacity = capacity
self.tokens = capacity
self.refill = refill_per_sec
self.last = time.monotonic()
def allow(self):
now = time.monotonic()
self.tokens = min(self.capacity,
self.tokens + (now - self.last) * self.refill)
self.last = now
if self.tokens >= 1:
self.tokens -= 1
return True
return False
buckets = {}
def allow_request(user_id):
bucket = buckets.setdefault(user_id, TokenBucket(10, 10 / 60))
return bucket.allow()答: 提示词注入是指由用户输入或隐藏在文档、电子邮件、网页或工单中的不可信文本,它试图覆盖系统的指令。通过检索内容进行的间接注入是更大的企业风险。要分层防御,因为没有任何提示词能完全阻止它。
92. The same webhook arrives several times. Make processing safe.
将检索到的文本和工具返回的文本视为数据,与指令明确分离
from psycopg2.errors import UniqueViolation
def handle_webhook(event, db):
try:
db.execute(
"INSERT INTO processed_events (event_id, status) VALUES (%s, 'processing')",
(event["event_id"],),
)
except UniqueViolation:
return {"status": "already_processed"}
try:
perform_business_operation(event)
db.execute("UPDATE processed_events SET status='done' WHERE event_id=%s",
(event["event_id"],))
except Exception:
db.execute("UPDATE processed_events SET status='failed' WHERE event_id=%s",
(event["event_id"],))
raise93. How would you structure a FastAPI service for an enterprise AI application?
Amazon Bedrock Guardrails 或 Microsoft Foundry 中的内容过滤器等托管方案可以覆盖部分层面;业务规则通常需要你自己编写代码。同时也要衡量误报率,因为过度拦截会阻碍产品落地。
94. When do you use asyncio, threads, processes or a task queue?
- 在真实项目中,AI 治理是什么样的?
- 答案: 一份包含风险评级、明确负责人、经批准的模型和数据来源的用例登记表,发布前的文档化评测,提示词和模型的变更控制,事件处理,以及定期审查。前沿部署工程师提供证据:评测报告、数据流图、审计日志。
一些客户会参照 ISO/IEC 42001 来建立 AI 管理体系,服务欧盟用户的团队还必须考虑《欧盟人工智能法案》。
95. Your EKS-hosted AI application has high latency. Where do you look?
- 答案: 梳理资产(数据、系统、凭证)、入口点(聊天、文档、工具输出、电子邮件),以及 Agent 可以执行的操作。然后对每条路径进行攻击:通过每个输入通道进行注入、通过工具进行权限提升、通过输出或链接进行数据外泄、通过失控循环造成钱包耗尽(拒绝服务式攻击)。
- AI path: prompt size, retrieval and reranking time, embedding latency, model latency and throttling.
- 评测、可观测性与 AgentOps
kubectl top pods -A kubectl top nodes kubectl describe pod <pod-name> kubectl get events -A --sort-by=.lastTimestamp kubectl logs <pod-name> --previous
96. Response time grew from 2 seconds to 15 seconds after a release. How do you find the cause?
97. A Lambda function processes the same S3 event twice. How do you stop duplicate side effects?
98. A pod in EKS cannot reach a private AWS service. How do you troubleshoot?
回答: 标准的日志、指标和追踪(OpenTelemetry),再加上 AI 特有的 span:提示词版本、模型、检索到的文档 ID 和分数、token 数量、工具调用及其输入和结果、每一步的延迟、成本以及护栏决策。
99. How do you achieve zero-downtime deployments for an AI service on Kubernetes?
为错误率、延迟、成本和质量信号构建仪表盘,对异常激增设置告警,并能在用户投诉时打开完整追踪,同时脱敏敏感字段。
100. Blue-green deployment for an AI application: what is different from a normal app?
60. 如何评估一个 Agent,而不仅仅是单个答案?
101. Your Azure DevOps pipeline builds the image but the AKS deployment fails. How do you narrow it down?
回答: 评估结果和轨迹:它是否完成了任务,是否以合理的顺序用有效参数调用了正确的工具,是否遵守了策略,以及花费了多少步骤、token 和时间。
kubectl describe pod
and
kubectl get events
show image-pull and scheduling errors.
102. A pod is in CrashLoopBackOff. What is your process?
kubectl describe pod <pod-name> kubectl logs <pod-name> --previous kubectl get events --sort-by=.lastTimestamp
103. The Terraform state file is corrupted. What do you do?
terraform state list
,
terraform state pull
and
terraform plan
. Restore a known-good version if appropriate, reconcile differences carefully (import rather than recreate), and document what happened. Never run
terraform apply
blindly against a state you do not trust.
104. What is Terraform drift, and how do you handle it?
terraform plan
, decide whether the change was intentional, then either codify it or revert it through the normal reviewed workflow. Treat unexplained drift on security resources as a security event.
105. Design a CI/CD pipeline for an agentic AI application.
- 回答: AgentOps 是针对 Agent 的运维规范:将提示词、工具和模型配置一起进行版本管理,以评估结果作为发布门槛,逐步灰度上线,在生产环境中监控质量和成本,并能快速回滚。
- 生产环境故障排查场景
- 场景轮次会交给你一个出故障的系统,并观察你的排查方法。请阐述你的假设、你会收集的证据,以及如何防止问题再次发生。
63. 用户反馈 RAG 聊天机器人给出了错误答案。你会如何调试?
106. How do you design disaster recovery for an enterprise AI platform?
回答:收集具体的失败案例,打开其追踪记录,并将每次失败归类为检索类(正确内容从未到达模型)、生成类(正确内容存在但答案错误)或数据类(数据源本身错误或过时)。按类别修复,而不是盲目调整提示词。
107. A customer wants an LLM inside its own data centre, with no data leaving. How do you approach it?
108. A customer has 100 million records and wants AI search. Do you put everything in a vector database?
109. The model provider has an outage. How should your application behave?
110. An agent must run SQL against a production database. How do you secure it?
111. How do you stop an agent taking unauthorised actions even if its prompt is manipulated?
112. How do you design an application that supports several LLM providers?
113. How do you migrate a RAG application from one vector database to another?
114. How do you handle context-window overflow?
115. The multi-agent system is too expensive and hard to maintain. What do you recommend?
116. Design a production document-ingestion pipeline.
Upload -> Object storage -> Event -> Queue -> Workers -> OCR / parsing -> Validation -> Chunking + metadata -> Embeddings -> Vector index -> Evaluation + monitoring
冲突:新旧政策版本是否同时存在?按版本过滤
117. The application works in development but fails in production. What do you compare?
指令:是否要求仅根据上下文回答、引用来源,并在无法回答时弃权?
118. How would you design a multi-region, highly available AI application?
格式:是否要求模型计算或比较表格?预先结构化数据或使用工具
119. Migrate a monolith to an AI-enabled microservices architecture.
模型:更强的模型能否在评测集上解决问题,成本是否合理?
120. You join a customer project on day one. How do you show value within 30 days?
生产环境注意事项:将忠实度与检索指标分开跟踪,这样你才能判断系统的哪一半出现了回归。
65. 一个 AI Agent 创建了用户无权提交的 ServiceNow 工单。请说明修复过程。
121. How do you implement structured logging in a production Python service?
回答:首先将其视为安全事件:遏制(禁用写入工具或该 Agent),根据审计日志评估影响,通知所有者。然后找出控制链在何处失效,因为模型选择某个操作绝不能足以直接执行它。
import json, logging, sys, uuid, contextvars
request_id = contextvars.ContextVar("request_id", default="-")
class JsonFormatter(logging.Formatter):
def format(self, record):
return json.dumps({
"ts": self.formatTime(record),
"level": record.levelname,
"service": "kb-assistant",
"request_id": request_id.get(),
"msg": record.getMessage(),
})
handler = logging.StreamHandler(sys.stdout)
handler.setFormatter(JsonFormatter())
log = logging.getLogger("app")
log.addHandler(handler)
log.setLevel(logging.INFO)
request_id.set(str(uuid.uuid4()))
log.info("retrieval finished")66. 每次请求成本约为 ₹8,目标是 ₹0.50(示意性数字)。如何实现?
122. How do you validate request payloads and configuration in a Python AI service?
回答: 先测量钱花在哪里,然后优先削减最大的开销。常见的罪魁祸首是每一步都使用大模型、检索上下文过大、Agent 循环调用次数过多、没有缓存,以及重试。
from pydantic import BaseModel, Field
from pydantic_settings import BaseSettings
class AskRequest(BaseModel):
question: str = Field(min_length=3, max_length=2000)
top_k: int = Field(default=5, ge=1, le=20)
class Settings(BaseSettings):
kb_id: str
aws_region: str = "ap-south-1"
request_timeout_s: float = 20.0
settings = Settings() # reads KB_ID, AWS_REGION ... from the environmenttop_k
also caps cost and latency.
123. Write a function that splits text into overlapping chunks.
def chunk_text(text: str, size: int = 200, overlap: int = 40) -> list[str]:
if overlap >= size:
raise ValueError("overlap must be smaller than size")
words = text.split()
chunks, step = [], size - overlap
for start in range(0, len(words), step):
piece = words[start:start + size]
if piece:
chunks.append(" ".join(piece))
if start + size >= len(words):
break
return chunks124. Implement top-k similarity search in Python without a vector database.
新增或变更的源文档,或解析逻辑的改动
import numpy as np
def top_k(query_vec, doc_vecs, k=5):
q = query_vec / np.linalg.norm(query_vec)
d = doc_vecs / np.linalg.norm(doc_vecs, axis=1, keepdims=True)
scores = d @ q # cosine similarity
idx = np.argpartition(-scores, k)[:k]
return idx[np.argsort(-scores[idx])], scores生产环境注意事项: 将失败案例加入测试集,并让评测门禁阻止引发该问题的那类变更。
125. How do you test code that calls an LLM?
68. 上线后,p95 延迟飙升,部分请求因模型服务的限流错误而失败。
- 回答: 你很可能触碰了模型的配额或并发上限,而重试和长上下文使情况更糟。先稳定系统,再解决容量和效率问题。
- 我会检查的内容:
126. How do you stream LLM responses to the browser from FastAPI?
Return a
StreamingResponse
that yields tokens as server-sent events, so users see the answer start in about a second instead of waiting for the full completion.
from fastapi import FastAPI
from fastapi.responses import StreamingResponse
app = FastAPI()
@app.get("/ask/stream")
async def ask_stream(q: str):
async def events():
async for token in llm_stream(q): # your model client
yield f"data: {token}\n\n"
yield "data: [DONE]\n\n"
return StreamingResponse(events(), media_type="text/event-stream")127. What are embeddings, and how do you choose an embedding model?
在这些角色扮演中,面试官是客户或高级利益相关者。通常没有唯一正确答案;他们观察的是你提出什么问题、是否保持诚实、是否保护最终成果。回答行为类问题时,要给出具体的情境、你做了什么、结果如何,以及你会做出什么改变。
- 客户的安全团队持怀疑态度,想要阻止该项目。
- 回答: 把他们当作合作伙伴。准确询问他们的担忧是什么:数据离开租户、模型提供商使用其数据进行训练、访问控制、日志记录、提示词注入。逐项具体回答,并提供一份书面安全说明,包含数据流图、存储位置、保留策略、身份集成和威胁模型。
128. When does keyword search beat vector search?
129. What is reranking, and why is a cross-encoder more accurate than the first retrieval step?
回答: 保持冷静,坦率说明发生了什么,如果有备用方案,切换到录制的运行或备用环境。不要当场归咎于模型或客户的数据。事后找出根本原因,发送一份简短的书面说明说明修复情况,并将该案例加入测试集。
130. How do you build a RAG evaluation set, and which metrics do you track?
预防也是答案的一部分:使用客户的真实数据进行演练,在演示前冻结配置,并保留一份录制备份。相关模式见 为什么 AI 演示在企业生产环境中失败。
| Stage | Metric |
|---|---|
| Retrieval | Recall@k, MRR (mean reciprocal rank), context precision |
| Generation | Faithfulness to retrieved context, answer correctness, citation accuracy |
| Behaviour | Correct refusals, permission leaks (must be zero) |
| Operations | p95 latency, cost per query |
72. 客户坚持要一个无需人工审核就能关闭工单的 AI Agent。你认为这是个坏主意。
131. What should a production prompt template contain, and how do you manage prompt changes?
回答: 对有风险的方案说不,对目标说是。用他们的语言解释风险:错误关闭工单、审计问题、用户不满。提供一条更安全的路径:先采用草拟加审批模式,用几周时间衡量准确率,一旦有证据支持,再对风险最低的类别实现自动化。
132. What are prompt caching and semantic caching, and when are they safe?
73. 你的项目进度落后了。请给指导委员会做一个两分钟的进展汇报。
133. Apart from temperature, which generation settings matter?
- 回答: 先讲状态和你需要的决策,然后是原因、恢复计划和风险。高管们要的是清晰明了,而不是一次架构巡礼。
- 面试提示: 尽早带着方案汇报坏消息能建立信任。而由发起人自己发现坏消息则会摧毁信任。
74. 讲讲你从头到尾负责过的一件事,包括需求不明确的情况。
134. How do you route requests between small and large models?
回答: 选择一个你从模糊的起点一直推进到可用结果的故事,包括那些不起眼的部分:你提出的问题、你记录下来的假设、你为获取反馈而发布的小版本、文档、交接和监控。
135. What is LangGraph, and what are its core concepts?
75. 讲讲你写过的一份根因分析。
- 回答: 给出时间线、影响、根因(而不仅仅是触发因素)、促成因素、修复方案,以及带责任人和日期的后续行动。保持无指责的风格。
- 如果你从未写过,面试前为你自己项目中的某次失败写一份;这是你能带来的最有说服力的材料之一。
76. 讲讲你在利益相关者面前出错的一次经历。
136. How do checkpointing and human-in-the-loop approval work in LangGraph?
回答: 选择一个真实的错误,说明你多快承认了它、你如何修复它,以及你做出了什么改变以避免再次发生。
thread_id
with each run. Before a risky node, for example "update the ticket", the graph calls an interrupt; the state is saved and the run stops. The application shows the proposed action to an authorised person, then resumes the same thread with their decision. Because the state is persisted, the approval can come minutes or days later, and the run survives restarts. Log who approved what, against the thread ID, for the audit trail.
137. How do you stop an agent from looping forever or running up a huge bill?
- 系统设计场景
- 每个设计问题的回答都应从澄清问题开始:用户、数据、系统、数据量、安全约束和成功标准。然后画图,再覆盖故障模式、评测、成本和运维。
- 为一家 GCC 的客户升级处理流程设计一个跨 Salesforce、Jira、ServiceNow 和 AWS 工作的 AI Agent。
- 回答: 一个轻量编排器(图或工作流)调用通过 MCP 服务器或内部工具网关暴露的窄工具,每个系统一个,每个都强制执行最终用户的权限。读取操作自由进行;写入操作需经过策略检查,高风险操作还需人工审批。
138. Single agent or multi-agent: how do you decide?
139. What does Amazon Bedrock provide, and what would you use for RAG on it?
Retrieve
or
RetrieveAndGenerate
API, Guardrails, IAM roles and CloudWatch. For depth, see
Amazon Bedrock Knowledge Bases interview questions,
AWS Bedrock interview questionsand
Bedrock AgentCore interview questions.
140. Amazon Bedrock or Microsoft Foundry: how do you choose for a customer?
- 每个系统的速率限制和配额,对参考数据使用退避和缓存
- 跨系统的评测场景,使用模拟工具和预置记录
- 生产环境考量: 从对四个系统中一次升级处理的只读摘要开始。它能快速交付价值,并在启用写入功能之前赢得所需的信任。
78. 为一家银行的内部政策设计一个具备权限感知的 RAG 助手。
141. AWS Lambda or ECS/Fargate for an AI API?
回答: 从 SharePoint 和 Confluence 摄取内容,采用结构感知分块,嵌入到向量存储(如带 pgvector 的 PostgreSQL)中,并为每个分块附加访问组、版本和生效日期。查询时,通过 Entra ID 进行身份验证,使用按用户组过滤的混合搜索进行检索,重排序,带引用生成答案,并在证据薄弱时拒绝回答。
142. Why containerise GenAI applications, and how do you keep the images small and safe?
覆盖刷新任务,确保已撤销或被取代的文档会从索引中移除;日志中的个人数据处理;通往模型服务的私有网络;由合规团队审核的评测集;以及针对跨组数据泄露的负面测试。
- 设计一个用于告警分诊和提出修复建议的 IT 运维多 Agent 平台。
- 答案: 分诊 Agent 将相关告警分组并拉取上下文(近期部署、运维手册、类似的历史事件);诊断步骤通过只读工具查询指标和日志;修复步骤从经过批准的运维手册目录中提出操作建议。任何变更的执行都必须经过变更管理和人工审批。
See Docker interview questions.
143. How would you autoscale an LLM-backed service on Kubernetes?
144. A customer wants to self-host an open model on Kubernetes with GPUs. What do you plan for?
- 答案: 使用流水线而非 Agent:用小模型对文档类型进行分类,通过结构化输出将字段提取到经过验证的模式中,应用确定性的业务规则,并将低置信度或高价值的案例路由给人工审核员。存储提取结果时附带来源页码引用,以便审计。
- 将非紧急工作分批处理以降低成本,对照标注样本测量字段级准确性,将人工审核率作为质量和成本信号进行监控,并通过接口设计支持模型替换。
- 进阶场景:交付、升级与客户压力
145. How do you structure Terraform for an AI platform across dev, staging and production?
第 81 至 120 题是资深和高级候选人越来越多会面对的进阶场景题。它们很少只有一个正确答案;面试官关注的是你如何拆解问题、把控制点放在哪里,以及你将如何证明结果。
plan
in CI with a human review before
apply
to production, and tag resources for cost tracking. Keep fast-changing items such as prompts and document ingestion out of Terraform; they belong in the application's release process. See
Terraform interview questions.
146. Design database tables for conversations, feedback and traces in an AI assistant.
A minimal relational design:
conversations(id, user_id, tenant_id, created_at)
messages(id, conversation_id, role, content, model, prompt_version,
input_tokens, output_tokens, latency_ms, created_at)
retrievals(id, message_id, document_id, chunk_id, score, rank)
tool_calls(id, message_id, tool_name, arguments_json, status,
approved_by, created_at)
feedback(id, message_id, user_id, rating, comment, created_at)147. Postgres with pgvector or a dedicated vector database?
148. Which three portfolio projects best prepare you for FDE interviews, and how do you present them?
- 16 至 20 | 集成、权限、防护栏、写操作的人工审批 | 在预发布环境中经过测试的版本、已评审的威胁模型
21 至 25 | 部署、监控、运维手册、试点用户 | 带有仪表盘和回滚机制的试点发布
149. A business leader asks, "Can AI replace our support team?" How do you answer?
Reframe it around outcomes and evidence: "Let's find out which ticket types AI can resolve safely and measure it." Propose a pilot that drafts answers for agents or automates a narrow, low-risk category, with a human checking the output, then report deflection rate, handling time, accuracy and customer satisfaction against a baseline. Be clear about limits: sensitive, ambiguous and high-impact cases stay with people, and someone must own quality. Honest expectations build more trust than a bold promise.
150. How do you hand over a solution to the customer's team at the end of an engagement?
- 在第一周(而不是第四周)就指出可能破坏时间表的依赖项(访问审批、安全审查、数据质量)。更长远视角请参阅 FDE 前 90 天指南。
- AI 系统在一次实时业务操作中发生故障,客户升级了问题。你在第一个小时会做什么?
- 先控制影响: 将 AI 路径关闭或切换到安全的回退方案(人工队列、只读模式、上一个版本),使业务流程得以继续。
12-week FDE interview preparation roadmap
| Week | Focus | Practical outcome |
|---|---|---|
| 1 | FDE fundamentals and Python | A Python REST API with tests |
| 2 | SQL, APIs and integrations | A service that syncs data between two systems safely |
| 3 | LLMs, tokens and tool calling | An LLM feature with structured JSON output |
| 4 | RAG and vector search | Document search with citations and an evaluation set |
| 5 | LangGraph and agents | A stateful agent with human approval for write actions |
| 6 | MCP and enterprise tools | An MCP server exposing two read-only tools |
| 7 | AWS | The RAG app deployed on AWS with IAM and secrets |
| 8 | Azure | The same app on Azure with Entra ID sign-in |
| 9 | Docker, Kubernetes and Terraform | Containerised, provisioned with Terraform, running on Kubernetes |
| 10 | CI/CD, observability and SRE | A pipeline with an AI evaluation gate, dashboards and alerts |
| 11 | Security and system design | A threat model and one full enterprise design written up |
| 12 | Mock interviews | Coding, system design and customer role-play rounds, recorded and reviewed |
将 Agent 报告的内容与记录系统显示的内容区分开来。追踪工具调用、HTTP 状态和响应体、交易 ID、数据库提交、任何下游服务、重试历史和幂等性记录。常见原因是错误被吞掉、超时被当作成功处理,或异步任务随后失败。修复方案是架构层面的:Agent 只有在验证了权威结果之后才能报告完成,例如通过回读该记录。
- FDE is a high-impact engineering role: you own a production system and its business outcome inside one customer's environment.
- Start every design and role-play with discovery: users, data, systems, permissions and the success metric.
- 客户要求一个你认为不安全的功能,例如 Agent 自主删除生产记录。你会怎么说?
- 用具体例子解释特定风险,然后提供一条能满足业务目标的路径:先进行只读分析、生成建议操作清单、明确审批、事务边界、软删除或备份,以及审计追踪。记录该决策及其决策者。绝不要为了赶工期而绕过安全控制。
- 客户的架构师与你的工程团队在架构上存在分歧。你如何解决?
- 把讨论从观点转向需求:安全性、性能目标、成本、可运维性以及客户现有的标准。根据这些需求对比各选项,如果分歧在于性能,就运行一个小型原型或基准测试,并记录决策及其负责人。目标是做出一个站得住脚的决策,而不是赢得争论。
- 你会如何衡量企业级 AI 解决方案的投资回报率(ROI)?
- 在构建之前先设定基线。例如:每月 5,000 个支持工单,人工处理每个需 20 分钟,借助 AI 辅助需 8 分钟。节省的时间 = 工单数 ×(旧时间 − 新时间)= 5,000 × 12 分钟 = 每月 1,000 小时。用客户实际的综合人力成本将其换算成金额,再扣除模型推理、云服务、人工审核、开发和维护成本。同时报告质量指标(错误率、升级转人工率、客户满意度),因为在错误答案上节省的时间并不是真正的节省。
- 客户想在受监管的流程(如贷款审批)中使用 AI。你会如何处理?
- 在选择架构之前,先引入安全、合规、法务和业务负责人。确定适用的法规、数据驻留、保留期限、审计和人工监督要求。设计上让 LLM 起辅助作用(信息提取、摘要、政策查询),而受监管的决策仍由经过批准的确定性规则和获得授权的人员来做。LLM 不应独立批准贷款。
进阶实战编码场景
89. 调用一个客户的库存 API,它有时返回 HTTP 500 或耗时 20 秒。请展示重试和超时处理。
追问:你会重试 POST 请求吗? 不能盲目重试。POST 可能创建重复的订单或支付。只有在服务器支持幂等键(idempotency key)或具备其他去重机制时才可重试。
Some loops include a data structures and algorithms screen, so keep basic fluency with arrays, hash maps, sorting and complexity. Most of the weight usually goes to practical coding, AI system design and customer rounds.
90. 处理一个 10 GB 的 CSV 文件,但不将其全部加载进内存。
在生产环境中,还要校验数据模式(schema)、隔离格式错误的行、设置检查点以便失败后可恢复,并避免重启时重复处理。对于更大规模或周期性的工作负载,应迁移到 Spark 或托管数据服务。
91. 实现一个限流器:每用户每分钟 10 次请求。
这是单进程的演示。如果有多个 API 副本,应将令牌桶保存在共享存储(如 Redis)中并使用原子更新(Lua 脚本或类似方式),当达到限制时返回 HTTP 429 并附带 Retry-After 头。
92. 同一个 webhook 到达了多次。如何保证处理安全?
在执行任何工作之前,先以原子方式认领每个事件,例如对事件 ID 施加唯一约束:
If you want structured preparation rather than practising alone, Cloudsoft's FDE PRO program runs 12 weeks of live sessions, four engineering sessions and one Customer Engagement Lab each week, with 60+ labs, five enterprise projects and the simulated "GlobalBank" customer engagement capstone, plus mock interviews and placement support until you're placed. Join in the classroom beside Ameerpet Metro or live online, and call +91 96660 19191 for a free demo. If you want a broader foundation across AI, ML, cloud and cyber security first, look at the APEX AI, ML, Cloud and Cyber Security program.