Is an egg from a duck fertilized upon laying if a male is present and has mated with the female or does fertilization occur after laying?

As with chicken eggs, fertilization occurs prior to laying the egg. It takes a week after mating for a duck's eggs to be fertile.