Neither. As clearly stated in the OpenGL Wiki page, calling glBindBuffer with GL_ARRAY_BUFFER does nothing to the VAO. It's the call to glVertexAttrib*Pointer that makes the association between a buffer object and the VAO.