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

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.