You can easily distinguish the core and cavity sections of an injection mold; they form the two halves that create a complete mold, where molten plastic is injected during the process. The core portion is responsible for providing the internal surface, whereas the cavity forms the exterior surface.

The core is the part that, is the moving half of the mold, and also pertains to the internal surfaces of the item made, such as holes, recesses and undercut regions. On the half having the ejecting system, the core position enables smooth ejection of the part after the molding process. Since the part stays on it, whilst opening the mold. It presents at the angles so that the design does not stick.
Furthermore, the core of a mold also features cooling channels which help maintain the temperature level and decrease the cycle time.
The other half of the cave has the hull-shaped cavity of the mold. Its job is to create the outlines and detail features of the product including wide and even outer surfaces. To shape the cavity tool, distinct designs are closely cut out. It is so that the molded plastic parts will fit precisely into the machined areas. Cooling channels control the temperature during the molding process. Moreover, vents can release trapped air or gas as the cavity is the last component of the design. Consequently, It is often textured or polished to meet the design specifications.
Another thing that needs mentioning is the positioning of the cavity, core, inserts, and auxiliary components. It directly impacts their functionality and accuracy in final results. Furthermore, the core and cavity placement depends on radii, contour, thermal contraction of the material, position of the cooling system, etc. Considering these factors for optimal locations of the core and cavity enhances the ease of molding, cooling, and ejection.
Moreover, you need to understand that a mold is an essential tooling element of the injection molding machine. They both work together with other functional and control mechanisms to create the desired parts or products.