All Fortinet exams

Free Fortinet NSE 4 - FortiOS 8.0 Administrator practice test: 30 questions with answers

30 original questions for Fortinet NSE 4 - FortiOS 8.0 Administrator, drawn from every topic area. Answer each one to see whether you got it right and why. No sign-up.

Free questions
30
Full bank
112 questions
Real exam
50-60 questions, 100 min

Fortinet NSE 4 - FortiOS 8.0 Administrator exam guide: topics, cost and format

All 30 Fortinet NSE 4 - FortiOS 8.0 Administrator questions with answers

The same questions as the test above, grouped by exam topic. Open any question to see the answer and explanation.

Deployment and system configuration (6 questions)

  1. Question 1

    A FortiGate HA pair runs in active-passive mode with the override setting disabled. The primary unit fails and the secondary unit takes over as primary. After the failed unit is repaired and reconnects over the heartbeat link, what happens?

    1. AThe repaired unit immediately reclaims the primary role because it was the original primary unit in the cluster
    2. BThe cluster splits into two primary units until an administrator manually resets the heartbeat interfaces
    3. CThe repaired unit rejoins as the secondary, and the unit that took over keeps the primary role
    4. DBoth units switch to secondary mode until an administrator manually selects a new primary unit
    Show answer and explanation
    Correct answer: C

    With override disabled, the unit that took over as primary keeps that role, and the repaired unit rejoins as secondary. Enabling override would let the higher-priority unit take the primary role back. The reclaim option describes the override behavior that is switched off here, the split option describes a split-brain state that FGCP heartbeats are designed to prevent, and both units going secondary does not happen while a healthy unit remains.

  2. Question 2

    A company must keep traffic logs for one year and produce compliance reports across five FortiGate units from a single location. Which solution best meets this requirement?

    1. AForward the logs to a FortiAnalyzer for central storage and reporting across all units
    2. BCapture packets on every security policy and save the capture files to a USB drive
    3. CKeep logs on the local disk of each unit and export them by hand every week for review
    4. DDisable traffic logging on each policy and rely on interface byte counters for reporting
    Show answer and explanation
    Correct answer: A

    FortiAnalyzer is Fortinet's central logging and reporting platform, so it can retain logs for long periods and report across many devices. Local disks and manual exports do not provide central retention or reporting, packet capture is a troubleshooting tool rather than log retention, and disabling logging removes the evidence the company needs.

  3. Question 3

    An administrator suspects that a FortiGate is running short of CPU and memory during peak hours. Which CLI command gives a summary of current CPU and memory usage?

    1. Ashow system global
    2. Bget system status
    3. Cget system performance status
    4. Dexecute ping with a remote host address and a repeat count
    Show answer and explanation
    Correct answer: C

    get system performance status reports CPU, memory and session statistics. get system status shows the firmware version and serial number, show system global displays the global settings, and execute ping only tests reachability to a host.

  4. Question 4

    An administrator needs to watch live packets exchanged between host 10.20.30.40 and TCP port 443 directly from the CLI, without changing any policy. Which action should be taken?

    1. ARun execute backup config to a file, then read the packets stored in that backup
    2. BRun get router info routing-table all to list active routes and their next hops
    3. CRun diagnose debug reset to clear every debug setting that is currently active
    4. DRun diagnose sniffer packet with a host and port filter for TCP 443
    Show answer and explanation
    Correct answer: D

    diagnose sniffer packet captures live packets on the CLI and accepts host, port and interface filters. A configuration backup does not capture traffic, the routing command lists routes rather than packets, and diagnose debug reset only clears debug settings.

  5. Question 5

    A FortiGate-VM runs in AWS to protect workloads whose private IP addresses change whenever instances are replaced. The administrator wants firewall policies to follow the instances without manual edits. What should be configured?

    1. AAn SDN connector for AWS that keeps dynamic address objects updated from the cloud inventory
    2. BHard-coded static address objects that an administrator updates by hand after each instance replacement
    3. CA static route that sends the whole VPC subnet to the management interface of the FortiGate
    4. DTurning off policy logging so that changing addresses no longer affect the policy evaluation
    Show answer and explanation
    Correct answer: A

    An SDN connector lets FortiGate read cloud resource information and fill dynamic address objects that policies can reference. Hand-edited static addresses break as soon as instances change, a route to the management interface does not identify workloads, and turning off logging has no effect on how addresses are matched.

  6. Question 6

    Remote contractors must reach one internal HR application only. Access should depend on the user identity and device posture, and contractors must not reach any other internal network. Which approach fits this requirement?

    1. AA full-tunnel VPN that gives each contractor a route to the entire internal network range
    2. BZTNA rules that allow only the HR application for verified users on compliant devices
    3. CA shared local account that has permission to use every firewall policy on the FortiGate
    4. DPublic access to the HR server, protected only by a strong password on its login page
    Show answer and explanation
    Correct answer: B

    ZTNA grants access per application based on identity and device posture, so contractors reach only the HR application. A full-tunnel VPN exposes the wider internal network, a shared account gives broad rights and weakens accountability, and a public login page exposes the server to the internet with no device check.

