Quiz
1.You have recently started a new job at a retailer as an engineer. As part of this new role, you have been tasked with evaluating multiple outages that occurred during peak shopping time during the holiday season. Your investigation found that the team is manually deploying new compute instances and configuring each compute instance manually. This has led to inconsistent configuration between each compute instance.
How would you solve this using infrastructure as code?
2.Terraform can import modules from a number of sources `" which of the following is not a valid source?
3.Only the user that generated a plan may apply it.
4.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.)
5.When should you use the force-unlock command?
6.You run a local-exec provisioner in a null resource called null_resource.run_script and realize that you need to rerun the script.
Which of the following commands would you use first?
7.Which task does terraform init not perform?
8.How is the Terraform remote backend different than other state backends such as S3, Consul, etc.?
9.What is the name assigned by Terraform to reference this resource?

10.Which of the following is not a valid string function in Terraform?
11.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?
12.Which two steps are required to provision new infrastructure in the Terraform workflow? (Choose two.)
13.What information does the public Terraform Module Registry automatically expose about published modules?
14.A Terraform provisioner must be nested inside a resource configuration block.
15.A provider configuration block is required in every Terraform configuration.
Example:

16.What command does Terraform require the first time you run it within a configuration directory?
17.FILL BLANK -
You need to specify a dependency manually.
What resource meta-parameter can you use to make sure Terraform respects the dependency?
Type your answer in the field provided. The text field is not case-sensitive and all variations of the correct answer are accepted.
18.Which of the following is not true of Terraform providers?
19.Which argument(s) is (are) required when declaring a Terraform variable?
20.What is one disadvantage of using dynamic blocks in Terraform?
21.What is not processed when running a terraform refresh?
22.terraform init initializes a sample main.tf file in the current directory.
23.What value does the Terraform Cloud/Terraform Enterprise private module registry provide over the public Terraform Module Registry?
24.Which of the following is not a key principle of infrastructure as code?
25.Which option can not be used to keep secrets out of Terraform configuration files?
26.You should store secret data in the same version control repository as your Terraform configuration.
27.The terraform.tfstate file always matches your currently built infrastructure.
28.Which provisioner invokes a process on the resource created by Terraform?
29.Which of the following is available only in Terraform Enterprise or Cloud workspaces and not in Terraform CLI?
30.What is the workflow for deploying new infrastructure with Terraform?
31.Which of the following is the correct way to pass the value in the variable num_servers into a module with the input servers?
32.If a module uses a local values, you can expose that value with a terraform output.
33.What is the provider for this fictitious resource?

34.When using a module block to reference a module stored on the public Terraform Module Registry such as:

How do you specify version 1.0.0?
35.Setting the TF_LOG environment variable to DEBUG causes debug messages to be logged into syslog.
36.You have used Terraform to create an ephemeral development environment in the cloud and are now ready to destroy all the infrastructure described by your
Terraform configuration. To be safe, you would like to first see all the infrastructure that will be deleted by Terraform.
Which command should you use to show all of the resources that will be deleted? (Choose two.)
37.If you manually destroy infrastructure, what is the best practice reflecting this change in Terraform?
38.Why would you use the terraform taint command?
39.Examine the following Terraform configuration, which uses the data source for an AWS AMI.
What value should you enter for the ami argument in the AWS instance resource?

40.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.)
41.terraform validate validates the syntax of Terraform files.
42.Terraform requires the Go runtime as a prerequisite for installation.
43.Terraform can run on Windows or Linux, but it requires a Server version of the Windows operating system.
44.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?
45.What features does the hosted service Terraform Cloud provide? (Choose two.)
46.Terraform variables and outputs that set the "description" argument will store that description in the state file.
47.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?
48.What does the default "local" Terraform backend store?
49.One remote backend configuration always maps to a single remote workspace.
50.Where does the Terraform local backend store its state?

Terraform Associate

003

728x90
반응형

'Lastest Dumps > Terraform' 카테고리의 다른 글

Terraform Associate (ExamTopics Q358)  (0) 2024.11.21
Terraform Associate (ExamTopics Q346)  (0) 2024.09.12
Terraform Associate (ExamTopics Q329)  (0) 2024.09.03
  • 네이버 블러그 공유하기
  • 네이버 밴드에 공유하기
  • 페이스북 공유하기
  • 카카오스토리 공유하기