ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 6 - NSE7_PBC-7.2 discussion

Report
Export

You are automating configuration changes on one of the FortiGate VMS using Linux Red Hat Ansible.

How does Linux Red Hat Ansible connect to FortiGate to make the configuration change?

A.
It uses a FortiGate internal or external IP address with TCP port 21
Answers
A.
It uses a FortiGate internal or external IP address with TCP port 21
B.
It uses SSH as a connection method to FortiOS.
Answers
B.
It uses SSH as a connection method to FortiOS.
C.
It uses an API.
Answers
C.
It uses an API.
D.
It uses YAML
Answers
D.
It uses YAML
Suggested answer: C

Explanation:

Ansible connects to FortiGate using an API, which is a method of communication between different software components.Ansible uses the fortios_* modules to interact with the FortiOS API, which is a RESTful API that allows configuration and monitoring of FortiGate devices12.Ansible can use either HTTP or HTTPS as the transport protocol, and can authenticate with either a username and password or an API token3.

The other options are incorrect because:

Ansible does not use TCP port 21 to connect to FortiGate.Port 21 is typically used for FTP, which is not supported by FortiOS4.

Ansible does not use SSH as a connection method to FortiOS. SSH is a secure shell protocol that allows remote command execution and file transfer, but it is not the preferred way of automating configuration changes on FortiGate devices.

Ansible does not use YAML to connect to FortiGate. YAML is a data serialization language that Ansible uses to write playbooks and inventory files, but it is not a connection method.Reference:

Fortinet.Fortios --- Ansible Documentation

FortiOS REST API Reference

FortiOS Module Guide --- Ansible Documentation

FortiOS 7.0 CLI Reference

[Connection methods and details --- Ansible Documentation]

[YAML Syntax --- Ansible Documentation]

asked 18/09/2024
Aline Oliveira
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first