nerdexam
Oracle

1Z0-1084-20 · Question #6

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…

The correct answer is C. Run oci session authenticate and provide your credentials. Token-based authentication for the CLI allows customers to authenticate their session interactively, then use the CLI for a single session without an API signing key. This enables customers using an identity provider that is not SCIM-supported to use a federated user account…

Order Management Cloud Overview

Question

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?

Options

  • ARun oci setup keys and provide your credentials
  • BRun oci session refresh --profile <profile_name>
  • CRun oci session authenticate and provide your credentials
  • DRun oci setup oci-cli-rc --file path/to/target/file

How the community answered

(40 responses)
  • A
    10% (4)
  • B
    8% (3)
  • C
    80% (32)
  • D
    3% (1)

Explanation

Token-based authentication for the CLI allows customers to authenticate their session interactively, then use the CLI for a single session without an API signing key. This enables customers using an identity provider that is not SCIM-supported to use a federated user account with the CLI and SDKs. Starting a Token-based CLI Session To use token-based authentication for the CLI on a computer with a web browser: In the CLI, run the following command. This will launch a web browser. oci session authenticate In the browser, enter your user credentials. This authentication information is saved to the .config

Topics

#OCI CLI#federated identity#session authentication#private key security

Community Discussion

No community discussion yet for this question.

Full 1Z0-1084-20 Practice