Step 1: Resolving power relation.
\[
\text{Resolving power} \propto \frac{1}{\lambda/n}
\]
where \(n\) is refractive index of medium.
Step 2: Effect of refractive index.
Effective wavelength in medium:
\[
\lambda' = \frac{\lambda}{n}
\]
Step 3: Relation to resolving power.
Higher refractive index reduces wavelength, improving resolution.
Step 4: Eliminate incorrect options.
Density and viscosity do not directly affect optical resolving power.
Step 5: Key conclusion.
Thus, higher refractive index increases resolving power.
Step 6: Final conclusion.
Hence correct answer is medium with high refractive index.
Final Answer:
\[
\boxed{\text{A medium with high refractive index}}
\]