Answer
Please see the answer below.
Work Step by Step
The cadmium layer provides sacrificial protection to the steel hardware. Cadmium acts as an anode and corrodes itself; thus it protects the steel hardware.
The standard reduction potential value of cadmium is negative whereas iron is positive.