AZ-103 Exam QuestionsBrowse all questions from this exam

AZ-103 Exam - Question 102


HOTSPOT -

You have an Azure virtual machine named VM1 that connects to a virtual network named VNet1. VM1 has the following configurations:

✑ Subnet 10.0.0.0/24

✑ Availability set: AVSet

✑ Network security group (NSG): None

Private IP address: 10.0.0.4 (dynamic)

Exam AZ-103 Question 102

✑ Public IP address: 40.90.219.6 (dynamic)

You deploy a standard, Internet-facing load balancer named slb1.

You need to configure slb1 to allow connectivity to VM1.

Which changes should you apply to VM1 as you configure slb1? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Hot Area:

Exam AZ-103 Question 102
Show Answer
Correct Answer:
Exam AZ-103 Question 102

Discussion

30 comments
Sign in to comment
FrancisFerreira
Mar 29, 2020

Most people here seem to forget that Standard SKU Public IPs cannot have Dynamic assignments. If the Public IP on VM1 is set to Dynamic, that means it is a Public IP with Basic SKU (Public IPs with Standard SKU have Static assignments by default, that cannot be changed). We cannot associate Basic SKUs IPs with Standard SKUs LBs... So, top-box must be "Removing public IP address from VM1". Now, Standard LBs are secure by default (like Standard IPs), so we won't be able to connect to then without explicitly allowing such connections via NSG... So, bottom-box must be "Create and configure NSG".

azun
Jun 5, 2020

This is the right explanation of the answers to this questions.tried and tested !!

Shades
Jul 5, 2020

This is most accurate explanation

phongvu
Mar 26, 2020

I believe the answer for 1 should be "Removing public IP address from VM1" and 2 should be "Create and configure NSG".

Geeky
Aug 29, 2020

I agree

Exam103
Mar 22, 2020

I think it ir right: Secure by default Standard Load Balancer is built on the zero trust network security model at its core. Standard Load Balancer secure by default and is part of your virtual network. The virtual network is a private and isolated network. This means Standard Load Balancers and Standard Public IP addresses are closed to inbound flows unless opened by Network Security Groups. NSGs are used to explicitly permit allowed traffic. If you do not have an NSG on a subnet or NIC of your virtual machine resource, traffic is not allowed to reach this resource. To learn more about NSGs and how to apply them for your scenario, see Network Security Groups. Basic Load Balancer is open to the internet by default. https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-overview

certificatores
Mar 24, 2020

yes this verifies the first part of the question but 2nd part of the question is still doubtful, I believe it should be static IP answer

mojo13
Mar 23, 2020

I would remove the public IP in VM1 for sure and assign a static private IP to VM1 as well.

gsbence
May 10, 2020

Tested this: Dynamic Public IP only can be Basic, so it must be removed first before the VM can be added to the backend pool. If you don't assign an NSG to the VM the inbound connections to the LB would be rejected. First box: Remove the public IP... Second box: Create and configure an NSG

chan4u
Jun 30, 2020

Tried and correct answer is : 1) Remove Public IP address (In this case since the IP is dynamic and since it is dynamic it is of Basic category). A Standard load balancer cannot have Basic Public IP Address. Private IP can be Static or dynamic. 2) Create and configure NSG.

Nhan
Apr 27, 2020

Yes, The given answer is correct

Ravihonnagiri
Jul 11, 2020

Public IP SKUs and Load Balancer SKUs must match. For Standard Load Balancer , use VMs with Standard IP addresses in the backend pool. Also, you cannot reach standard lb as nothing is allowed. So NSG creation is mandatory Reference:https://docs.microsoft.com/en-us/azure/load-balancer/quickstart-load-balancer-standard-public-portal#create-backend-servers Box1: Remove public IP Box2: create and configure NSG

Sheru
Apr 21, 2020

One cannot create a backend slb pool if the VM to be associated has a Public IP. So 1st in the sequence is to remove the public IP. Secondly, you need to create and configure the NSG with the right rules to allow inbound access to the Azure VM.

samco
May 4, 2020

Top Box: remove the public IP from VM1 Bottom Box: Create and assign an NSG to VM

Cloudyuga
May 17, 2020

Correct answer is Box 1 - Removing public IP address from VM1 Box 2 - create a new network security group (NSG) Private Ip is - dynamic or static it doesn't matter still u can add the VM if above two are there. i have check it in my environment

Ta_C
May 26, 2020

the first answer ought to be [ changing the IP address from dynamic to static ]

tusharrverma
May 29, 2020

correct!

senseibrutal
May 30, 2020

you can only change the address from dynamic to static by REMOVING the basic sku address and create a standard sku static address

awsc
Aug 26, 2020

Tested this today -Remove the public address from VM1 -Create and configure an NSG

KenZx
Nov 21, 2020

So many people being tricked by this question. VM1 has public Ip address and sku basic and private Ip address (dynamic). So internet facing Load balancer sku "standard" requires backend pool which has private ip address type static => Answer 1: change dynamic to static Asnwer 2: create and configure NSG

Jovial
Jan 5, 2021

Dont spread false answers . You dont know anything about Azure Test it for your self Azure clearly informs you while adding a backend pool that vm of avset should have a static Public IP address or not public address. I can still use a dynamic private "You can only attach virtual machines in northeurope that have a standard SKU public IP configuration or no public IP configuration. All IP configurations must be on the same virtual network."

gerryboy
Jul 24, 2021

you have a very good point but why get so emotional?

gerryboy
Jul 24, 2021

you have a very good point but why get so emotional?

ExamPrep
Mar 25, 2020

