Oracle Cloud Infrastructure 2019 Developer Associate — Question 74
For a compute instance that is launched in a private subnet in a Virtual Cloud Network (VCN), which action needs to be performed to connect to the Internet, assuming that the required security list is properly set up?
Answer options
- A. Assign a Public IP address to the compute instance.
- B. Create and configure Network Address Translation (NAT) in a public subnet and route all traffic to it.
- C. There is no way for an instance in a private subnet to connect to the Internet.
- D. Create a default route entry in the route table to forward all traffic to the Internet gateway.
Correct answer: B
Explanation
The correct answer is B because creating a NAT in a public subnet allows instances in a private subnet to access the Internet while maintaining their private IP addresses. Option A is incorrect as assigning a public IP address would place the instance in a public subnet, which contradicts the scenario. Option C is false since a private subnet can connect to the Internet using NAT, and option D is also incorrect as it refers to an Internet gateway, which is not applicable to private subnets.