A VM is deployed but its application configuration script failed mid-way. The admin wants to rerun post-deployment configuration tasks without redeploying or RDPing in. Which options can execute commands remotely? (Choose TWO)
Choose 2 answers.
A.Custom Script Extension
Custom Script Extension = remote script execution. Correct.
B.Run Command
Run Command = on-demand remote execution via the agent. Correct.
C.Azure Bastion
Bastion provides browser-based RDP/SSH — interactive, not script execution.
D.Serial console
Serial console is a low-level debug channel, not a deployment tool.
Why this answer
Custom Script Extension downloads and executes scripts on VMs post-deployment (idempotent reruns supported). Run Command executes scripts/PowerShell on-demand through the VM agent. Bastion is RDP/SSH connectivity; serial console is for boot debugging.
Correct answers: A, B · Last reviewed 2026-02-14
Official AWS references
Practice this interactively
Answer without seeing the solution first in the Compute Deployment practice session.
Practice Compute Deployment