The interview problem
Your enterprise AI assistant has five manually configured customers. Sales expects twenty more next month. Each customer brings an identity provider, document connector, permissions, model-destination constraints and a pilot evaluation set. Design repeatable onboarding without creating a separate application fork for each customer.
Original FDE practice, not a reported company interview. Counts and service limits are hypothetical. Primary technical documentation retrieved September 27, 2026; interview date not applicable.
1. Define what “ready” proves
Separate commercial signup, provisioned infrastructure, connected data and approved production use. A tenant is ready only when its required capabilities and isolation checks pass for a named configuration version. A green provisioning job does not prove that document permissions or model data destinations are correct.
Capture a versioned tenant specification: stable tenant ID, deployment tier, identity mapping, approved regions and model destinations, connector type and scope, retention settings, quotas, enabled workflow capabilities and acceptance owners. Store secret references rather than secret values. Tenant display names and email domains are mutable attributes, not database security boundaries.
Classify requests as supported configuration, a reusable adapter extension or unsupported scope requiring a product decision. A customer-specific code branch looks fast once but creates an independent upgrade and incident surface. Configuration is not harmless by definition: customer-specific scripts embedded in configuration create code-level testing and maintenance obligations even if they are stored outside the main repository.
2. Reconcile desired state through a control plane
approved tenant specification + version
↓
onboarding workflow / step ledger
↓
identity → resource provisioning → connector validation
↓
isolated ingestion → permission and quality tests
↓
acceptance evidence → activation pointer
↓
tenant runtime + monitoring + operational handoffUse an explicit state machine: REQUESTED, VALIDATED, PROVISIONING, CONNECTED, TESTING, READY and ACTIVE, with actionable failure states. Each step records an idempotency key, desired version, external resource reference, attempt status and evidence. Reconciliation compares desired and observed state after a timeout instead of assuming the external operation failed.
Use unique tenant/resource-purpose identities when creating resources. A worker crash after creation but before recording success must recover the existing resource through its external identity or lookup. If the provider cannot support safe deduplication or lookup, stop the step for manual reconciliation rather than creating another database or connector blindly.
Workers carry a workflow generation. The control plane rejects completion from an obsolete generation, and privileged external mutations go through a gateway that checks current ownership. A database fence alone cannot undo a request already sent to a third party. Inventory and reconcile those in-flight operations before a replacement worker changes the same external resource.
3. Prove tenant context reaches every boundary
Resolve tenant membership from authenticated identity and an approved mapping. Never trust a client-supplied tenant header by itself. Propagate tenant context through API authorization, retrieval filters, object paths, cache keys, queues, tool execution and audit records. A background job needs the same boundary even though it has no browser session.
Use two synthetic tenants with deliberately overlapping document IDs, user names and query text. Tenant A's user must not retrieve B's document, receive B's cached answer, inspect B's job status or invoke B's connector credentials. Test both ordinary APIs and support/admin tooling. A successful login proves authentication, not isolation.
Keep tenant isolation separate from document authorization within one tenant. Two colleagues can belong to tenant A while having different document access. Validate group membership changes, revocation and stale cache behavior. A shared vector index needs a mandatory enforced scope; a dedicated index still needs correct credentials, routing and backups.
Choose pooled or dedicated resources according to the approved deployment requirements and operational cost. Dedicated resources can simplify some boundaries but do not eliminate mistakes in the shared control plane. Report exactly which boundaries were tested instead of claiming universal isolation from one negative query.
4. Validate connectors before bulk ingestion
Use the customer's approved service identity and smallest required scope. In a customer-approved test collection, confirm the connector can list and fetch records and observe source-side updates and removals while preserving permissions. A read-only ingestion connector should not gain source-write access merely to run this test; the fixture owner performs those source changes. Record source IDs and checkpoints independently of human-readable titles. Detect whether an apparently empty collection means zero data, insufficient access or an incomplete listing.
Build acceptance fixtures for pagination, duplicate events, revoked access, deleted documents and expired credentials. Replaying a page must not duplicate documents; a revoked document must stop appearing within the declared freshness bound. A connector that copies text successfully but loses permission lineage is not ready.
Separate connector errors from content-quality errors. Unsupported file types and malformed documents go to a visible exception inventory with counts and examples. Define whether activation permits partial ingestion and which critical collections must be complete. Do not report “100% synced” using only the subset the connector happened to enumerate.
5. Calculate onboarding throughput and contention
Suppose each of twenty new tenants has 50,000 documents. Total initial ingestion is one million documents. A tenant connector capped at five documents/s needs at least 10,000 seconds, about 2.78 hours, ignoring retries and processing overhead. A shared pipeline at 80 documents/s needs at least 12,500 seconds, about 3.47 hours, for all tenants.
Those are resource lower bounds, not a completion forecast. At five documents/s each, twenty tenants would request 100/s, exceeding the shared 80/s capacity. Equal four-document/s shares would meet the shared limit and also take about 3.47 hours per tenant under ideal steady conditions. Uneven document sizes, embeddings and downstream quotas may dominate.
Reserve capacity for existing production traffic and schedule onboarding with per-tenant queues and backpressure. A large new customer should not starve live refreshes for existing tenants. Measure bytes, tokens and expensive transformations as well as document counts; one huge PDF is not equivalent to one short note.
If setup currently requires four engineering hours per tenant, twenty customers consume eighty hours before incident work. Automating provisioning may reduce that component, but permission review and customer acceptance still require accountable humans. Track step duration and rework to identify the actual bottleneck rather than measuring only elapsed workflow runtime.
6. Make activation a versioned decision
Assemble evidence for the exact tenant specification and application version: identity tests, isolation tests, connector scope, ingestion reconciliation, permitted model destination, evaluation results and operational ownership. Any change to a relevant field invalidates the affected evidence. A passed test from version 3 cannot authorize a broader connector scope in version 4.
Activate by atomically pointing the tenant runtime at an approved ready version. Keep long-running jobs on their captured workflow version or migrate them at an explicit checkpoint. Capturing a version must not freeze authorization: enforce current revocations and emergency destination restrictions before each privileged access. New requests should not combine the new model destination with old permission mappings because configuration fields were updated independently.
For a pilot, restrict the initial user group and capabilities according to the agreed plan. Start with draft-only behavior if that is the approved scope; enabling writes requires its own tool authorization and approval checks. The customer sees supported workflows, incomplete collections and the support route before accepting production use.
Exercise rollback: route new requests back to the previous compatible version, reconcile active jobs and preserve source checkpoints. If the new version made an irreversible schema or data change, changing a pointer is insufficient. Use compatible staged migrations or explicitly plan restoration and downtime.
7. Recover partial setup without deleting customer data
If identity setup succeeds but ingestion fails, retain the tenant in a non-active state with a clear failing step. Retry from the recorded checkpoint after correction. Do not restart every completed step or delete a customer's source collection as “cleanup.” Distinguish resources created by onboarding from pre-existing customer resources.
Compensation is a planned operation with ownership checks. Deleting a newly created empty test index may be appropriate; deleting an index now containing accepted production data is a different action. Verify references and lifecycle state before removing anything, and keep recoverable evidence of what happened.
If a secret expires, pause affected steps and request the established rotation process. If permissions broaden unexpectedly, block activation until the mapping is revalidated. If an old worker reports success after cancellation, reject its state update and reconcile any external effect. Missing telemetry or incomplete acceptance must remain visible rather than being converted into READY.
8. Keep tenants upgradeable
Maintain a configuration schema and migration path, with a capability matrix for supported adapter versions. Run representative tenant fixtures during releases, including optional features and restrictive deployments. A single golden demo tenant does not cover every supported combination; select risk-based combinations and disclose untested ones.
Give support a tenant health view with workflow version, connector checkpoint, ingestion exceptions, quota usage and approved contacts. Keep secrets and raw sensitive documents out of that overview. Hand over retry and escalation procedures, ownership of identity changes and the criteria for pausing ingestion.
Trade-offs: a strict template improves predictability but rejects some legitimate requirements. Extension points support variation but enlarge the compatibility surface. Dedicated infrastructure costs more and still needs shared-control-plane protection. Fast self-service setup is useful only when its validation can distinguish readiness from partial success.
Follow-ups: How would you onboard a tenant with an unsupported identity provider? What if two customers use identical source document IDs? How would you recover a lost resource-creation response? Which changes invalidate acceptance evidence? How do you migrate fifty tenants to a new connector without fifty forks?
9. Self-review rubric
- Define readiness separately from provisioning and signup.
- Represent tenant requirements as validated, versioned configuration.
- Reconcile partial external operations using stable identities.
- Test tenant and within-tenant permission boundaries across background paths.
- Reconcile source scope and exceptions before claiming sync completeness.
- Calculate shared ingestion limits and protect existing workloads.
- Bind activation to evidence, preserve rollback and hand over ownership.
Sources and related practice
AWS SaaS Lens: Tenant Isolation, publication date unspecified; retrieved September 27, 2026. Background for isolation as a deployment-dependent architectural requirement. The workflow, tests and capacity examples here are original design choices.
Continue with customer permission mapping, integration cutover and operational ownership handover.
Continue your preparation
Choose a connected learning path or browse more FDE interviews questions. Read our editorial method and attribution policy.