How can you do this safely?

You're building a CI/CD (continuous integration/continuous delivery) pipeline and need to inject sensitive variables into your Terraform run. How can you do this safely?A . Copy the sensitive variables into your Terraform codeB . Store the sensitive variables in a secure_varS.tf fileC . Store the sensitive variables as plain text...

May 4, 2025 No Comments READ MORE +

When using multiple configuration of the same Terraform provider, what meta-argument must you include in any non-default provider configurations?

When using multiple configuration of the same Terraform provider, what meta-argument must you include in any non-default provider configurations?A . AliasB . IdC . Depends_onD . nameView AnswerAnswer: A Explanation: This is the meta-argument that you must include in any non-default provider configurations, as it allows you to give a...

May 3, 2025 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...

May 2, 2025 No Comments READ MORE +

What is the Terraform style convention for indenting a nesting level compared to the one above it?

What is the Terraform style convention for indenting a nesting level compared to the one above it?A . With a tabB . With two spacesC . With four spacesD . With three spacesView AnswerAnswer: B Explanation: This is the Terraform style convention for indenting a nesting level compared to the...

May 2, 2025 No Comments READ MORE +

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

April 29, 2025 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...

April 27, 2025 No Comments READ MORE +

What will happen?

You have created a main.tf Terraform configuration consisting of an application server, a database and a load balanced. You ran terraform apply and Terraform created all of the resources successfully. Now you realize that you do not actually need the load balancer, so you run terraform destroy without any flags....

April 26, 2025 No Comments READ MORE +

Why does this backend configuration not follow best practices?

Why does this backend configuration not follow best practices? A . An alias meta-argument should be included in backend blocks whenever possibleB . You should use the local enhanced storage backend whenever possibleC . You should not store credentials in Terraform configurationD . The backend configuration should contain multiple credentials...

April 23, 2025 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:...

April 20, 2025 No Comments READ MORE +

You modified your Terraform configuration and run Terraform plan to review the changes. Simultaneously, your teammate manually modified the infrastructure component you are working on. Since you already ran terraform plan locally, the execution plan for terraform apply will be the same.

You modified your Terraform configuration and run Terraform plan to review the changes. Simultaneously, your teammate manually modified the infrastructure component you are working on. Since you already ran terraform plan locally, the execution plan for terraform apply will be the same.A . TrueB . FalseView AnswerAnswer: B Explanation: The...

April 20, 2025 No Comments READ MORE +