A developer on your team is going lo leaf down an existing deployment managed by Terraform and deploy a new one. However, there is a server resource named aws instant.ubuntu[l] theywould like to keep. What command should they use to tell Terraform to stop managing that specific resource?
Where can Terraform not load a provider from?
What type of block is used to construct a collection of nested configuration blocks?
You can reference a resource created with for_each using a Splat ( *) expression.
Terraform configuration can only import modules from the public registry.
What does Terraform not reference when running a terraform apply -refresh-only ?
Which command lets you experiment with terraform expressions?
How can a ticket-based system slow down infrastructure provisioning and limit the ability to scale? Choose two correct answers.
What value does the Terraform Cloud private registry provide over the public Terraform Module Registry?
terraform validate confirms that your infrastructure matches the Terraform state file.
Variables declared within a module are accessible outside of the module.
Infrastructure as Code (laC) can be stored in a version control system along with application code.
When should you run terraform init?
What is the workflow for deploying new infrastructure with Terraform?
Which option cannot be used to keep secrets out of Terraform configuration files?
Terraform configuration (including any module references) can contain only one Terraform provider type.
You are working on some new application features and you want to spin up a copy of your production deployment to perform some quick tests. In order to avoid having to configure a new state backend, what open source Terraform feature would allow you create multiple states but still be associated with your current code?
Which command add existing resources into Terraform state?
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 does the default "local" Terraform backend store?
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?
You add a new provider to your configuration and immediately run terraform apply in the CD using the local backend. Why does the apply fail?
You have to initialize a Terraform backend before it can be configured.
Which are forbidden actions when the terraform state file is locked? Choose three correct answers.
When using a remote backend or terraform Cloud integration, where does Terraform save resource sate?
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.
When using Terraform to deploy resources into Azure, which scenarios are true regarding state files? (Choose two.)
What is one disadvantage of using dynamic blocks in Terraform?
Which of the following command would be use to access all of the attributes and details of a resource managed by Terraform?
Which of these ate features of Terraform Cloud? Choose two correct answers.
If you update the version constraint in your Terraform configuration, Terraform will update your lock file the next time you run terraform Init.
Only the user that generated a plan may apply it.
Which of these is true about Terraform's plugin-based architecture?
You ate making changes to existing Terraform code to add some new infrastructure. When is the best time to run terraform validate?
Which type of block fetches or computes information for use elsewhere in a Terraform configuration?
You're building a CI/CD (continuous integration/continuous delivery) pipeline and need to inject sensitive variables into your Terraform run. How can you do this safely?
You are writing a child Terraform module that provisions an AWS instance. You want to reference the IP address returned by the child module in the root configuration. You name the instance resource "main'.
Which of these is the correct way to define the output value?
A)
B)
C)
D)
What is the Terraform style convention for indenting a nesting level compared to the one above it?
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)
A provider configuration block is required in every Terraform configuration.
Example:
When should you use the force-unlock command?
You can develop a custom provider to manage its resources using Terraform.
Your risk management organization requires that new AWS S3 buckets must be private and encrypted at rest. How can Terraform Cloud automatically and proactively enforce this security control?
Which of the following statements about Terraform modules is not true?
You have deployed a new webapp with a public IP address on a cloud provider. However, you did not create any outputs for your code. What is the best method to quickly find the IP address of the resource you deployed?
How does Terraform determine dependencies between resources?
Module variable assignments are inherited from the parent module and you donotneed to explicitly set them.
When you use a remote backend that needs authentication, HashiCorp recommends that you: