← Questions

Design a cloud console's main page after sign-in

0
MicrosoftSystem designLast asked Dec 2025

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

What it tests

authentication · permissions · audit logging

Your canvas
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing