Free Terraform Associate Exam Braindumps (page: 30)

Page 29 of 113

You do not need to specify every required argument in the backend configuration. Omitting certain arguments may be desirable to avoid storing secrets, such as access keys, within the main configuration. When some or all of the arguments are omitted, we call this a .

  1. First Time Configuration
  2. Default Configuration
  3. Changing Configuration
  4. Partial Configuration
  5. Incomplete Configuration

Answer(s): D

Explanation:

You do not need to specify every required argument in the backend configuration. Omitting certain arguments may be desirable to avoid storing secrets, such as access keys, within the main configuration. When some or all of the arguments are omitted, we call this a partial configuration. With a partial configuration, the remaining configuration arguments must be provided as part of the initialization process. There are several ways to supply the remaining arguments:
* Interactively: Terraform will interactively ask you for the required values, unless interactive input is disabled. Terraform will not prompt for optional values.
* File: A configuration file may be specified via the init command line. To specify a file, use the - backend-config=PATH option when running terraform init. If the file contains secrets it may be kept in a secure data store, such as Vault, in which case it must be downloaded to the local disk before running Terraform.
* Command-line key/value pairs: Key/value pairs can be specified via the init command line. Note that many shells retain command-line flags in a history file, so this isn't recommended for secrets. To specify a single key/value pair, use the -backend-config="KEY=VALUE" option when running terraform init.


Reference:

https://www.terraform.io/docs/backends/config.html#partial-configuration



lookup retrieves the value of a single element from which of the below data type?

  1. map
  2. set
  3. string
  4. list

Answer(s): A


Reference:

https://www.terraform.io/docs/configuration/functions/lookup.html



Terraform must track metadata such as resource dependencies. Where is this data stored?

  1. workspace
  2. backend
  3. state file
  4. metadata store

Answer(s): C

Explanation:

Terraform typically uses the configuration to determine dependency order. However, when you delete a resource from a Terraform configuration, Terraform must know how to delete that resource. Terraform can see that a mapping exists for a resource not in your configuration and plan to destroy. However, since the configuration no longer exists, the order cannot be determined from the configuration alone.
To ensure correct operation, Terraform retains a copy of the most recent set of dependencies within the state. Now Terraform can still determine the correct order for destruction from the state when you delete one or more items from the configuration. https://www.terraform.io/docs/state/purpose.html#metadata



Which of the below are paid features of Terraform Cloud?

  1. Full API Coverage
  2. Secure variable Storage
  3. Roles/ Team management
  4. Cost Estimation
  5. Private Module Registry
  6. Sentinel policies

Answer(s): C,D,F


Reference:

https://www.hashicorp.com/products/terraform/pricing/






Post your Comments and Discuss HashiCorp Terraform Associate exam with other Community members:

Terraform Associate Discussions & Posts