What is SSH access used for in cloud virtual machines?
SSH (Secure Shell) is used to securely connect to Linux-based virtual machines in the cloud to manage and configure them remotely.
Click to reveal answer
beginner
What does RDP stand for and what is it used for?
RDP stands for Remote Desktop Protocol. It is used to connect securely to Windows-based virtual machines in the cloud with a graphical interface.
Click to reveal answer
intermediate
How do you secure SSH access to an Azure VM?
You secure SSH access by using strong SSH keys instead of passwords, restricting IP addresses in Network Security Groups, and disabling root login.
Click to reveal answer
intermediate
What Azure service helps manage RDP and SSH access centrally?
Azure Bastion provides secure and seamless RDP and SSH access to virtual machines directly through the Azure portal without exposing public IPs.
Click to reveal answer
beginner
Why should you avoid exposing RDP or SSH ports directly to the internet?
Exposing these ports directly increases the risk of unauthorized access and attacks. Using secure methods like Azure Bastion or VPNs reduces this risk.
Click to reveal answer
Which port is commonly used for SSH access?
A80
B22
C3389
D443
✗ Incorrect
SSH typically uses port 22 for secure remote connections.
What protocol does RDP use to connect to Windows VMs?
ARDP
BSSH
CFTP
DHTTP
✗ Incorrect
RDP (Remote Desktop Protocol) is designed for Windows remote desktop connections.
Which Azure feature allows secure SSH and RDP access without exposing VM public IPs?
AAzure Firewall
BAzure Monitor
CAzure Load Balancer
DAzure Bastion
✗ Incorrect
Azure Bastion provides secure access to VMs without public IP exposure.
What is a best practice for securing SSH access?
AUse password authentication only
BOpen port 22 to all IPs
CUse SSH keys and restrict IP addresses
DDisable firewall
✗ Incorrect
Using SSH keys and limiting IP access improves security.
Which port is used by default for RDP connections?
A3389
B22
C443
D21
✗ Incorrect
RDP uses port 3389 by default for remote desktop connections.
Explain how SSH and RDP access differ and when you would use each in Azure.
Think about the operating system and type of connection.
You got /4 concepts.
Describe best practices to secure remote access to Azure virtual machines.
Focus on methods to reduce attack surface.
You got /4 concepts.
Practice
(1/5)
1. Which port does SSH use to connect securely to a Linux virtual machine in Azure?
easy
A. Port 3389
B. Port 22
C. Port 80
D. Port 443
Solution
Step 1: Identify SSH default port
SSH (Secure Shell) uses port 22 by default to connect securely to Linux machines.
Step 2: Compare with other ports
Port 3389 is used by RDP, port 80 is for HTTP, and port 443 is for HTTPS, so they are incorrect for SSH.
Final Answer:
Port 22 -> Option B
Quick Check:
SSH = Port 22 [OK]
Hint: SSH always uses port 22 for Linux access [OK]
Common Mistakes:
Confusing SSH port with RDP port
Using HTTP or HTTPS ports for SSH
Assuming SSH uses a random port
2. Which of the following is the correct syntax to open port 3389 for RDP access in an Azure Network Security Group (NSG)?
easy
A. Allow inbound TCP on port 3389
B. Allow inbound TCP on port 22
C. Allow outbound UDP on port 3389
D. Allow inbound UDP on port 22
Solution
Step 1: Identify RDP port and protocol
RDP uses TCP protocol on port 3389 for Windows remote desktop connections.
Step 2: Match correct NSG rule syntax
Allowing inbound TCP on port 3389 opens RDP access. Other options use wrong ports or protocols.
Final Answer:
Allow inbound TCP on port 3389 -> Option A
Quick Check:
RDP = TCP 3389 inbound [OK]
Hint: RDP always needs inbound TCP on port 3389 [OK]
Common Mistakes:
Using UDP instead of TCP
Opening wrong port 22 for RDP
Setting outbound instead of inbound rules
3. Given this Azure CLI command to open SSH access, what will it do?
5. You want to secure SSH access to your Linux VM in Azure so only your office IP (203.0.113.5) can connect. Which NSG rule configuration is best?
hard
A. Allow inbound TCP on port 22 from source 0.0.0.0/0
B. Allow inbound TCP on port 3389 from source 203.0.113.5/32
C. Allow inbound UDP on port 22 from source 203.0.113.5/32
D. Allow inbound TCP on port 22 from source 203.0.113.5/32
Solution
Step 1: Identify SSH port and protocol
SSH uses TCP on port 22, so the rule must allow TCP on port 22.
Step 2: Restrict source IP to office IP
To secure access, restrict source to the office IP with /32 mask for a single IP.
Step 3: Exclude incorrect options
Allow inbound TCP on port 22 from source 0.0.0.0/0 allows all IPs (not secure), Allow inbound UDP on port 22 from source 203.0.113.5/32 uses UDP (wrong protocol), Allow inbound TCP on port 3389 from source 203.0.113.5/32 uses RDP port (wrong service).
Final Answer:
Allow inbound TCP on port 22 from source 203.0.113.5/32 -> Option D
Quick Check:
Restrict SSH TCP 22 to office IP [OK]
Hint: Restrict SSH port 22 TCP to your IP only [OK]
Common Mistakes:
Allowing all IPs instead of specific IP
Using UDP instead of TCP
Opening wrong port for SSH
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.