How do you specify a module’s version when publishing it to the public terraform Module Registry?

How do you specify a module’s version when publishing it to the public terraform Module Registry?A . Configuration it in the module's Terraform codeB . Mention it on the module's configuration page on the Terraform Module RegistryC . The Terraform Module Registry does not support versioning modulesD . Tag a...

May 7, 2025 No Comments READ MORE +

When should you write Terraform configuration files for existing infrastructure that you want to start managing with Terraform?

When should you write Terraform configuration files for existing infrastructure that you want to start managing with Terraform?A . You can import infrastructure without corresponding Terraform codeB . Terraform will generate the corresponding configuration files for youC . Before you run terraform ImportD . After you run terraform importView AnswerAnswer:...

May 7, 2025 No Comments READ MORE +

Which are examples of infrastructure as code? Choose two correct answers.

Which are examples of infrastructure as code? Choose two correct answers.A . Cloned virtual machine imagesB . Versioned configuration filesC . Change management database recordsD . Doctor filesView AnswerAnswer: B Explanation: These are examples of infrastructure as code (IaC), which is a practice of managing and provisioning infrastructure through machine-readable...

May 6, 2025 No Comments READ MORE +

When does Sentinel enforce policy logic during a Terraform Cloud run?

When does Sentinel enforce policy logic during a Terraform Cloud run?A . Before the plan phaseB . During the plan phaseC . Before the apply phaseD . After the apply phaseView AnswerAnswer: C Explanation: Sentinel policies are checked after the plan stage of a Terraform run, but before it can...

May 5, 2025 No Comments READ MORE +

Which of the following methods could you use to discover which instance Terraform manages?

A developer accidentally launched a VM (virtual machine) outside of the Terraform workflow and ended up with two servers with the same name. They don't know which VM Terraform manages but do have a list of all active VM IDs. Which of the following methods could you use to discover...

May 5, 2025 No Comments READ MORE +

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 +

What are the two things you must do to achieve this?

You have provisioned some virtual machines (VMs) on Google Cloud Platform (GCP) using the gcloud command line tool. However, you are standardizing with Terraform and want to manage these VMs using Terraform instead. What are the two things you must do to achieve this? Choose two correct answers.A . Run...

May 3, 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 +