
Explanation:
The correct answer is A because the gcloud compute firewall-rules create command is designed to establish firewall rules that manage incoming and outgoing traffic. Specifically, the --allow tcp:22 parameter permits SSH traffic on port 22, which is essential for diagnosing errors on the Ubuntu server.
Ultimate access to all questions.
Your developers are attempting to diagnose errors on an Ubuntu server via SSH, but the connection times out. Which command would most effectively resolve this issue?
A
gcloud compute firewall-rules create open-ssh --network $NETWORK --allow tcp:22
B
gcloud compute firewall-rules create open-ssh
C
gcloud compute firewall-rules create open-ssh --network $NETWORK --deny tcp:22
D
gcloud compute firewall-rules create open-ssh --network $NETWORK --allow tcp:3389
No comments yet.