A physician treats a patient and prescribes medicine, but healing is brought about by Allah. Using medicine is not meaningless, nor is a physician an independent creator of cure.
Likewise, the servant's obedience, effort, choice and use of means are real, yet the existence and effects of the act depend on Allah's creation.
Adopting the means is the servant's responsibility; bringing about their results remains subject to Allah's power.