Which of the following is not a key principle of infrastructure as code?
Which of the following is not a key principle of infrastructure as code?A . Versioned infrastructureB . Golden imagesC . IdempotenceD . Self-describing infrastructureView AnswerAnswer: A,B,D Explanation: Reference: https://docs.microsoft.com/en-us/azure/devops/learn/what-is-infrastructure-as-code#:~:text=Idempotence%20is%20a%20principle%20of,of%20the%20environment's%20 starting%20state.
If a module uses a local variable, you can expose that value with a terraform output.
If a module uses a local variable, you can expose that value with a terraform output.A . TrueB . FalseView AnswerAnswer: A Explanation: Output values are like function return values. Reference: https://www.terraform.io/docs/language/values/locals.html https://www.terraform.io/docs/language/values/outputs.html
What command does Terraform require the first time you run it within a configuration directory?
What command does Terraform require the first time you run it within a configuration directory?A . terraform importB . terraform initC . terraform planD . terraform workspaceView AnswerAnswer: B Explanation: terraform init command is used to initialize a working directory containing Terraform configuration files. Reference: https://www.terraform.io/docs/cli/commands/init.html
Where does the Terraform local backend store its state?
Where does the Terraform local backend store its state?A . In the /tmp directoryB . In the terraform.tfvars fileC . In the terraform.tfstate fileD . In the user's .terraformrc fileView AnswerAnswer: C Explanation: The local backend stores state on the local filesystem, locks that state using system APIs, and performs...
Which argument(s) is (are) required when declaring a Terraform variable?
Which argument(s) is (are) required when declaring a Terraform variable?A . typeB . defaultC . descriptionD . All of the aboveE . None of the aboveView AnswerAnswer: B Explanation: The variable declaration can also include a default argument. Reference: https://www.terraform.io/docs/language/values/variables.html
Which of the following is available only in Terraform Enterprise or Cloud workspaces and not in Terraform CLI?
Which of the following is available only in Terraform Enterprise or Cloud workspaces and not in Terraform CLI?A . Secure variable storageB . Support for multiple cloud providersC . Dry runs with terraform planD . Using the workspace as a data sourceView AnswerAnswer: B Explanation: Reference: https://www.terraform.io/docs/language/providers/configuration.html
What is the provider for this fictitious resource?
What is the provider for this fictitious resource? A . vpcB . mainC . awsD . testView AnswerAnswer: C Explanation: Reference: https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-types.html
Which of the following is not a valid string function in Terraform?
Which of the following is not a valid string function in Terraform?A . splitB . joinC . sliceD . chompView AnswerAnswer: D Explanation: Reference: https://www.terraform.io/docs/language/functions/chomp.html
What is the best method to quickly find the IP address of the resource you deployed?
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?A . Run terraform output ip_address to view the resultB...
Why will the apply fail?
You write a new Terraform configuration and immediately run terraform apply in the CLI using the local backend. Why will the apply fail?A . Terraform needs you to format your code according to best practices firstB . Terraform needs to install the necessary plugins firstC . The Terraform CLI needs...