How can a court resolve a motion to dismiss?

[1] Dismiss the action or claim;
[2] Deny the motion; or
[3] Order the amendment of the pleading.
Note that the Rule requires, as a rule, that a hearing be conducted before a court dismisses the action, denies the motion or orders amendment.
The court shall not defer the resolution of the motion for the reason that the ground relied upon is not indubitable. In every case, the resolution shall state clearly and distinctly the reasons therefor.