nerdexam
HashiCorp

TA-002-P · Question #258

Which of the following connection types are supported by the remote-exec provisioner? (select two)

The correct answer is A. WinRM E. ssh. The Terraform remote-exec provisioner connects to a remote resource and executes scripts or commands. It supports exactly two connection types: SSH (for Linux/Unix-based systems) and WinRM (Windows Remote Management, for Windows-based systems). UDP, SMB, and RDP are not supported

Read, generate, and modify configuration

Question

Which of the following connection types are supported by the remote-exec provisioner? (select two)

Options

  • AWinRM
  • BUDP
  • CSMB
  • DRDP
  • Essh

How the community answered

(55 responses)
  • A
    93% (51)
  • B
    2% (1)
  • C
    2% (1)
  • D
    4% (2)

Explanation

The Terraform remote-exec provisioner connects to a remote resource and executes scripts or commands. It supports exactly two connection types: SSH (for Linux/Unix-based systems) and WinRM (Windows Remote Management, for Windows-based systems). UDP, SMB, and RDP are not supported connection types for this provisioner. SSH is the default and most common; WinRM is used when targeting Windows instances.

Topics

#remote-exec provisioner#connection types#ssh#WinRM

Community Discussion

No community discussion yet for this question.

Full TA-002-P Practice