HashiCorp Certified: Terraform Associate TA-002-P Exam Dumps Updated V9.02

Candidates will be prepared for HashiCorp Certified: Terraform Associate TA-002-P exam well if they choose DumpsBase TA-002-P exam dumps updated V9.02. The great team have updated the TA-002-P exam dumps with 279 practice exam questions and answers. Come to DumpsBase to get the most valid and latest TA-002-P exam questions, then we ensure that you can pass your exam smoothly.

HashiCorp Certified: Terraform Associate TA-002-P Free Dumps Online

1. Which option can not be used to keep secrets out of Terraform configuration files?

2. Terraform can run on Windows or Linux, but it requires a Server version of the Windows operating system.

3. 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.)

4. A Terraform provisioner must be nested inside a resource configuration block.

5. If you manually destroy infrastructure, what is the best practice reflecting this change in Terraform?

6. What is the name assigned by Terraform to reference this resource?

7. What command does Terraform require the first time you run it within a configuration directory?

8. Only the user that generated a plan may apply it.

9. 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?

10. Where does the Terraform local backend store its state?

11. Which of the following is not a key principle of infrastructure as code?

12. Where in your Terraform configuration do you specify a state backend?

13. 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.)

14. 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?

15. When does terraform apply reflect changes in the cloud environment?

16. Which provisioner invokes a process on the resource created by Terraform?

17. What does the default "local" Terraform backend store?

18. 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?

19. A provider configuration block is required in every Terraform configuration.

Example:

20. What is not processed when running a terraform refresh?

21. Setting the TF_LOG environment variable to DEBUG causes debug messages to be logged into syslog.

22. 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?

23. When should you use the force-unlock command?

24. What information does the public Terraform Module Registry automatically expose about published modules?

25. What is the provider for this fictitious resource?

26. What is the workflow for deploying new infrastructure with Terraform?

27. How is the Terraform remote backend different than other state backends such as S3, Consul, etc.?

28. Which task does terraform init not perform?

29. Which two steps are required to provision new infrastructure in the Terraform workflow? (Choose two.)

30. Which of the following is available only in Terraform Enterprise or Cloud workspaces and not in Terraform CLI?

31. Which of the following is not true of Terraform providers?

32. Terraform variables and outputs that set the "description" argument will store that description in the state file.

33. What features does the hosted service Terraform Cloud provide? (Choose two.)

34. Terraform providers are always installed from the Internet.

35. You should store secret data in the same version control repository as your Terraform configuration.

36. 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?

37. In Terraform 0.13 and above, outside of the required_providers block, Terraform configurations always refer to providers by their local names.

38. The terraform.tfstate file always matches your currently built infrastructure.

39. If a module uses a local variable, you can expose that value with a terraform output.

40. What value does the Terraform Cloud/Terraform Enterprise private module registry provide over the public Terraform Module Registry?

41. Terraform requires the Go runtime as a prerequisite for installation.

42. One remote backend configuration always maps to a single remote workspace.

43. terraform init initializes a sample main.tf file in the current directory.

44. CORRECT TEXT

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.

45. 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?

46. Which of the following is not a valid string function in Terraform?

47. How would you reference the "name" value of the second instance of this fictitious resource?

48. Which of these is the best practice to protect sensitive values in state files?

49. Which of the following is the correct way to pass the value in the variable num_servers into a module with the input servers?

50. 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.)

51. Why would you use the terraform taint command?

52. Which argument(s) is (are) required when declaring a Terraform variable?

53. What is one disadvantage of using dynamic blocks in Terraform?

54. What command should you run to display all workspaces for the current configuration?

55. You have deployed a new webapp with a public IP address on a clod 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?

56. terraform validate validates the syntax of Terraform files.

57. How does Terraform handle working with so many providers?

58. How can you ensure that the engineering team who has access to git repo will not create any non-compliant resources that might lead to a security audit failure in future. your team is using Hashicorp Terraform Enterprise Edition.

