exam questions

Exam AZ-305 All Questions

View all questions & answers for the AZ-305 exam

Exam AZ-305 topic 4 question 10 discussion

Actual exam question from Microsoft's AZ-305
Question #: 10
Topic #: 4
[All AZ-305 Questions]

You have a .NET web service named Service1 that performs the following tasks:
✑ Reads and writes temporary files to the local file system.
✑ Writes to the 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 App Service web app
  • B. an Azure virtual machine scale set
  • C. an App Service Environment (ASE)
  • D. an Azure Functions 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
techrat
Highly Voted 1 year, 7 months ago
Passed exam with 979 today, this question was on the exam. I am 1000% confident A is correct.
upvoted 22 times
...
Balaji_c_s
Highly Voted 2 years, 2 months ago
Selected Answer: A
A is correct
upvoted 16 times
...
SeMo0o0o0o
Most Recent 3 weeks, 1 day ago
Selected Answer: A
A is correct
upvoted 1 times
...
binodwa
5 months, 3 weeks ago
Came in June 2024
upvoted 4 times
...
NotMeAnyWay
1 year, 8 months ago
Selected Answer: A
A. an Azure App Service web app Azure App Service is a fully managed platform for building, deploying, and scaling web apps. By hosting Service1 as an Azure App Service web app, you can minimize maintenance overhead, as the platform takes care of the underlying infrastructure, patching, and scaling. Azure App Service also offers a cost-effective solution that can be scaled up or out as needed to meet the demands of your application. While Azure Functions, virtual machine scale sets, and App Service Environments can also host web services, they may not provide the same balance of minimal maintenance overhead and cost-effectiveness as Azure App Service web apps do in this scenario.
upvoted 11 times
...
malcubierre
1 year, 8 months ago
Azure Functions seem to acces to local temporary files and can write to event log... why is not the correct option?
upvoted 5 times
sawanti
1 year, 3 months ago
How Azure Function is a web service? Azure Function is a serverless FaaS, not Web Service as Azure Web Apps
upvoted 1 times
...
...
orionduo
1 year, 10 months ago
Selected Answer: A
Azure provides built-in diagnostics to assist with debugging an App Service app. There are three main types of files that an Azure Web App can deal with ➊ Persisted files ➋ Temporary files ➌ Machine level read-only files Logs messages generated by your application code. The messages can be generated by the web framework you choose, or from your application code directly using the standard logging pattern of your language. Each message is assigned one of the following categories: Critical, Error, Warning, Info, Debug, and Trace. You can select how verbose you want the logging to be by setting the severity level when you enable application logging.
upvoted 4 times
...
moshos
1 year, 10 months ago
Selected Answer: A
Correct answer: A
upvoted 1 times
...
VBK8579
1 year, 10 months ago
Selected Answer: A
A. an Azure App Service web app would be the best solution as it provides low maintenance overhead and cost-effectiveness while being able to host .NET web services. Additionally, Azure App Service provides easy integration with other Azure services, and it supports the reading and writing of files to the local file system. The Application event log can also be written to using Azure Diagnostic Logs, which can be configured within the Azure App Service.
upvoted 3 times
...
VBK8579
1 year, 10 months ago
A. an Azure App Service web app
upvoted 1 times
...
509325_5153
2 years ago
How come a function app isn't a good answer here?
upvoted 2 times
Ivanwu
2 years ago
a .NET web service ?
upvoted 4 times
...
...
Galron
2 years, 1 month ago
Selected Answer: A
Web App can write Application Event logs, you enable this in the Monitoring section of the Web App.
upvoted 4 times
...
sKaiNL
2 years, 2 months ago
Selected Answer: A
A should be ok
upvoted 3 times
...
GarryK
2 years, 2 months ago
Selected Answer: B
Answer is B. App service has local disk to write temp files. For more persistent files, mount shares: https://docs.microsoft.com/en-us/azure/app-service/operating-system-functionality https://docs.microsoft.com/en-us/azure/app-service/configure-connect-to-azure-storage?tabs=portal&pivots=container-linux App Service can write to application logging windows: https://docs.microsoft.com/en-us/azure/app-service/troubleshoot-diagnostic-logs it was never said that the app wanted to write logs into a filesystem.
upvoted 2 times
GarryK
2 years, 2 months ago
Sorry A
upvoted 4 times
...
...
One111
2 years, 3 months ago
@Mderators, please fit answer for this one. Web App can't write to Windows OS Application event log. In addition if question is not about Application event log, but about Application log it is still invalid, because of limited up to 12 hours enabled time.
upvoted 1 times
...
bootless
2 years, 3 months ago
Selected Answer: B
Answer cannot be correct because with a web app this feature will only be on for 12 hours. After this time it will be disabled and has to be enabled again. So you have to use VMs
upvoted 3 times
bootless
2 years, 3 months ago
Source: https://docs.microsoft.com/en-us/azure/app-service/troubleshoot-diagnostic-logs#enable-application-logging-windows Quote: "The Filesystem option is for temporary debugging purposes, and turns itself off in 12 hours. The Blob option is for long-term logging, and needs a blob storage container to write logs to. "
upvoted 1 times
mse89
2 years, 3 months ago
hello, i think answer is A because is asking for Application event log and not for filesystem log. Also app service minimize the costs.
upvoted 3 times
mse89
2 years, 3 months ago
You're Right, to analyze the application log we have to choose Application Logging (Filesystem) or Application Logging (Blob). But to minimize the maintenance and the costs i think A is still the correct answer.
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 ...