exam questions

Exam 1z0-1067-21 All Questions

View all questions & answers for the 1z0-1067-21 exam

Exam 1z0-1067-21 topic 1 question 53 discussion

Actual exam question from Oracle's 1z0-1067-21
Question #: 53
Topic #: 1
[All 1z0-1067-21 Questions]

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? (Choose the best answer.)

  • A. Use OCI CLI profiles to create multiple sets of credentials in your config file, and reference the appropriate profile at runtime.
  • B. Create environment variables for the sets of credentials that align to each combination of tenancy, region, and environment.
  • C. Run oci setup config to create new credentials for each environment every time you want to access the environment.
  • D. Use different bash terminals for each environment.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
examtaker1
Highly Voted 3 years, 11 months ago
Correct answer is A.
upvoted 10 times
...
rylphs
Most Recent 3 years ago
Selected Answer: A
Correct answer is A.
upvoted 2 times
...
Petza
3 years, 3 months ago
Hmm, the standard option using profiles is great if you use completely different environments, i.e., a combination of tenancies, users, and keys. If you need to change just one value like a region it is quite an overhead. To change just one or two values of your DEFAULT configuration, you can use OCI CLI environment variables. These environment variables override the values specified in the DEFAULT profile, but do not change any value in the $HOME/.oci/config file. So, for example, to list all compartments you own in your subscribed regions, you can just use the OCI_CLI_REGION environment variable like this: rgs="us-ashburn-1 eu-frankfurt-1 ap-sydney-1" for i in $rgs; do export OCI_CLI_REGION=$i echo "Compartments in region $OCI_CLI_REGION" oci iam compartment list done This loop uses the same OCI CLI command line and the DEFAULT profile, overrides the region setting, and returns different results for the regions you need. https://www.ateam-oracle.com/post/oracle-cloud-infrastructure-cli-scripting-how-to-quickly-override-the-default-configuration
upvoted 1 times
...
Buruguduystunstugudunstuy
3 years, 5 months ago
Correct answer is A. Use OCI CLI profiles to create multiple sets of credentials in your config file, and reference the appropriate profile at runtime. 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. https://docs.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm
upvoted 1 times
...
andrelsjunior
3 years, 5 months ago
Selected Answer: B
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 [DEFAULT] 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 [ADMIN_USER] 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.
upvoted 1 times
maxoci
3 years, 4 months ago
I think you mean (A)
upvoted 2 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...