This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Which of the following characteristics is a benefit of using infrastructure as code?
Infrastructure as code improves the consistency of your deployments.
Infrastructure as code requires that you deploy only a single environment.
With infrastructure as code, you manually execute your deployments.
You use infrastructure as code for resource provisioning. You're deciding between using an imperative or a declarative code approach. Which statement best describes declarative code?
With declarative code, you execute a sequence of commands, in a specific order, to reach an end configuration. This process defines what the code should accomplish, and it defines how to accomplish the task.
With declarative code, objects and classes are used to determine the final configuration of a resource.
With declarative code, you specify only the end configuration. You don't define how to accomplish the task.
Which of the following is declarative language that can work with Azure?
XML template.
Terraform module written in HCL.
Running a Bash script in Azure CLI.
You're deciding on the type of declarative language to use for your resource provisioning. Which of the following characteristics is a benefit of using Terraform and HCL?
Imperative code.
Modularity.
Management group.
Which of these options correctly describes the Terraform CLI workflow?
Init > Plan > Write > Apply
Write > Plan > Apply > Destroy > Purge
Write > Init > Plan > Apply
What is the purpose of the Terraform state file?
It's used to configure the Terraform CLI with authentication
It's used to define the desired state of your resource.
It's used to map resources in your configuration to the actual resource ID.
What does HCL stand for?
HashiCorp Configuration Language
Host Creation Logs
Hyper Cloud Language
You must answer all questions before checking your work.
Was this page helpful?