snap fit design
What type snap joint? Cantilever? Annular?? Torsion???
Are the two components of similar stiffness?
What operating temperatures will the components be subjected to?
Frequent separation or a one time assembly?
There are lots of variables to consider. I'd consider starting with a design primer on snap joint design.