the most senior legal officer in some countries or states, for example the UK or Canada, who advises the government or head of state on legal matters
the head of the US Department of Justice and a member of the President’s Cabinet (= a group of senior politicians who advise the President)