The A1C test is used to diagnose diabetes and prediabetes, and to monitor blood sugars in these conditions. Diet is an important strategy for managing blood sugars, and emphasizing blood sugar-friendly foods within an overall healthy food pattern, can also help lower your A1c.