nerdexam
HashiCorp

TA-002-P · Question #401

You're writing a Terraform configuration that needs to read input from a local file called id_rsa.pub. Which built-in Terraform function can you use to import the file's contents as a string?

Sign in or unlock TA-002-P to reveal the answer and full explanation for question #401. The question stem and answer options stay visible for context.

Read, generate, and modify configuration

Question

You're writing a Terraform configuration that needs to read input from a local file called id_rsa.pub. Which built-in Terraform function can you use to import the file's contents as a string?

Options

  • Afileset("id_rsa.pub")
  • Bfilebase64("id_rsa.pub")
  • Ctemplatefile("id_rsa.pub")
  • Dfile("id_rsa.pub")

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 functions#Local file access#Configuration syntax
Full TA-002-P Practice