QueryTask vs. IdentifyTask

Discussion created by mfancher on Feb 26, 2013
Latest reply on Feb 26, 2013 by schlot
I'm curious if I should use a QueryTask or an IdentifyTask.  I have a simple JS API map with an ArcGISDynamicMapServiceLayer over a basemap.  I want to display several attributes from a single layer in the dynamic service in an InfoWindow.  I can accomplish that with either a QueryTask or IdentifyTask, right?  Is there a best practice?  Can anyone suggest some pros and cons?  Thanks!