Whether the effect of lifestyle on cognition varies by genetic dementia risk represented by different APOE genotypes is still unclear. Here, APOE is linked to dementia.