<< Prev Question Next Question >>

Question 98/187

You have multiple team members collaborating on infrastructure as code (IaC) using Terraform, and want to apply formatting standards for readability.
How can you format Terraform HCL (HashiCorp Configuration Language) code according to standard Terraform style convention?

LEAVE A REPLY

Your email address will not be published. Required fields are marked *

Question List (187q)
Question 1: terraform plan updates your state file....
Question 2: You are creating a reusable Terraform configuration and want...
Question 3: Exhibit: variable " sizes " { type = list(string) descriptio...
Question 4: In a HCP Terraform/Terraform Cloud workspace linked to a ver...
Question 5: You want to bring an existing database under Terraform manag...
Question 6: Your team adopts AWS CloudFormation as the standardized meth...
Question 7: You can reference a resource created with for_each using a S...
Question 8: You ' re building a CI/CD (continuous integration/continuous...
Question 9: Which parameters does terraform import require? Choose two c...
Question 10: Exhibit: Error: Saved plan is stale The given plan file can ...
Question 11: Why is it important to treat your Terraform state file as se...
Question 12: Which of the following is not a key principle of infrastruct...
Question 13: When should you run terraform init?...
Question 14: By default, if you do not define a backend for your configur...
Question 15: Your team adopts AWS CloudFormation as the standardized meth...
Question 16: You decide to move a Terraform state file to Amazon S3 from ...
Question 17: Exhibit: Root module configuration: output " vnet_id " { val...
Question 18: Which of these commands makes your code more human readable?...
Question 19: You add a new provider to your configuration and immediately...
Question 20: Which backend does the Terraform CLI use by default?...
Question 21: You can configure multiple cloud blocks in your Terraform co...
Question 22: Which of the following commands would you use to access all ...
Question 23: Which of the following ate advantages of using infrastructur...
Question 24: Terraform configuration can only import modules from the pub...
Question 25: Exhibit: module " web_stack " { source = " ./modules/web_sta...
Question 26: Where does HashiCorp recommend you store API tokens and othe...
Question 27: The HCP Terraform private registry keeps the module configur...
Question 28: When using a remote backend or terraform Cloud integration, ...
Question 29: You used Terraform to create an ephemeral development enviro...
Question 30: What type of block is used to construct a collection of nest...
Question 31: When should you write Terraform configuration files for exis...
Question 32: You want to create a string that combines a generated random...
Question 33: Why would you use the -replace flag for terraform apply?...
Question 34: What does terraform destroy do?...
Question 35: When declaring a variable, setting the sensitive argument to...
Question 36: Where does the Terraform local backend store its state?...
Question 37: You have used Terraform lo create an ephemeral development e...
Question 38: A module block used in your configuration is shown in the ex...
Question 39: You have to initialize a Terraform backend before it can be ...
Question 40: Which of the following can you do with terraform plan? Pick ...
Question 41: You want to define a single input variable to capture config...
Question 42: What type of information can be found on the Terraform Regis...
Question 43: You have just upgraded the version constraint of a provider ...
Question 44: You want to use API tokens and other secrets within your tea...
Question 45: You are using a networking module in your Terraform configur...
Question 46: Your Terraform configuration declares a variable. You want t...
Question 47: terraform validate confirms thesyntaxof Terraform files....
Question 48: Variables declared within a module are accessible outside of...
Question 49: You ' re writing a Terraform configuration that needs to rea...
Question 50: After creating a new Terraform configuration, your configura...
Question 51: Which of the following is true about terraform apply?(Pick 2...
Question 52: In a Terraform Cloud workpace linked to a version control re...
Question 53: Which of the following is not a valid source path for specif...
Question 54: Which of these are features of HCP Terraform/Terraform Cloud...
Question 55: Your DevOps team is currently using the local backend for yo...
Question 56: A child module can always access variables declared in its p...
Question 57: Which command(s) adds existing resources in a public cloud i...
Question 58: As a member of an operations team that uses infrastructure a...
Question 59: You want to know from which paths Terraform is loading provi...
Question 60: Only the user that generated a plan may apply it....
Question 61: _______backends support state locking....
Question 62: Terraform variables and outputs that set the description arg...
Question 63: Which of the following should you put into the required_prov...
Question 64: Which of the following are advantages of using infrastructur...
Question 65: A provider configuration block is required in every Terrafor...
Question 66: You have never used Terraform before and would like to test ...
Question 67: You can develop a custom provider to manage its resources us...
Question 68: Which of the following is availableonlyinHCP Terraform works...
Question 69: (Exhibit) The Terraform configuration shown in the Exhibit s...
Question 70: Which are examples of infrastructure as code? Choose two cor...
Question 71: Which two steps are required to provision new infrastructure...
Question 72: Terraform variable names are saved in the state file....
Question 73: A variable block is shown in the exhibit. You will use this ...
Question 74: You want to bring an existing database under Terraform manag...
Question 75: Your root module contains a variable namednum_servers. Which...
Question 76: Which of these ate secure options for storing secrets for co...
Question 77: How can you configure a Terraform workspace to store its sta...
Question 78: Which command must you run before you run a plan or apply fo...
Question 79: If you update the version constraint in your Terraform confi...
Question 80: A Terraform local value can reference other Terraform local ...
Question 81: Define the purpose of state in Terraform....
Question 82: You must use different Terraform commands depending on the c...
Question 83: Which features do HCP Terraform workspaces provide that are ...
Question 84: You have a saved execution plan containing desired changes f...
Question 85: When should you use the terraform force-unlock command?...
Question 86: You just upgraded the version of a provider in an existing T...
Question 87: A resource block is shown in the Exhibit space of this page....
Question 88: The public Terraform Module Registry is free to use....
Question 89: All modules published on the official Terraform Module Regis...
Question 90: When does Sentinel enforce policy logic during a Terraform C...
Question 91: You can access state stored with the local backend by using ...
Question 92: terraform destroy is the only way to remove infrastructure w...
Question 93: What is the provider for the resource shown in the Exhibit? ...
Question 94: Which of these are benefits of using Sentinel with HCP Terra...
Question 95: What are some benefits of using Sentinel with Terraform Clou...
Question 96: Which is a benefit of the Terraform state file?...
Question 97: Which of the following module source paths does not specify ...
Question 98: You have multiple team members collaborating on infrastructu...
Question 99: When you include a module block in your configuration that r...
Question 100: Which statements are true? Choose two correct answers....
Question 101: Which command lets you experiment with terraform expressions...
Question 102: What is the Terraform style convention for indenting a nesti...
Question 103: Any user can publish modules to the public Terraform Module ...
Question 104: Exhibit: resource " aws_instance " " example " { ami = " ami...
Question 105: When you initialize Terraform, where does it cache modules f...
Question 106: Where does HashiCorp recommend you store API tokens and othe...
Question 107: You want to use API tokens and other secrets within your tea...
Question 108: Which of the following is not true of Terraform providers?...
Question 109: You ' re writing a Terraform configuration that needs to rea...
Question 110: When you use a remote backend that needs authentication, Has...
Question 111: Which command doesnotcause Terraform to refresh its state?...
Question 112: As a developer, you want to ensure your plugins are up to da...
Question 113: How can you enable verbose logging to troubleshoot Terraform...
Question 114: How does Terraform manage most dependencies between resource...
Question 115: The exhibit shows part of a configuration that you have been...
Question 116: What kind of configuration block will create an infrastructu...
Question 117: Which of these actions will prevent two Terraform runs from ...
Question 118: What does Terraform use the .terraform.lock.hc1 file for?...
Question 119: What does the import block do?
Question 120: Which of the following does terraform apply change after you...
Question 121: How do you specify a module's version when publishing it to ...
Question 122: You can execute terraform fmt to standardize all Terraform c...
Question 123: What is the purpose of the terraform.lock.hcl file in Terraf...
Question 124: You need to destroy all of the resources in your Terraform w...
Question 125: A developer on your team is going to leaf down an existing d...
Question 126: It is best practice to store secret data in the same version...
Question 127: If you manually destroy infrastructure, what is the best pra...
Question 128: terraform validate confirms that your infrastructure matches...
Question 129: Which are benefits of migrating from a local state backend t...
Question 130: When should you use the force-unlock command?...
Question 131: Which of these statements about Terraform Cloud workspaces i...
Question 132: You use a cloud provider account that is shared with other t...
Question 133: Which Terraform collection type stores values as key/value p...
Question 134: You modified your Terraform configuration and run Terraform ...
Question 135: What's the proper syntax for the plan command?...
Question 136: How would you output returned values from a child module in ...
Question 137: All standard backend types support state locking, and remote...
Question 138: Exhibit: resource " kubernetes_namespace " " example " { nam...
Question 139: Which statement describes a goal of Infrastructure as Code (...
Question 140: Terraform encrypts sensitive values stored in your state fil...
Question 141: You want to define multiple data disks as nested blocks insi...
Question 142: Does terraform init create an example main.tf file in the cu...
Question 143: Which command generates DOT (Document Template) formatted da...
Question 144: Which of the following statements about Terraform modules is...
Question 145: Which argument can you set on a module block to prevent Terr...
Question 146: (Exhibit) A resource block is shown in the Exhibit space of ...
Question 147: You ate making changes to existing Terraform code to add som...
Question 148: One remote backend configuration always maps to a single rem...
Question 149: Your risk management organization requires that new AWS S3 b...
Question 150: When you run terraform apply, the Terraform CLI will print o...
Question 151: In a Terraform Cloud workspace linked to a version control r...
Question 152: Exhibit. (Exhibit) You need to deploy resources into two dif...
Question 153: Your configuration contains a module block that references a...
Question 154: It is __________ to change the Terraform backend from the de...
Question 155: A module can always refer to all variables declared in its p...
Question 156: What value does the Terraform Cloud private registry provide...
Question 157: A developer accidentally launched a VM (virtual machine) out...
Question 158: Exhibit: data " aws_ami " " web " { most_recent = true owner...
Question 159: How would you reference the volume IDs associated with the e...
Question 160: A resource block is shown in the Exhibit section of this pag...
Question 161: If a DevOps team adopts AWS CloudFormation as their standard...
Question 162: You are working on some new application features and you wan...
Question 163: When you use a backend that requires authentication, it is b...
Question 164: Where in your Terraform configuration do you specify remote ...
Question 165: How can terraform plan aid in the development process?...
Question 166: terraform init retrieves and caches the configuration for al...
Question 167: Before you can use a remote backend, you must first execute ...
Question 168: You want to use API tokens and other secrets within your tea...
Question 169: Once you configure a new Terraform backend with a terraform ...
Question 170: Before you can use a new backend or HCP Terraform/Terraform ...
Question 171: You have a simple Terraform configuration containing one vir...
Question 172: How can a ticket-based system slow down infrastructure provi...
Question 173: What does terraform import do?
Question 174: In Terraform HCL, an object type of object({name=string, age...
Question 175: Which is a recommended way to share Terraform state across t...
Question 176: Which are forbidden actions when the terraform state file is...
Question 177: You need to determine from which paths Terraform is loading ...
Question 178: Module version is required to reference a module on the Terr...
Question 179: Terraform configuration (including any module references) ca...
Question 180: You need to deploy resources into two different regions in t...
Question 181: What task does the terraform import command perform?...
Question 182: What does state looking accomplish?...
Question 183: When do you need to explicitly execute Terraform in refresh-...
Question 184: Which of the following is not a valid Terraform variable typ...
Question 185: A resource block is shown in the Exhibit space of this page....
Question 186: Which is a benefit of using infrastructure as code (IaC) too...
Question 187: You have provisioned some virtual machines (VMs) on Google C...