exam questions

Exam AZ-500 All Questions

View all questions & answers for the AZ-500 exam

Exam AZ-500 topic 4 question 100 discussion

Actual exam question from Microsoft's AZ-500
Question #: 100
Topic #: 4
[All AZ-500 Questions]

You have an Azure subscription that contains an Azure key vault named Vault1 and a virtual machine named VM1.

VM1 is connected to a virtual network named VNet1.

You need to allow access to Vault1 only from VM1.

What should you do in the Networking settings of Vault1?

  • A. From the Firewalls and virtual networks tab, add the IP address of VM1.
  • B. From the Private endpoint connections tab, create a private endpoint for VM1.
  • C. From the Firewalls and virtual networks tab, add VNet1.
  • D. From the Firewalls and virtual networks tab, set Allow trusted Microsoft services to bypass this firewall to Yes for Vault1.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
ITTesters
Highly Voted 1 year, 10 months ago
Selected Answer: A
A: Correct, only allows access from VM1 to KV. B: Incorrect, there is no VM option at the creation of the Endpoint; https://learn.microsoft.com/en-us/azure/private-link/private-endpoint-overview#private-link-resource C: Incorrect, only VM1 is allowed, rest of the Vnet is disallowed. D: This overrules FW rules created, but is not the question.
upvoted 12 times
hellboysecret
1 month, 1 week ago
I would go with C under the assumption that VM is not public access enabled. Cannot add a private ip of a VM under the ip addresses in firewall.
upvoted 1 times
...
Ofenomeno
1 year, 9 months ago
the link below shows that you can static IPs, IP ranges, or vnets and subnets. It recommends using vnets if VMs are the target, but in this question we don't know what other resources are under vnet1 so A is the safer option https://learn.microsoft.com/en-us/azure/key-vault/general/network-security
upvoted 1 times
heatfan900
1 year, 7 months ago
STOP ASKING CHAT GPT. ITS ALWAYS WRONG. THE CORRECT ANSWER IS A. YOU LIMIT THAT ONE IP TO CONNECT TO KEY VAULT THE SAME WAY YOU WOULD LIMIT CONNECTIVITY TO A STORAGE ACCT. ALL THE PRIVATE ENDPOINT DOES IS ALLOW INBOUND CONNECTION TO THE KEY VAULT FROM WITHIN THE AZURE ENVIRONMENT ONLY AND THAT IS AS LONG THE PEERING AND ROUTING IS SETUP CORRECTLY IF NEEDED.
upvoted 4 times
...
...
...
jv1
Most Recent 4 months ago
Selected Answer: C
Since VM1 is connected to a virtual network (VNet1), leveraging that virtual network for access control is more secure and scalable. The IP Address or CIDR option is more suitable for scenarios where you need to allow access from external, on-premises networks or specific static IPs, which is not the case for VM1. Adding VNet1 under the virtual networks section allows for private, secure access from resources in the same virtual network. This aligns with best practices for Azure Key Vault security and avoids exposing Vault1 to public IPs.
upvoted 1 times
...
TinyTrexArmz
6 months, 1 week ago
None of the above. Poorly worded question. A - This will only work if VM1 has a public IP assigned to it. You can't just add information to a test question that's not there so you have to assume default VM settings which is a private IP provide by the VNET. B - A private endpoint provides a private IP address for the service. This would allow any VM in the VNet to talk to the KV which doesn't satisfy the requirement C - This would also allow any VM in the VNET to talk to the KV. The configuration provided shows only 1 VM so technically it would satisfy the requirements, but no self respecting security pro would call that a correct way to do it D - The VM is not a trusted Microsoft service so that wouldn't get you anywhere either I'm not 100% it would work but I'd probably try starting with B and adding a NSG that says only VM1 can reach that IP.
upvoted 1 times
...
pentium75
8 months, 4 weeks ago
Selected Answer: A
B grants access to VNet (too wide) and does not prevent direct access C grants access to VNet (too wide) D is not related to the problem at all
upvoted 1 times
...
Jimmy500
10 months ago
I think this is defenately will use Private endpoint. Let me explain why, questions says VM1 connected to vnet1 , we need to give access only from vm1 not for entire vnet. Many people confuse with option A, no it is not . In the firewall and virtual networks settings you can not choose specific vm which is connected to vnet1. However, private endpoint grants access only for one private ip address from the virtual network that is why here answer is A.
upvoted 1 times
pentium75
8 months, 4 weeks ago
You assign Private Endpoint to a VNet (not to a VM as B suggests). Also, just creating a private endpoint does NOT prevent direct access (bypassing the private endpoint).
upvoted 1 times
...
...
datz
10 months, 4 weeks ago
Selected Answer: A
Tricky question, must be A. as we only need to allow connection from VM1, and nobody else so connection will need to be over Pip(Public IP)
upvoted 2 times
...
RemmyT
12 months ago
Selected Answer: B
Tested in lab Cannot be A. Private IPs (NET) cannot be added to Firewalls and virtual networks tab (permitted only public IPs) Message Invalid value found at properties.networkAcls.ipRules[0].value: 10.44.2.4/32 belongs to forbidden range 10.0.0.0–10.255.255.255 (private IP addresses) Cannot be C. It's working but all VNET traffic is permitted.
upvoted 1 times
pentium75
8 months, 4 weeks ago
Who says that VM1 doesn't have a public IP?
upvoted 1 times
...
Pamban
11 months, 4 weeks ago
Okay.. but private endpoint can be used for allow multiple resources to connect KV. It seems this question doesn't provide much more info. You need to have public ip address plus service endpoint configured in subnet if you consider answer A
upvoted 1 times
...
...
wingcheuk
1 year, 3 months ago
Selected Answer: B
I think both A and B can do the work. A = VM1 > Vault1 by IP address B = VM1 >VNet > Private Endpoint > Vault1. But B is more secure for sure. I will go for B.
upvoted 1 times
...
xxavimr
1 year, 5 months ago
Selected Answer: B
Many people say that it is A (VM's IP). They are not saying if that VM has static or dynamic IP. In networking, we have private link option to allow specifically that VM.
upvoted 3 times
xxavimr
1 year, 5 months ago
I forgot the link anyway. https://learn.microsoft.com/en-us/azure/key-vault/general/private-link-service?tabs=portal
upvoted 2 times
Mnguyen0503
1 year, 3 months ago
B doesn't fulfill the requirement to ONLY allow access from VM1. Private endpoint won't block connections from other hosts. So the answer is A.
upvoted 2 times
...
...
...
TheProfessor
1 year, 6 months ago
Selected Answer: A
From the Firewalls and virtual networks tab, add the IP address of VM1.
upvoted 1 times
...
BigShot0
1 year, 7 months ago
Selected Answer: A
Only VM1 - Not the VNET
upvoted 2 times
...
cyberebyc
1 year, 7 months ago
Answer is: B I asked ChatGPT and here is the answer: "To allow access to Vault1 only from VM1, you should do the following in the Networking settings of Vault1: B. From the Private endpoint connections tab, create a private endpoint for VM1. Creating a private endpoint for VM1 will enable private and secure communication between VM1 and Vault1. This approach ensures that only VM1, which has a private endpoint, can access the resources in Vault1. This is a more secure method than simply allowing an IP address or a virtual network because it leverages Azure Private Link to establish a secure connection. Options A, C, and D do not provide the same level of security and access control as using a private endpoint. Option A allows access based on an IP address, which can be less secure. Option C adds the entire virtual network, potentially allowing more resources than just VM1 to access Vault1. Option D allows trusted Microsoft services to bypass the firewall, but it doesn't restrict access to VM1 specifically."
upvoted 1 times
pentium75
8 months, 4 weeks ago
Stop asking ChatGPT, it's a language model, not an Azure expert.
upvoted 1 times
...
xRiot007
9 months ago
Actually access control is better with A than with B, because B adds the whole VNet which can have dozens of VMs, while A adds only one IP of the VM in question. The provided explanation is also WRONG, because a private endpoint minimum scope is a subnet, not a specific VM.
upvoted 1 times
...
flipExam
1 year, 7 months ago
if the question is ambiguous, ChatGPT doesn't know either.
upvoted 1 times
...
...
daz_rekka
1 year, 11 months ago
Selected Answer: A
Agreed, it very clearly says only VM1 in the question making A correct.
upvoted 2 times
...
Anarchira
1 year, 11 months ago
Selected Answer: A
The question is very specific, and says ONLY from VM1, we don't know if there are more machines on VNET1, but if we add VNET1, any machine from VNT!could access it and it would defeat the purpose of the question. "You need to allow access to Vault1 ONLY from VM1". I'm going with A
upvoted 4 times
...
Alexbz
1 year, 11 months ago
Selected Answer: C
C is correct
upvoted 1 times
...
xcapell
1 year, 11 months ago
Why not add the IP address of VM in the FW section of Key Vault? I would only select C if we assume the VM has an assigned dynamic IP. If we do not make this assumption, "A" would be my option as you would give higher restrictive access to the Key Vault, as you would not allow any other, future added, resource access to the Key Vault.
upvoted 1 times
billo79152718
1 year, 11 months ago
So what do you do when this is done at scale? - and do you then add static ip's to vm's ? I don't think so. Therefore C is correct!
upvoted 1 times
xcapell
1 year, 10 months ago
Just VM1 needs to access the KeyVault, not any other resource that could be created in VNET1. So I think the answer is still "A".
upvoted 1 times
...
Ed2learn
1 year, 6 months ago
In a real-world scenario - you would be correct. This is a Microsoft certification exam with a specific use case for a single VM. While I agree this isn't practical for most applications, "A" will be the correct answer for this exam.
upvoted 1 times
...
...
...
billo79152718
1 year, 11 months ago
Selected Answer: C
C is correct
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago