C. The command username Fred password Cisco123 role network-operator is correct because the default user role of network-operator has read-only access to the switch.