Australia is part of ANZUS, which means if China attacked Australia, the US would be obligated to intervene
I feel in the past countries would stick to their commitment for the bigger picture. Now, not so sure. I wonder if they would weigh pros and cons and decide to withdraw or not.