exam questions

Exam AZ-104 All Questions

View all questions & answers for the AZ-104 exam

Exam AZ-104 topic 6 question 32 discussion

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

You have a subnet named Subnet1 that contains Azure virtual machines. A network security group (NSG) named NSG1 is associated to Subnet1. NSG1 only contains the default rules.
You need to create a rule in NSG1 to prevent the hosts on Subnet1 form connecting to the Azure portal. The hosts must be able to connect to other internet hosts.
To what should you set Destination in the rule?

  • A. Application security group
  • B. IP Addresses
  • C. Service Tag
  • D. Any
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
bernardwk3
Highly Voted 2 years, 6 months ago
You can use service tags to achieve network isolation and protect your Azure resources from the general Internet while accessing Azure services that have public endpoints. Create inbound/outbound network security group rules to deny traffic to/from Internet and allow traffic to/from AzureCloud or other available service tags of specific Azure services. https://docs.microsoft.com/en-us/azure/virtual-network/service-tags-overview
upvoted 25 times
...
klexams
Highly Voted 2 years, 4 months ago
C - "Azure portal" is in the list of Service tag.
upvoted 19 times
Abhi9988
1 year, 3 months ago
https://learn.microsoft.com/en-us/answers/questions/1198445/what-azureportal-service-tag-mean
upvoted 1 times
...
...
Dankho
Most Recent 4 months, 2 weeks ago
Selected Answer: C
Service Tag most appropriate but since it's the same as grouping of IP addresses, guess IP addresses can also be a valid answer, but service tag more appropriate.
upvoted 3 times
...
[Removed]
5 months ago
Selected Answer: C
C is correct
upvoted 2 times
...
Amir1909
11 months, 2 weeks ago
C is correct
upvoted 1 times
...
babakeyfgir
1 year, 1 month ago
It was in EXAM, thanks Examtopic.
upvoted 3 times
...
GODUSGREAT
1 year, 4 months ago
Selected Answer: B
B. IP Addresses To create a rule in NSG1 to prevent hosts on Subnet1 from connecting to the Azure portal while allowing them to connect to other internet hosts, you should set the Destination in the rule to IP Addresses. The Azure portal can be accessed via a specific set of IP addresses. By creating a rule in NSG1 that blocks traffic to these IP addresses, you can prevent hosts on Subnet1 from accessing the Azure portal while still allowing them to access other internet hosts. Option A, Application security group, is not relevant to this scenario as it is used to group multiple virtual machines and apply network security rules to them as a group. Option C, Service Tag, is also not relevant as it is used to define a set of IP address ranges for specific Azure services. Option D, Any, would allow traffic to any destination, which is not appropriate for this scenario as it would not prevent access to the Azure portal.
upvoted 3 times
LovelyGroovey
11 months, 1 week ago
Copilot said the same thing!! "In the rule, you should set the Destination to the IP addresses of the Azure portal. However, please note that Azure portal doesn’t have a specific set of IP addresses because it’s hosted on the internet and its IP addresses can change. A more effective way might be to control the access at the user level rather than at the network level. For example, you can use Azure Active Directory to control which users have access to the Azure portal. Please consult with your network and security team to ensure this is the best approach for your specific needs. It’s important to carefully consider the potential impacts of blocking access to the Azure portal."
upvoted 1 times
...
Abhi9988
1 year, 3 months ago
You can set serviceTag to Azure Portal https://learn.microsoft.com/en-us/answers/questions/1198445/what-azureportal-service-tag-mean
upvoted 1 times
...
...
hidefo6963
1 year, 5 months ago
AzurePortal service tag can be added to NSG in the portal but is not listed in the documentation. Moreover, looks like it won't work as intended - https://learn.microsoft.com/en-us/answers/questions/1198445/what-azureportal-service-tag-mean "This tag is currently not supported by NSG i.e. although you can list it in the nsg rule but it will not have the desired effect which coincides with your observation above. If you wish to block access to Azure Portal from your VM you can do it via Azure Firewall. Azure Firewall offers FQDN filtering functionality" That means the goal can't be achieved by Service Tag. AzureCloud tag is "All datacenter public IP addresses.", not the portal
upvoted 5 times
hidefo6963
1 year, 5 months ago
Tested this in a lab. Denying AzurePortal service tag in outbound rules does NOT prevent accessing it. But I have found the IP resolved from portal.azure.com in a list of another service tag - AzureFrontDoor.Frontend. Denying it did the job at the moment, but still that is not what you would expect.
upvoted 2 times
hidefo6963
1 year, 5 months ago
Still it does not give a clear answer. In reality, answer C does not work according to the requirements. Maybe it works in the test author's brain.
upvoted 1 times
...
...
...
riccardoto
1 year, 6 months ago
To all people here voting "Service Tags": what is the service tag for Azure portal ? I cannot find it in the docs...
upvoted 3 times
...
OrangeSG
2 years, 3 months ago
Selected Answer: C
A service tag represents a group of IP address prefixes from a given Azure service. Microsoft manages the address prefixes encompassed by the service tag and automatically updates the service tag as addresses change, minimizing the complexity of frequent updates to network security rules. You can use service tags to define network access controls on network security groups, Azure Firewall, and user-defined routes. Use service tags in place of specific IP addresses when you create security rules and routes Reference Virtual network service tags https://learn.microsoft.com/en-us/azure/virtual-network/service-tags-overview
upvoted 7 times
...
awssecuritynewbie
2 years, 5 months ago
Selected Answer: C
service tag enables you to be very specific on the service you are bloking.
upvoted 3 times
...
kayyaly
2 years, 5 months ago
Selected Answer: C
C correct
upvoted 3 times
...
HMO
2 years, 5 months ago
Selected Answer: C
You can use service tags to achieve network isolation and protect your Azure resources from the general Internet while accessing Azure services that have public endpoints
upvoted 5 times
...
HMO
2 years, 5 months ago
You can use service tags to define network access controls on network security groups, Azure Firewall, and user-defined routes
upvoted 4 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