A cap is a closure fitting rather than a through-flow connection. Its purpose is to terminate a pipe end in the arrangement defined by the piping design.
A socket-weld cap forms a welded closure. If the application needs repeated access, the design should identify the appropriate access arrangement rather than assume that a welded cap is removable.
Technical background references
General background for the explanation above. The project specification governs the actual selection.