Choose Active D-Lighting for such high-contrast settings as a bright exterior shot through a window from inside a darkened room or a beach in direct sunlight. Active D-Lighting preserves details in highlights and shadows for natural contrast.
When using Active D-Lighting, choose a mode other than M or use matrix metering.