Top Box - Create and assign an NSG to VM1 Bottom Box - Change the private IP address of VM1 to static Top Box - https://docs.microsoft.com/en-us/azure/load-balancer/tutorial-load-balancer-basic-internal-portal "Create virtual machines.... …...In the Networking tab make sure the following are selected: …. Public IP > select Create new, and in the Create public IP address window, .... To create a new network security group (NSG), a type of firewall, under Network Security Group, select Advanced. In the Configure network security group field...." Bottom Box: https://www.ecanarys.com/Blogs/ArticleID/222/Microsoft-Azure-Implementing-Internet-Facing-Load-Balancers-using-Azure-Resource-Manager "2 Windows server 2012 R2 Standard_A1 size VMs in the same VNET and corresponding subnet. Make sure both these VMs are in the Same Availability Set. They should have static private IPs and public IPs. (Public IPs are required to RDP into the machine to configure IIS)"

FrancisFerreira
Mar 29, 2020

Nah... This question is very tricky! If the Public IP on VM1 is set to Dynamic, that means it is a Public IP with Basic SKU (Public IPs with Standard SKU have Static assignments by default, that cannot be changed). We cannot associate Basic SKUs IPs with Standard SKUs LBs... So, top-box must be "Removing public IP address from VM1". Now, Standard LBs are secure by default (like Standard IPs), so we won't be able to connect to then without explicitly allowing such connections via NSG... So, bottom-box must be "Create and configure NSG".

praveen97
Jul 6, 2020

Agree with FrancisFerreira. Explanation is clear. Even I have tested in the portal. Answers are 1. Remove Public IP address from VM1 2. Create and configure NSG

praveen97
Jul 6, 2020

Agree with FrancisFerreira. Explanation is clear. Even I have tested in the portal. Answers are 1. Remove Public IP address from VM1 2. Create and configure NSG

kaviraj
Jun 2, 2020

According to this: https://docs.microsoft.com/en-us/azure/load-balancer/quickstart-load-balancer-standard-public-portal the only thing I can see that is created is NSG which at the end. Standard LB is closed by default in terms of security. That link shows 3 vms created in 3 different zones all with public IPs. Given answer looks correct, to me atleast.

ariahi
Jul 1, 2020

Why would you need a public IP if you have a load balancer in front of the VM? Just send traffic to the private IP.

Shades
Jul 5, 2020

To add a backend pool to standard LB , you must have VMs that have static IP , otherwise you get this error: You can only attach virtual machines in your region that have a standard SKU public IP configuration or no public IP configuration. All IP configurations must be on the same virtual network. and for allowing communication for Standard LB: Standard Load Balancer is secure by default. This means Network Security Groups (NSGs) are used to explicitly permit and whitelist allowed traffic. If you do not have an NSG on a subnet or NIC of your virtual machine resource, traffic is not allowed to reach this resource. Please configure an NSG to ensure communication if needed.

TahaMubarak
Aug 17, 2020

I was thinking about removing the public IP address then said what is the issue if you leave the public IP to the VM as long as the LB will use another public IP and will use the VM private IP

Saman2020
Aug 21, 2020

Private IP and NSG are required for a Standard LB.

Saman2020
Aug 21, 2020

I mean static private IP

niceeu
Oct 9, 2020

"Basic SKU Load Balancers use Basic SKU IP Addresses, which aren't compatible with Standard SKU Load Balancers as they require Standard SKU IP Addresses" The IP Addresses are Dynamically assigned, therefore making them, "Basic SKU." Ans1: remove Public IP Ans2: Create & configure NSG https://docs.microsoft.com/en-us/azure/aks/load-balancer-standard

Mdshah
Mar 21, 2020

i doubt if this is right

dorian_grecu
May 6, 2020

Standard-tier load balancers use standard-tier public IP addresses, which are by default closed to inbound traffic. When using a standard-tier load balancer, traffic must be whitelisted using NSGs. In contrast with basic-tier load balancers, traffic should be whitelisted using NSGs, but will also flow if NSGs are not used.

Rizan
May 8, 2020

The answer would be 1st - Removing public IP address from VM1 2nd Create and configure NSG.

jonnybugaloo
Jun 8, 2020

Just tested here. You should first remove the Public IP from the VM1, and then, create a NSG to VM1 First Box says: Before you create a backend pool. Here, you can only add VM 1 if the VM has a Static Public IP (Standard), that is not the case, or removing the public IP from this VM. You can enter on public IP configuration associated to VM, and dissociate it from the VM. Second box says Before you can connect to VM1 - Here you should have an NSG associated to VM1. So, based on the options, is create and configure a NSG.

jonnybugaloo
Jun 8, 2020

And the questions says: Which changes should you apply to VM1 as you configure slb1? So, the second box means that the NSG is for VM1.

Hanuman
Jun 24, 2020

correct

kate00
Jul 5, 2020

I tested the first scenario. When I tried to add VM with no nsg and dynamic public ip on the back pool, no VM was available which can be added on. On the top, "You can only attach virtual machines in westus that have a standard SKU public IP configuration or no public IP configuration. All IP configurations must be on the same virtual network." was shown. Firstly, I attached NSG on the NIC of VM and still no VM was available on the backpool. Secondly, I disassociated the dynamic public ip from the VM and I can see the vm list which I can add on the backpool.

AzExam2020
Jul 9, 2020

The answer given is correct, the VM is in Availability Set.

bnair
Aug 7, 2020

"You can only attach virtual machines that are in the same location and on the same virtual network as the loadbalancer. Virtual machines must have a standard SKU public IP or no public IP."

masa1313
Aug 23, 2020

Remove the public address from VM1 Create and configure an NSG

Thi
Oct 30, 2020

Given answer correct

Thi
Nov 1, 2020

i wrote wrong ...i will go for -Remove the public address from VM1 -Create and configure an NSG