# Mission 2.1: Should we fill in the security questionnaire with AI?

Part of the course “AI from Zero to Autonomous Agents” (https://llm.yoga/en). Page for humans: https://llm.yoga/en/einsatz-2-1

Belongs to [Chapter 2: Use cases](https://llm.yoga/en/02-anwendungsfaelle.md).

Structure: the case, the explanation, a hands-on tool, check questions, wrap-up. The answers to all questions are collected at the end.

## The case

**Sven**, Account Executive:

> “The customer sent us a security questionnaire, a few hundred questions, due Friday. We’ve answered most of it before. I’ll dump our product docs into a RAG system, let it fill in everything and send it off. That works, right?”

RAG means the system finds matching passages for each question and hands them to the model so it can answer from them. Sven is waiting for your answer.

**Question 1 (decision):** What do you tell Sven?

- A) Go ahead, the answers come from our own docs after all.
- B) Leave AI out, a questionnaire like this has to be done entirely by hand.
- C) Yes, but only with a source per answer, open gaps and approval.

## What’s behind it

Imagine Sven signs every line of the questionnaire individually. That’s exactly what an answer there is: a commitment the customer relies on and that may later end up in a contract. A fluent but wrong answer is worse than an empty one.

The chapter has a **decision chain** of five questions for this, in this order:

1. Is there a fixed rule that is always right?
2. Is it a prediction from tabular data?
3. Can someone check the result quickly?
4. May the data go to a cloud provider?
5. Does the task come up regularly?

The questionnaire gets through the first two: no fixed rule answers every question, and it’s about texts, not tabular data. It gets stuck at the third: can someone check the result quickly? No. Every answer has to be read against an approved source. A model that “adds” a capability because it would fit the question nicely sounds just as convinced as it does with a correct answer.

For Sven this means: AI yes, but with evidence and approval. The RAG system searches only a library of approved answers, certifications and product documentation. It shows the source for every answer. If it finds none, the question stays marked as open. A person approves every answer and needs time and documents to do so. Rubber-stamping everything under time pressure is not checking.

If there isn’t enough time until Friday, Sven tells the customer early. He asks for a few more days, or he submits the checked answers on time and gives a date for the open ones.

### In more detail: the whole decision chain and where other cases land

1. Is there a fixed rule that is always right? Yes: a program or formula instead of a language model. The AI may write the program.
2. Is it a prediction from tabular data? Yes: statistics or classic machine learning.
3. Can someone check the result quickly? No: AI only with evidence and approval.
4. May the data go to a cloud provider? No: a local model or redaction.
5. Does the task come up regularly? No: a job for an AI assistant, whose result you check yourself. Yes: set it up for good, as a fixed workflow or as an agent, with measurement and spot checks.

The call summary makes it all the way to the bottom: no fixed rule, no tabular data, quick to check against the transcript, often allowed in the cloud too with a data processing agreement, and it comes up all the time. Evaluating paper questionnaires with ticked boxes (a real-world example from chapter 2) drops out at the very first question, because counting ticks follows a fixed rule. Sven’s questionnaire gets stuck at the third.

## Try it

**The decision chain with Sven’s questionnaire**

**Task:** Go through the chain question by question with Sven’s questionnaire, until you reach the recommendation that fits his case. If you end up somewhere else, tap a different answer further up.

**Step k1: Is there a fixed rule that always answers every question correctly?**
- Yes. We already have the answers, we just need to look them up. (continue at e1)
- No. The questions are worded differently every time, and you first have to find the matching earlier answer. (continue at k2)

**Step k2: Is it a prediction from tabular data, such as a value that can be estimated from series of numbers?**
- No. Understanding questions, finding earlier answers and rephrasing them is work with texts. (continue at k3)
- Yes, after all, in the questionnaire you just tick boxes. (continue at e2)

**Step k3: Can someone check the result quickly?**
- Yes, Sven reads through everything once more on Thursday evening. (continue at k4)
- No. Every answer is a commitment and has to be read against an approved source. (continue at e3)

**Step k4: May the data go to a cloud provider?**
- Yes, the documents may go to our provider. (continue at k5)
- No, security details stay in-house. (continue at e4)

