HashiCorp Certified: Terraform Associate — Question 149
Which of the following methods, used to provision resources into a public cloud, demonstrates the concept of infrastructure as code?
Answer options
- A. curl commands manually run from a terminal
- B. A sequence of REST requests you pass to a public cloud API endpoint
- C. A script that contains a series of public cloud CLI commands
- D. A series of commands you enter into a public cloud console
Correct answer: C
Explanation
The correct answer is C because a script containing CLI commands automates the provisioning process, aligning with the infrastructure as code philosophy. Options A and D involve manual processes, which do not embody the automation aspect, while option B, while automated, lacks the scripting component that defines infrastructure as code.