No way, you need the backend config in your .tf files before running terraform init or it won’t know what backend to set up. So the statement is False. Pretty sure most practice tests reflect this order too, but I’m open if someone’s seen documentation that says otherwise.
Not quite, it's actually False. Descriptions for variables and outputs are just for docs and humans, they're not stored in the state file itself. Easy to mix up since descriptions show up in the CLI but don't get saved with the state. Saw a similar trick question on another practice set.
Pretty sure that's false. In my labs, only actual values and resource mappings got saved in the state file, never the description fields. Maybe someone has seen otherwise?
This one's definitely False. Using sensitive = true just hides the output from the CLI, but the actual value still ends up in the Terraform state file. That's why state files need to be secured even if outputs are masked. Pretty sure on this, but correct me if I’m wrong.
Not sure why some pick False here. The question says you can develop a custom provider to manage resources, not that you have to. That fits with Terraform's plugin system, so True. The trap is thinking it's a requirement-it's just about capability. Agree?
prefix setting in remote backend config, a single backend can cover multiple remote workspaces. If it only supported name, maybe True, but prefix flips it. Anyone disagree?Does anyone have a practice exam showing this as True? The official docs talk about backend config with both name and prefix, so it gets fuzzy. Worth double-checking in the Terraform guide if you're unsure.
workspaces.prefix in the backend config, that one config can cover several workspaces with the same prefix. Not always one-to-one. Anyone else notice edge cases with switching?False tbh, because terraform apply does its own refresh before applying, so it'll see whatever your teammate changed and adjust the plan. Manual tweaks outside of Terraform always risk drift like this. Only with a saved plan file would the apply skip that refresh step. Anyone else catch that nuance?
Bit skeptical on this one, I think it's actually False. Access to the modules is free, but when you start using features with Terraform Cloud or want advanced controls, there are costs involved. Maybe that's what they're hinting at here. Anyone have a solid source that says the public registry is always free?
Guessing False. terraform state rm just removes the resource from the state file, but leaves the actual infra (like an EC2 instance) running. It won't trigger any deletion in the provider. Only terraform destroy or a remove-from-config plus apply will actually destroy something. Pretty sure that's the intent here, but open to correction.
terraform state rm only removes the resource from the state file, it doesn't touch the real infrastructure. You'd still see your EC2 or whatever out there unless you delete it separately. That's how I've seen it behave, but let me know if I'm missing some rare case.