exam questions

Exam AZ-104 All Questions

View all questions & answers for the AZ-104 exam

Exam AZ-104 topic 6 question 58 discussion

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

You have an Azure subscription. The subscription contains 10 virtual machines that run Windows Server. Each virtual machine hosts a website in IIS and has the Azure Monitor Agent installed.

You need to collect the IIS logs from each virtual machine and store them in a Log Analytics workspace.

What should you configure first?

  • A. a data collection endpoint
  • B. an Azure Monitor Private Link Scope (AMPLS)
  • C. Diagnostic settings
  • D. VM insights
  • E. a private endpoint
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
FreeSwan
Highly Voted 1 year, 2 months ago
Data Collection End Point https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/data-collection-endpoint-overview?tabs=portal
upvoted 19 times
Josh219
1 week, 6 days ago
Wrong its C: Diagnostic Settings
upvoted 1 times
...
...
Arthur_zw
Highly Voted 10 months, 2 weeks ago
I feel like Azure has a lot of services (some of them nested) that do the same thing and cause confusion because they have differing names
upvoted 14 times
...
Josh219
Most Recent 1 week, 6 days ago
Selected Answer: C
Data Collection Endpoint: Used for custom data collection endpoints. Diagnostic Settings: Used to configure the collection of logs and metrics from virtual machines. So, correct is C: Diagnostic Settings
upvoted 1 times
...
jodtzz
3 weeks, 6 days ago
Selected Answer: C
I was inclined to say A as well, but the link others are providing explicitly says you only need a data collection endpoint if you plan on using Azure Monitor Private Links which this question does not specify. That this detail is left out of the question alone would be a good reason to avoid that answer. However, there is some support for answer C here: https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/create-diagnostic-settings?tabs=portal "Logs and metrics to route: For logs, either choose a category group or select the individual checkboxes for each category of data you want to send to the destinations specified later. The list of categories varies for each Azure service. Select AllMetrics if you want to store metrics in Azure Monitor Logs too."
upvoted 2 times
...
SeMo0o0o0o
1 month, 3 weeks ago
Selected Answer: C
C is correct
upvoted 2 times
...
sats08
2 months ago
DCE. I just came here to add my two cents. I tested this and it's not C. You don't require this. You just create a DCE in the same region and then on the DCR Configuration Basic Settings page you have to select the DCE. Then you can enable IIS logs collection. Dont need enable anything.
upvoted 1 times
...
lj114
3 months ago
Selected Answer: C
A data collection endpoint (DCE) only if you plan to use Azure Monitor Private Links. Ref: https://learn.microsoft.com/en-us/azure/azure-monitor/agents/data-collection-iis
upvoted 3 times
...
LaurentiuM
5 months, 3 weeks ago
Selected Answer: C
To collect IIS logs from each virtual machine and store them in a Log Analytics workspace, the first thing you need to configure is: C. Diagnostic settings Explanation: Diagnostic settings: Diagnostic settings in Azure allow you to specify which logs and metrics should be collected from your resources and where they should be sent (e.g., to a Log Analytics workspace, an event hub, or a storage account). For collecting IIS logs, you will configure the diagnostic settings on each virtual machine to send the IIS logs to the Log Analytics workspace.
upvoted 8 times
...
Mysystemad
8 months ago
The first thing you should configure is C. Diagnostic settings. In Azure, to collect IIS logs from each virtual machine and store them in a Log Analytics workspace, you would need to configure the diagnostic settings. This allows you to choose the specific data you want to collect, such as IIS logs, and the destination where you want to store this data, such as a Log Analytics workspace.
upvoted 4 times
...
naveedpk00
8 months, 1 week ago
The correct answer is A Ref: https://learn.microsoft.com/en-us/azure/azure-monitor/agents/data-collection-iis
upvoted 3 times
...
Amir1909
8 months, 2 weeks ago
A is right
upvoted 1 times
...
HiDhiman
10 months, 2 weeks ago
Option C: Diagnostic settings To collect and forward logs to Log Analytics, you should configure diagnostic settings on each virtual machine. Diagnostic settings allow you to collect various types of data, including IIS logs, and send them to a Log Analytics workspace.
upvoted 6 times
...
secofr
1 year ago
A. DCE is correct See: "Collect IIS logs with Azure Monitor Agent" https://learn.microsoft.com/en-us/azure/azure-monitor/agents/data-collection-iis
upvoted 3 times
...
Vestibal
1 year, 1 month ago
Selected Answer: A
A. a data collection endpoint https://learn.microsoft.com/en-us/azure/azure-monitor/vm/tutorial-monitor-vm-guest
upvoted 3 times
...
Nyahyong
1 year, 1 month ago
A. Data Collection Endpoint is correct https://learn.microsoft.com/en-us/azure/azure-monitor/agents/data-collection-iis
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 ...