I think ideally you have a yard, but of course also take the dog for walks. Having to go out immediately when you get up can be a nuisance and every Basenji I have had will "go pee" in the backyard, although getting them to defecate can be a different matter. And rainy days can be a problem. Yes, you can keep a Basenji in an apartment, but bear in mind if you have an issue with separation anxiety your neighbours may not be happy when you go out!