I think for tricky situations like this, nearly everyone will
face.
What I heard is, you can use program mode to gauge the metering of
light, say if u point ur camera at the darker side and it reads F4,
and if u point ur camera at the brighter side and it reads F8,
then, u can switch to Manual mode, take the in btw. Set to F6
This is just an example lah.
Normally to minimise camera shake, pple tend to push the ISO to
quite high when taking pictures under low light condition. If u
have something to lean on or u got a tripod with u, u can set the
ISO to 50. That should solve the noise problem.
Other than that, it is not easy to over come things like that. It
is not ur camera, situations like that happen all the time. It is a
matter of how the photographer overcome it