exam questions

Exam 1z0-997-22 All Questions

View all questions & answers for the 1z0-997-22 exam

Exam 1z0-997-22 topic 1 question 47 discussion

Actual exam question from Oracle's 1z0-997-22
Question #: 47
Topic #: 1
[All 1z0-997-22 Questions]

You are a DevOps engineer working for a high tech company, and are using Terraform to maintain your Oracle Cloud Infrastructure (OCI) resources. You have created a Terraform script that would create the infrastructure for deploying a web service. But want to tune in some settings within the OCI Instances using a shell script.
How should you write your Terraform script to run the shell script on OCI instance?

  • A. Use provisioner "remote-exec" in your code to run the shell script.
  • B. Use provisioner "local-exec" in your code to run the shell script.
  • C. Use resource "oci_core_instance" to create the instance and run the shell script.
  • D. Use provisioner "oci-remote-exec" in your code to run the shell script.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
daws08322
1 year, 4 months ago
a To run a shell script on an Oracle Cloud Infrastructure (OCI) instance using Terraform, you should use the "provisioner" block with the "remote-exec" option. So, the correct choice is: A. Use provisioner "remote-exec" in your code to run the shell script.
upvoted 1 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago