Przejdź do głównej zawartości

Study guide

Ta treść nie jest jeszcze dostępna w Twoim języku.

An open sketchbook on a drafting table at dawn, a building sketched on one page and a data model on the other, with a pencil, an eraser, a cup and a lamp.
Image generated with AI

Study guide for chapter 16 of the Data Architect course. Read the four modules first; this page helps you check what stuck.

About this study guide. It’s built only from this course’s own content and the published Salesforce exam guide’s list of objectives. It is never based on real exam questions, and it doesn’t claim to know what’s on the exam. If you’ve taken the exam, please don’t send me questions from it: the certification agreement forbids sharing them, and memorizing answers is the wrong way to become an architect anyway.

The current exam guide predates agents, so nothing in this chapter maps to an exam objective. That doesn’t make it optional: it’s the data architect’s part of making an agent trustworthy. So the checklist below is what you should be able to do, not what the exam asks.

Nothing here is on the current exam. Tick these off as the skills an architect needs; each links to where it’s taught.

Grounding

Choosing the pattern

Trusting it

Proving it

These are the habits from this chapter that an architect needs.

  • Grounding anchors the model to evidence; the source of truth still matters.
  • Don’t search for a fact you already know how to find. Ask the authoritative system.
  • Start with the sObjects. Add semantic or hybrid retrieval when the shape of the information demands it.
  • Four ways to find things: structure, words, meaning, or a hybrid. Choose from the question.
  • The assistant is tireless. Agents retrieve far more often than people: keep every path selective and limited, and check it with the Query Plan.
  • Finding something isn’t permission to use it.
  • Retrieval is a route to the evidence, not the evidence itself.
  • Relevant isn’t the same as authoritative, current or applicable. Retrieval can fail even when it works.
  • Don’t duplicate data for an agent without an architectural reason.
  • Organizational policy → user permissions → agent job → grounding.
  • If a reasonable human shouldn’t decide with this evidence, neither should the agent.
  • Recommendation and action can have different thresholds.
  • A correct answer doesn’t prove the grounding is correct; a wrong answer doesn’t prove the model was wrong.
  • Tracing can only tell you as much as the architecture makes identifiable: carry IDs, versions and timestamps.
  • Use deterministic logic where the business requires deterministic behavior.
  • Test the architecture decisions, not just how well the agent talks.
  • The fix is often a data owner and a process, not a better prompt.
  • Your test set runs every release, and every model change.
  • Design → test → observe → improve.
  • The data architect makes sure the agent has the right evidence; the broader agent architecture decides how it’s used.
TermIn one line
GroundingVerifiable external evidence supplied to a model as context
ContextEverything supplied to the model to help it reason
RAGRetrieval-augmented generation: find relevant content and supply it to the model
Deterministic accessAsking the authoritative system directly for a known fact
Semantic retrievalFinding information by similar meaning rather than shared words
Hybrid retrievalCombining meaning-based and keyword or structured retrieval
Named QueryA SOQL query an administrator defines once and exposes as a reusable API, for example to an agent
RetrieverA Data 360 component that finds and returns relevant indexed content
Composed groundingCombining lookups and retrieval for one decision
ChunkA section of a document indexed and retrieved on its own
Grounding thresholdThe evidence standard required before an agent may rely on it, set by consequence
ProvenanceWhere a piece of evidence came from
Decision recordThe evidence and rules actually used for a decision, at that moment
Context relevanceDid retrieval supply evidence relevant to the question?
Answer faithfulnessIs the answer supported by the supplied evidence?
Answer relevanceDoes the answer address the question?
Session TracingAgentforce’s structured record of what happened in an agent session, stored in Data 360
Agent Platform TracingTracing of the Flow, Apex, prompts and services underneath an agent
Grounding accuracyThe share of sampled answers that are correct against the source data
MemoryWhat an agent keeps beyond one conversation, with its own rules

Short scenarios in the style of the course. Decide your answer before you open it.

1. The Recipient's agent needs this delivery's status and the window dispatch confirmed. The team plans to embed every delivery in a vector index. Your view?

It’s a known fact with a known source: look it up directly on the record, with a query or an action. Retrieval is for knowledge you need to find, not facts you know how to find. Reread Don’t search for a fact you already know how to find.

2. On Redrock's damage claim, retrieval finds exactly the right wording, in Keystone's claim policy. Which of the six checks failed, and what's the fix?

Relevant: semantically relevant, operationally irrelevant. Filter on what you know (the partner, the version in force, the document type) before searching by meaning. Reread Metadata can narrow the search before meaning does.

3. The finance agent credits a haul-away item. Redrock's policy credits damage reported within 30 days, and two paragraphs later excludes haul-away items. Hallucination?

Not necessarily: the agent may have received the rule without its exclusion, which is incomplete grounding caused by chunking or retrieval. Follow the evidence before blaming the model. Reread Chunking determines what the agent can retrieve.

4. Say two versions of Redrock's claim policy are both effective November 1, and neither says it replaces the other. Should the agent decide?

No. That’s material ambiguity: a reasonable person shouldn’t decide on it, so the agent should surface it and escalate rather than pick one. Reread What happens when trustworthy sources disagree?.

5. Retrieval returns Redrock's 30-day rule. The delivery was November 3 and the claim came on day 41, and the agent says it's inside the window. Which measure shows it, and where do you look?

Answer faithfulness is poor while context relevance is good, so the problem is how the agent used the evidence (instructions, reasoning, or logic that should be deterministic), not the data or retrieval. Reread Answer Faithfulness.

6. The finance agent recommends the $180 credit at 9:00, and a person approves it at 2:00. What should happen before the credit goes out?

Check the evidence that can change again, such as new photos and earlier claims on the same delivery, just before acting; Redrock’s policy probably hasn’t changed. And the claim number stays the idempotency key, so a second claim can’t produce a second credit. Reread Current at recommendation time may not be current at action time.

7. "We're building an agent, so we need vector search." Do you?

Not necessarily. Start with the sObjects: if the question depends on known fields, relationships and states, structured retrieval answers it with security and freshness you already have. Add semantic or hybrid retrieval when the information is unstructured or the question is about meaning. Reread Start with the sObjects.

8. An agent action caps each account's opportunities at 200, but it filters on an unindexed field. Some accounts have more than 10,000 opportunities. Is the cap enough?

No. The cap decides what the agent receives, not what the database reads: an unindexed filter on a skewed parent scans every child before the cap applies. Pair the cap with a selective, indexed filter, and check the action’s query with the Query Plan. Reread Caps don’t make a query cheap.

9. The agent decided a $180 credit, a person approved it, and the credit was written as $1,800. Was it a bad agent decision?

No. The reasoning and the decision were right; the failure happened in the action. Platform Tracing follows the work into the Flow or Apex underneath. Reread Agent Platform Tracing.

10. The agent keeps working out 20% of $900 as $360. The team plans another round of instruction changes. What would you ask instead?

Why a language model is doing a business calculation at all. Move it into an action, a Flow or Apex, that returns $180 every time, and let the agent call it and explain it. Reread Sometimes the right fix is deterministic logic.

  • Each module ends with its Salesforce references (Data 360 retrievers, hybrid search, Testing Center, Session Tracing and the observability infrastructure).