Pergunta de entrevista da empresa Agilent Technologies

What is better Xpath or Ids for activities with web elements