Oracle Cloud Infrastructure 2019 Developer Associate — Question 137
You deployed a web server in Oracle Cloud Infrastructure using an ephemeral public IP. After a few changes in your web server configuration, you rebooted the server and a new public IP was associated to your instance.
What should you do to prevent this from happening again?
Answer options
- A. Create a reserved public IP and associate it with the security list that your compute instance is using
- B. Create a reserved public IP and associate it with the subnet of your compute instance
- C. Create a reserved public IP and associate it with the VNIC of your compute instance
- D. Create a reserved public IP and associate it with the hosts file of your web server
Correct answer: C
Explanation
The correct answer is C because associating a reserved public IP with the VNIC of your compute instance ensures that the IP remains the same across reboots. Options A and B do not provide a direct link to the compute instance itself, and option D is not applicable as the hosts file does not manage IP assignments.