Allow replication to create indexes on secondary?

In lesson titled ‘Fixing Missing Indexes, Part 4’ the instructor describes how to apply a foreground index to each of the secondaries first, then step down the primary to make it a secondary, then apply the index to the stepped down newly appointed secondary.

Question: Is it possible to add the index to one secondary, force this secondary to become the primary and allow replication to copy the index definition to the remaining secondaries (one of which used to be the primary)?

@ Barron_43628

Good question, but rather than answer this I would strongly recommend that you use the techniques shown in the Lecture to test this for yourself. After all, the purpose of the course is to give you tools to answer questions like this in a production environment. Good luck.