Content inspection (6 questions)

  1. Question 7

    After SSL deep inspection is enabled, users see certificate warnings for every HTTPS site they visit. What is the most likely cause, and what is the fix?

    1. AClients do not trust the FortiGate CA used for deep inspection; install that CA certificate on each client
    2. BWeb filtering is blocking the sites, so the browser shows a warning; disable web filtering for the policy
    3. CPolicies run in flow-based mode, which cannot verify server certificates; switch every policy to proxy mode
    4. DThe sites use TLS 1.3, which deep inspection cannot handle; disable TLS 1.3 in all browsers
    Show answer and explanation
    Correct answer: A

    Deep inspection re-signs server certificates with a FortiGate CA, so clients that do not trust that CA show warnings until the CA certificate is installed as trusted. The warning comes from an untrusted issuer, not from web filtering, the inspection mode, or the TLS version.

  2. Question 8

    Which two statements about SSL certificate inspection are correct? (Choose two.)

    1. AIt inspects the server certificate without decrypting the payload that follows
    2. BIt does not require the FortiGate CA certificate to be installed on client devices
    3. CIt lets antivirus scan the decrypted content of HTTPS downloads
    4. DIt replaces the server certificate with a certificate that the FortiGate signs itself
    Show answer and explanation
    Correct answer: A, B

    Certificate inspection checks the server certificate only, so the payload stays encrypted and clients do not need a FortiGate CA. Scanning decrypted content and re-signing the server certificate are deep inspection features, not certificate inspection features.

  3. Question 9

    A company wants SSL deep inspection for most HTTPS traffic, but traffic to its bank's website must not be decrypted because of privacy rules. What should the administrator configure?

    1. ADisable SSL inspection on the whole firewall and turn it on only for the guest Wi-Fi network
    2. BAdd the bank's website to the SSL inspection exemption list so its traffic is not decrypted
    3. CTurn off antivirus for all HTTPS traffic so that bank sessions are not scanned for malware
    4. DCreate a deny policy above the internet policy so that the bank's website can never be reached
    Show answer and explanation
    Correct answer: B

    An SSL inspection exemption lets chosen destinations, such as a bank, skip decryption while the rest of the HTTPS traffic is still inspected. Disabling inspection everywhere removes protection for all users, turning off antivirus does not stop decryption, and a deny policy would block the bank rather than exempt it.

  4. Question 10

    Staff must not reach gambling websites, but all other websites must stay available. Which FortiGate feature is the best fit?

    1. AA firewall address object that lists every gambling site by its current IP address
    2. BA DHCP reservation that assigns a fixed IP address to each staff workstation
    3. CA static route that sends staff web traffic through a separate interface
    4. DA web filter profile that blocks the gambling category using FortiGuard URL ratings
    Show answer and explanation
    Correct answer: D

    A web filter profile uses FortiGuard URL categories, so blocking the gambling category covers many sites without a manual list. A DHCP reservation only fixes addresses, a static route does not filter content, and an address list would miss sites whose IP addresses change.

  5. Question 11

    The company wants to block peer-to-peer file sharing applications, even when they run on unusual ports. Which feature should be used?

    1. AA deny policy that matches only the common well-known port numbers used for file sharing
    2. BA web filter profile that blocks URLs for file sharing websites on the internet
    3. CApplication control with a sensor that blocks the peer-to-peer category
    4. DA DNS filter profile that blocks the domain names of popular file sharing services
    Show answer and explanation
    Correct answer: C

    Application control identifies applications from their traffic patterns and signatures, so it works on non-standard ports. A port-based deny only catches expected ports, while web and DNS filters act on website names rather than on the application itself.

  6. Question 12

    A user downloads an executable file that no antivirus signature matches yet. The security team wants the file analyzed by its behavior before the user can run it. Which feature should be enabled?

    1. AAn IPS sensor with the newest intrusion signatures applied to the same policy
    2. BA web filter profile that blocks the website from which the file was downloaded
    3. CSandbox inspection that sends the file to FortiSandbox for behavior analysis
    4. DA static route that sends the download through a separate interface for scanning
    Show answer and explanation
    Correct answer: C

    Sandbox inspection submits unknown files to a sandbox such as FortiSandbox, which runs them and observes their behavior, so zero-day malware can be caught without a matching signature. IPS signatures target network attacks, web filtering blocks sites rather than analyzing files, and a static route does not inspect content.

