00:00

QUESTION 21

What value does the Terraform Cloud private registry provide over the public Terraform Module Registry?

Correct Answer: B
The Terraform Cloud private registry provides the ability to restrict modules to members of Terraform Cloud or Enterprise organizations. This allows you to share modules within your organization without exposing them to the public. The private registry also supports importing modules from your private VCS repositories. The public Terraform Module Registry, on the other hand, publishes modules from public Git repositories and makes them available to any user of Terraform. References = : Private Registry - Terraform Cloud : Terraform Registry - Provider Documentation

QUESTION 22

What Terraform command always causes a state file to be updated with changes that might have been made outside of Terraform?

Correct Answer: A
This is the command that always causes a state file to be updated with changes that might have been made outside of Terraform, as it will only refresh the state file with the current status of the real resources, without making any changes to them or creating a plan.

QUESTION 23

Which of the following commands would you use to access all of the attributes and details of a resource managed by Terraform?

Correct Answer: B
The terraform state show command allows you to access all of the attributes and details of a resource managed by Terraform. You can use the resource address
(e.g. provider_type.name) as an argument to show the information about a specific
resource. The terraform state list command only shows the list of resources in the state, not their attributes. The terraform get command downloads and installs modules needed for the configuration. It does not show any information about resources. References = [Command: state show] and [Command: state list]

QUESTION 24

All standard backend types support state locking, and remote operations like plan, apply, and destroy.

Correct Answer: B
Not all standard backend types support state locking and remote operations like plan, apply, and destroy. For example, the local backend does not support remote operations and state locking. State locking is a feature that ensures that no two users can make changes to the state file at the same time, which is crucial for preventing race conditions. Remote operations allow running Terraform commands on a remote server, which is supported by some backends like remote or consul, but not all.
References:
✑ Terraform documentation on backends: Terraform Backends
✑ Detailed backend support: Terraform Backend Types

QUESTION 25

Terraform configuration (including any module references) can contain only one Terraform provider type.

Correct Answer: B
Terraform configuration (including any module references) can contain more than one Terraform provider type. Terraform providers are plugins that Terraform uses to interact with various cloud services and other APIs. A Terraform configuration can use multiple providers to manage resources across different platforms and services. For example, a configuration can use the AWS provider to create a virtual machine, the Cloudflare provider to manage DNS records, and the GitHub provider to create a
repository. Terraform supports hundreds of providers for different use cases and scenarios. References = [Providers], [Provider Requirements], [Provider Configuration]