
Answer-first summary for fast verification
Answer: Apply a network tag of 'dev-ssh' to the instance you're trying to connect into and test again.
The correct answer is D because the firewall rule needs to 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 apply to specific instances. These tags can be edited without stopping an instance. Options A, B, and C are incorrect because firewall rules associated through network tags take effect immediately without needing a refresh or reboot, and source tags cannot replace target tags for this purpose.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
You've created 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 steps should you take to resolve this issue?
A
Reboot the instances for the firewall rule to take effect.
B
Use source tags in place of the target tags.
C
Run the gcloud firewall-rules refresh command, as they need to be reloaded.
D
Apply a network tag of 'dev-ssh' to the instance you're trying to connect into and test again.