Oracle Cloud Infrastructure 2019 Developer Associate — Question 7

You want an Oracle Cloud Infrastructure (OCI) compute instance in your compartment to make API calls to other services within OCI without storing credentials in a configuration file.
What do you need to do?

Answer options

Correct answer: D

Explanation

The correct answer is D because all VM instances in OCI are assigned an instance principal by default, allowing them to authenticate without storing credentials. Option A is incorrect as dynamic groups are not necessary for instance principals. Option B is false because instances can access services outside their compartment. Option C misrepresents the functionality since VM instances do not require a separate user account for API access.