Question 570
A site reliability lead is responsible for a change whose primary goal is to store an API authentication token for the local CLI to access HCP Terraform. What should it select?
Explanation
Correct Answer
Terraform login manages CLI credential setup for HCP. This meets the stated requirement to store an API authentication token for the local CLI to access HCP Terraform.
Incorrect Answers
Workspace VCS branch filter is intended to run HCP Terraform only when the configured repository branch receives a relevant commit; workspace VCS branch settings narrow the source revision that triggers plans. That is not the specific requirement to store an API authentication token for the local CLI to access HCP Terraform.
Remote run output inspection is intended to inspect workspace plan logs after submitting execution from the Terraform CLI; remote runs retain logs and status centrally. That is not the specific requirement to store an API authentication token for the local CLI to access HCP Terraform.
cloud block in Terraform configuration is intended to connect an existing root configuration to a named HCP Terraform organization and workspace; the cloud block configures Terraform's HCP integration. That is not the specific requirement to store an API authentication token for the local CLI to access HCP Terraform.






HashiCorp Certified: Terraform Associate (004) (Terraform Associate 004) Practice Tests