최신HashiCorp Certified: Terraform Associate (004) (HCTA0-004) - Terraform-Associate-004무료샘플문제
What's the proper syntax for the plan command?
You have two separate Terraform configurations:
Configuration A provisions a virtual network and subnets.
Configuration B provisions compute resources that must be attached to those subnets.
In Configuration B, you have a terraform_remote_state data source configured to read Configuration A's local state file. When running terraform plan for Configuration B in a CI/CD pipeline, Terraform fails because the state file cannot be found and is not accessible to the pipeline runtime.
What is the best solution to reliably access the state data from Configuration A in this scenario?
Which of the following does terraform apply change after you approve the execution plan? (Choose two.)
You can develop a custom provider to manage its resources using Terraform.
Your security team scanned some Terraform workspaces and found secrets stored in plaintext in state files.
How can you protect that data?
When should you use the terraform force-unlock command?
Which are examples of infrastructure as code? Choose two correct answers.
Infrastructure as Code (laC) can be stored in a version control system along with application code.
As a member of an operations team that uses infrastructure as code (lac) practices, you are tasked with making a change to an infrastructure stack running in a public cloud. Which pattern would follow laC best practices for making a change?
Your team is using version 3.1.4 of a module from the public Terraform Registry, and they are worried about possible breaking changes in future versions of the module. Which version argument should you add to the module block to prevent newer versions from being used?
A resource block is shown in the Exhibit space of this page.

How would you reference the name value of the second instance of this resource?
If one of your modules uses a local value, you can expose that value to callers of the module by defining a Terraform output in the module's configuration.
Your team adopts AWS CloudFormation as the standardized method for provisioning public cloud resources.
Which scenario presents a challenge for your team?
Once you configure a new Terraform backend with a terraform code block, which command(s) should you use to migrate the state file?