0
0
Terraformcloud~20 mins

Installing Terraform - Practice Exercises

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Terraform Installation Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Terraform Installation Methods

Which of the following is NOT a valid method to install Terraform on a Linux system?

AInstalling Terraform by running 'pip install terraform' in the terminal
BDownloading the Terraform binary zip file from the official website and extracting it manually
CInstalling Terraform via a Docker container image
DUsing the official HashiCorp Linux package repository with apt or yum
Attempts:
2 left
💡 Hint

Think about the package managers and installation tools commonly used for Terraform.

Configuration
intermediate
1:30remaining
Verifying Terraform Installation

After installing Terraform on your system, which command will correctly display the installed Terraform version?

Aterraform version check
Bterraform --version
Cterraform -v check
Dterraform version --check
Attempts:
2 left
💡 Hint

Try the command that is commonly used to check version for many CLI tools.

Architecture
advanced
2:30remaining
Terraform Installation in a CI/CD Pipeline

You want to use Terraform in a CI/CD pipeline that runs on ephemeral Linux containers. Which approach ensures Terraform is available every time the pipeline runs without manual installation steps?

AInstall Terraform manually in each pipeline run using shell commands
BUse a virtual machine with Terraform pre-installed and connect the pipeline to it
CDownload Terraform binary during the first pipeline run and cache it locally on the host machine
DUse a Docker image that already includes Terraform as the pipeline environment
Attempts:
2 left
💡 Hint

Consider the benefits of container images for repeatable environments.

security
advanced
2:30remaining
Securing Terraform Installation

Which practice improves security when installing Terraform on a production server?

AVerify the SHA256 checksum of the downloaded Terraform binary against the official HashiCorp checksum
BDownload Terraform from any third-party website to get the latest version quickly
CRun Terraform as root user to avoid permission issues
DDisable TLS verification when downloading Terraform to prevent connection errors
Attempts:
2 left
💡 Hint

Think about how to ensure the downloaded software is authentic and untampered.

service_behavior
expert
2:00remaining
Terraform Version Compatibility Behavior

You have Terraform version 1.4.0 installed. You run a configuration that requires version >= 1.5.0. What will happen when you run terraform init?

ATerraform will initialize successfully and ignore the version requirement
BTerraform will automatically upgrade itself to version 1.5.0
CTerraform will fail initialization with an error about incompatible Terraform version
DTerraform will prompt to downgrade the configuration to match the installed version
Attempts:
2 left
💡 Hint

Consider how Terraform enforces version constraints specified in configuration files.