Firewall policies and authentication (6 questions)

  1. Question 13

    An administrator must scan large file downloads with antivirus before the complete file is delivered to the user. Which inspection mode should the policy use?

    1. AFlow-based inspection, which checks each packet as it passes through the firewall
    2. BProxy-based inspection, which buffers the whole file so it can be scanned before delivery
    3. CNo inspection profile, because the endpoint antivirus product will scan the file instead
    4. DFlow-based inspection with a larger interface MTU so that each file arrives in one packet
    Show answer and explanation
    Correct answer: B

    Proxy-based inspection buffers the complete file, so the antivirus engine can scan all of it before delivery. Flow-based inspection processes traffic as it streams and does not hold the whole file before delivery, a larger MTU does not change how content is scanned, and removing the profile drops the scan the requirement asks for.

  2. Question 14

    A policy list contains policy 1, which allows all traffic from the LAN interface to any destination, followed by policy 2, which denies LAN traffic to one server. A LAN user opens a connection to that server. What happens?

    1. AThe connection is allowed, because policy 1 matches first and policies are checked from the top
    2. BThe connection is denied, because the more specific policy 2 always overrides a broader policy above it
    3. CThe FortiGate evaluates both policies together and blocks the session if either one denies it
    4. DThe session is held until an administrator confirms which of the two policies should apply
    Show answer and explanation
    Correct answer: A

    FortiGate checks policies from the top of the list down and applies the first match, so policy 1 allows the session before policy 2 is reached. This is why a specific deny placed below a broad allow has no effect. Moving the deny above the allow would change the result.

  3. Question 15

    Branch hosts use private addresses and reach the internet through a FortiGate. The internet must see only the FortiGate public WAN address for these hosts. Which NAT setting should the administrator use on the outbound policy?

    1. ADestination NAT through a virtual IP that maps the public address to a branch host
    2. BSource NAT with an IP pool that gives each branch host its own public address
    3. CSource NAT that uses the outgoing interface address for the outbound policy
    4. DA static route that sends branch traffic to the internet through a loopback interface
    Show answer and explanation
    Correct answer: C

    Source NAT using the outgoing interface address rewrites each private source address to the FortiGate WAN address. Destination NAT changes the destination of traffic rather than the source, an IP pool would give hosts their own public addresses, and a static route through a loopback does not translate addresses at all.

  4. Question 16

    A web server with private address 10.10.1.50 must be reachable from the internet at public address 203.0.113.10 on TCP port 443. Which object should the administrator create so that the inbound policy can use it as the destination?

    1. AAn IP pool that maps internal hosts to a range of public addresses
    2. BAn address group that contains the web server and the public address
    3. CA static route that sends traffic for the public address to the web server subnet
    4. DA virtual IP that maps the public address and port 443 to the internal server
    Show answer and explanation
    Correct answer: D

    A virtual IP (VIP) defines destination NAT from an external address and port to an internal server, and the inbound policy references it. An IP pool is used for source NAT, an address group only groups existing objects, and a static route forwards packets without translating the destination address.

  5. Question 17

    VPN users must enter a one-time code from a third-party two-factor service before the FortiGate grants access. The service exposes an authentication server that the FortiGate can query over a standard AAA protocol. Which protocol fits best?

    1. ARADIUS, which carries the authentication request and challenge to an external server
    2. BLDAP, which queries a directory for user records and group membership
    3. CNTP, which keeps the FortiGate clock synchronized with the authentication server
    4. DSNMP, which reports interface counters and authentication failures to a monitoring system
    Show answer and explanation
    Correct answer: A

    RADIUS is a standard AAA protocol that the FortiGate uses to pass credentials and challenge responses to an external server, which is how many one-time code services are integrated. LDAP is used to look up directory records and groups rather than to run one-time code challenges, while NTP and SNMP do not authenticate users.

  6. Question 18

    Which two statements about Fortinet Single Sign-On (FSSO) are correct? (Choose two.)

    1. AIt maps user logon information from the domain to IP addresses that policies can match
    2. BIt forces every user to sign in to a captive portal before each new browser session
    3. CIt can collect logon events through a collector agent or through agentless polling
    4. DIt removes the need to define firewall policies, because user names replace policy rules
    Show answer and explanation
    Correct answer: A, C

    FSSO learns which user is logged on at each IP address from the domain, through a collector agent or agentless polling, and policies can then match user groups. Captive portal sign-in is a different mechanism, and FSSO does not replace firewall policies, which still decide what traffic is allowed.

