Which TWO methods can be used to securely connect to a private OCI compute instance that does not have a public IP address? (Choose two.)
Trap 1: Accessing the instance via Object Storage pre-authenticated requests
Object Storage pre-authenticated requests provide secure, time-limited URLs to download or upload specific storage buckets or objects without requiring credentials, making them ideal for sharing data blobs with external applications or users over HTTPS. However, they fail to provide an interactive shell session or network tunnel required to remotely manage an operating system. Therefore, they cannot establish an interactive administrative connection to a private compute instance lacking a public IP address.
Trap 2: Changing the instance subnet to public temporarily while debugging
Attaching a public IP address to the instance violates the fundamental security requirement for isolated private workloads and exposes the server directly to the public internet, increasing the attack surface. Administrators are often tempted to use this workaround because assigning an ephemeral public IP combined with an Internet Gateway provides immediate inbound connectivity for troubleshooting via SSH or RDP. However, the correct approach for secure access without exposing resources externally is to configure an OCI Bastion service or a site-to-site VPN connection.
Trap 3: Direct RDP or SSH over the Internet Gateway without any…
Connecting via an Internet Gateway requires a public IP address on the target resource, meaning this approach fails when instances lack one and cannot receive inbound traffic from the public internet. This method is tempting because an Internet Gateway is the standard architectural component used to enable bidirectional communication between a Virtual Cloud Network and the public internet, making it the correct choice when administering public-facing compute instances that possess assigned public IP addresses.
- A
Accessing the instance via Object Storage pre-authenticated requests
Why it fails: Object Storage pre-authenticated requests provide secure, time-limited URLs to download or upload specific storage buckets or objects without requiring credentials, making them ideal for sharing data blobs with external applications or users over HTTPS. However, they fail to provide an interactive shell session or network tunnel required to remotely manage an operating system. Therefore, they cannot establish an interactive administrative connection to a private compute instance lacking a public IP address.
- B
OCI Bastion Service
OCI Bastion Service provides a managed, secure access pathway for target resources that lack public IP addresses, directly satisfying the requirement to reach a private compute instance without exposing it to the public internet. By establishing an ephemeral SSH session through a fully managed service, it removes the operational overhead and security risks associated with maintaining traditional public-facing jump hosts. It acts as a protocol-compliant intermediary that restricts traffic strictly to authorised users via IAM policies and designated CIDR block allowlists.
- C
A bastion host (jump server) deployed in a public subnet with SSH tunneling
Deploying a bastion host in a public subnet directly satisfies the constraint of reaching a private OCI compute instance lacking a public IP address. By acting as an intermediary jump server, administrators can establish an SSH tunnel—such as local port forwarding—through the public-facing bastion to securely route traffic across the Virtual Cloud Network (VCN) to the private instance. This architecture eliminates the need to expose backend resources directly to the internet while still permitting administrative access via encrypted channels.
- D
Changing the instance subnet to public temporarily while debugging
Why it fails: Attaching a public IP address to the instance violates the fundamental security requirement for isolated private workloads and exposes the server directly to the public internet, increasing the attack surface. Administrators are often tempted to use this workaround because assigning an ephemeral public IP combined with an Internet Gateway provides immediate inbound connectivity for troubleshooting via SSH or RDP. However, the correct approach for secure access without exposing resources externally is to configure an OCI Bastion service or a site-to-site VPN connection.
- E
Direct RDP or SSH over the Internet Gateway without any intermediate host
Why it fails: Connecting via an Internet Gateway requires a public IP address on the target resource, meaning this approach fails when instances lack one and cannot receive inbound traffic from the public internet. This method is tempting because an Internet Gateway is the standard architectural component used to enable bidirectional communication between a Virtual Cloud Network and the public internet, making it the correct choice when administering public-facing compute instances that possess assigned public IP addresses.