Question 105 — Domain 2-Describe Azure architecture and services | AZ-900 Practice Exam | 399 Questions
For each statement below, indicate whether the Answer is True or False.
| Item | True | False |
|---|---|---|
| az vm list-ip-addresses retrieves a VM’s IP address. | □ | □ |
| You must configure an NSG rule to allow HTTP traffic on port 80. | □ | □ |
| The command az network nsg list retrieves all VMs in a resource group. | □ | □ |
| SSH access is enabled by default on Linux VMs. | □ | □ |
Correct answers
- az vm list-ip-addresses retrieves a VM’s IP address. → True
- You must configure an NSG rule to allow HTTP traffic on port 80. → True
- The command az network nsg list retrieves all VMs in a resource group. → False
- SSH access is enabled by default on Linux VMs. → True
Explanations
- True: The
az vm list-ip-addressescommand retrieves the IP address for a specified VM, necessary for remote access. - True: HTTP traffic is not allowed by default; an NSG rule for port 80 is needed to permit it.
- False:
az network nsg listretrieves network security groups, not VMs. - True: By default, Linux VMs are configured to allow SSH access on port 22.
az vm list-ip-addresses retrieves a VM’s IP address.
You must configure an NSG rule to allow HTTP traffic on port 80.
The command az network nsg list retrieves all VMs in a resource group.
SSH access is enabled by default on Linux VMs.