Answer:
D. Ask a random group two questions: Do you like brand X soda? Do you like brand Y potato chips?
Explanation:
The correct answer is D.
The group has to be chosen randomly. However, in option B, the person could simple answer no if asked if the liked both soda and potato chips and they only liked one.
In D, the person would have to answer for both, and it would be possible to estabilish dependence or independence, for example.