Which of the following best describes the capabilities of a vector in a programming environment?
Allows only sequential access to its elements
Stores elements based on a key and allows for element retrieval by key
Has a fixed capacity that cannot be exceeded
Dynamically resizes to accommodate new elements