nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-004 · Question #132

Which of the following methods, used to provision resources into a public cloud, demonstrates the concept of infrastructure as code?

The correct answer is C. A script that contains a series of public cloud CLI commands. The concept of infrastructure as code (IaC) is to define and manage infrastructure using code, rather than manual processes or GUI tools. A script that contains a series of public cloud CLI commands is an example of IaC, because it uses code to provision resources into a public c

Submitted by anna_se· Apr 18, 2026Understand Infrastructure as Code (IaC) Concepts

Question

Which of the following methods, used to provision resources into a public cloud, demonstrates the concept of infrastructure as code?

Options

  • Acurl commands manually run from a terminal
  • BA sequence of REST requests you pass to a public cloud API endpoint
  • CA script that contains a series of public cloud CLI commands
  • DA series of commands you enter into a public cloud console

How the community answered

(40 responses)
  • A
    3% (1)
  • B
    3% (1)
  • C
    90% (36)
  • D
    5% (2)

Explanation

The concept of infrastructure as code (IaC) is to define and manage infrastructure using code, rather than manual processes or GUI tools. A script that contains a series of public cloud CLI commands is an example of IaC, because it uses code to provision resources into a public cloud. The other options are not examples of IaC, because they involve manual or interactive actions, such as running curl commands, sending REST requests, or entering commands into a console.

Topics

#Infrastructure as Code#IaC principles#Resource provisioning#Automation

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-004 Practice