You need to monitor ContentUploadService according to the requirements.
Which command should you use?
You need to monitor ContentUploadService according to the requirements.
Which command should you use?
To monitor the ContentUploadService for CPU usage, the correct command should focus on percentage CPU usage since it's the standard metric used for monitoring CPU performance. The condition should be set to trigger an alert when the average percentage CPU exceeds a specified value. In this scenario, the correct condition should be 'avg Percentage CPU > 80' to match the requirement of monitoring when CPU usage is over 80 percent. Therefore, among the given options, the one with the closest accurate condition is the command with 'avg Percentage CPU > 8', if you meant 80 instead of 8 as a typo. The provided suggested answer shows a condition of 'avg Percentage CPU > 800', which is incorrect because it exceeds the possible percentage range. The correct syntax clarifies that the average of percentage CPU usage should be monitored.
C is the correct answer. We are dealing with containers here not VM so "CPU usage" is a valid condition. Had it been VM then it should have been "Percentage CPU usage". 800 is also correct since for containers its measured in millicores. Ref : https://docs.microsoft.com/en-us/azure/azure-monitor/platform/metrics-supported#microsoftcontainerinstancecontainergroups
Where does it say contentuploadservice uses containers? The main problem with B is that 800 is not a percentage.
It's in the code. There is still the problem with 800 not being a percentage
See ContentUploadService, line CS02.
It is "avg" and not "usage". Reason: it is generalized as multicores could be there. =>Answer C
...B...
Correct. 800 percent does not make sense. CPU usage of 800 seems to be correct. C is the answer.
To be an average would we not need a time frame? No time frame was mentioned.
Shouldn't it be > 80 (instead of 800)?
agree with you
The CPU Usage measurement is in milicores (1/1000 of a core). So, 80% of a core would be 800 milicores.
The CPU usage measurement is in milicores. 80% of a core would be 800 milicores.
Monitoring: An alert must be raised if the ContentUploadService uses more than 80 percent of available CPU cores. The metric "CPU Usage" does not exist, avg Percentage CPU is valid. Note: It should be “avg Percentage CPU > 80” Reference: https://docs.microsoft.com/en-us/cli/azure/monitor/metrics/alert?view=azure-cli-latest#az_monitor_metrics_alert_create
As per Udemy, C is the correct answer - https://docs.microsoft.com/en-us/azure/container-instances/container-instances-monitor
Because it is an ACI "CPU Usage" is valid. If it were a VM then it would not be. In fact "avg Percentage CPU" is not valid for an ACI. Check the various links in the comments, all the ones I checked point to this.
Unit avg CPU: per hundred (%) Unit CPU: per thousand A:8% B:800% C:80% D:0.8%
C is correct answer.
It is a ACI not a VM so "CPU usage" is correct
I believe its C based on this Ref: https://docs.microsoft.com/en-us/azure/container-instances/container-instances-monitor
We want an alert for an exceeded limit. A,B are invalid from the start, we do not care about averages. D has a wrong number in the evaluation expression C is the correct answer - that "800" is units per thousand. 800/1000 is 80%
It's not A or B because we don't care about average usage, we want an alert when the usage goes above 80%. Therefore it mus be C, because as others have stated, CPU usage measurement is in millicores, so 800 would be 80%. Correct answer: C
C is the correct answer.
Did my exam on 15th November 2022. This test case was on it, but not this specific question.
ContentUploadService is in ACI. when reading Microsft document found that CPU Usage is used for ACI and Avg percentage is used for VM Also we don't want average just 80% of available CPU SO ANSWER IS C
"The ContentAnalysisService is deployed with Azure Container Instances" "The solution will use eight CPU cores." CPU usage is measured in millicore (https://docs.microsoft.com/en-us/azure/container-instances/container-instances-monitor) so correct answer should be 'C' (80% = 800millicore)
B - Scenario: An alert must be raised if the ContentUploadService uses more than 80 percent of available CPU-cores Azure Monitor provides the following metrics for Azure Container Instances. These metrics are available for a container group and individual containers. By default, the metrics are aggregated as averages. CPU Usage - measured in millicores. One millicore is 1/1000th of a CPU core, so 500 millicores represents usage of 0.5 CPU core. Memory Usage - in bytes. Network Bytes Received Per Second and Network Bytes Transmitted Per Second. https://docs.microsoft.com/en-us/azure/container-instances/container-instances-monitor
Usage measured in millicores, percentage does not https://learn.microsoft.com/en-us/cli/azure/monitor/metrics/alert?view=azure-cli-latest#:~:text=%2D%2Dcondition%20%22-,avg%20Percentage%20CPU%20%3E%2090,-%22%20%2D%2Dwindow%2Dsize
All wrong. 1. It needs to be avg CPU, it doen't make sense for sudden spike of any individual computation, but if Average is over, it needs the alert. 2. I don't see the syntax "CPU Usage" and the words do not match the percentage. 3. Percentage > 80, not 8 nor 800, see from the official example. az monitor metrics alert create -n alert1 -g {ResourceGroup} --scopes {VirtualMachineID1} {VirtualMachineID2} {VirtualMachineID3} \ --condition "avg Percentage CPU > 90" --description "High CPU" --region westus
According to https://docs.azure.cn/zh-cn/cli/monitor/metrics/alert?view=azure-cli-latest The answer is B. However, B states 800, I don't know if it's a typo
similar alerts on https://docs.microsoft.com/en-us/cli/azure/monitor/metrics/alert?view=azure-cli-latest#az-monitor-metrics-alert-create