
Explanation:
The correct answer is B because the firewall rule must be associated with the instance for the rule to apply. This association is achieved by applying the network tag 'dev-ssh' to the instance. Network tags are text attributes that can be added to Compute Engine VM instances, allowing firewall rules and routes to be applied to specific instances. These tags can be added at any time without stopping the instance.
Ultimate access to all questions.
No comments yet.
You’ve set up a new firewall rule to allow incoming traffic on port 22, using a target tag of 'dev-ssh'. Despite this, you're unable to connect to one of your instances. What actions should you take to fix this issue?
A
Reboot the instances for the firewall rule to take effect.
B
Apply a network tag of 'dev-ssh' to the instance you're trying to connect into and test again.
C
Run the gcloud firewall-rules refresh command, as they need to be reloaded.
D
Use source tags in place of the target tags.