Both
Connections and Shared Configs are used for storing pieces of information shared across multiple Tasks. Connections are used to store the sensitive pieces needed by Tasks to connect to external systems. Shared Configs are used to store the non-sensitive pieces that drive Task output.