What is the best solution regarding joints?

The joints should be sealed with a flexible sealant, preventing the entry of water, which would lead to deterioration of the adhesive (cement glue) and consequent part lifting.