The attorney general advises the executive branch of state government and defends actions and proceedings on behalf of the state. The attorney general acts independently of the governor of New York.
The principal duties of the Attorney General are to: Represent the United States in legal matters. Supervise and direct the administration and operation of the offices, boards, divisions, and bureaus that comprise the Department.
the PresidentHe can be removed by the President at any time. He can quit by submitting his resignation only to the President. Since he is appointed by the President on the advice of the Council of Ministers, conventionally he is removed when the council is dissolved or replaced.
In layman terms, Chief Justice is a Judge and Attorney General is a Lawyer, both have distinct roles to play. The Attorney General of India is the highest law officer of the country and he/she is the chief legal advisor to the GoI. He is responsible to assist the government in all its legal matters.