Secretary is the official title of A) Heads of executive departments such as department of state.
When you hear reference to "Secretary of Defense" or "Secretary of State", this means that the person is the head, or leader, of the Department of Defense of Department of State, which are major executive departments.