You ate creating a Terraform configuration which needs to make use of multiple providers, one for AWS and one for Datadog. Which of the following provider blocks would allow you to do this?
A)
B)
C)
D)
You want to define a single input variable to capture configuration values for a server. The values must represent memory as a number, and the server name as a string.
Which variable type could you use for this input?
How do you specify a module’s version when publishing it to the public terraform Module Registry?
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?
While attempting to deploy resources into your cloud provider using Terraform, you begin to see some odd behavior and experience slow responses. In order to troubleshoot you decide to turn on Terraform debugging. Which environment variables must be configured to make Terraform's logging more verbose?
What feature stops multiple users from operating on the Terraform state at the same time?
A provider configuration block is required in every Terraform configuration.
Example:
Which of the following commands would you use to access all of the attributes and details of a resource managed by Terraform?
If you update the version constraint in your Terraform configuration, Terraform will update your lock file the next time you run terraform Init.
What information does the public Terraform Module Registry automatically expose about published modules?
What is the Terraform style convention for indenting a nesting level compared to the one above it?
Which of the following does terraform apply change after you approve the execution plan? (Choose two.)
How would you output returned values from a child module in the Terraform CLI output?
Which of the following arguments are required when declaring a Terraform output?
Infrastructure as Code (laC) can be stored in a version control system along with application code.
The Terraform binary version and provider versions must match each other in a single configuration.
As a developer, you want to ensure your plugins are up to date with the latest versions. Which Terraform command should you use?
Running terraform fmt without any flags in a directory with Terraform configuration files check the formatting of those files without changing their contents.
How does the Terraform cloud integration differ from other state backends such as S3, Consul,etc?
You're writing a Terraform configuration that needs to read input from a local file called id_rsa.pub . Which built-in Terraform function can you use to import the file's contents as a string?
You can configure Terraform to log to a file using the TF_LOG environment variable.
Outside of the required_providers block, Terraform configurations always refer to providers by their local names.
How would you reference the volume IDs associated with the ebs_block_device blocks in this configuration?
You add a new resource to an existing Terraform configuration, but do not update the version constraint in the configuration. The existing and new resources use the same provider. The working contains a .terraform.lock, hc1 file.
How will Terraform choose which version of the provider to use?
How can a ticket-based system slow down infrastructure provisioning and limit the ability to scale? Choose two correct answers.