You have provisioned some virtual machines (VMs) on Google Cloud Platform (GCP) using the gcloud command line tool. However, you are standardizing with Terraform and want to manage these VMs using Terraform instead.
What are the two things you must do to achieve this? Choose two correct answers.
A. Run the terraform Import-gcp command
B. Write Terraform configuration for the existing VMs
C. Use the terraform import command for the existing VMs
D. Provision new VMs using Terraform with the same VM names
正解:B,C
解説: (Pass4Test メンバーにのみ表示されます)
質問 2:
Which of the following does terraform apply change after you approve the execution plan? (Choose two.)
A. Cloud infrastructure Most Voted
B. The .terraform directory
C. State file
D. Terraform code
E. The execution plan
正解:A,C
解説: (Pass4Test メンバーにのみ表示されます)
質問 3:
As a member of an operations team that uses infrastructure as code (lac) practices, you are tasked with making a change to an infrastructure stack running in a public cloud.
Which pattern would follow laC best practices for making a change?
A. Make the change programmatically via the public cloud CLI
B. Use the public cloud console to make the change after a database record has been approved
C. Submit a pull request and wait for an approved merge of the proposed changes
D. Make the change via the public cloud API endpoint
E. Clone the repository containing your infrastructure code and then run the code
正解:C
解説: (Pass4Test メンバーにのみ表示されます)
質問 4:
Which are examples of infrastructure as code? Choose two correct answers.
A. Cloned virtual machine images
B. Change management database records
C. Versioned configuration files
D. Doctor files
正解:C
解説: (Pass4Test メンバーにのみ表示されます)
質問 5:
When should you run terraform init?
A. Every time you run terraform apply
B. After you run terraform plan for the time in a new terraform project and before you run terraform apply
C. Before you start coding a new Terraform project
D. After you start coding a new terraform project and before you run terraform plan for the first time.
正解:D
解説: (Pass4Test メンバーにのみ表示されます)
質問 6:
You decide to move a Terraform state file to Amazon S3 from another location.
You write the code below into a file called backend.tf.

Which command will migrate your current state file to the new S3 remote backend?
A. terraform init
B. terraform state
C. terraform refresh
D. terraform push
正解:A
解説: (Pass4Test メンバーにのみ表示されます)
質問 7:
In a Terraform Cloud workpace linked to a version control repository speculative plan rum start automatically commit changes to version control.
A. False
B. True
正解:B
解説: (Pass4Test メンバーにのみ表示されます)
質問 8:
_______backends support state locking.
A. All
B. Only local
C. No
D. Some
正解:D
解説: (Pass4Test メンバーにのみ表示されます)
質問 9:
The_________determines how Terraform creates, updates, or delete resources.
A. Terraform configuration
B. Terraform provisioner
C. Terraform provider
D. Terraform core
正解:C
解説: (Pass4Test メンバーにのみ表示されます)
Satou -
すごいね。Pass4Testさんまたお世話になりたいとおもいます。本当に助かりました。誠に有難うございます