- (Exam Topic 2)
Terraform init can indeed be run only a few times, because, every time terraform init will initialize the project
, and download all plugins from the internet repository , regardless of whether they were present or not , and this increases the waiting time
Correct Answer:
B
Re-running init with modules already installed will install the sources for any modules that were added to configuration since the last init, but will not change any already-installed modules. Use -upgrade to override this behavior, updating all modules to the latest available source code.
https://www.terraform.io/docs/commands/init.html
- (Exam Topic 4)
What are the benefits of using Infrastructure as Code? (select five)
Correct Answer:
ACDF
If you are new to infrastructure as code as a concept, it is the process of managing infrastructure in a file or files rather than manually configuring resources in a user interface.
A resource in this instance is any piece of infrastructure in a given environment, such as a virtual machine, security group, network interface, etc. At a high level, Terraform allows operators to use HCL to author files containing definitions of their desired resources on almost any provider (AWS, GCP, GitHub, Docker, etc) and automates the creation of those resources at the time of application.
- (Exam Topic 1)
How is the Terraform remote backend different than other state backends such as S3, Consul, etc.?
Correct Answer:
A
Backends define where Terraform's state snapshots are stored. A given Terraform configuration can either specify a backend, integrate with Terraform Cloud, or do neither and default to storing state locally.
If you and your team are using Terraform to manage meaningful infrastructure, we recommend using the remote backend with Terraform Cloud or Terraform Enterprise.
Reference: https://www.terraform.io/docs/language/settings/backends/index.html
- (Exam Topic 1)
What is the name assigned by Terraform to reference this resource?
Correct Answer:
B
- (Exam Topic 1)
What is not processed when running a terraform refresh?
Correct Answer:
B
"The terraform refresh command reads the current settings from all managed remote objects and updates the Terraform state to match."