Skip to content
Preptima

Safety & Prompt Injection interview questions

Indirect prompt injection, data exfiltration through tools, sandboxing an agent's capabilities, PII handling, and what a guardrail cannot do.

3 questions in Generative AI & Large Language Models.

medium1

mediumConceptDesignScenario

How do you handle personal data in prompts, logs and traces for an LLM feature?

Decide what may cross the provider boundary and redact before it does, checking the provider's retention and training-use terms rather than assuming them. Then treat the debugging trace as a second copy of user data, with its own retention, access control and deletion obligations.

5 minmid, senior, staff

hard2

hardConceptDesignScenario

What is indirect prompt injection, and how would you defend an assistant that reads user-supplied documents?

Indirect prompt injection is when instructions hidden in content the model reads are followed as if they came from you. Instructions and data share one token sequence, so there is no complete fix and the defence is architectural: least-privilege tools, filtered output, and human approval for side effects. It also connects llm security to the point an interviewer is testing.

5 minmid, senior, staff