Routing (6 questions)

  1. Question 19

    A FortiGate routing table has a static route for 10.0.0.0/8 through port1 and another static route for 10.10.0.0/16 through port2. A packet is destined for 10.10.5.20. Which route is used?

    1. ANeither route, because overlapping static routes are rejected by the routing table
    2. BThe 10.0.0.0/8 route through port1, because it was configured before the other route
    3. CBoth routes at once, with the packet split between port1 and port2 by a hash
    4. DThe 10.10.0.0/16 route through port2, because it is the most specific match
    Show answer and explanation
    Correct answer: D

    The routing table picks the matching route with the longest prefix, so the /16 route through port2 wins for 10.10.5.20. Configuration order does not decide the route, traffic is not split between routes with different prefixes, and overlapping routes are allowed.

  2. Question 20

    An administrator wants a backup static route through port2 that is used only when the primary static route through port1 is unavailable. What should be set on the backup route?

    1. AA lower administrative distance than the primary route, so the backup is always preferred
    2. BA higher administrative distance than the primary route, so it is used only on failure
    3. CThe same distance and priority as the primary route, so traffic is shared between both routes
    4. DNo change, because the routing table always keeps a backup route for every destination
    Show answer and explanation
    Correct answer: B

    A floating static route has a higher administrative distance than the primary route, so it is used only after the primary route is removed from the table. A lower distance would make it preferred, equal settings share traffic between the two routes, and the routing table does not create backup routes on its own.

  3. Question 21

    An SD-WAN rule must send VoIP traffic over the member link with the best measured latency and jitter. Which mechanism supplies these measurements to the rule?

    1. AStatic routes that carry a fixed metric for each WAN interface in the routing table
    2. BHealth checks that probe each SD-WAN member for latency, jitter, and packet loss
    3. CDNS forwarding rules that send name lookups to the resolver with the fastest response time
    4. DNAT pools that assign a different public address to each WAN link for each session
    Show answer and explanation
    Correct answer: B

    SD-WAN health checks send probes over each member and report measured latency, jitter and loss, which rules compare against their SLA targets. Fixed static route metrics do not measure link quality, NAT pools do not measure performance, and DNS forwarding does not choose WAN links.

  4. Question 22

    An SD-WAN rule for bulk file transfers should steer new sessions toward the member link with the most spare capacity, so that two links share the load. Which SD-WAN approach fits?

    1. AA bandwidth-utilization-based SD-WAN strategy that favors the member with the most spare capacity
    2. BA static route with a lower distance on the primary link, so that traffic always prefers it
    3. CA fixed member order that always uses the first member and the second only when the first fails
    4. DA policy route that matches only the source subnet of the transfer servers
    Show answer and explanation
    Correct answer: A

    A bandwidth-utilization-based SD-WAN strategy measures how loaded each member is and steers new sessions toward the one with the most spare capacity. A fixed member order does not react to load, a lower-distance static route is not load-aware, and a policy route matched only by source does not measure link capacity.

  5. Question 23

    A branch wants HTTPS traffic from the guest subnet to leave through the secondary ISP link, while all other traffic keeps using the primary link. Which routing feature achieves this?

    1. AA policy route that matches the guest subnet and HTTPS, then sends it out the second link
    2. BA second default static route with the same distance as the primary default route
    3. CA virtual IP that maps the guest subnet to the secondary ISP address
    4. DAn IPsec phase 1 proposal that selects the secondary link for guest traffic
    Show answer and explanation
    Correct answer: A

    A policy route matches traffic by source, destination and service, and can send that traffic out a chosen interface, which a destination-based routing table cannot do. A second default route with equal distance shares traffic rather than targeting guests, a virtual IP translates addresses, and IPsec proposals do not select an internet link.

  6. Question 24

    An administrator adds a static route for 172.16.0.0/16 with gateway 192.0.2.1 through port2. The route does not appear in the routing table, and port2 is down. What is the most likely cause?

    1. AThe route metric is too low, so the FortiGate hides it from the routing table
    2. BStatic routes cannot point to a gateway on a physical interface, only to loopback addresses
    3. CThe gateway is unreachable because its outgoing interface is down, so the route is inactive
    4. DThe destination is a private range, which the FortiGate does not add to its routing table
    Show answer and explanation
    Correct answer: C

    A static route with a gateway is active only while its outgoing interface is up and the gateway is reachable, so it is missing while port2 is down. A low metric does not hide routes, static routes can use gateways on physical interfaces, and private destination ranges are routed like any other network.

