Microsoft Azure Developer Associate AZ-204 Practice Question
A C# isolated-process Azure Function uses the attribute [ServiceBusTrigger("orders", Connection = "SbConn")]. You are preparing to deploy the Function App to Azure and must ensure that the host resolves the Service Bus connection string at runtime without requiring code changes. Where should you place the connection string value?
Inside the host.json file under a serviceBus section with the property connection set to SbConn.
In an application setting named SbConn within the Function App's configuration in Azure.
In the ConnectionStrings section of local.settings.json on the development workstation.
In an Azure Storage blob referenced by the WEBSITE_CONTENTAZUREFILECONNECTIONSTRING app setting.
The Connection property of ServiceBusTrigger specifies the name of an application setting that contains the actual Service Bus connection string. At runtime the Functions host reads that setting from the Function App's configuration (or environment variables) and injects the value. The host.json file is used for behavior configuration, not secrets. local.settings.json is for local development only and is not published. WEBSITE_CONTENTAZUREFILECONNECTIONSTRING is unrelated to Service Bus and is used for the content share of the Function App.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the purpose of the ServiceBusTrigger attribute in Azure Functions?
Open an interactive chat with Bash
Why should the Service Bus connection string be stored in the Function App's application settings?
Open an interactive chat with Bash
What is the role of host.json in Azure Functions?
Open an interactive chat with Bash
Microsoft Azure Developer Associate AZ-204
Develop Azure compute solutions
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .