Cloud Networking and VPC Design Questions
Designing networks inside a cloud provider: VPC/VNet topology, subnets, route tables, gateways, NAT, and peering, plus private connectivity through VPC endpoints and cloud load balancers. Covers segmentation, security groups and network ACLs, hybrid connectivity to on-premises data centers over VPN or dedicated links like Direct Connect and ExpressRoute, IP address planning across many VPCs and accounts, and how cloud network design differs from traditional data-center networking.
You have an EC2 instance deployed with a public IP and Security Group allowing SSH and HTTP, but you cannot reach the instance from the internet. Provide a prioritized troubleshooting checklist covering control plane and data plane checks: route tables, Internet Gateway attachment, Elastic IP association, source/destination check, NACLs, VPC endpoint interactions, OS firewall, and instance health.
Sample Answer
Direct answer
Work in the order traffic actually travels, from the network edge inward, before touching the operating system: confirm the packet can physically reach the subnet (Internet Gateway attachment, route table, Elastic IP association), confirm nothing at the subnet or instance boundary is blocking it (NACLs, security groups, the source/destination check), and only then look inside the instance itself (OS firewall, instance health). Most "can't reach it from the internet" cases resolve in the first three checks; the instance-level checks matter mostly when everything upstream is provably correct.
Structured elaboration
| Layer | Check | What breaks if wrong |
|---|---|---|
| Control plane: routing | Route table for the instance's subnet has a route for 0.0.0.0/0 targeting an Internet Gateway (IGW) | Without this route, the subnet isn't actually "public" no matter what else is configured; traffic has nowhere to go |
| Control plane: gateway | The IGW is attached to the correct VPC (Virtual Private Cloud) | An unattached or wrong-VPC IGW makes the route above point at nothing |
| Control plane: addressing | The Elastic IP (EIP) is actually associated with the instance's network interface, not a different, stale interface | A "public IP" that shows in the console but isn't bound to the live ENI (elastic network interface) accepts nothing |
| Control plane: routing quirk | Source/destination check is disabled if this instance is meant to route or NAT (Network Address Translation) traffic for others; for a normal single-purpose instance it should be left enabled | If disabled unnecessarily nothing breaks directly, but if it's enabled on an instance that's supposed to forward traffic for others (a NAT instance or an appliance), that traffic gets silently dropped |
| Data plane: subnet boundary | Network ACL (NACL) inbound rule allows the port (e.g. 22 for SSH, 80 for HTTP) from the source, and outbound allows the ephemeral return ports | NACLs are stateless; missing the ephemeral-port outbound rule breaks replies even though the inbound request got through |
| Data plane: instance boundary | Security group inbound rule allows the port from the expected source | The most commonly correctly configured layer, but still worth confirming it wasn't scoped to the wrong CIDR (Classless Inter-Domain Routing) range |
| Data plane: endpoint interaction | No VPC endpoint or proxy is unexpectedly intercepting the traffic path for this subnet | Rare, but a gateway endpoint's route or a transparent proxy appliance can redirect traffic in ways that look identical to a routing failure |
| Instance internals: OS firewall | The instance's own firewall (iptables/nftables on Linux, Windows Firewall) actually allows the port | Cloud-level controls (security group, NACL) can be perfectly correct while the OS itself still drops the connection |
| Instance internals: health | The instance passes status checks and the service is actually listening on the expected port | A crashed service or an instance stuck in a bad state produces the exact same symptom as a network misconfiguration from the outside |
Worked example
An engineer reports an EC2 (Elastic Compute Cloud) instance with a public IP and a security group allowing SSH (Secure Shell, port 22) and HTTP (port 80) is unreachable from the internet on both ports. Working top to bottom: the route table shows a valid 0.0.0.0/0 -> igw-0123 route, and the IGW is confirmed attached to the right VPC, so routing and the gateway are fine. The Elastic IP, however, shows as associated with a different network interface than the one currently attached to the running instance, a leftover from a previous instance replacement that reused the same EIP without re-associating it. That's the root cause: traffic addressed to the public IP is being delivered to an ENI that's no longer attached to anything live. Re-associating the EIP with the instance's current primary ENI resolves it immediately, without needing to touch the NACL, security group, or OS firewall at all, none of which were ever the problem.
Trade-offs and pitfalls
The natural instinct is to start at the security group, because it's the most visible and most frequently misconfigured layer in general, but that instinct wastes time whenever the actual fault is upstream (as in the worked example) or downstream (an OS-level firewall or a crashed service) of it. Working the checklist in traffic order, rather than in order of "what I suspect," catches both cases without bias. A second pitfall specific to this scenario: source/destination check is frequently the forgotten setting, because AWS enables it by default on every instance and it silently stays that way unless someone deliberately disables it, so the setting only becomes something you have to think about when an instance is meant to forward or NAT traffic for something else, which means it rarely shows up in a general reachability checklist unless you already know to look for it there.
An EC2 in a private subnet with an S3 gateway endpoint is failing to access S3. Describe a systematic troubleshooting process to identify the root cause. Include checks for route tables, endpoint policy, IAM role permissions, NACLs, security groups, DNS resolution, and any cloud provider quirks you would examine.
Sample Answer
Direct answer
Work outward from "does the traffic even take the path I think it does" before touching identity and permissions. A gateway endpoint reaches Amazon S3 (Simple Storage Service) by injecting a special route into specific route tables, not through a DNS (Domain Name System) trick or a network interface, so the single most common root cause is a private subnet whose route table was never associated with the endpoint. Check that first, then work through the endpoint policy, the IAM (Identity and Access Management) role, network ACLs (access control lists), security groups, and DNS resolution in that order: a hang or timeout points at routing or filtering, while a fast, clean rejection points at a permissions layer.
Structured elaboration
- Route tables. A gateway endpoint (unlike an interface endpoint) has no ENI (elastic network interface) of its own. At creation time you explicitly associate it with one or more route tables, and AWS inserts a route whose destination is a managed prefix list (something like
pl-xxxxxxxxrepresenting "S3 in this Region") with the target set to the endpoint ID (vpce-xxxxxxxx). If the instance's subnet uses a different route table than the one the endpoint was associated with, that route simply doesn't exist there, and traffic falls through to whatever the default route is: a NAT (Network Address Translation) gateway if one exists (works, but silently bypasses the endpoint and starts costing data-processing fees), or nowhere if the subnet is fully private. Pull the route table for the exact subnet the instance is in and look for the prefix-list route before doing anything else. - Endpoint policy. The endpoint carries its own resource policy, separate from IAM. The default is "allow all actions on all resources," but many organizations tighten it to specific buckets or actions. If the target bucket was added to a bucket policy's allow list but never added to the endpoint policy (or vice versa), you get an accurate but confusing Access Denied.
- IAM role permissions. Check the instance profile's role for
s3:GetObject/s3:PutObject/s3:ListBucket(as applicable) on the correct resource ARN (Amazon Resource Name), then check for an explicit Deny from a service control policy or permission boundary. Separately, check the S3 bucket policy for anaws:sourceVpcecondition: if it's pinned to a different endpoint ID than the one actually serving this VPC (common once an org has more than one gateway endpoint), requests fail even with correct IAM. - NACLs. These are stateless, so the subnet's NACL needs an outbound rule allowing port 443 to the destination (S3's IP range or the same prefix list) and an inbound rule allowing the ephemeral return ports (commonly 1024 to 65535), evaluated independently in both directions. A NACL that allows the outbound request but not the ephemeral inbound reply produces a classic "request sent, response silently dropped" hang.
- Security groups. Stateful, so only the outbound rule matters (the return traffic is auto-allowed); confirm egress on 443 is actually open, since hardened baseline security groups often remove the default allow-all-outbound rule.
- DNS resolution. This is usually a red herring for a gateway endpoint specifically: the instance still resolves the normal public S3 hostname to its normal public IP range, and the route table's prefix-list route is what silently intercepts and redirects that traffic. Don't spend time here unless you confirm someone has also created an S3 interface endpoint (which does use a private hosted zone to override DNS) alongside the gateway endpoint, or that
enableDnsSupport/enableDnsHostnamesare disabled on the VPC, either of which can make DNS the actual culprit. - Cloud provider quirks.
- Endpoint routes are scoped per route table, not per VPC (Virtual Private Cloud). A new subnet you add later gets no S3 access through the endpoint until its route table is explicitly associated.
- Gateway endpoints are not reachable through VPC peering or a Transit Gateway attachment by default; a peered VPC's traffic to S3 does not automatically ride the endpoint route unless you deliberately route it through an appliance that has one.
- The endpoint only covers S3 in its own Region. A bucket in another Region is unaffected by the endpoint and goes out whatever egress path (NAT, proxy) is available, or fails if none exists.
Worked example
Instance sits in subnet subnet-0a1, associated with route table rtb-priv1. The gateway endpoint vpce-0abc was created and associated with rtb-priv2, a route table used by a different application tier. aws s3 ls from the instance hangs and times out rather than returning a 403. Tracing it: describe-route-tables --route-table-ids rtb-priv1 shows only 10.0.0.0/16 -> local and 0.0.0.0/0 -> nat-0123, no pl-xxxxxxxx -> vpce-0abc row; the same command against rtb-priv2 shows that row present. That confirms the endpoint was wired to the wrong route table. The fix is aws ec2 modify-vpc-endpoint --vpc-endpoint-id vpce-0abc --add-route-table-ids rtb-priv1 (or, in TerraForm, adding rtb-priv1 to the endpoint's route_table_ids list). Because this environment has no live AWS credentials, treat the CLI output above as illustrative of the diagnostic shape, not an executed transcript; the way to confirm the fix for real is to re-run the same describe-route-tables call and see the prefix-list route appear, then re-run the failing S3 call and check VPC Flow Logs for an ACCEPT record on the instance's ENI with a destination matching the S3 IP range.
Trade-offs and pitfalls
The instinct is to check IAM first because that's where errors are loudest, but the symptom should drive the order: a clean, fast Access Denied means IAM, the endpoint policy, or the bucket policy; a hang or timeout means routing, NACLs, or security groups. Also watch for a NAT gateway masking the real bug: if a default route exists, a missing endpoint route doesn't break the instance's S3 access, it just quietly routes it over the internet path instead, so "it works" doesn't mean the endpoint is configured correctly, only that you're now paying NAT data-processing charges for traffic that should have been free and private.
Explain what a Virtual Private Cloud (VPC) is across AWS, Azure, and GCP. Describe the core components (subnets, route tables, internet gateway or equivalent, NAT, security groups, and network ACLs) and explain the differences between public and private subnets. Provide a simple example layout for a 3-tier web application (web, app, db), indicating which tiers belong in public vs private subnets and why.
Sample Answer
Direct answer
A Virtual Private Cloud (VPC), called a VNet (Virtual Network) on Azure, is a logically isolated, software-defined slice of a cloud provider's physical network that you carve out for your own resources. You define its private IP address range, split it into subnets, control what can route in and out, and layer firewall rules on top. The building blocks are the same on AWS, Azure, and GCP even though the names differ: an address space, subnets that place resources in specific zones, route tables that decide where traffic goes, an internet-facing gateway, NAT (Network Address Translation: swapping a private IP address for a public one) for outbound-only internet access, and two layers of firewalling (one per instance, one per subnet).
Structured elaboration
Core components, mapped across the three providers:
| Concept | AWS | Azure | GCP |
|---|---|---|---|
| The network container | VPC | VNet (Virtual Network) | VPC network (global, not regional) |
| Subdivision by zone | Subnet (tied to one Availability Zone, AZ) | Subnet (tied to a region, zone-redundant) | Subnet (regional, spans all zones in that region) |
| Routing rules | Route table | Effective routes / User-Defined Routes (UDR) | Routes (global, automatic + custom) |
| Path to the public internet | Internet Gateway (IGW) | Public IP + (optionally) an internet-facing NAT gateway or load balancer | Default route via the implied internet gateway |
| Outbound-only internet for private resources | NAT Gateway | Azure NAT Gateway | Cloud NAT |
| Instance-level firewall | Security group (stateful, attached to the elastic network interface, ENI) | Network Security Group (NSG), same idea | Firewall rules (tag or service-account scoped, VPC-wide but effectively per-instance) |
| Subnet-level firewall | Network ACL (NACL, stateless) | NSG can also attach to a subnet | No separate stateless layer; firewall rules are the only layer |
The one structural difference worth knowing cold: AWS and Azure subnets are pinned to a single AZ, so a highly available design needs one subnet per tier per AZ. GCP subnets are regional and automatically span every zone in that region, so a GCP design needs far fewer subnet objects to get the same zonal spread.
Public vs private subnet, the actual definition. A subnet is "public" only because its route table sends 0.0.0.0/0 (all internet-bound traffic) to an internet gateway. A subnet is "private" when its route table has no such route: outbound internet access, if any, goes through a NAT gateway instead, and there is no path for unsolicited inbound traffic from the internet at all. Nothing about the subnet's IP range or a checkbox makes it public or private; it is entirely a routing decision. That means you can silently turn a private subnet public by adding one route, which is why route tables are the thing to audit, not subnet names.
- Public subnet: route table has a
0.0.0.0/0 -> IGWroute. Resources here can receive inbound connections from the internet if a security group allows it (a public web server, a load balancer, a bastion host). - Private subnet: no route to an IGW. Resources here cannot be reached directly from the internet. If they need outbound internet access (to pull OS patches or call a third-party API), traffic is routed through a NAT gateway that lives in a public subnet, which translates their private addresses to its own public one and hides them from unsolicited inbound connections.
Worked example
A standard 3-tier web application, one AZ shown (repeat per AZ for high availability):
graph TD
INTERNET((Internet)) --> IGW[Internet Gateway]
IGW --> ALB[Load Balancer - public subnet]
ALB --> WEB[Web tier - public subnet]
WEB --> APP[App tier - private subnet]
APP --> DB[(Database tier - private subnet)]
APP --> NAT[NAT Gateway - public subnet]
NAT --> IGW
- Web tier: public subnet. It must accept inbound HTTP/HTTPS from arbitrary internet clients, so it needs the IGW route. Security group allows inbound 443 from 0.0.0.0/0 and nothing else.
- App tier: private subnet. It only ever receives traffic that the web tier forwards to it; nothing on the internet should be able to open a connection to it directly. Its security group allows inbound only from the web tier's security group, on the application port. It still needs outbound internet access for things like calling a payment API or pulling a dependency, which is why the private subnet's route table sends 0.0.0.0/0 to the NAT gateway, not the IGW.
- Database tier: private subnet, and stricter than the app tier. It has no legitimate reason to reach the internet at all (patches usually come through a maintenance window or a private mechanism, not a live outbound call), so many teams give it no NAT route whatsoever, only local VPC routes. Its security group allows inbound only from the app tier's security group, on the database port.
The reasoning behind this layout is defense in depth and blast-radius containment: if an attacker compromises the internet-facing web tier, the private subnets' lack of a route back from the internet, plus security groups that only trust the tier directly upstream, mean the attacker cannot reach the database in one hop. A common refinement worth naming even though it wasn't in the layout above: instead of routing the app tier's outbound calls to specific AWS services (object storage, a private API) through the NAT gateway and out to the internet and back, add a VPC endpoint. For example, a data-processing app pulling training data from S3 gets a Gateway Endpoint for S3, a routing-table entry that sends S3 traffic over AWS's internal network instead of through the NAT gateway and the public internet. That traffic no longer counts against NAT data-processing charges and never leaves AWS's backbone, which is both cheaper and a smaller attack surface. The same core-components list above (VPC, subnets, route tables, an internet gateway, NAT, security groups, NACLs) applies unchanged whether the workload sitting behind it is a web app, a data-processing cluster reading from object storage, or any other three-tier shape: the tier names change, the routing and isolation logic does not.
When you plan this layout, decide four things up front rather than reactively: how many Availability Zones you need (at least two, for anything that has to survive a zone outage), how big a CIDR block to give the VPC and each subnet (oversize subnets rather than sizing them to exactly today's instance count, since resizing a live subnet is disruptive), which tiers actually need internet reachability at all (fewer than people assume), and where you will need private connectivity to managed services later so you are not retrofitting a NAT bottleneck.
Trade-offs and pitfalls
The most common mistake is putting the application tier in a public subnet "to make debugging easier" and locking it down with security groups alone. Security groups are the right control for who can talk to an instance, but they do not stop a misconfigured resource, like a database with a public IP by accident, from being reachable from the internet in the first place; only the route table (no IGW route) guarantees that. A second pitfall is forgetting that a private subnet with no NAT route also has no outbound internet: this is fine for a database but will silently break an application tier that needs to call an external API, so "private" and "internet-reachable outbound" are two separate decisions you make per tier, not one. Finally, teams sometimes conflate "private subnet" with "encrypted" or "compliant"; subnet placement controls network reachability only; encryption, IAM (identity and access management: who is allowed to do what), and logging are separate controls layered on top.
What are VPC Flow Logs (or equivalent network flow logging) and why are they important? Explain what fields they record, where to send them for analysis (object store, SIEM), retention considerations, sampling/aggregation limitations, and common uses in troubleshooting, billing, and security monitoring.
Sample Answer
Direct answer
VPC (Virtual Private Cloud) Flow Logs capture metadata about the IP traffic crossing a network interface, subnet, or whole VPC: who talked to whom, on what port and protocol, how much data moved, and whether it was accepted or rejected. They matter because they're the closest thing to a network-level audit trail you get without running your own packet capture: without them, "why can't this instance reach that service" or "who talked to this compromised host" are questions you simply cannot answer after the fact.
Structured elaboration
What fields they record. The default (version 2) record format captures fourteen fields, in order: version, account-id, interface-id, srcaddr and dstaddr (source and destination IP), srcport and dstport, protocol (the IANA protocol number, 6 for TCP and 17 for UDP being the common ones), packets and bytes transferred, start and end timestamps for the aggregation window, action (ACCEPT or REJECT, meaning a security group or NACL, or network access control list, blocked it), and log-status. Later versions add optional fields you can request in a custom format, including the VPC ID, subnet ID, instance ID, TCP flags, and (more recently) the AWS service a source or destination IP belongs to.
Where to send them. Flow logs publish to Amazon CloudWatch Logs, Amazon S3 (Simple Storage Service), or Amazon Data Firehose. CloudWatch Logs suits real-time alerting and metric filters; S3 suits cheap long-term retention and offline analysis (commonly queried later with Amazon Athena); Firehose suits streaming the data into a third-party SIEM (Security Information and Event Management) system.
Retention. Flow logs themselves have no built-in expiry; retention is whatever you configure on the destination, a log group's retention setting in CloudWatch Logs or a lifecycle rule on the S3 bucket. Leaving this unset means logs (and their cost) accumulate indefinitely.
Sampling and aggregation limitations. Flow logs aggregate traffic over a window (the "aggregation interval"), by default up to 10 minutes, with an option to reduce it to 1 minute for finer granularity at higher log volume and cost; instances on the Nitro hypervisor (AWS's underlying virtualization layer, the software that creates and runs virtual machines on the physical host) always get an interval of 1 minute or less regardless of what you request. This means flow logs describe flows, not individual packets, so very short-lived connections can be summarized rather than itemized. Flow logs also don't capture everything: traffic to the Amazon-provided DNS resolver, DHCP (Dynamic Host Configuration Protocol) traffic, traffic to the instance metadata service at 169.254.169.254, and Windows license-activation traffic are all excluded by design, among a few other narrow exclusions.
Common uses. Troubleshooting connectivity (an unexpected run of REJECT records pinpoints whether a security group or a NACL is the blocker, and which one); security monitoring (unusual destination IPs, unexpected ports, or a spike in rejected connections can indicate scanning or a compromised host); and billing or cost analysis (correlating byte counts against data-transfer charges, especially useful for tracking down unexpectedly high cross-AZ (cross-Availability-Zone) or NAT (Network Address Translation) gateway egress costs).
Worked example
A team investigating a connectivity complaint enables flow logs on the affected subnet and searches the resulting CloudWatch Logs group for REJECT records involving the instance's ENI (elastic network interface) over the last hour. They find several records with action=REJECT, dstport=443, and a source address matching a partner service, dated exactly when the complaint started. Cross-referencing the security group and NACL rule sets shows a recent NACL change added a deny rule for a CIDR range that, as it turns out, also covers the partner's IP: the flow log record is the evidence that pinpoints which control (NACL, not the security group) is responsible, and exactly when the change took effect, since the REJECT records only start appearing after that timestamp.
Trade-offs and pitfalls
Flow logs record metadata, never packet payload, so they can tell you that two hosts talked and how much data moved, but never what was said; they are not a substitute for application-level logging or a payload-inspecting tool when you need to know the content of a request. The other common oversight is enabling flow logs without ever setting a retention policy on the destination, which turns a useful diagnostic tool into a slowly growing, unbounded storage cost that nobody is actually querying.
Compare traditional bastion-host (jump box) patterns with agent-based approaches such as AWS Systems Manager Session Manager or Azure Bastion. Discuss differences in attack surface area, auditing and session recording, patching responsibilities, least privilege access, and recommend a secure, operationally maintainable pattern for remote administrator access.
Sample Answer
Direct answer
A traditional bastion host is a hardened jump box sitting in a public subnet with an open inbound port (typically SSH or RDP) that administrators connect to before hopping onward to private resources; it is itself a standing, internet-facing attack surface that has to be patched, monitored, and key-managed forever. An agent-based approach, such as AWS Systems Manager Session Manager or Azure Bastion, replaces that open inbound port with an agent on the target instance that opens an outbound-only connection to the cloud provider's session-broker service, so administrators authenticate through the same identity and access management (IAM) system as everything else and no inbound port needs to exist at all. For most organizations today, the agent-based approach is the right default: it is not just more convenient, it structurally removes an entire class of exposure the bastion pattern cannot avoid.
Structured elaboration
| Dimension | Traditional bastion host | Agent-based (Session Manager / Azure Bastion) |
|---|---|---|
| Attack surface | An always-on, internet-facing host with an open inbound port; a single compromised bastion is a pivot point into every private resource it can reach | No inbound port on any target instance; the connection is always initiated outbound from the instance to the provider's service, so there is no listening port for an attacker to find or exploit |
| Auditing and session recording | Depends entirely on what you build yourself: shell history, a session-recording tool bolted on, or nothing at all if not deliberately configured | Session logging and, optionally, full session recording, are built into the service and centrally stored, tied to the authenticated identity that started the session, with no extra tooling required |
| Patching responsibility | You own the bastion host's operating system, SSH/RDP daemon, and any hardening, indefinitely, as a standing piece of infrastructure | The provider manages the underlying service; you are only responsible for keeping the lightweight agent on each target instance up to date, which is a much smaller and more automatable surface |
| Least privilege | Access control is whatever the bastion's own user accounts and network rules enforce, often coarser than the cloud provider's IAM model and managed separately from it | Access is granted through the same fine-grained IAM policies as everything else in the account, so a specific engineer can be scoped to specific instances, for a specific time window, without a separate credential system to maintain |
| Credential model | Typically SSH keys or shared accounts, which have to be distributed, rotated, and revoked, often manually | Tied to the identity provider already in use; revoking someone's IAM access revokes their session access at the same time, with no separate key to rotate or revoke |
| Operational cost over time | Grows over time: patch cycles, key rotation, monitoring the bastion itself for compromise, capacity planning for a host that is really just a means to an end | Low and mostly fixed: the service itself is managed, and per-instance overhead is a small agent rather than an entire dedicated host |
Worked example
Recommended pattern. For a company running a fleet of private-subnet instances that administrators need occasional shell access to, the recommended pattern is to remove the bastion host entirely and rely on Session Manager (or the equivalent service on other clouds) for all administrative access, layered with the following hardening controls:
- Multi-factor authentication (MFA) enforced at the identity provider, not just a password, before a session can be started at all, since the session broker is only as strong as the identity check gating it.
- Session recording enabled and shipped to a separate, access-controlled log store (not just left in the default retention), so a compromised administrative identity's actions are still reviewable after the fact, and so the recording itself cannot be tampered with by whoever was using the compromised identity.
- Source restricted at the IAM policy level to only the specific instances and only the specific engineers who need them, scoped by tag or resource identifier rather than a blanket "any engineer can reach any instance" policy, which is the least-privilege principle applied to session access specifically rather than assumed to be handled elsewhere.
- No inbound security-group rule for SSH or RDP on any target instance at all, which is the concrete, verifiable proof the bastion's attack surface has actually been removed, not just supplemented; a lingering "just in case" SSH rule left open alongside Session Manager defeats much of the point.
A legacy environment still running a jump box during a transition can apply the same hardening principles to it in the meantime (restrict its source IP range as tightly as possible, require MFA for its own login, ship session logs somewhere durable), but this is explicitly a stopgap, not the target state, since none of that hardening removes the fundamental issue that the bastion is still an always-on, internet-facing host with an open inbound port.
Trade-offs and pitfalls
The most common mistake during a transition is standing up the agent-based approach alongside the existing bastion "just in case" and never actually decommissioning the bastion, which leaves the original attack surface fully intact while adding a second access path to manage and audit; the security benefit only materializes once the old inbound port is actually closed. A second pitfall is treating the agent-based service as a complete solution without also tightening the identity side of it: session-broker access inherits whatever IAM policy grants it, so an overly broad policy ("any authenticated user in the account may start a session to any instance") reproduces much of the bastion's own weak, coarse-grained access model, just without the open port. Finally, a legitimate reason organizations sometimes keep a hardened bastion around longer than expected is a genuine offline or air-gapped requirement, or a compliance framework that has not yet been updated to recognize agent-based session brokering as an equivalent control; in those cases, apply every hardening control above to the bastion itself rather than treating "we still have a bastion" as an excuse to skip them.
Unlock Full Question Bank
Get access to all 8 Cloud Networking and VPC Design interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.