1Z0-1067 · Question #46
You are working as a Cloud Operations Administrator for your company. They have different Oracle Cloud Infrastructure (OCI) tenancies for development and production workloads. Each tenancy has…
The correct answer is B. Use OCI CLI profiles to create multiple set of credentials in your config file, and reference the. The Oracle Cloud Infrastructure CLI configuration file can contain several profiles. and you can create multiple profiles with different values, then you can specify which profile to load. Example Configuration user=ocid1.user.oc1..<unique_ID> fingerprint=<your_fingerprint>…
Question
You are working as a Cloud Operations Administrator for your company. They have different Oracle Cloud Infrastructure (OCI) tenancies for development and production workloads. Each tenancy has resources in two regions - uk-london-1 and eu-frankfurt-1. You are asked to manage all resources and to automate all the tasks using OCI Command Line Interface (CLI). Which is the most efficient method to manage multiple environments using OCI CLI?
Options
- ACreate environment variables for the sets of credentials that align to each combination of tenancy,
- BUse OCI CLI profiles to create multiple set of credentials in your config file, and reference the
- CUse different bash terminals for each environment.
- DRun OCI setup config to create new credentials for each environment every time you want to access
How the community answered
(21 responses)- A10% (2)
- B81% (17)
- C5% (1)
- D5% (1)
Explanation
The Oracle Cloud Infrastructure CLI configuration file can contain several profiles. and you can create multiple profiles with different values, then you can specify which profile to load. Example Configuration user=ocid1.user.oc1..<unique_ID> fingerprint=<your_fingerprint> key_file=~/.oci/oci_api_key.pem tenancy=ocid1.tenancy.oc1..<unique_ID> region=us-ashburn-1 user=ocid1.user.oc1..<unique_ID> fingerprint=<your_fingerprint> key_file=keys/admin_key.pem pass_phrase=<your_passphrase> https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm The Oracle Cloud Infrastructure CLI supports the use of environment variables to specify default values for some options and allows you to set environment variables to provide certain information. but the CLI requires a configuration file, See CLI Environment Variables for more information.
Topics
Community Discussion
No community discussion yet for this question.