exam questions

Exam AZ-301 All Questions

View all questions & answers for the AZ-301 exam

Exam AZ-301 topic 6 question 47 discussion

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

You have a .NET web service named Service1 that has the following requirements:
✑ Must read and write temporary files to the local file system.
✑ Must write to the Windows Application event log.
You need to recommend a solution to host Service1 in Azure. The solution must meet the following requirements:
✑ Minimize maintenance overhead.
✑ Minimize costs.
What should you include in the recommendation?

  • A. an Azure virtual machine scale set
  • B. an Azure function
  • C. an App Service Environment
  • D. an Azure web app
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
kewl
Highly Voted 5 years, 6 months ago
both the requirements "✑ Must read and write temporary files to the local file system. ✑ Must write to the Windows Application event log." point o an IAAS solution and the only IAAS solution in there is virtual machine scale set. so the given answer is correct
upvoted 93 times
onlyfunmails
5 years, 5 months ago
Good point.
upvoted 1 times
...
zhifu
4 years, 11 months ago
agree with you.
upvoted 2 times
...
...
ihustle
Highly Voted 4 years, 6 months ago
Answer is Azure Web App, because: - Azure Web App can write Application log - https://docs.microsoft.com/es-es/azure/app-service/troubleshoot-diagnostic-logs - Azure web App can read/write files to local file system - https://github.com/projectkudu/kudu/wiki/Understanding-the-Azure-App-Service-file-system - Azure web app is less expansive that a VM scale set (VM scale is thinked for a long number of VM)
upvoted 9 times
...
glam
Most Recent 4 years, 3 months ago
A. an Azure virtual machine scale set
upvoted 1 times
...
milind8451
4 years, 5 months ago
A is correct, the key word here to be noticed is "Windows Event Log."
upvoted 3 times
...
sanketshah
4 years, 5 months ago
A is correct .
upvoted 1 times
...
XJ
4 years, 9 months ago
A -https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/policy-reference
upvoted 1 times
...
beriz
4 years, 9 months ago
I'm willing to go for answer D: Web apps can log to eventlog, you access them through KUDU (https://www.c-sharpcorner.com/article/azure-app-service-troubleshoot-using-event-log/), and it's cheaper than a scaleset, i can host this on one machine.
upvoted 3 times
dwild
4 years, 7 months ago
D is also my choice. Cheaper compared to a scaleset and meet all the requirements.
upvoted 1 times
...
AakashNeedsEmAll
4 years, 6 months ago
How is it cheaper than a VM?
upvoted 1 times
...
...
ChanderM
4 years, 10 months ago
Any solution needs to have IaaS i.e. VM involved. Azure Function is serverless until it's in isolated plan (which is not specified here). App service also is PaaS and does not expose underlying hardware so both cannot write to Windows Event log. The answer should have put simply Virtual machine as there is no requirement mentioned for scale set. Even it says minimized cost but that is only option having VM involved so answer is correct.
upvoted 2 times
ChanderM
4 years, 10 months ago
Scale set must be justified by the requirement of minimum maintenance overhead but that is more like high availability rather maintenance. Azure function or app service may need not any maintenance so answers are made to confuse w.r.t to requirements.
upvoted 2 times
...
...
marco1
4 years, 10 months ago
I mean Windows Application event log. for B is not correct
upvoted 1 times
...
marco1
4 years, 10 months ago
function can not write to the termporay file system
upvoted 2 times
...
DeveshSolanki
5 years ago
Option B. an Azure function is the Correct
upvoted 2 times
...
suineglive13
5 years ago
Ain't application logging in webapp not the same as windows application event logging? http://blog.mohlsen.com/viewing-application-event-logs-on-azure/
upvoted 4 times
...
Rajuuu
5 years, 2 months ago
I think B can accomplish …B is correct.
upvoted 2 times
JakeCallham
5 years, 1 month ago
no you cant write to windows event log, function will not work, try it in a lab.
upvoted 1 times
...
...
xofowi5140
5 years, 2 months ago
For me is an App Service Environment "Enable application logging (Windows) To enable application logging for Windows apps in the Azure portal, navigate to your app and select App Service logs." https://docs.microsoft.com/en-us/azure/app-service/troubleshoot-diagnostic-logs
upvoted 9 times
[Removed]
5 years, 2 months ago
Minimize Cost. ASE is a lot more expensive than a VM
upvoted 4 times
...
...
pradjhun
5 years, 6 months ago
Function don't write to Windows Event log
upvoted 8 times
...
kosta11
5 years, 6 months ago
I would also say B. what do you say about it?
upvoted 1 times
dumpmaster
5 years, 4 months ago
Not B. You need virtual machine scale sets.
upvoted 3 times
...
...
kondapaturi
5 years, 7 months ago
B. an Azure function , is correct.
upvoted 2 times
AzureGC
5 years, 7 months ago
Azure functions integrate with Application Insights, not windows OS event logs
upvoted 3 times
tartar
4 years, 9 months ago
A is ok
upvoted 3 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 ...