exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 2 question 36 discussion

Actual exam question from Microsoft's AZ-204
Question #: 36
Topic #: 2
[All AZ-204 Questions]

HOTSPOT -
You are developing an ASP.NET Core web application. You plan to deploy the application to Azure Web App for Containers.
The application needs to store runtime diagnostic data that must be persisted across application restarts. You have the following code:

You need to configure the application settings so that diagnostic data is stored as required.
How should you configure the web app's settings? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: If WEBSITES_ENABLE_APP_SERVICE_STORAGE
If WEBSITES_ENABLE_APP_SERVICE_STORAGE setting is unspecified or set to true, the /home/ directory will be shared across scale instances, and files written will persist across restarts

Box 2: /home -
Reference:
https://docs.microsoft.com/en-us/azure/app-service/containers/app-service-linux-faq

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
zinza
Highly Voted 4 years, 3 months ago
I think the printed image is creating confusion. The correct answers (according to the image) are: WEBSITES_ENABLE_APP_SERVICE_STORAGE=true DIAGDATA=/home
upvoted 108 times
lugospod
3 years, 3 months ago
How do you know it is Linux and not Windows?
upvoted 2 times
ScubaDiver123456
3 years, 3 months ago
For Windows,it would be C:\Home, which is not a provided option.. but /home is provided. https://docs.microsoft.com/en-us/azure/app-service/configure-custom-container?pivots=container-windows
upvoted 15 times
Tej_007
7 months, 3 weeks ago
and also By default, persistent storage is enabled on Windows custom containers. To disable it, set the WEBSITES_ENABLE_APP_SERVICE_STORAGE app setting value to false
upvoted 1 times
...
...
...
azurelearner666
3 years, 10 months ago
yep, correct. Same as the "official solution" :)
upvoted 6 times
...
...
GCMan
Highly Voted 4 years, 5 months ago
Given answer correct.
upvoted 25 times
Esward
2 years, 3 months ago
Agreed
upvoted 1 times
...
...
Kanasan
Most Recent 1 year, 8 months ago
The answer is correct, but explanation is not: If WEBSITES_ENABLE_APP_SERVICE_STORAGE setting is unspecified or set to false, the /home/ directory will not be shared across scale instances, and files written will not persist across restarts. https://learn.microsoft.com/en-us/troubleshoot/azure/app-service/faqs-app-service-linux#i-m-using-my-own-custom-container--i-want-the-platform-to-mount-an-smb-share-to-the---home---directory-
upvoted 4 times
...
micro9000
2 years, 5 months ago
The answer is correct https://learn.microsoft.com/en-us/azure/app-service/reference-app-settings?tabs=kudu%2Cdotnet#custom-containers
upvoted 1 times
...
[Removed]
2 years, 7 months ago
Custom container itself is a dark area of app service and expecting human beings to remember the property names and the possible values for these settings is very remarkable.
upvoted 10 times
...
[Removed]
2 years, 7 months ago
I have to just remember all these properties? Are developers not allowed to use documentation in real life? Does search work in Redmond? Microsoft should really think what exactly they achieve from these random questions without a thought on what they want the developers to know or remember.
upvoted 14 times
...
Eltooth
2 years, 10 months ago
WEBSITES_ENABLE_APP_SERVICE_STORAGE /home
upvoted 5 times
...
SivajiTheBoss
3 years, 1 month ago
Answer is correct: WEBSITES_ENABLE_APP_SERVICE_STORAGE=true DIAGDATA=/home
upvoted 2 times
...
upadhyayavi
3 years, 1 month ago
Can't D:/home and /home both be correct in this case??
upvoted 1 times
Ami_Nou
2 years, 11 months ago
For anyone confused, in Windows it is C:\Home
upvoted 5 times
...
...
upadhyayavi
3 years, 1 month ago
Answer to both the options: https://docs.microsoft.com/en-us/azure/app-service/configure-custom-container?pivots=container-windows#use-persistent-shared-storage
upvoted 1 times
...
petitbilly
3 years, 1 month ago
Here there is the specific documentation for this question: https://docs.microsoft.com/en-us/azure/app-service/faq-app-service-linux#i-m-using-my-own-custom-container--i-want-the-platform-to-mount-an-smb-share-to-the---home---directory-
upvoted 1 times
...
qiw
3 years, 3 months ago
WEBSITES_ENABLE_APP_SERVICE_STORAGE=true By default, persistent storage is disabled on custom containers and the setting is exposed in the app settings. To enable it, set the WEBSITES_ENABLE_APP_SERVICE_STORAGE app setting value to true https://docs.microsoft.com/en-us/azure/app-service/configure-custom-container?pivots=container-linux DIAGDATA=/home You can use the /home directory in your custom container file system to persist files across restarts and share them across instances. The /home directory is provided to enable your custom container to access persistent storage. https://docs.microsoft.com/en-us/azure/app-service/configure-custom-container?pivots=container-linux
upvoted 5 times
...
mlantonis
3 years, 11 months ago
Correct Answer: If WEBSITES_ENABLE_APP_SERVICE_STORAGE setting is unspecified or set to false, the /home/ directory will not be shared across scale instances, and files written will not persist across restarts. Explicitly setting WEBSITES_ENABLE_APP_SERVICE_STORAGE to true will enable the mount. Box 1: WEBSITES_ENABLE_APP_SERVICE_STORAGE Box 2: /home Reference: https://docs.microsoft.com/en-us/azure/app-service/containers/app-service-linux-faq
upvoted 16 times
...
glam
3 years, 11 months ago
WEBSITES_ENABLE_APP_SERVICE_STORAGE=true DIAGDATA=/home
upvoted 3 times
JoeInOregon
3 years, 11 months ago
glam has the answers, y'all.
upvoted 3 times
...
...
Tom87
3 years, 11 months ago
On Windows the directory would be C:\home. Since this is not mentioned in possible answers, we are on Linux environment and the answer is correct. https://docs.microsoft.com/en-us/azure/app-service/configure-custom-container?pivots=container-windows#use-persistent-shared-storage
upvoted 4 times
...
glam
3 years, 11 months ago
WEBSITES_ENABLE_APP_SERVICE_STORAGE=true DIAGDATA=/home
upvoted 3 times
...
CAguys
4 years, 1 month ago
First box is correct but the second box should be 'true'. Please refer the link which is given in the explanation!
upvoted 1 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