The answer is A. connection.
The connection block is used to configure the authentication settings for a Terraform provisioner. This includes the username, password, and SSH key that will be used to connect to the remote resource.
The credentials and secrets blocks are used to store sensitive information, such as passwords and SSH keys. These blocks are not directly used by provisioners, but they can be referenced by the connection block.
The ssh block is used to configure the SSH client that Terraform will use to connect to the remote resource. This block is not typically used by provisioners, as the connection block can be used to configure the SSH client for all provisioners.
Here is an example of a connection block for a provisioner that requires SSH authentication:
connection {
host = "example.com"
user = "root"
password = "my-password"
}
https://developer.hashicorp.com/terraform/language/resources/provisioners/connection
Most provisioners require access to the remote resource via SSH or WinRM and expect a nested connection block with details about how to connect.
A is correct answer : connection.
"Most provisioners require access to the remote resource via SSH or WinRM and expect a nested connection block with details about how to connect."
"Connection blocks don't take a block label and can be nested within either a resource or a provisioner."
https://www.terraform.io/language/resources/provisioners/connection
Most provisioners require access to the remote resource via SSH or WinRM and expect a nested connection block with details about how to connect.
A
upvoted 2 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
BaburTurk
Highly Voted 1 year, 3 months agoNashP
Most Recent 9 months, 3 weeks agoTlakmini
1 year, 3 months agoPower123
1 year, 7 months agotgaos
1 year, 8 months agoresnef
1 year, 10 months agoadouban
1 year, 11 months agoasudhin
2 years, 1 month agoBurakko
2 years, 2 months agoaadi1121
2 years, 4 months agoEltooth
2 years, 4 months agoZam88
2 years, 5 months ago