Cloud Network, Fleet Operations, Shared Files and SSO Blueprint
System DesignModel answerLast updated
Plan a layered cloud network for 2,000 servers with IP sizing, unified Linux and Windows operations, shared file storage, and single sign-on across services.
You are the infrastructure lead for a company moving a fleet of about 2,000 servers (a mix of Linux and Windows) into a single cloud region. Produce a design that covers the four areas below, and state your assumptions up front.
- Network layout. Describe how you would divide a virtual private network into public, private and management zones. Explain how traffic is routed between the zones and how you enforce isolation using subnets, route tables and security groups.
- Address planning. Choose CIDR blocks for each zone. Estimate how many IP addresses the fleet needs, taking into account the addresses each subnet reserves for itself and expected growth.
- Central administration. Propose one approach to manage both Linux and Windows machines: configuration management, patching, access control and inventory.
- Shared storage. Recommend a file storage option that many servers can use at the same time. Compare candidates on performance, consistency and cost.
- Single sign-on. Design a setup where users authenticate once and reach many services. Cover the identity provider you would pick, the trust relationships, and how tokens flow.
Where it helps, discuss trade-offs, failure modes and how you would validate and roll out the design.
Hints
Hint 1
Start by listing assumptions: number of availability zones, growth factor, on-prem connectivity (and ranges to avoid overlapping), and compliance rules such as no direct SSH/RDP from the internet.
Hint 2
For IP math, subtract the per-subnet reserved addresses (5 in AWS) from 2^(32 - prefix), size per availability zone rather than for the whole fleet, and add headroom for growth plus extra network interfaces from load balancers, endpoints and containers.
Hint 3
Security groups that reference other security groups express tier-to-tier rules more cleanly than CIDR rules. Use network ACLs only as coarse stateless guardrails, and remember return traffic on ephemeral ports.
Hint 4
For shared storage, first decide whether both operating systems need the same data. If yes, a multi-protocol file service is attractive; if not, a native NFS service for Linux and an SMB service for Windows are simpler.
Model answer
Hard Try it yourself first — then compare your approach, complexity and edge cases.
1. Assumptions
- One region, three availability zones (AZs). Multi-region is a later extension.
- 2,000 servers today, about 60% Linux and 40% Windows, with 2x growth over three years.
- Hybrid connectivity to on-prem via VPN or dedicated link, so cloud CIDRs must not overlap on-prem ranges.
- No inbound SSH/RDP from the internet, centralized audit logs, MFA for all humans.
2. Network segmentation and routing
Use four tiers, one subnet per tier per AZ:
| Tier | Contents | Default route |
|---|---|---|
| Public | Load balancers, NAT gateways | Internet gateway |
| Private app | App servers, containers | NAT gateway in the same AZ |
| Data | Databases, caches, file system mount targets | Local only, plus private endpoints to storage services |
| Management | Monitoring, directory servers, CI runners, interface endpoints | Local, plus a route to on-prem via a transit gateway |
Key points:
- The implicit local route lets every subnet reach every other at layer 3, so isolation comes from security controls, not routing.
- One NAT gateway per AZ avoids a cross-AZ single point of failure and cross-AZ data charges.
- Private endpoints for the management service, logging, key management and token service let instances operate with no internet egress.
- Security groups (stateful) are the primary control and reference each other: the load balancer group accepts 443 from the internet, the app group accepts the app port only from the load balancer group, the database group accepts its port only from the app group.
- Network ACLs (stateless) are a coarse backstop, for example denying everything into the data tier except app and management ranges. Common mistake: forgetting ephemeral return ports.
- Access to hosts goes through a session-based tool, not bastions. Flow logs and threat detection provide visibility.
3. CIDR plan and IP math
Each subnet loses 5 addresses (network, router, DNS, reserved, broadcast), so usable = 2^(32 - prefix) - 5.
Sizing the app tier:
- 2,000 / 3 AZs is about 667 per AZ.
- 2x growth gives about 1,334 per AZ.
- Add about 30% for extra interfaces (load balancer nodes, endpoints, secondary IPs, container tasks): about 1,750 per AZ.
- A /22 gives 1,019 usable (too small); a /21 gives 2,043 (fits).
Allocation inside a 10.20.0.0/16 VPC:
| Tier | Prefix per AZ | Usable each | Total usable |
|---|---|---|---|
| Public | /24 | 251 | 753 |
| Management | /24 | 251 | 753 |
| Data | /23 | 507 | 1,521 |
| Private app | /21 | 2,043 | 6,129 |
Twelve subnets reserve 60 addresses. Total usable capacity is about 9,150 against a need of roughly 2,600 with overhead. The rest of the /16 stays free for new tiers or a fourth AZ. If pods use VPC addresses (for example Kubernetes with a VPC CNI), add a secondary range for pods. Track allocations in an IP address management tool to prevent overlap.
4. Central management for Linux and Windows
Use a cloud-native fleet manager (AWS Systems Manager as the example) because one agent and one IAM model cover both OS families.
- Access: browser or CLI sessions authorized by IAM roles, no SSH keys, all sessions logged.
- Patching: separate baselines per OS, groups selected by tag, rollout in waves (canary, 10%, rest) gated on health checks.
- Configuration: a desired-state service running Ansible or PowerShell DSC documents.
- Images: build golden images in a pipeline and prefer replacing instances over in-place drift.
- Inventory and compliance: agent-collected software inventory plus a configuration-rules service, aggregated across accounts.
- Host identity: join Windows to a managed directory and use SSSD on Linux against the same directory.
Existing tools (Ansible, Chef, SCCM) are fine if already in use, but add a control plane to run and often need inbound connectivity.
5. Shared storage
| Option | Clients | Consistency | Performance | Cost |
|---|---|---|---|---|
| EFS (NFS) | Linux | Close-to-open, POSIX locks | Low-ms, elastic throughput | Highest per GB among the managed options, cheap infrequent tier |
| FSx for Windows (SMB) | Windows, directory-integrated | Strong | Sub-ms SSD | Moderate plus throughput charge |
| FSx for NetApp ONTAP | NFS and SMB | Strong, snapshots, dedupe | Sub-ms with tiering | Higher base, offset by dedupe |
| FSx for Lustre | Linux | POSIX | Very high throughput, HPC/ML | Per GB |
| Object storage | HTTP API | Strong read-after-write, no POSIX locks | High throughput, higher latency | Lowest |
Recommendation: if both OS families must see the same data, use the multi-protocol ONTAP option. If datasets are separate, use EFS for Linux and FSx for Windows for Windows, since each is simpler and natively managed. Keep bulk and archival data in object storage. Place mount targets in the data subnets, restrict ports (NFS 2049, SMB 445) to the app security group, encrypt with managed keys and back up centrally. Avoid block-volume multi-attach unless running a cluster-aware file system.
6. Single sign-on
- Identity provider: the corporate IdP (Okta or Entra ID) is the source of truth for users, groups and MFA.
- Trust: federate it into the cloud's identity center using SAML with SCIM provisioning, so groups map to permission sets and accounts. SaaS and internal apps trust the same IdP via SAML or OIDC.
- Token flow (OIDC authorization code with PKCE):
- User opens an app and is redirected to the IdP.
- The IdP authenticates the user (password plus MFA) and sets a session cookie.
- The IdP redirects back with an authorization code.
- The app exchanges the code for an ID token and access token, validates signature, issuer, audience and expiry.
- Later apps redirect to the IdP, find the existing session and get tokens silently. This is the "sign on once" step.
- Cloud access: SAML assertion goes to the identity center, which issues short-lived role credentials.
- Hosts: Windows and Linux use the directory (Kerberos) which trusts or syncs with the IdP.
- Hardening: short token lifetimes with refresh tokens, conditional access, a break-glass account outside SSO, and session logging.
7. Failure modes and validation
- AZ loss: per-AZ NAT and mount targets keep other AZs working.
- IdP outage: break-glass accounts and cached sessions.
- Address exhaustion: monitor subnet free-IP metrics and keep spare CIDR space.
- Validate with reachability analysis tools, flow-log review, patch dry-runs on a canary group and a failover drill for storage and SSO.
Common mistakes: sizing a single subnet for the whole fleet, forgetting the 5 reserved addresses, leaving SSH/RDP open, relying on NACLs instead of security groups, and ignoring overlap with on-prem ranges.