Tags

Authorization

Authorization

0 lessons
3 problems
1 system design
8 AI Engineering questions
2 community items

authorization

Practice Problems

3 problems

Leakage-Safe Context Selection

Free
Not Started
Medium

Select the documents a user may see from trusted identity alone, rank them by query terms in the title and body, and return at most maxItems minimized context items without ever exposing an internal note.

AI Engineering
Data Privacy
Authorization
Multi-Tenant
Intermediate

6

RAG Chunk Eligibility

Free
Not Started
Medium

Return the first reason a retrieved chunk is excluded for a user (tenant, deletion, publication state, revision, or department), or null when the chunk is eligible.

AI Engineering
RAG (Retrieval-Augmented Generation)
Authorization
Multi-Tenant
Intermediate

10

Validated Tool Adapter

Free
Not Started
Medium

Validate a model-proposed get_ticket call (tool name, exact arguments, ID format), take the tenant and read permission from trusted context, and return a copy of only that tenant's ticket or a controlled error code.

AI Engineering
Tool Calling
Authorization
Multi-Tenant
Intermediate

6

AI Engineering

8 questions
AI Engineering

Retrieve evidence for a follow-up question

Turn a follow-up message into a standalone retrieval query, keep access filters tied to the signed-in session on every turn, and decide which turns should not retrieve at all.

ai-engineering
rag
chat
authorization

4

Easy
AI Engineering

Diagnose a missing document

Trace a missing policy exception through ingestion, eligibility, and context packing without weakening access rules.

ai-engineering
rag
chunking
authorization
citations

7

Medium
AI Engineering
Premium

Design multi-tenant RAG with deletion

Design a private multi-tenant policy assistant whose answers and citations stay correct through asynchronous updates, retries, permission changes, and deletion.

ai-engineering
rag
multi-tenant
authorization
citations
consistency

0

Hard
AI Engineering

Trace a tool call from request to answer

Follow one ticket lookup from tool declaration to answer: what the model proposes, what the application validates and executes, and what the assistant says when the result is unavailable.

ai-engineering
tool-calling
ai-agents
authorization
error-handling

5

Easy
AI Engineering

Implement a validated, tenant-scoped tool adapter

Implement a get_ticket adapter that validates model-proposed arguments, takes tenant scope from trusted context, and passes a fixture table, then explain how a bounded orchestrator handles timeouts, invalid calls, and parallel lookups.

ai-engineering
tool-calling
ai-agents
authorization
multi-tenant
error-handling

6

Medium
AI Engineering

Contain an indirect prompt injection

Explain why a retrieved document cannot grant itself authority, and name the controls in trusted code that still hold when the model follows an injected instruction.

ai-engineering
prompt-injection
security
authorization
data-privacy

4

Easy
AI Engineering

Prove a context selector cannot leak data

Implement a context selector that enforces tenant, group, and deletion rules before ranking, then design tests proving that forbidden records and internal notes never reach the model-bound payload.

ai-engineering
data-privacy
authorization
multi-tenant
security
testing

4

Medium
AI Engineering

Specify a review and escalation workflow

Specify how disputed AI feedback is re-reviewed, corrected, and escalated, with server-side authorization, artifact-bound approval, deadlines, and concurrency rules, then prove the rules with acceptance fixtures.

ai-engineering
ai-governance
authorization
state-machine

2

Medium