Which command must you first run before performing further Terraform operations in a working directory?

Which command must you first run before performing further Terraform operations in a working directory?A . terraform importB . terraform workspaceC . terraform planD . terraform initView AnswerAnswer: D Explanation: terraform init is the first command that should be run after writing a new Terraform configuration or cloning an existing...

September 27, 2024 No Comments READ MORE +

Which Terraform command should you use?

As a developer, you want to ensure your plugins are up to date with the latest versions. Which Terraform command should you use?A . terraform refresh -upgradeB . terraform apply -upgradeC . terraform init -upgradeD . terraform providers -upgradeView AnswerAnswer: C Explanation: This command will upgrade the plugins to the...

September 27, 2024 No Comments READ MORE +

Which of the following statements about Terraform modules is not true?

Which of the following statements about Terraform modules is not true?A . Modules can call other modulesB . A module is a container for one or more resourcesC . Modules must be publicly accessibleD . You can call the same module multiple timesView AnswerAnswer: C Explanation: This is not true,...

September 26, 2024 No Comments READ MORE +

Which of the following backends would not work?

Your DevOps team is currently using the local backend for your Terraform configuration. You would like to move to a remote backend to store the state file in a central location. Which of the following backends would not work?A . ArtifactoryB . Amazon S3C . Terraform CloudD . GitView AnswerAnswer:...

September 26, 2024 No Comments READ MORE +

Which variable type could you use for this input?

You want to define a single input variable to capture configuration values for a server. The values must represent memory as a number, and the server name as a string. Which variable type could you use for this input?A . ListB . ObjectC . MapD . Terraform does not support...

September 26, 2024 No Comments READ MORE +

Which of the following is not a valid siring function in Terraform?

Which of the following is not a valid siring function in Terraform?A . choafB . joinC . SplitD . sliceView AnswerAnswer: A Explanation: This is not a valid string function in Terraform. The other options are valid string functions that can manipulate strings in various ways2.

September 26, 2024 No Comments READ MORE +

How does the Terraform cloud integration differ from other state backends such as S3, Consul,etc?

How does the Terraform cloud integration differ from other state backends such as S3, Consul,etc?A . It can execute Terraform runs on dedicated infrastructure in Terraform CloudB . It doesn't show the output of a terraform apply locallyC . It is only arable lo paying customersD . All of the...

September 26, 2024 No Comments READ MORE +

Which command will migrate your current state file to the new S3 remote backend?

You decide to move a Terraform state file to Amazon S3 from another location. You write the code below into a file called backend.tf. Which command will migrate your current state file to the new S3 remote backend?A . terraform stateB . terraform initC . terraform pushD . terraform refreshView...

September 25, 2024 No Comments READ MORE +

You cannot install third party plugins using terraform init.

You cannot install third party plugins using terraform init.A . TrueB . FalseView AnswerAnswer: B Explanation: You can install third party plugins using terraform init, as long as you specify the plugin directory in your configuration or as a command-line argument. You can also use the terraform providers mirror command...

September 24, 2024 No Comments READ MORE +

Which of the following ate advantages of using infrastructure as code (laC) instead of provisioning with a graphical user interface (GUI)? Choose two correct answers.

Which of the following ate advantages of using infrastructure as code (laC) instead of provisioning with a graphical user interface (GUI)? Choose two correct answers.A . Lets you version, reuse, and share infrastructure configurationB . Provisions the same resources at a lower costC . Secures your credentialsD . Reduces risk...

September 23, 2024 No Comments READ MORE +