exam questions

Exam AZ-104 All Questions

View all questions & answers for the AZ-104 exam

Exam AZ-104 topic 3 question 16 discussion

Actual exam question from Microsoft's AZ-104
Question #: 16
Topic #: 3
[All AZ-104 Questions]

You have an Azure subscription that contains a storage account named account1.
You plan to upload the disk files of a virtual machine to account1 from your on-premises network. The on-premises network uses a public IP address space of
131.107.1.0/24.
You plan to use the disk files to provision an Azure virtual machine named VM1. VM1 will be attached to a virtual network named VNet1. VNet1 uses an IP address space of 192.168.0.0/24.
You need to configure account1 to meet the following requirements:
✑ Ensure that you can upload the disk files to account1.
✑ Ensure that you can attach the disks to VM1.
✑ Prevent all other access to account1.
Which two actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.

  • A. From the Networking blade of account1, select Selected networks.
  • B. From the Networking blade of account1, select Allow trusted Microsoft services to access this storage account.
  • C. From the Networking blade of account1, add the 131.107.1.0/24 IP address range.
  • D. From the Networking blade of account1, add VNet1.
  • E. From the Service endpoints blade of VNet1, add a service endpoint.
Show Suggested Answer Hide Answer
Suggested Answer: AC 🗳️

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
chinnu_07
Highly Voted 3 years, 4 months ago
A,C IS THE CORRECT ANSWER
upvoted 53 times
awssecuritynewbie
3 years, 2 months ago
Option C will allow for the public Address to be added but we just want VM1 to gain access to the VM that can be done via the private IP.
upvoted 5 times
awssecuritynewbie
3 years, 2 months ago
sorry mistake it states from on-perm therefore you need it to allow public OP of the VM to be allowed to access.
upvoted 3 times
...
...
kmaneith
2 years, 6 months ago
correct , attach disk to VM1 has nth to do with firewall
upvoted 2 times
...
holytoni
2 years, 1 month ago
I can confirm that. I tested it myself on the portal. I tried to attach a vhd with my public IP. Only when I am whitelisting my ip i can attach a dsik. I believe the main point here is "Ensure that you can attach the disks to VM1.": In this case "you", means our public IP must be allowed, ergo the onprem net.
upvoted 6 times
...
ggogel
1 year, 5 months ago
I agree. For clarification: D is not required because the VM does not mount the disk through the REST endpoint. So, network rules do not matter in this case.
upvoted 1 times
sca88
5 months, 3 weeks ago
D is required, because it ask for "Prevent all other access to disk"
upvoted 1 times
...
...
...
klexams
Highly Voted 3 years, 1 month ago
Too many mixed answers here. Decided to spend hours reading MS Docs! K, let's settle this one once and for all. Technically all answers are correct, however you can only choose 2. So here we go: B, C, D depends on A. And B is selected by default btw (once you do A). E has to be done for the disk to be used by VM1. So the correct answer is A and E. A which will cover B C D. And E as explained above. Hope this helps!
upvoted 40 times
epomatti
3 years ago
From someone who did a "lot of research" you clearly have no idea what you're talking about. B is not selected by default with A. You clearly don't understand what "Allow trusted Microsoft services to access this storage account", as this has nothing to do with the question. The question CLEARLY says that you plan do upload from the on-premises network with PUBLIC ip address 131.107.1.0/24. A, C are the only possible combination to answer this question. For other options: - B, theres no need to involve Microsoft trusted services here. - D, that only works if there is a site-to-site VPN, and that is NOT stated in the problem. - E, theres nothing to do with the problem.
upvoted 48 times
klexams
2 years, 7 months ago
sure you seem to understand everything eh.. NOT! lol. How are you going to attach the disks to the VM1 sweetie???
upvoted 5 times
AzureG0d
2 years, 6 months ago
lmfao!!
upvoted 3 times
...
...
gardenboozer
2 years, 7 months ago
"Allow trusted Microsoft services to access this storage account" IS selected by default, once you switch to "selected networks" (A). However, trusted Microsoft services don't specifically include Microsoft Compute (VMs), so this answer is not relevant here (see https://learn.microsoft.com/en-us/azure/storage/common/storage-network-security?tabs=azure-portal#trusted-access-for-resources-registered-in-your-subscription)
upvoted 4 times
...
...
...
Jay_D_Lincoln
Most Recent 3 months ago
Selected Answer: AC
A and C are correct. But D is not incorrect. Its the third step. I believe either combination will be correct since the question did not ask for a sequence
upvoted 1 times
...
Bravo_Dravel
3 months, 1 week ago
Correct: AC A. From the Networking blade of account1, select Selected networks. This action restricts access to the storage account to only the specified networks or IP ranges, meeting the requirement to prevent all other access. B. From the Networking blade of account1, select Allow trusted Microsoft services to access this storage account. While this enables trusted Microsoft services to access the account, it is not required for this scenario, as VM1 is in the same subscription. C. From the Networking blade of account1, add the 131.107.1.0/24 IP address range. This allows the on-premises network to upload the disk files. D. From the Networking blade of account1, add VNet1. This is unnecessary if a service endpoint is used for VNet1 to access the storage account. E. From the Service endpoints blade of VNet1, add a service endpoint. This is not required because the requirement can be met by other configurations.
upvoted 1 times
...
sca88
5 months, 3 weeks ago
Selected Answer: CD
select Selected networks, it's just the first step to implement the C and D. Option C: From the Networking blade of account1, add the 131.107.1.0/24 IP address range: This action allows your on-premises network to upload the disk files to the storage account by specifying the IP address range of your on-premises network. Option D: From the Networking blade of account1, add VNet1: This ensures that the virtual network (VNet1) can access the storage account, which is necessary for attaching the disks to VM1.
upvoted 2 times
...
RVivek
5 months, 3 weeks ago
Selected Answer: CD
C will allow access from on-prem D will allow access from VM1 A- is only hals of the solutuion. After slecting selcted network you have to complte C and D. E will allow asscess to all storage accounts from Vnet1 unless limitted by a service end point policy
upvoted 2 times
...
d7fb451
7 months, 2 weeks ago
oh, and if the VHD is converted to a managed disk (as it should be), it would not be accessible from the internet.
upvoted 1 times
...
d7fb451
7 months, 2 weeks ago
if you assume it is using SMB to connect to a file share to "provision" the VM. It could be A,C or A,E. But even then it is missing steps... A,C - need to add the subnet A,E - need to add end point policy
upvoted 1 times
...
[Removed]
8 months ago
Selected Answer: AC
WRONG A & C are correct
upvoted 2 times
...
azure_luck
1 year, 2 months ago
What if for this type of question i check all answers? Did someone try this?
upvoted 1 times
Rediwed
8 months, 3 weeks ago
You get an error.
upvoted 1 times
...
...
SDiwan
1 year, 3 months ago
Selected Answer: AC
A: bcoz we need to prevent access from all n/w . Enabling this setting by default enables the setting to allow trusted azure services (option B). C: will create firewall rule to allow on-prem n/w to access the storage account and upload disk. Specifically, option D is not needed bcoz attaching the disk to vm is done by azure resource manager via backbone n/w. So allow trusted services option which is enabled as part of option A is sufficient to attach the disk.
upvoted 5 times
...
bacana
1 year, 3 months ago
A and C Allow Azure services on the trusted services list to access this storage account is select by default when you change from "Enabled from all networks" to "Enabled from selected virtual networks and IP addresses"
upvoted 2 times
...
MatAlves
1 year, 3 months ago
Configuring access from on-premises networks Go to the storage account that you want to secure. Select Networking. Check that you've chosen to allow access from Selected networks. To grant access to an internet IP range, enter the IP address or address range (in CIDR format) under Firewall > Address Range. To remove an IP network rule, select the delete icon ( ) next to the address range. Select Save to apply your changes.
upvoted 1 times
MatAlves
1 year, 3 months ago
https://learn.microsoft.com/en-us/azure/storage/common/storage-network-security?tabs=azure-portal
upvoted 1 times
...
...
nchebbi
1 year, 5 months ago
IMHO it should be C&D, before you need do C&D you need for sure to do option A, but here they are asking to actions to meet the requirements, AC or AD alone won't acheive the requirements. Explanations: C is mandatory to have access from on-premises, it should be set in the firewall section D is required to have access to VNet1 to attached the disk to your VM, if you try to add that VNET1 to the Virtual Networks section (if there isn't any service endpoints already created) it will create it. Here's a message I get when I try to add VNET "The following networks don’t have service endpoints enabled for 'Microsoft.Storage.Global'. Enabling access will take up to 15 minutes to complete. After starting this operation, it is safe to leave and return later if you do not wish to wait." So option E is required as well but it will be created automatically when you add the VNet1
upvoted 3 times
...
Ahkhan
1 year, 5 months ago
I tested it on 11/12/2023 - A & C are correct. This question could also come in a lab simulation where they will tell you to allow the access to storage account from a specific CIDR.
upvoted 3 times
...
CzechChris
1 year, 6 months ago
I think I decided on every combination at some point, but I agree its AC now. A few people below mentioned that the question is badly written. It would help if C mentioned Add an IP range in the Firewall section, which is what you need to do. As the text underneath Firewall says "Add IP ranges to allow access from the internet or your on-premises networks", which is what you want to achieve. Allow access from the public range so that you can copy up the VM image. https://learn.microsoft.com/en-us/azure/storage/common/storage-network-security?tabs=azure-portal
upvoted 1 times
...
damirbek369
1 year, 6 months ago
I go for A,C. D does not make sense. Why would you add a Service Endpoint after enabling Selected Virtual Networks option from Networking of Storage Account if you are not going to add IP Address.
upvoted 1 times
damirbek369
1 year, 6 months ago
Sorry, I meant E does not make sense.
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