Refer to the following terraform variable definition
variable "track_tag" { type = list default = ["data_ec2","integration_ec2","digital_ec2"]} track_tag = { Name = element(var.track_tag,count.index)}
If count.index is set to 2, which of the following values will be assigned to the name attribute of track_tag variable?
A. integration_ec2
B. digital_ec2
C. track_tag
D. data_ec2
Mary has created a database instance in AWS and for ease of use is outputting the value of the database password with the following code:
1.
output "db_password"
2.
{
3.
value = local.db_password
4.
}
Mary wants to hide the output value in the CLI after terraform apply? What is the best way?
A. Use secure parameter
B. Use sensitive parameter
C. Use cryptographic hash
D. Encrypt the value using encrypt() function
What kind of resource dependency is stored in terraform.tfstate file?
A. Both implicit and explicit dependencies are stored in state file.
B. Only explicit dependencies are stored in state file.
C. Only implicit dependencies are stored in state file.
D. No dependency information is stored in state file.
Which of the below commands will rename a EC2 instance without destroying and recreating it?
A. terraform state mv
B. terraform mv
C. terraform plan
D. terraform plan mv
Which of the following value will be accepted for var1?
variable "var1" { type = string }
A. None of the above
B. Both A and B
C. "5"
D. 5
Which of the following Terraform commands will automatically refresh the state unless supplied with additional flags or arguments? Choose TWO correct answers.
A. terraform state
B. terraform apply
C. terraform plan
D. terraform validate
E. terraform output
When using Terraform in a team it is important for everyone to be working with the same state so that operations will be applied to the same remote objects. Which of the below option is a recommended solution for this?
A. Remote State
B. Module
C. Use the cached state and treat this as the record of truth.
D. Workspace
A single terraform resource file that defines an aws_instance resource can simply be renamed to vsphere_virtual_machine in order to switch cloud providers.
A. True
B. False
Which flag would be used within a Terraform configuration block to identify the specific version of a provider required?
A. required-provider
B. required-version
C. required_providers
D. required_versions
By default, provisioners that fail will also cause the Terraform apply itself to error. How can you change this default behavior within a provisioner?
A. provisioner "local-exec" { on_failure = "next" }
B. provisioner "local-exec" { when = "failure" terraform apply }
C. provisioner "local-exec" { on_failure = "continue" }
D. provisioner "local-exec" { on_failure = continue }
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only HashiCorp exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your TA-002-P exam preparations and HashiCorp certification application, do not hesitate to visit our Vcedump.com to find your solutions here.