Mock 1 | Hashicorp Certified: Terraform Associate (TA-03)
1 / 58
A Terraform provider is NOT responsible for:
2 / 58
In a Terraform Cloud workspace linked to a version control repository speculative plan rum start automatically commit changes to version control.
3 / 58
Which command add existing resources into Terraform state?
4 / 58
How does the Terraform cloud integration differ from other state backends such as S3, Consul,etc?
5 / 58
Which of these ate features of Terraform Cloud? Choose two correct answers.
6 / 58
You cannot install third party plugins using terraform init.
7 / 58
Only the user that generated a plan may apply it.
8 / 58
When you use a remote backend that needs authentication, HashiCorp recommends that you:
9 / 58
You can reference a resource created with for_each using a Splat ( *) expression.
10 / 58
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?
11 / 58
_______backends support state locking.
12 / 58
It is best practice to store secret data in the same version control repository as your Terraform configuration.
13 / 58
Which of the following statements about Terraform modules is not true?
14 / 58
You have declared a variable called var.list which is a list of objects that all have an attribute id .Which options will produce a list of the IDs? Choose two correct answers.
15 / 58
How does Terraform manage most dependencies between resources?
16 / 58
Which backend does the Terraform CU use by default?
17 / 58
What is one disadvantage of using dynamic blocks in Terraform?
18 / 58
You can develop a custom provider to manage its resources using Terraform.
19 / 58
What is the workflow for deploying new infrastructure with Terraform?
20 / 58
When do changes invoked by terraform apply take effect?
21 / 58
You have never used Terraform before and would like to test it out using a shared team account for a cloud provider. The shared team account already contains 15 virtual machines (VM). You develop a Terraform configuration containing one VM. perform terraform apply, and see that your VM was created successfully.What should you do to delete the newly-created VM with Terraform?
22 / 58
What is the Terraform style convention for indenting a nesting level compared to the one above it?
23 / 58
What kind of configuration block will create an infrastructure object with settings specified within the block?
24 / 58
Which command should you run to check if all code in a Terraform configuration that references multiple modules is properly formatted without making changes?
25 / 58
How would you reference the volume IDs associated with the ebs_block_device blocks in this configuration?
26 / 58
You ate making changes to existing Terraform code to add some new infrastructure.When is the best time to run terraform validate?
27 / 58
As a member of an operations team that uses infrastructure as code (lac) practices, you are tasked with making a change to an infrastructure stack running in a public cloud.Which pattern would follow laC best practices for making a change?
28 / 58
You must use different Terraform commands depending on the cloud provider you use.
29 / 58
What information does the public Terraform Module Registry automatically expose about published modules?
30 / 58
As a developer, you want to ensure your plugins are up to date with the latest versions.Which Terraform command should you use?
31 / 58
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?
32 / 58
Your DevOps team is currently using the local backend for your Terraform configuration. You would like to move to a remote backend to store the state file in a central location.Which of the following backends would not work?
33 / 58
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.
34 / 58
Which of the following is not a valid Terraform variable type?
35 / 58
What does Terraform not reference when running a terraform apply -refresh-only ?
36 / 58
What are some benefits of using Sentinel with Terraform Cloud/Terra form Cloud? Choose three correct answers.
37 / 58
Module variable assignments are inherited from the parent module and you do not need to explicitly set them.
38 / 58
Why does this backend configuration not follow best practices?
39 / 58
What does Terraform use the .terraform.lock.hc1 file for?
40 / 58
Once you configure a new Terraform backend with a terraform code block, which command(s) should you use to migrate the state file?
41 / 58
If you update the version constraint in your Terraform configuration, Terraform will update your lock file the next time you run terraform Init.
42 / 58
Your security team scanned some Terraform workspaces and found secrets stored in plaintext in state files. How can you protect that data?
43 / 58
Variables declared within a module are accessible outside of the module.
44 / 58
When should you write Terraform configuration files for existing infrastructure that you want to start managing with Terraform?
45 / 58
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?
46 / 58
How can you trigger a run in a Terraform Cloud workspace that is connected to a Version Control System (VCS) repository?
47 / 58
What does the default "local" Terraform backend store?
48 / 58
Terraform providers are always installed from the Internet
49 / 58
What feature stops multiple users from operating on the Terraform state at the same time?
50 / 58
Which of the following is not a valid siring function in Terraform?
51 / 58
Outside of the required_providers block, Terraform configurations always refer to providers by their local names.
52 / 58
Which of the following ate advantages of using infrastructure as code (laC) instead of provisioning with a graphical user interface (GUI)? Choose two correct answers.
53 / 58
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.
54 / 58
A developer accidentally launched a VM (virtual machine) outside of the Terraform workflow and ended up with two servers with the same name. They don't know which VM Terraform manages but do have a list of all active VM IDs.Which of the following methods could you use to discover which instance Terraform manages?
55 / 58
When does Sentinel enforce policy logic during a Terraform Cloud run?
56 / 58
Which command must you first run before performing further Terraform operations in a working directory?
57 / 58
terraform validate confirms that your infrastructure matches the Terraform state file.
58 / 58
Module version is required to reference a module on the Terraform Module Registry.
Your score is
The average score is 38%
Restart quiz