FDE Times dataFDE jobs open 932▼14 Change in open roles over 7 days, like-for-like: roles from companies we started tracking this week are left outNew in 7 days 62Companies hiring 202Remote-friendly 24%Median US pay $201kTop hirer Databricks 92
中文VI

The newspaper of the Forward Deployed Engineer

Guides

When an agent is wrong, the prompt may not be to blame

Tracing a bad number back through five stages, from serving to generation, is the data engineering an FDE needs without becoming a data engineer.

ShareLinkedInFacebookX

In brief

  • Data passes through five stages: generation, storage, ingestion, transformation and serving. A fault can sit in any of them.
  • FDEs do not have to build data infrastructure as data engineers do, but they must be able to read a pipeline and write fluent SQL.
  • According to FDE Academy, FDEs differ from data engineers in two ways: they work directly with customers and must handle a wider range of systems.
Diagram of the five stages of the data lifecycle, arranged left to right: Generation, Ingestion, Storage, Transformation, Serving. Data flows from left to right. A dashed orange arrow runs backwards from Serving, where the agent reads the view, to Generation. The Generation stage is highlighted because the fault lies there: the source system changed how it records branch codes.
In the Da Nang branch example, the agent gave a wrong answer, but the fault was not in the model. Tracing back from the view the agent reads to the source system shows that the ERP changed how it records branch codes, while the branches table still held the old codes. The five stages follow the book Fundamentals of Data Engineering.

Zero late orders at the Da Nang branch in September: that is what the agent reports in a hypothetical deployment at a delivery company. It is your second week on site, and the operations manager glances at the screen and says at once that it is wrong. The branch received a complaint about a late delivery just last week.

Many engineers would instinctively edit the prompt or swap the model. But the number may have been wrong before the model ever read it. It passed through a chain of systems, and every stage of that chain can drop data.

The job now is to trace the chain backward. Being able to do so does not make you a data engineer, but it separates an FDE who guesses in front of the customer from one who can say, “The fault is here, and we’ll fix it today.”

What is data engineering, and where does the FDE fit?

IBM defines data engineering as the design and building of systems to collect, store and analyze data at scale. Data engineers, in IBM’s description, are the software engineers who build and run an enterprise’s data infrastructure.

FDE Academy treats data engineering as a central part of FDE work but points to a key difference: data engineers usually work internally, while FDEs work directly with customers. A data engineer’s debugging mindset carries over, it says, but the range of systems has to broaden.

In practice, a data engineer knows one stack deeply, and it is one their own team built. An FDE meets a different stack at every customer, built by someone else, and has to understand it fast enough not to slow the deployment.

Five stages, one question each

Fundamentals of Data Engineering, according to Johnny Winter’s review, divides the data lifecycle into five stages: generation, storage, ingestion, transformation and serving. The same five stages serve as a map for tracing faults.

Because storage underpins every other stage, the table below departs from the book’s order and follows the path data actually takes when you debug: generation, ingestion, storage, transformation, serving.

Generation belongs to the source systems: the ERP, the mobile app, the warehouse software. This is where an FDE first touches customer data, and it is almost always owned by someone else.

Ingestion, as IBM describes it, brings data from many sources into a common ecosystem. ETL pipelines automate the work of extracting data, standardizing its format and loading it into a database.

Storage, according to IBM, is the hardware and software that writes, organizes and protects data, and comes in three types: file, block and object. Transformation relies heavily on SQL, and serving is the point at which data reaches its users, through a dashboard, an API or your agent.

Stage What an FDE should ask on site
Generation Which system creates this data, who owns it, and has anything changed recently?
Ingestion How does the data arrive, how often, and did the last run succeed?
Storage Where does the data live: a database table, an export file or object storage?
Transformation Which SQL query or job turns the raw data into the number on display?
Serving Which table, view or API does the user or agent read from?

Tracing the “no late orders” number

Back at the Da Nang branch, you start from the last stage, serving: the agent is reading from a view called late_orders_by_branch. Its definition shows that it joins the orders table to the branches table on branch_code, then filters for orders where delivered_at > promised_at.

Two suspects appear immediately. The first is the join, which drops orders whose branch code has no match. The second is that undelivered orders have a null delivered_at, and a comparison with null removes them from the result, even though they may be the latest orders of all.

