The maximum number of times a person may attempt the exam is unrestricted. The only thing that might need to be renewed is your exam registration. Although the initial registration for the CA Foundation exam is valid for three years, you can take the exam twice a year, giving you a total of six chances to pass the CA Foundation exam in the span of three years.