HashiCorpHashiCorp
TA-002-P · Question #203
TA-002-P Question #203: Real Exam Question with Answer & Explanation
Sign in or unlock TA-002-P to reveal the answer and full explanation for question #203. The question stem and answer options stay visible for context.
Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)
Question
Mary has created a database instance in AWS and for ease of use is outputting the value of the database password with the following code: 1. output "db_password" 2. { 3. value = local.db_password 4. } Mary wants to hide the output value in the CLI after terraform apply? What is the best way?
Options
- AUse secure parameter
- BUse sensitive parameter
- CUse cryptographic hash
- DEncrypt the value using encrypt() function
Unlock TA-002-P to see the answer
You've previewed enough free TA-002-P questions. Unlock TA-002-P for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#Terraform outputs#Sensitive data handling#CLI display#Output configuration