The first check targets the first suspect:

SELECT o.branch_code,
       COUNT(*)              AS order_count,
       COUNT(b.branch_code)  AS orders_matching_branch
FROM orders o
LEFT JOIN branches b ON o.branch_code = b.branch_code
WHERE o.created_at >= '2026-09-01'
GROUP BY o.branch_code
ORDER BY order_count DESC;

Say the result shows an unfamiliar code with a few hundred orders and a match count of 0. That suggests the source system has changed how it writes branch codes while branches still holds the old ones. The fault then lies at the generation stage, and neither the agent nor the view’s SQL caused it.

Before concluding, rule out ingestion by counting rows by load date, to be sure last night’s export job actually ran (assuming the table has a loaded_at column):

SELECT CAST(loaded_at AS DATE) AS load_date,
       COUNT(*)                AS row_count
FROM orders
GROUP BY CAST(loaded_at AS DATE)
ORDER BY load_date DESC;

The third query deals with the remaining suspect. Orders that are overdue but not yet delivered must also count as late, which means comparing promised_at with the current time.

SELECT o.branch_code,
       COUNT(*) AS late_order_count
FROM orders o
WHERE o.created_at >= '2026-09-01'
  AND (
        o.delivered_at > o.promised_at
     OR (o.delivered_at IS NULL AND o.promised_at < CURRENT_TIMESTAMP)
  )
GROUP BY o.branch_code
ORDER BY late_order_count DESC;

If Da Nang’s figure here is well above the one in the view, you have found a second fault, this time in transformation. Three SQL queries and less than an hour later, you have a specific answer for the operations manager, along with the name of the person to contact on the IT team that owns the ERP.

How deep is deep enough?

Simplilearn calls SQL a foundational skill for data engineers. For FDEs it matters even more, because it is the common language for reading any customer’s transformation logic. You need to write JOIN, GROUP BY and window functions fluently, and to understand a hundred-line view written by someone else.

You do not need deep skills in building and running infrastructure, such as tuning clusters or designing an enterprise-wide data warehouse. That belongs to the customer’s data engineers. Your job is to speak to them in the right terms and point to the right fault.

The book also lists six “undercurrents” that run through the whole lifecycle: security, data management, DataOps, data architecture, orchestration and software engineering. Use them as a checklist when scoping: who may see this data, which job orchestrates the pipeline, and who is told when it breaks.

What to do when you arrive on site

In the first week, diagram the five stages for the specific data flow your use case depends on, rather than for the whole company. Write the owner’s name beside each stage. At a customer site, knowing whom to ask matters as much as knowing what to ask.

Next, request read access to transformation and serving first, since those are the quickest stages to check. Prepare a set of SQL checks: row counts by load date, counts of records with unmatched keys, and counts of nulls in important columns. Run them whenever the data looks odd.

When you find a fault in a stage someone else owns, do not quietly patch it in your own code. Report it to the owner with the SQL that proves it, then agree on a temporary workaround.

Common mistakes

The most common mistake is to treat the data in the final table as truth and pour effort into fixing the AI. The second is to patch dirty data inside the agent’s code, so that every change in the source system forces another fix in a place nobody knows about.

The third is less noticed: understanding only one type of storage. If you know only relational databases, you will struggle when the customer’s data sits in thousands of files in object storage. This is the kind of system breadth that people moving from data engineering to FDE work have to acquire.

If you are targeting an FDE role, look in job descriptions for terms such as “integration,” “data pipeline” and “SQL” alongside “customer-facing.” On a résumé, one line about tracing a fault from a dashboard all the way to the source system is more persuasive than a list of tools.

This week’s exercise

Take a report you often use at work, pick one number on it, and trace it through all five stages to the system that created it. Any stage you cannot explain is what you need to learn next.

Models will keep getting better. Customer data will still pass through five stages owned by different people, and the FDE who can walk the whole path will always be the first one called.

Was this article useful?

Use with your AI assistantAsk Claude ↗Ask ChatGPT ↗
5 sources
Read next on the roadmap · Stage 2: Broad engineeringThe client wants AI tagging, not a new event architectureOne new consumer on the existing queue does the job, provided it never charges twice, hides failures or sets off an event storm.