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.

September 2, 2021 No Comments READ MORE +

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

September 2, 2021 No Comments READ MORE +

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

September 2, 2021 No Comments READ MORE +

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

September 2, 2021 No Comments READ MORE +

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

September 1, 2021 No Comments READ MORE +

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

September 1, 2021 No Comments READ MORE +

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

September 1, 2021 No Comments READ MORE +

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

September 1, 2021 No Comments READ MORE +

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

September 1, 2021 No Comments READ MORE +

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

September 1, 2021 No Comments READ MORE +