Deploying to Oracle Cloud Infrastructure with Terraform Ed 1 Quiz Questions and Answers
Before a terraform validation can be run, the directory must be initialized.
Answer :
TRUE
What happens when a terraform apply command is executed?
Answer :
Applies the changes required in the target infrastructure in order to reach the desired configurations.
In Terraform Enterprise, how many VCS repos can be mapped to a workspace?
Answer :
1
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)
Terraform can help businesses deploy applications on multiple clouds and on-premises infrastructure
What Terraform feature is shown in the example below?
resource "aws_security_group " "example " {
name = "sg-app-web-01 "
dynamic "ingress " {
for_each = var.service_ports
content {
from_port = ingress.value
to_port = ingress.value
protocol = "tcp "
}
}
}
Answer :
Dynamic Block
Your organization has moved to AWS and has manually deployed infrastructure using the console. Recently, a decision has been made to standardize Terraform for all deployments moving forward.
What can you do to ensure that all existing is managed by Terraform moving forward without interruption to existing services?
Answer :
Using terraform-import, import the existing infrastructure into your Terraform state
Stephen is writing brand new code and needs to ensure it is syntactically valid and internally consistent. Stephen doesn't want to wait for Terraform to access any remote services while making sure his code is valid. What command can he use to accomplish this?
Answer :
terraform validate
Can performing a terraform plan can modify the existing Terraform state file?
Answer :
FALSE
A main.tf file is always required when using Terraform.
Answer :
FALSE
Which of the following commands will launch the Interactive console for Terraform interpolations?