D. midday when there are no clouds
Taking a photograph at midday when there are no clouds will provide strong, direct sunlight, which creates defined highlights and sharp, crisp shadows. The other options involve conditions that diffuse or scatter light (like pollution, clouds, or approaching rain), which would likely result in softer shadows and less contrast.