Take your preparation further with AZ-204 Practice Test 2. This set of free practice questions helps reinforce what you’ve learned and keeps you moving steadily toward exam success.
0 of 20 Questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
You must sign in or sign up to start the quiz.
You must first complete the following:
Test complete. Results are being recorded.
0 of 20 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0 )
Earned Point(s): 0 of 0 , (0 )
0 Essay(s) Pending (Possible Point(s): 0 )
Question 1 of 20
Which app setting should be enabled to allow the deployment engine to run a ZIP package using the same build automation as a Git deployment?1
Question 2 of 20
Which actions are out of the scope of the az webapp up command? (Select two).
Question 3 of 20
When deploying a Python web app to Azure App Service, what happens if you use a framework like FastAPI and don’t set up a custom startup script?
Question 4 of 20
For Linux apps and custom containers, App Service uses the _______________ flag to send application settings into the container, which then sets them as environment variables inside the container. (FILL IN THE BLANK)
Question 5 of 20
You’ve just built a RESTful API on Azure App Service, and now a client-side web app hosted on a different domain needs to access your API. When the frontend tries to make an AJAX call to your API, it fails due to a browser security restriction. What should you configure in App Service to allow this cross-domain request?
Question 6 of 20
Sam is setting up autoscaling for a web app in Azure. What should he do to ensure that autoscaling can trigger when needed?
Question 7 of 20
During a recent team meeting, you discussed how Azure handles app settings across deployment slots. Someone asked what happens to app settings during a swap between staging and production. You mention that some settings can stay tied to the slot rather than the app itself. Based on your understanding, which of the following best explains what happens when a setting is marked as a deployment slot setting?
Question 8 of 20
You’re configuring autoscaling for a web app in Azure. You’ve set up multiple rules to handle scale-in actions. Under which conditions will the scale-in rule actually trigger?
Question 9 of 20
In Azure, what happens if only scale-in rules are defined for a web app, and no scale-out rules exist, even though all scale-in rule conditions are triggered?
Question 10 of 20
Compared to Azure WebJobs, which two features of Azure Functions help developers be more productive? (Choose two).
Question 11 of 20
You’re configuring Azure Functions for an order-processing workflow. You need a hosting plan that bills based on the total number of core seconds and memory allocation across all instances, without separate execution charges. Which Azure Functions hosting plan should you choose?
Question 12 of 20
You’re running a serverless app in Azure Functions and noticing some delay in how fast your app scales during high traffic. Which of the following statements is true about how the scale controller works in Azure Functions?
Question 13 of 20
A function app can only scale out to a maximum of 200 instances on the Consumption plan. What is the maximum number of instances a Premium plan can scale out to?
Question 14 of 20
You’re configuring triggers and bindings for a function app. Each time a new message arrives in Azure Queue storage, you want to create a new row in Azure Table storage to store some data from the queue message. Which trigger and binding should you use in this scenario? (Choose two).
Question 15 of 20
You’re configuring a newly created function app by accessing the Configuration blade. Which application setting contains the storage account connection string for the Azure Functions runtime to use in everyday operations?
Question 16 of 20
John is configuring a trigger for his newly created function app. He enters the following code in the run.csx file:
using Microsoft.Extensions.Logging;
public static DemoMessage Run(string myQueueItem, ILogger log)
{
return new DemoMessage() {
PartitionKey = “Messages”,
RowKey = Guid.NewGuid().ToString(),
Message = myQueueItem.ToString() };
}
public class DemoMessage
{
public string PartitionKey { get; set;
}
public string RowKey { get; set; }
public string Message{ get; set; }
}
What happens when the return value of the method is passed to the output binding? (Choose two).
Question 17 of 20
You are working in Azure Functions and need to add a Timer-triggered function to an existing Function App. Which of the following steps correctly describes what you should do to implement the Timer trigger?
Question 18 of 20
In Azure Functions, the Timer trigger uses NCrontab syntax to define schedules. What does the expression 0 */5 * * * * mean when used in a Timer trigger?
Question 19 of 20
You’re configuring an HTTP trigger in a function app. After setting the HTTP trigger, you view the function.json file to verify the trigger. Once the trigger executes, the output binding uses the return value from the code. The authLevel is set to function by default. How is this function triggered?
Question 20 of 20
Nick is configuring webhooks in a function app. He wants to view the HTTP trigger request response output. Which file should he access to review the trigger code to see whether the response has any query string or request body?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Current
Correct
Incorrect