Multi-tenant SaaS Platforms — Cells, Rings & Progressive Delivery›Tenants: isolation and onboarding · Cheat sheet & self-check

Tenants: isolation and onboarding · wrap-up

Cheat sheet & self-check

24 questions across 5 lessons. Each answer links back to the lesson it came from.

Pick an answer to see if you got it, and why.

  1. Q1. In a SaaS product, what is a tenant?

    Show answer

    B. A tenant is the customer as a whole; it usually has many users.

    From lesson 11 · Tenancy models: silo, pool and bridge
  2. Q2. Which statement about the pool model is true?

    Show answer

    B. Pooling is cheap because everything is shared; isolation then depends on tenant-aware code and policies.

    From lesson 11 · Tenancy models: silo, pool and bridge
  3. Q3. A product pools compute and data but gives every tenant its own encryption key, and its largest bank customer its own cell. Which model is this?

    Show answer

    C. Mixing models across layers or tenants is the bridge model.

    From lesson 11 · Tenancy models: silo, pool and bridge
  4. Q4. Why are tenancy models chosen per layer rather than once for the whole system?

    Show answer

    B. A dedicated key is cheap and valuable; a dedicated cluster per small tenant is expensive. Each layer gets the model that fits.

    From lesson 11 · Tenancy models: silo, pool and bridge
  5. Q5. Where should the application get the tenant ID for a request?

    Show answer

    B. Anything the client can set freely can be forged; a signed token's claim can't be changed without breaking the signature.

    From lesson 12 · Isolating tenant data
  6. Q6. In the lab, the application role ran DELETE FROM identities without a WHERE clause as tenant acme. What happened?

    Show answer

    B. RLS applies to UPDATE and DELETE too: rows outside the policy are invisible to the statement.

    From lesson 12 · Isolating tenant data
  7. Q7. Why use SET LOCAL instead of SET for the tenant setting?

    Show answer

    B. Connection pools reuse sessions; a session-level setting can leak into another tenant's request.

    From lesson 12 · Isolating tenant data
  8. Q8. The table owner ran SELECT * and saw rows even though no tenant was set. Why?

    Show answer

    B. Owners (and superusers or BYPASSRLS roles) skip policies by default; FORCE applies them to the owner. Superusers always bypass.

    From lesson 12 · Isolating tenant data
  9. Q9. Why bind RBAC to identity-provider groups rather than to individual users?

    Show answer

    B. Kubernetes reads groups from the user's token; access follows team membership automatically.

    From lesson 13 · Teams on a shared Kubernetes cluster
  10. Q10. A namespace has a ResourceQuota on requests.cpu. A team deploys a pod without CPU requests and there is no LimitRange. What happens?

    Show answer

    B. That's why a LimitRange with default requests and limits goes with every quota.

    From lesson 13 · Teams on a shared Kubernetes cluster
  11. Q11. kubectl apply of a Deployment succeeded, but no pods appear. The namespace is at its pod quota. Where do you see why?

    Show answer

    B. Quota is checked when pods are created, by the ReplicaSet controller, after the Deployment was accepted.

    From lesson 13 · Teams on a shared Kubernetes cluster
  12. Q12. After applying a default-deny NetworkPolicy with Ingress and Egress, all apps in the namespace fail to call each other by name. What is the most likely missing rule?

    Show answer

    B. Default-deny egress blocks DNS lookups too; name resolution fails before any connection is attempted.

    From lesson 13 · Teams on a shared Kubernetes cluster
  13. Q13. A new developer signs in and gets 403 Forbidden on every command in the team's namespace. What is most likely wrong?

    Show answer

    B. Forbidden is authorisation saying no to a known identity. A rejected identity would get 401 Unauthorized.

    From lesson 13 · Teams on a shared Kubernetes cluster
  14. Q14. Why not bind tenant teams to the built-in edit ClusterRole?

    Show answer

    B. edit includes write access to networkpolicies. A tenant role should only read the guardrails the platform owns.

    From lesson 13 · Teams on a shared Kubernetes cluster
  15. Q15. Two nodes are tainted platform.example.com/tenant=team-a:NoExecute, with no policies yet. Where do team-a's pods land?

    Show answer

    B. Taints repel, labels plus nodeSelector attract. Dedicated nodes need both, written into the pod by admission policy.

    From lesson 13 · Teams on a shared Kubernetes cluster
  16. Q16. Team B adds a toleration with operator Exists and no key to its pod. Why must the platform reject it?

    Show answer

    B. A keyless Exists toleration matches all taints. The same goes for spec.nodeName, which skips the scheduler and its taint check.

    From lesson 13 · Teams on a shared Kubernetes cluster
  17. Q17. Why let teams choose a tier instead of typing their own quota numbers?

    Show answer

    B. The platform owns the numbers; teams pick a size.

    From lesson 14 · Automating tenant onboarding
  18. Q18. In the tested chart, what happened when a tenant file asked for tier 'huge'?

    Show answer

    B. required (get .Values.tiers .Values.tier) fails early on bad input; CI catches it in the pull request.

    From lesson 14 · Automating tenant onboarding
  19. Q19. With an ApplicationSet using a git files generator over tenants/*.yaml and automated prune, how do you offboard a team?

    Show answer

    B. The Git directory is the list of tenants; removing a file removes the tenant (after data retention rules).

    From lesson 14 · Automating tenant onboarding
  20. Q20. Why add a policy engine rule that generates default-deny NetworkPolicies, when the chart already creates them?

    Show answer

    B. Defence in depth: the chart is the normal path, the policy is the safety net.

    From lesson 14 · Automating tenant onboarding
  21. Q21. Where should a request's tenant and plan come from when the gateway applies rate limits?

    Show answer

    B. Signed claims can't be forged; the gateway can limit per tenant and plan reliably.

    From lesson 15 · Customer tenant lifecycle
  22. Q22. Step 4 of an onboarding workflow failed after steps 1 to 3 succeeded. What should a well-designed workflow do?

    Show answer

    B. Idempotent steps make retries safe; compensation avoids half-created tenants.

    From lesson 15 · Customer tenant lifecycle
  23. Q23. What does SCIM add to SSO?

    Show answer

    B. SSO handles sign-in; SCIM keeps the user list in sync, so leavers lose access.

    From lesson 15 · Customer tenant lifecycle
  24. Q24. Why is destroying a tenant's encryption key part of offboarding?

    Show answer

    B. Deleting every copy of data is hard; making all copies unreadable is reliable.

    From lesson 15 · Customer tenant lifecycle