Q: 2
[Navigate Terraform State and Backends]
Terraform variables and outputs that set the description argument will store that description in the
state file.
Options
Discussion
Nope, descriptions don't end up in the state file. False is right here.
Yeah, this one’s definitely False.
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?
Guessing True this time. I remember seeing some metadata in the state but not 100 percent sure if descriptions count.
False descriptions don’t end up in the state file. Just tracks values and resource states afaik.
Are we sure descriptions are even saved in the state file? I always thought Terraform only keeps values and resource details there, not comments or metadata.
Does the state file actually keep variable descriptions? I thought it only tracks resource info, so maybe this is false if we're being strict.
Be respectful. No spam.