The answer depends on exactly what you mean by "Primary DNS Server" - this term is a bit vague, but I'll unpack the common interpretations below, as I suspect this may be where confusion is coming in.
There are (sometimes a combination) of 2 types of nameservers - Recursive and Authorative servers.
Authorative Servers hold the "source of truth" for a domain name. When you are modifying A/CNAME/MX or other records for a domain, you are doing this on/for an authorative nameserver. In the simple case this is stored on disk, but see below
A Recursive server acts for computers on a network to resolve any/all domains. The nameserver in your router would be a recursive nameserver. These servers query other nameservers (either other recursive nameservers or the authorative servers) so the general answer is these get their information from the network.
More about Authoritative Servers
There are multiple types of authorative servers. The 2 common types are "master" and "slave" servers.
Master servers typically read their data from user provided input - often a zone file stored on a disk (common use case for BIND), but they can also get them from a database (Pro DNS, Pure DNS typically are configured this way).
To end users/recursive servers, Slave servers behave exactly like master servers - but the slave servers get their information from the master servers across a network. This is done using zone transfers, so they have all the information required and can continue to answer all requests for the zone in case the master server goes down.
It is quite common to have multiple master servers and no slave servers, provided they all have exactly the same answers.
1.1.1.1public resolver? Do any of the previous questions in the test clarify what kind of file do they mean? (I have a guess that they might be referring to the root hints file, but still, "a file" doesn't really say much when it comes to DNS resolvers.) – u1686_grawity Feb 15 '21 at 10:20