1Z0-1067-25 practice question 4 of 15

You set up a bastion host in your Virtual Cloud Network (VCN) to allow only your IP ad-dress (140.19.2.140) to establish SSH connections with your…

Full set: 93 questions
You set up a bastion host in your Virtual Cloud Network (VCN) to allow only your IP ad-dress (140.19.2.140) to establish SSH connections with your compute instances that are deployed in a private subnet. The compute instances have an attached Network Security Group (NSG) with a Source Type: Network Security Group (NSG), Source NSG: NSG-050504. To secure the bastion host, you add the following ingress rules to its NSG: Type: All TCP Proto-col: TCP Port Range: 22 Source: 140.19.2.140/32 Type: All TCP Protocol: TCP Port Range: 22 Source: NSG-050504 However, when you check the bastion host logs, you discover that there are IP addresses other than your own that can access your bastion host. What is the root cause of this issue?
Answer options
A: The port 22 provides unrestricted access to 140.19.2.140 and to other IP addresses.
B: All compute instances associated with NSG-050504 are also able to connect to the bastion host. Correct answer
C: The security list allows access to all IP addresses that override the NSG ingress rules.
D: A netmask of /32 allows all IP addresses in the140.19.2.0 network, other than your IP 140.19.2.140.
Correct Answer:
B. All compute instances associated with NSG-050504 are also able to connect to the bastion host.
Explanation

The Network Security Group (NSG) for the bastion host contains two ingress rules for TCP port 22. The first rule correctly allows access from the specific IP address 140.19.2.140/32. The second rule, however, allows access from the source NSG-050504. This means any resource, such as a compute instance, that is associated with NSG-050504 is permitted to establish an SSH connection to the bastion host. This explains why IPs other than the intended one are seen in the logs.

Why Incorrect

A. Access is not unrestricted; it is restricted to the two sources defined in the NSG rules. The issue is that one of the sources is broader than intended.
C. While a Security List could also be a cause, the information provided points directly to a permissive rule within the bastion's own NSG, making it the most direct root cause.
D. A /32 netmask correctly specifies a single IP address. It does not allow access from any other IP address in the network. This statement is factually incorrect.

References

1. Oracle Cloud Infrastructure Documentation, "Network Security Groups". "Network security groups (NSGs) act as a virtual firewall for your compute instances and other kinds of resources... An NSG consists of a set of ingress and egress security rules that apply only to the resources in that group... For example: you can group together a set of compute instances that have the same security posture, and then use the NSG as the source or destination for security rules."

Scroll to Top