1Z0-1072-25 Question 14
Single answerYou are launching a new frontend web application on an Oracle Cloud Infrastructure (OCI) compute instance within a public subnet. Your application must be accessible through a stable public IP address, even if the instance is stopped and started. Which configuration step ensures the public IP of your instance remains constant over time?
- A
Enable an ephemeral public IP during instance creation
- B
Associate a reserved public IP with the instance� VNIC
- C
Create a floating private IP and assign it to the instance
- D
Allow the default ephemeral public IP assigned by OCI
Show answer and explanation
Correct answer: B
Explanation
For a publicly accessible instance in OCI that requires a long-term stable IP address, you should allocate and attach a reserved public IP. This prevents the public IP from changing upon stop or start of the instance. For more information, refer to the OCI documentation on networking and IP address management.
- A. Incorrect.
Option 1 is incorrect because ephemeral public IPs are dynamically assigned and can change when the instance is stopped or restarted. They are not meant for long-term, stable public IP assignments.
- B. Correct.
Option 2 is correct because a reserved public IP remains tied to your tenancy and can be reassigned or maintained. Associating a reserved public IP with your compute instance ensures persistence through stops and starts.
- C. Incorrect.
Option 3 is incorrect because floating private IPs are used within a subnet for internal communication or high availability scenarios, not for stable public IP addresses accessible from the internet.
- D. Incorrect.
Option 4 is incorrect because default ephemeral public IPs are automatically released whenever the instance is stopped, resulting in a different public IP upon restart.