Design a cloud console's main page after sign-in
I was asked this
No reports yet. Sign in to say where you were asked it.
A system design interview question asked in Microsoft's system design round, last asked Dec 2025. It tests authentication, permissions and audit logging.
Design the home page of a cloud provider's console: the page a user sees right after signing in. It shows the projects or accounts they can access, a summary of the resources they may view (virtual machines, databases, storage buckets), and recent activity. The focus is on authentication, authorization and audit logging.
Requirements
- Functional:
- After sign-in, show a personalized page: accessible projects or tenants, a summary of key resources, recent activity or notifications.
- Strict tenant isolation: a user never sees resources of a tenant they have no access to.
- Role-based access control at least (Owner, Admin, Viewer), ideally with roles scoped to a project or a resource.
- Audit logs for security-relevant events: sign-in and sign-out, token issue and refresh, permission and role changes, create, update and delete actions from the console, and (your call, justified) viewing sensitive pages or listing sensitive resources.
- Non-functional: home page renders at p95 under roughly 500 to 1000 ms; 99.9% or better availability; secure by default (least privilege, safe sessions); audit logs are tamper-resistant and queryable by security and compliance teams.
Clarifying questions
- How many users, tenants and resources per tenant?
- Do we support enterprise single sign-on (SAML or OIDC) and multi-factor authentication?
- How fresh must the resource summary be?
- How long are audit logs kept, and who may read them?
What a strong answer covers
- The end-to-end flow from sign-in to render: identity provider, short-lived access tokens and refresh tokens, session cookies, then the page calling a backend that fans out to resource services.
- Where permissions are enforced: in every service on every call, not only in the UI; a central policy service with cached decisions; filtering lists by permission without leaking counts.
- Data models: users, tenants, role bindings with scopes, resources with tenant and project ids.
- Keeping the page fast: parallel fan-out, per-user caches of summaries and permissions with short lifetimes, partial rendering when one service is slow.
- The audit pipeline: events written asynchronously to a durable log, then to append-only storage with hashing or write-once retention; who can query it.
- Trade-offs: caching permissions against revocation delay, logging reads against volume and cost.
Follow-ups
- A user's role is revoked while they have the console open. How fast does it take effect?
- How do you prove to an auditor that logs were not altered?
- One tenant has a million resources. How does the summary stay fast?
Where it's asked
- Microsoft · System design · Last asked Dec 202560 min · Design discussion
What it tests
authentication · permissions · audit logging
No official answer yet. Draw yours on the right; publish it and it shows under Community.
Nothing published yet. Publish your canvas and it shows here for others to open and remix.
