Bastion host as secure gateway to private cloud resources

CV0-004 By islever Editorial Last updated

Explain cloud networking concepts. Given a scenario, apply security controls in the cloud.

Short answer

B A bastion host in a public subnet proxies the software engineer's session into private cloud resources while keeping the cloud environment itself off the public internet.

Question

A software engineer at a cybersecurity company wants to access the cloud environment. Per company policy, the cloud environment should not be directly accessible via the internet. Which of the following options best describes how the software engineer can access the cloud resources?
  1. SSH
  2. Bastion host Correct Answer
  3. Token-based access
  4. Web portal

Key Takeaways

Restricted cloud environments with no direct internet exposure require a bastion host as the access path: a hardened jump server in a public subnet that proxies sessions into private resources. Token-based access, raw SSH and a web portal each solve only authentication or convenience, not the missing network route. The bastion pattern preserves private-subnet isolation while giving engineers audited shell access.

Expert Analysis

A bastion host is the best option for accessing cloud resources without direct internet access. It acts as a secure gateway for accessing an internal network from external sources, typically used in conjunction with other security measures like SSH for secure connectivity. The bastion host sits in a public subnet and proxies connections to private resources, ensuring the cloud environment itself has no direct internet exposure.

The deciding constraint here is that the cloud environment must not be directly reachable from the internet, while the software engineer still needs a working path in. That rules out any option that assumes a direct inbound connection to the private resources themselves, and it makes B (Bastion host) the mechanism that satisfies both halves of the requirement at once: the engineer reaches one hardened, internet-facing entry point, and that entry point opens an audited session into resources that remain in private subnets with no public IPs or inbound internet routes.

Why each option fails or holds:

  • A. SSH is a protocol, not a topology. SSH alone presumes the target host is reachable on port 22 from the engineer's network; if the cloud environment is not internet-accessible, raw SSH terminates nowhere. It only becomes viable when wrapped inside a bastion or a VPN/SSM tunnel, which is exactly what option B describes as the access pattern.
  • B. Bastion host is the correct fit: a dedicated jump server in a public subnet (or a managed equivalent) that proxies sessions to private instances, so the private tier keeps zero direct internet exposure while the engineer retains shell access for deployment and troubleshooting work.
  • C. Token-based access authenticates an identity but does not create the network path. Tokens answer "who are you"; they do not answer "how does traffic enter a network with no internet route," so a token alone leaves the connectivity requirement unmet.
  • D. Web portal is a management-plane convenience (for consoles or SaaS admin pages). It exposes a public HTTPS endpoint and, in this scenario, would either violate the no-direct-internet policy or still need an underlying private-path mechanism to reach the actual cloud resources.

One mechanism this question relies on but does not state: a bastion host's security value comes from the routing geometry of public versus private subnets. In a typical VPC layout, the public subnet has a route to an internet gateway, while the private subnet's route table points only at the VPC's local route (or a NAT gateway for outbound-only traffic) with no internet-gateway entry. The engineer's inbound session therefore terminates on the bastion's public IP; from there the bastion originates a second connection to the private instance's private IP, which is only resolvable and reachable inside the VPC. Egress is symmetric: private instances can pull updates through the NAT gateway without ever accepting an inbound internet flow. Applied to this scenario, the cybersecurity company's policy is enforced by the absence of an internet-gateway route on the private route table, and the bastion becomes the single, loggable, MFA-protected hop across that boundary. Exam-wise, when a prompt says "no direct internet access" plus "user needs to get in," the answer is the gateway/jump-host pattern (bastion, VPN concentrator, or a private-link style endpoint) — never a bare protocol, credential type, or web UI.

Exam Strategy

On CompTIA Cloud+ access questions, watch for prompts pairing a connectivity constraint ("not directly accessible via the internet") with a user who must still get in. Eliminate options that name a protocol, a credential, or a UI, since those never establish the missing network path — then pick the gateway topology (bastion, VPN, or private endpoint) that closes the gap. If two options both look secure, the one that addresses the stated constraint wins.

Practice All CV0-004 Questions

Access 100 questions with complete answers and detailed explanations.

View Full CV0-004 Practice Test →

← Back to CV0-004 Study Guide