Associate Cloud Engineer · Free Practice Question Medium

Question 9

A developer is trying to upload files from their local device to a Compute Engine VM using the gcloud compute scp command. The copy command is failing. What would you check to try to correct the problem?

  • A Add the identity of the developer to the administrator group for the VM.
  • B Ensure firewall rules allow traffic to port 22 to allow SSH connections.
  • C Grant the identity the roles/compute.admin role
  • D Grant the identity compute.admin permission
Reveal correct answer

Correct answer: B

Explanation

To copy files to a VM, a firewall rule must be in place to allow traffic on port 22, the default SSH port,

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need