Why did Nazi Germany sign a nonaggression pact with the Soviet Union?(1 point)

Nazi Germany signed a nonaggression pact with the Soviet Union to secure Eastern European borders and avoid a two-front war, enabling them to focus on their western expansion and the defeat of France and Britain.