Final answer:
Temperature and pH are the environmental factors that affect the interactions between amino acids and determine the shape of a protein.
Step-by-step explanation:
The factors that affect the interactions between amino acids and determine the shape of a protein are temperature and pH. Changes in temperature, pH levels, and exposure to certain chemicals can alter the structure of proteins, leading to denaturation and loss of function. These interactions, which include ionic bonding, hydrogen bonding, and hydrophobic interactions, are crucial for maintaining the three-dimensional shape of proteins.