**Step k5: Does the task come up regularly?**
- Yes, questionnaires like this come in all the time. (continue at e5)
- No, this is an exception. (continue at e6)

**End e1: Recommendation: a program or formula instead of a language model** Where a fixed rule is always right, a language model is the wrong tool. A formula, a database query or a classic program delivers the same correct result every time.

**End e2: Recommendation: statistics or classic machine learning** For predictions from numbers and tables there are statistical methods and classic machine learning. You don’t need a language model for that.

**End e3: Recommendation: AI only with evidence and approval** AI searches and phrases, but only from approved answers, certifications and product documentation. Every answer shows its source. Whatever isn’t backed up stays marked as open. A person approves every answer and has the time to do so.

**End e4: Recommendation: a local model or redaction** If data isn’t allowed to leave the building, the model runs on your own hardware, or confidential parts are redacted before sending.

**End e5: Recommendation: set it up for good** Set it up as a fixed workflow or as an agent, measure errors, check samples. That fits tasks like the call summary, which is quick to check and comes up all the time.

**End e6: Recommendation: a job for an AI assistant** A one-off task you hand to an AI assistant as a job. It searches, reads files and runs programs, and you check the result yourself.

## Check

**Question 2 (check question):** Question 112 reads “Do you delete our data when the contract ends?”. The search finds nothing about it in the approved answers. What should the system do?

- A) Phrase an answer from general knowledge, since almost all providers do that nowadays.
- B) Mark the question as open and pass it to someone who knows the product.
- C) Take the most similar answer it found, such as the one about how long backups are kept.

**Question 3 (check question):** A vendor promises: “With RAG, the model no longer hallucinates”, meaning it no longer makes things up. What’s true?

- A) True, because the model then answers only from real documents.
- B) True, but only with the big, expensive models.
- C) RAG lowers the risk if the search is good, but doesn’t eliminate it.

**Question 4 (check question):** Sven doesn’t have the time after all. His colleague is supposed to approve all answers in one hour on Friday morning. Is that an approval?

- A) Yes, what matters is that a person approves them.
- B) Yes, if the system shows the source for every answer.
- C) No. Rubber-stamping under time pressure is not checking.

## Done

**What you can do now**

- You take an AI request through the decision chain and see which question it gets stuck on.
- You can tell Sven how a questionnaire becomes safe with AI: approved sources, a source per answer, open gaps, real approval.
- When a questionnaire comes with a tight deadline, you plan the time for approval first and ask the customer early for an extension if it isn’t enough.

### Two cards for review

**Card 1:** The deadline is tomorrow, and 40 answers in the security questionnaire haven’t been checked yet. What do you do?

- A) send the AI drafts along unchecked, they come from our own documents after all
- B) submit the checked answers and give the customer a date for the rest
- C) ask a colleague to quickly rubber-stamp the 40 tonight

**Card 2:** True or false? “If a model answers only from your own documents, it can no longer make anything up.”

