The flags are set based on the result of each instruction. Some flags (like the A flag) may not have any meaning for some instructions. It is meaningless to talk about a 4-bit carry (which is what the A flag indicates) when you're performing an instruction that doesn't involve 4-bit arithmetic.
Concern yourself with the flags that have meaning for the instruction you're executing and ignore the rest.