Terms and Concepts
1.LO: Create, update, and destroy Google Cloud resources using Terraform. In which phase of the Terraform workflow can you run pre-deployment checks against the policy library?
Initialize
Validate
Scope
Plan
2.LO: Explain the purpose of Terraform commands Which command creates infrastructure resources?
terraform fmt
terraform apply
terraform plan
terraform init
3.LO: Explain the Terraform workflow. In which phase of the Terraform workflow do you write configuration files based on the scope defined by your organization?
Plan
Author
Initialize
Scope
Apply
Initialize
Validate
Scope
Plan
2.LO: Explain the purpose of Terraform commands Which command creates infrastructure resources?
terraform fmt
terraform apply
terraform plan
terraform init
3.LO: Explain the Terraform workflow. In which phase of the Terraform workflow do you write configuration files based on the scope defined by your organization?
Plan
Author
Initialize
Scope
Apply
WRITING INFRASTRUCTURE CODE FOR GCLOUD
1.Which dependency can be automatically detected by Terraform?
Explicit dependency
Implicit dependency
2.Can a variable be assigned values in multiple ways?
No
Yes
3.How can output values be used?
Declare a resource within a Terraform configuration.
Parameterize a resource configuration.
Print resource attributes.
4.How many resource types can be represented in a single resource block?
Three
Two
Four
One
ORGANIZING AND REUSING CONFIGURATION WITH TERRAFORM MODULS
1.State true or false. The source of a module can only be remote.
False
True
2.Which code construct of Terraform helps you parameterize a configuration?
Variables
Modules
Resources
Output values
3.What happens when a version argument is specified in a module block?
Terraform automatically upgrades the module to the latest version matching the specified version constraint.
Terraform automatically downgrades the modules to the specific version.
Terraform automatically downgrades the module to the oldest version.
Terrafom automatically upgrades the modules to the specific version.
4.What is the purpose of output values within modules?
Pass resource attributes outside a module.
Parameterize a configuration.
Initialize Terraform to download the plugins.
Ensure that the syntax is in canonical format.
INTRODUCTION TO TERRAFORM STATE
1.Select the three benefits of storing a Terraform state file remotely.
Sharing and delegation
Automatic insights
Locking
Secure access
Usage analytics
2.State true or false. A state file is stored by default in a local file named terraform.tfstate.
True
False