59. Terraform has detailed logs which can be enabled by setting the _________ environmental

variable.

60. True or False: A list(...) contain a number of values of the same type while an object(...) can contain a number of values of different types.

61. Which of the following best describes the default local backend?

62. Workspaces in Terraform provides similar functionality in the open-source, Terraform Cloud, and Enterprise versions of Terraform.

63. You want to get involved in the development of Terraform. As this is an open source project, you would like to contribute a fix for an open issue of Terraform .

What programming language will need to use to write the fix?

64. terraform state subcommands such as list are read-only commands, do read-only commands create state backup files?

65. What is the purpose of using the local-exec provisioner? (Select Two)

66. Refer to the below code where developer is outputting the value of the database password but has used sensitive parameter to hide the output value in the CLI.

output "db_password" { value = aws_db_instance.db.password description = "The password for logging in to the database." sensitive = true}

Since sensitive is set to true, the value associated with db password will not be present in state file as plain-text?

67. Matt wants to import a manually created EC2 instance into terraform so that he can manage the EC2 instance through terraform going forward. He has written the configuration file of the EC2 instance before importing it to Terraform.

Following is the code:

resource "aws_instance" "matt_ec2" { ami = "ami-bg2640de" instance_type = "t2.micro" vpc_security_group_ids = ["sg-6ae7d613", "sg-53370035"] key_name = "mysecret" subnet_id = "subnet-9e3cfbc5" }

The instance id of that EC2 instance is i-0260835eb7e9bd40 How he can import data of EC2 to state file?

68. Which of the following best describes a Terraform provider?

69. Which of the following type of variable allows multiple values of several distinct types to be grouped together as a single value?

70. Which of the below terraform commands do not run terraform refresh implicitly before taking actual action of the command?

71. When TF_LOG_PATH is set, TF_LOG must be set in order for any logging to be enabled.

72. John wants to use two different regions to deploy two different EC2 instances.

He has specified two provider blocks in his providers.tf file.

provider "aws" { region = "us-east-1" }

provider "aws" { region = "us-west-2" }

When he run terraform plan he encountered an error .

How to fix this?

73. Which of the following command can be used to view the specified version constraints for all providers used in the current configuration.

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

75. Which Terraform command will force a marked resource to be destroyed and recreated on the next apply?

76. terraform refresh will update the state file?

77. In regards to deploying resources in multi-cloud environments, what are some of the benefits of using Terraform rather than a provider's native tooling? (select three)

78. What is the default backend for Terraform?

79. }

What of the following approaches needs to be followed in order to select image-4589?

80. Which of the following represents a feature of Terraform Cloud that is NOT free to customers?

81. Terraform init can indeed be run only a few times, because, every time terraform init will initialize the project, and download all plugins from the internet repository, regardless of whether they were present or not, and this increases the waiting time

82. Terraform import command can import resources into modules as well directly into the root of your state.

83. Environment variables can be used to set variables. The environment variables must be in the format "____"_<variablename>. Select the correct prefix string from the following list.

84. ABC Enterprise has recently tied up with multiple small organizations for exchanging database information. Due to this, the firewall rules are increasing and are more than 100 rules. This is leading firewall configuration file that is difficult to manage .

What is the way this type of configuration can be managed easily?

85. The Terraform language does not support user-defined functions, and so only the functions built in to the language are available for use.

86. When using remote state, state is only ever held in memory when used by Terraform.

87. Which one of the following will run echo 0 and echo 1 on a newly created host?

88. If you enable TF_LOG = DEBUG, the log will be stored in syslog.log file in the currect directory.

89. What allows you to conveniently switch between multiple instances of a single configuration within its single backend?

90. What is the command you can use to set an environment variable named "var1"of type String?


 

HashiCorp Terraform Associate TA-002-P Exam Can Be Finished With Updated Dumps
HashiCorp Certified: Vault Associate VA-002-P Exam Dumps

Add a Comment

Your email address will not be published. Required fields are marked *