You can follow either of the two, American or British spelling in the IELTS exam. The IELTS exam acknowledges both varieties of the English language, including their unique spellings, dictionaries, and words. The only requirement is that whatever variety you use, it must be consistent throughout the IELTS exam, and spellings and diction should also be used correctly.