Which two instruments are adversely affected by an electrical power failure in flight?

Seems to be confusing about the correct answers:
a ASI
b MAGNETIC COMPASS
c DI
d AI
e CDI

On this forum people say it's D and E, but the given answer is B and...