How should you address the log capacity issue for the function app?
Choose an answer
Tap an option to check your answer.
Correct answer: Raise the minimum log level in the function's host.json file.
Why this is the answer
Raising the minimum log level in the function's host.json file directly controls the verbosity of logs emitted by the Function App. By setting it to a higher level (e.g., Warning or Error), fewer informational or debug messages will be written, significantly reducing log volume and addressing capacity issues. While enabling Application Insights sampling can reduce the volume of telemetry sent to Application Insights, it's a post-collection sampling mechanism and doesn't prevent the Function App from generating the logs in the first place, which is the root cause of the capacity issue. Creating an Application Insights telemetry filter is also a post-collection filtering mechanism. Applying a LogCategoryFilter during application startup is more applicable to traditional .NET applications using ILogger and doesn't directly control the core logging behavior of the Azure Functions host itself in the same way host.json does.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed