A Public IP address in Azure is an address that allows resources to communicate with the internet or other external networks. It is assigned to Azure resources like virtual machines or load balancers to enable inbound and outbound internet connectivity.
Click to reveal answer
beginner
What are the two types of Public IP addresses in Azure?
Azure offers two types of Public IP addresses: Dynamic and Static. Dynamic IP addresses can change when the resource is stopped and started again, while Static IP addresses remain fixed for the lifetime of the resource.
Click to reveal answer
intermediate
Why would you choose a Static Public IP address over a Dynamic one?
You choose a Static Public IP address when you need a fixed IP that does not change, such as for DNS records, firewall rules, or when clients need to reliably connect to your resource.
Click to reveal answer
beginner
How does Azure assign a Dynamic Public IP address?
Azure assigns a Dynamic Public IP address from a pool of available addresses when the resource is started. This IP can change if the resource is stopped and started again.
Click to reveal answer
intermediate
Can a Public IP address be associated with multiple Azure resources at the same time?
No, a Public IP address in Azure can only be associated with one resource at a time, such as a virtual machine, load balancer, or application gateway.
Click to reveal answer
Which type of Public IP address in Azure remains the same even after restarting the resource?
AStatic
BDynamic
CTemporary
DEphemeral
✗ Incorrect
Static Public IP addresses remain fixed and do not change when the resource restarts.
What is the main purpose of assigning a Public IP address to an Azure virtual machine?
ATo secure the VM from all traffic
BTo increase the VM's CPU power
CTo allow the VM to communicate with the internet
DTo store data persistently
✗ Incorrect
A Public IP address allows the VM to send and receive traffic from the internet.
If you stop and start a VM with a Dynamic Public IP, what happens to the IP address?
AIt is deleted permanently
BIt stays the same
CIt becomes static automatically
DIt may change
✗ Incorrect
Dynamic Public IP addresses can change when the resource is stopped and started.
Can you assign the same Public IP address to two different Azure resources at the same time?
ANo
BYes, always
COnly if they are in different regions
DOnly for load balancers
✗ Incorrect
A Public IP address can only be associated with one resource at a time.
Which Azure service commonly uses Public IP addresses to distribute traffic?
AAzure Blob Storage
BLoad Balancer
CAzure Functions
DAzure SQL Database
✗ Incorrect
Azure Load Balancers use Public IP addresses to distribute incoming traffic to backend resources.
Explain what a Public IP address is in Azure and why it is important.
Think about how devices connect to the internet.
You got /3 concepts.
Describe the difference between Static and Dynamic Public IP addresses in Azure and when to use each.
Consider reliability and scenarios needing fixed addresses.
You got /3 concepts.
Practice
(1/5)
1.
What is the main purpose of a Public IP address in Azure?
easy
A. To allow cloud resources to connect to the internet
B. To secure internal communication within a virtual network
C. To store data securely in the cloud
D. To monitor resource usage and billing
Solution
Step 1: Understand Public IP role
Public IP addresses enable resources to communicate over the internet.
Step 2: Compare options
Only To allow cloud resources to connect to the internet describes internet connectivity, others describe unrelated functions.
Final Answer:
To allow cloud resources to connect to the internet -> Option A
Quick Check:
Public IP = Internet access [OK]
Hint: Public IP means internet access for resources [OK]
Common Mistakes:
Confusing Public IP with internal network IP
Thinking Public IP stores data
Mixing Public IP with monitoring tools
2.
Which option correctly defines a Static Public IP address in Azure?
publicIpAllocationMethod: ?
easy
A. "Fixed"
B. "Dynamic"
C. "Manual"
D. "Static"
Solution
Step 1: Recall allocation methods
Azure uses "Static" and "Dynamic" as valid allocation methods for Public IPs.
Step 2: Identify correct syntax
"Static" is the exact string to assign for fixed IP allocation.
Final Answer:
"Static" -> Option D
Quick Check:
Static = fixed IP allocation [OK]
Hint: Static means fixed IP, use exact string "Static" [OK]
Common Mistakes:
Using "Manual" or "Fixed" which are invalid values
Confusing "Dynamic" with static allocation
Omitting quotes around the string
3.
Given this Azure CLI command, what will be the SKU of the created Public IP?
az network public-ip create --name MyIP --resource-group MyGroup --sku Standard --allocation-method Static
medium
A. Standard
B. Basic
C. Premium
D. Dynamic
Solution
Step 1: Identify SKU parameter
The command includes "--sku Standard", which sets the SKU to Standard.
Step 2: Understand SKU options
Standard and Basic are common SKUs; Premium is not valid here, Dynamic is allocation method.
Final Answer:
Standard -> Option A
Quick Check:
--sku Standard means Standard SKU [OK]
Hint: Look for --sku value to find SKU type [OK]
Common Mistakes:
Confusing allocation method with SKU
Assuming default SKU is Basic without checking
Selecting Dynamic which is not a SKU
4.
Identify the error in this Azure Resource Manager (ARM) template snippet for a Public IP: