Agilent Technologies Interview Question

What is better Xpath or Ids for activities with web elements