VPNs (6 questions)

  1. Question 25

    In an IPsec VPN, what is the purpose of phase 1 negotiation?

    1. AIt authenticates the peers and sets up a secure IKE channel for later negotiation
    2. BIt creates the IPsec security associations that encrypt the user data traffic
    3. CIt assigns VPN client addresses from a DHCP pool on the remote side
    4. DIt installs the firewall policies that permit the tunnel traffic through the FortiGate
    Show answer and explanation
    Correct answer: A

    Phase 1 (the IKE SA) authenticates the two peers and creates a protected channel that is used to negotiate phase 2. Phase 2 creates the IPsec SAs that encrypt data, DHCP address assignment is a separate feature, and firewall policies are configured separately from tunnel negotiation.

  2. Question 26

    Two FortiGate IPsec peers establish phase 1 successfully, but no traffic passes through the tunnel. The debug output reports a phase 2 proposal mismatch. What is the most likely cause?

    1. AThe pre-shared key differs between the two peers, so phase 1 authentication fails
    2. BThe DNS server at the remote site is not reachable from the local network
    3. CThe phase 2 encryption or authentication proposals, or the traffic selectors, do not match
    4. DThe local firewall policy denies the traffic before the tunnel negotiation starts
    Show answer and explanation
    Correct answer: C

    Phase 2 negotiates the IPsec proposals and traffic selectors, so a mismatch there leaves phase 1 up while data does not flow. A pre-shared key mismatch would stop phase 1 instead, DNS reachability is unrelated to tunnel negotiation, and a policy denial does not change the phase 2 proposals the peers exchange.

  3. Question 27

    Which two statements about TLS 1.3 compared with earlier TLS versions are correct? (Choose two.)

    1. ATLS 1.3 requires forward secrecy through ephemeral key exchange in every cipher suite
    2. BTLS 1.3 removes static RSA key transport as a key exchange option
    3. CTLS 1.3 keeps RSA key transport as the default key exchange for compatibility with older clients
    4. DTLS 1.3 keeps SHA-1 signature algorithms enabled so that legacy certificates still work
    Show answer and explanation
    Correct answer: A, B

    TLS 1.3 uses ephemeral key exchange in every cipher suite, which gives forward secrecy, and it removes static RSA key transport. The last two options describe features that TLS 1.3 removed rather than features it keeps.

  4. Question 28

    A company wants to run OSPF between two sites over an IPsec tunnel, so that routes learned from the remote site are installed automatically. Which IPsec design fits?

    1. AA policy-based tunnel that uses only the selector lists in the phase 2 settings to pick traffic
    2. BA manual-key tunnel that replaces IKE negotiation with a fixed shared key on both peers
    3. CAn SSL VPN portal that gives each remote user a fixed address in the company subnet
    4. DA route-based tunnel that uses a virtual tunnel interface, so routing protocols can run over it
    Show answer and explanation
    Correct answer: D

    A route-based tunnel uses a virtual tunnel interface, so routing protocols such as OSPF can advertise routes across it. Policy-based tunnels match traffic with fixed selectors and do not give routing protocols an interface, manual-key tunnels skip IKE negotiation, and SSL VPN serves individual remote users rather than site-to-site routing.

  5. Question 29

    A branch office sits behind an ISP NAT device, and its IPsec tunnel to headquarters never comes up. Captures show that the NAT device does not forward the raw IPsec packets. Which feature helps the tunnel traverse the NAT?

    1. ADead peer detection, which sends keepalive messages to detect when a peer stops responding
    2. BQuantum-safe key exchange, which protects the IKE handshake with post-quantum algorithms
    3. CNAT traversal, which encapsulates IPsec packets in UDP so the NAT device can forward them
    4. DSplit tunneling, which sends only internet-bound traffic from the branch outside the tunnel
    Show answer and explanation
    Correct answer: C

    NAT traversal wraps the IPsec packets in UDP when a NAT device is detected, so the device can translate and forward them. Dead peer detection monitors whether a peer is still alive, quantum-safe key exchange addresses future cryptography, and split tunneling decides which traffic enters the tunnel.

  6. Question 30

    A government agency worries that encrypted VPN traffic captured today could be decrypted later by a future quantum computer. Which IPsec capability addresses this concern?

    1. AA longer pre-shared key, which only lengthens the password used during phase 1
    2. BQuantum-safe IPsec, which adds post-quantum key exchange to the IKE negotiation
    3. CA larger MTU on the tunnel interface, which reduces the number of packets captured
    4. DA route-based tunnel, which hides the encrypted traffic from packet captures
    Show answer and explanation
    Correct answer: B

    Quantum-safe IPsec uses post-quantum key exchange in IKE, which protects session keys against future decryption of recorded traffic. A longer pre-shared key does not address the quantum threat, MTU changes packet sizes rather than secrecy, and route-based tunnels do not hide traffic from capture.