Which of the below command will upgrade the provider version to the latest acceptable one?
A. terraform plan upgrade B. terraform provider-upgrade C. terraform init-upgrade D. terraform init-update
C. terraform init-upgrade
Explanation
To upgrade to the latest acceptable version of each provider, run terraform init-upgrade. This command also upgrades to the latest versions of all Terraform modules. https://www.terraform.io/docs/configuration/providers.html
Question 312:
Most Terraform providers interact with ____________.
A. API B. VCS Systems C. Shell scripts D. None of the above
A. API
Explanation
Terraform relies on plugins called "providers" to interact with cloud providers, SaaS providers, and other APIs, as per: https://www.terraform.io/language/providers
Question 313:
Terraform has detailed logs which can be enabled by setting the _________ environmental variable.
A. TF_TRACE B. TF_DEBUG C. TF_LOG D. TF_INFO
C. TF_LOG
Explanation
Terraform has detailed logs that can be enabled by setting the TF_LOG environment variable to any value. This will cause detailed logs to appear on stderr. You can set TF_LOG to one of the log levels TRACE, DEBUG, INFO, WARN or ERROR to change the verbosity of the logs. TRACE is the most verbose and it is the default if TF_LOG is set to something other than a log level name.
What resource meta-parameter can you use to make sure Terraform respects the dependency?
Type your answer in the field provided. The text field is not case-sensitive and all variations of the correct answer are accepted.
A. depends_on B. PlaceHolder C. PlaceHolder D. PlaceHolder
A. depends_on
Explanation
depends_on
Question 315:
What information does the public Terraform Module Registry automatically expose about published modules?
A. Required input variables B. Optional inputs variables and default values C. Outputs D. All of the above E. None of the above
D. All of the above
Explanation
https://www.terraform.io/registry/modules/publish "The registry extracts information about the module from the module's source. The module name, provider, documentation, inputs/outputs, and dependencies are all parsed and available via the UI or API, as well as the same information for any submodules or examples in the module's source repository."
Question 316:
The terraform.tfstate file always matches your currently built infrastructure.
A terraform apply can not___________infrastructure.
A. import B. provision C. destroy D. change
A. import
Explanation
Question 318:
A colleague has informed you that a new version of a Terraform module that your team hosts on an Amazon S3 bucket is broken. The Amazon S3 bucket has versioning enabled. Your colleague tells you to make sure you are not using the
latest version in your configuration. You have the following configuration block in your code that refers to the module:
What is the best way to ensure that you are not using the latest version of the module?
A. Add a module version constraint in your configuration's backend block and specify a previous version. B. Add a version key to the module configuration and specify a previous version. C. Delete the latest version of the module in S3 to rollback to the previous version. D. Add a version property to the module in Terraform's state file and specify a previous version.
C. Delete the latest version of the module in S3 to rollback to the previous version.
Explanation
Version constraints are supported only for modules installed from a module registry, such as the Terraform Registry or Terraform Cloud's private module registry. Other module sources can provide their own versioning mechanisms within the source string itself, or might not support versions at all. In particular, modules sourced from local file paths do not support version; since they're loaded from the same source repository. Only Terraform Registries support module versioning by using the version key, one cannot configure a previous version of the module in the configuration. Deleting the latest version of the module in S3 is the only option of the available options that ensures you won't use the latest version. You could also modify the source URL to specify a versionId URL parameter for a previous version. https://www.terraform.io/docs/configuration/modules.html#source
Question 319:
You much initialize your working directory before running terraform validate.
A. True B. False
A. True
Explanation
You must initialize your working directory before running terraform validate, as it will ensure that all the required plugins and modules are installed and configured properly. If you skip this step, you may encounter errors or inconsistencies when validating your configuration files.
Question 320:
You have created an AWS EC2 instance of type t2.micro through your terraform configuration file ec2.tf . Now you want to change the instance type from t2.micro to t2.medium. Accordingly you have changed your configuration file and and ran terraform plan. After running terraform plan you check the output and saw one instance will be updated from t2.micro--> t2.medium. After this you went to grab a coffee without running terraform apply and meanwhile a member of your team changed the instance type of that EC2 instance to t2.medium from aws console. After coming to your desk you run terraform apply. What will happen?
A. No resource will be updated and you will see the message : Apply Complete ! Resources : 0 added, 0 changed, 0 destroyed. B. The instance type will be changed to t2.micro and again will be changed to t2.medium C. terraform apply will through an error. D. 1 resource will be updated and you will see the message : Apply Complete ! Resources : 0 added, 1 changed, 0 destroyed.
A. No resource will be updated and you will see the message : Apply Complete ! Resources : 0 added, 0 changed, 0 destroyed.
Nowadays, the certification exams become more and more important and required by more and more
enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare
for the exam in a short time with less efforts? How to get a ideal result and how to find the
most reliable resources? Here on Vcedump.com, you will find all the answers.
Vcedump.com provide not only HashiCorp exam questions,
answers and explanations but also complete assistance on your exam preparation and certification
application. If you are confused on your TERRAFORM-ASSOCIATE-003 exam preparations
and HashiCorp certification application, do not hesitate to visit our
Vcedump.com to find your solutions here.