exam questions

Exam AZ-203 All Questions

View all questions & answers for the AZ-203 exam

Exam AZ-203 topic 2 question 2 discussion

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

You develop a serverless application using several Azure Functions. These functions connect to data from within the code.
You want to configure tracing for an Azure Function App project.
You need to change configuration settings in the host.json file.
Which tool should you use?

  • A. Visual Studio
  • B. Azure portal
  • C. Azure PowerShell
  • D. Azure Functions Core Tools (Azure CLI)
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
The function editor built into the Azure portal lets you update the function.json file and the code file for a function. The host.json file, which contains some runtime- specific configurations, is in the root folder of the function app.

References:
https://docs.microsoft.com/en-us/azure/azure-functions/functions-reference#fileupdate

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
Chandu440
Highly Voted 5 years, 1 month ago
I think the answer is correct. The question talks about function app. A function app can only be created via portal or CLI. What we create in Visual studio is an Azure function that needs to be deployed within a function app. Function app is more like a container that can host many functions.
upvoted 9 times
Juanlu
4 years, 7 months ago
Agree !
upvoted 1 times
...
quokka
4 years, 10 months ago
That's misleading! Please try before you write. You can create function in both portal and in VS (and VSCode). If you change in portal, the code stored in storage account will not have version control (and lost if someone redeploys). If you want tracing only for temporal debugging, then you can do that in the portal. Otherwise best practice is to change in VS/VSCode with source control.
upvoted 3 times
...
...
Kumar1988
Most Recent 4 years, 3 months ago
Azure portal
upvoted 1 times
...
Kumar1988
4 years, 3 months ago
Azure portal
upvoted 1 times
...
samyoyoyo
4 years, 6 months ago
This is possible on the Azure portal only if the function App is running on Windows. In this case, we could use kudu to edit the host.json file. Otherwise, I think the most likely answer is to use Azure Functions core tool on Visual Studio Code
upvoted 1 times
...
MyLife
4 years, 7 months ago
The Functions editor built into the Azure portal lets you update your code and your function.json file directly inline. This is recommended only for small changes or proofs of concept - best practice is to use a local development tool like VS Code. I would say portal.. as just host file changes.. correct me if i am wrong.
upvoted 1 times
...
Larry88
4 years, 9 months ago
considering the requirement "You want to configure tracing for an Azure Function App project." A VS might be better answer.
upvoted 1 times
...
Steve_az
4 years, 10 months ago
How to edit functions in the Azure portal : The Functions editor built into the Azure portal lets you update your code and your function.json file directly inline. This is recommended only for small changes or proofs of concept - best practice is to use a local development tool like VS Code. https://docs.microsoft.com/en-us/azure/azure-functions/functions-reference
upvoted 2 times
...
Iloves73g
5 years, 1 month ago
Portal. Is visual studio a must for us to develop az functions? No.
upvoted 2 times
...
Mnair
5 years, 1 month ago
Hey which is correct here ? portal or Visual studio ? i thought Visual studio.. thoughts please?
upvoted 1 times
mp007
5 years ago
Visual studio
upvoted 1 times
...
...
riley5
5 years, 3 months ago
I thought portal also and then read this in ms documentation: "The Functions editor built into the Azure portal lets you update your code and your function.json file directly inline. This is recommended only for small changes or proofs of concept - best practice is to use a local development tool like VS Code." https://docs.microsoft.com/en-us/azure/azure-functions/functions-reference#fileupdate. So which one is the correct answer?
upvoted 1 times
riley5
5 years, 3 months ago
So both are correct, but VScode is the most correct answer?
upvoted 1 times
lau13
5 years, 1 month ago
so, answer is either Portal or Visual Studio Code, but the option in the question is Visual Studio, not Visual Studio Code, that's why Portal is the correct answer.
upvoted 3 times
...
...
...
JaQua
5 years, 4 months ago
they clearly state function app 'PROJECT' so visual studio is correct answer
upvoted 3 times
igorcode
5 years, 4 months ago
It is still project even if it is portal. you don't need to enable tracing locally. Just enable it in portal. Do your tracing and disable it.
upvoted 4 times
...
...
TechieBloke
5 years, 5 months ago
You can use both but Portal is more convenient. The function editor built into the Azure portal lets you update the function.json file and the code filefor a function. The host.json file, which contains some runtime-specific configurations, is in the root folder of the function app.
upvoted 4 times
...
TaiH
5 years, 5 months ago
Hei, We can change the config in both Visual Studio and Azure Portal. Why do we choose Azure Portal here? Tai
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 ...