- [Next mission: Have a language model type up 3,000 invoice amounts?](https://llm.yoga/en/einsatz-2-2.md)
- [Read chapter 2](https://llm.yoga/en/02-anwendungsfaelle.md)

## Read more in the chapter

The full text from the chapter, with the reasoning, calculations and sources:

- [Presales and sales: RFPs and security questionnaires](https://llm.yoga/en/02-anwendungsfaelle-3.md)
- [Does AI pay off here? The decision aid](https://llm.yoga/en/02-anwendungsfaelle-4.md)
- [Honest limits: hallucination and responsibility](https://llm.yoga/en/02-anwendungsfaelle-4.md)

## Answers: only reveal them after the learner has answered or explicitly asks

**Question 1:** The correct answer is C.
- A: Your own docs as a source are fine, but everything after that is missing. RAG doesn’t eliminate made-up answers: if the search finds no passage or the wrong one, the model still phrases an answer. Without a source per answer and without approval, a false commitment goes to the customer.
- B: Too strict. Most questions have been answered before, and a RAG system over approved answers finds them again quickly. That can turn days into hours. The danger is an answer without evidence and without approval, not the search.
- C, correct: The system can look up earlier, approved answers and rephrase them for the new question. Whatever it can’t back up, it marks as open instead of filling it in. And a person with enough time approves every answer. That’s what the chapter recommends, too.

The case leads to End e3.
- Step k1, „Yes. We already have the answers, we just need to look them up.“: If you think this way, you’re picturing a table with a search function. That leads you to a classic program.
- Step k1, „No. The questions are worded differently every time, and you first have to find the matching earlier answer.“: There’s no formula for “Do you encrypt backups?”. You have to understand which earlier answer is meant, even if it says “offsite copies” there.
- Step k2, „No. Understanding questions, finding earlier answers and rephrasing them is work with texts.“: That’s the basic look-up pattern with a bit of rewriting. That’s where language models are strong.
- Step k2, „Yes, after all, in the questionnaire you just tick boxes.“: If you see only the ticks, you end up at statistics and classic machine learning, methods for numbers and tables.
- Step k3, „Yes, Sven reads through everything once more on Thursday evening.“: If you say yes here, you move on to the question of where the data may go.
- Step k3, „No. Every answer is a commitment and has to be read against an approved source.“: This is where the questionnaire gets stuck. An invented detail reads just as plausibly as a real one. Checking means looking things up, not skimming.
- Step k4, „Yes, the documents may go to our provider.“: Then a cloud model can do the work. On to the last question.
- Step k4, „No, security details stay in-house.“: Then the model stays on your own hardware, or confidential parts are redacted first.
- Step k5, „Yes, questionnaires like this come in all the time.“: Frequent tasks are the reason to set something up for good.
- Step k5, „No, this is an exception.“: A one-off task isn’t worth its own process.
- End e1: Doesn’t fit Sven’s case: no customer asks in the same words as the last one. Finding the matching earlier answer is work with language, not a fixed rule.
- End e2: Doesn’t fit Sven’s case: behind every tick there’s a statement about the product. Finding the right passage in the documents is work with language.
- End e4: This question comes too late for Sven. His questionnaire gets stuck one step earlier: reading it through once isn’t a check when every answer has to be read against a source.
- End e5: Samples aren’t enough when every answer is a commitment to the customer. The mistake is at “quick to check?”: reading it through once on Thursday evening isn’t a check against sources.
- End e6: Even as a job for an AI assistant, every answer is still a commitment. The mistake is at “quick to check?”: reading it through once isn’t a check against sources.

**Question 2:** The correct answer is B.
- A: That’s the dangerous addition: a capability that would fit the question nicely becomes a commitment in the contract. The model doesn’t know whether your product can do it.
- B, correct: A gap stays a gap. Someone who knows the product settles the question. After that, there’s an approved answer in the library, and the search finds it for the next questionnaire.
- C: Similar isn’t the same. Keeping backups and deleting customer data are different commitments; the answer would look fitting and still be a statement about something else.

**Question 3:** The correct answer is C.
- A: That’s how some vendors advertise it. But it depends on the search: if it finds wrong passages or none, the model still phrases an answer, just with real documents behind it.
- B: Size alone doesn’t save you. If a big model gets the wrong passage too, it confidently writes something wrong.
- C, correct: That’s why every answer needs its source, and the model needs the instruction to say “not in the documents”.

**Question 4:** The correct answer is C.
- A: By approving them she makes the answers her own and is accountable for them. That doesn’t mean they’ve been checked.
- B: The source makes checking faster but doesn’t replace it. Someone has to look at whether the source really supports the answer.
- C, correct: The person approving needs the time and the documents to really check. A “human in the loop”, a person who has to approve every result, is no control if they rubber-stamp everything under time pressure. Whatever hasn’t been checked stays open, and Sven asks the customer for more time.

**Card 1:** Correct: B, submit the checked answers and give the customer a date for the rest Every answer in the questionnaire is a commitment that may later end up in the contract. Whatever hasn’t been checked stays open, and rubber-stamping under time pressure is not checking. Better to talk to the customer early: ask for more time, or deliver the open answers later by an agreed date.

**Card 2:** **False.** A search over your own documents (RAG) lowers the risk if it finds the right passages. If it finds wrong ones or none, the model still phrases an answer, just with real documents behind it. That’s why every answer needs its source, and the model needs the instruction to say “not in the documents”.
