Oracle Cloud Platform Data Integration 2020 Specialist — Question 33
Your organization uses a federated identity provider to login to your Oracle Cloud Infrastructure (OCI) environment. As a developer, you are writing a script to automate some operation and want to use OCI CLI to do that. Your security team doesn't allow storing private keys on local machines.
How can you authenticate with OCI CLI? (Choose the best answer.)
Answer options
- A. Run oci setup keys and provide your credentials
- B. Run oci session refresh """"profile <profile_name>
- C. Run oci session authenticate and provide your credentials
- D. Run oci setup oci""cli""rc """"file path/to/target/file
Correct answer: C
Explanation
The correct option is C because running 'oci session authenticate' allows you to authenticate using your credentials without storing private keys locally. Options A and D suggest methods that involve key management which is not allowed, while B does not provide a means to authenticate but rather refreshes a session.