TOKYO—Dewita Tambun wants to become a nurse in Japan, a country with an aging population and a shortage of hospital staff. But the 29-year-old Indonesian first has to battle the country's tough immigration policy.

The biggest obstacle facing Ms. Tambun is a seven-hour, 240-question test in Japanese that only 96 of the 741 nurses brought here...