exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 2 question 60 discussion

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

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.

You deploy an Azure Container Apps app and disable ingress on the container app.

Users report that they are unable to access the container app. You investigate and observe that the app has scaled to 0 instances.

You need to resolve the issue with the container app.

Solution: Enable ingress, create an HTTP scale rule, and apply the rule to the container app.

Does the solution meet the goal?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
MarcosAn
Highly Voted 1 year, 3 months ago
Selected Answer: B
Must be carefull with Default Scale Rule: https://learn.microsoft.com/en-us/azure/container-apps/scale-app?pivots=azure-cli#default-scale-rule Make sure you create a scale rule or set minReplicas to 1 or more if you don't enable ingress. If ingress is disabled and you don't define a minReplicas or a custom scale rule, then your container app will scale to zero and have no way of starting back up.
upvoted 9 times
...
vizay
Most Recent 2 weeks, 4 days ago
Selected Answer: B
No, the solution does not meet the goal. Here's why: Enabling ingress and setting up a scale rule is a good idea, but you also need to make sure the app is set up to scale automatically based on traffic. Just enabling ingress won't fix the issue of the app scaling to 0 instances.
upvoted 1 times
...
8ac3742
9 months, 2 weeks ago
Selected Answer: A enabled ingress->create an HTTP scale rule to extend instances based on incoming traffic
upvoted 3 times
...
Chriscrea8
1 year, 1 month ago
No, the solution does not meet the goal. Enabling ingress and creating an HTTP scale rule won't directly address the issue of the container app scaling down to 0 instances. Enabling ingress only allows external traffic to reach the container app, but it doesn't guarantee that the app will scale up or have instances available to handle incoming requests. To resolve the issue of the container app scaling down to 0 instances, you need to adjust the scaling settings to ensure that there are always instances available to handle incoming requests, even when traffic is low. This may involve modifying the minimum instance count or configuring auto-scaling rules based on metrics such as CPU usage or incoming requests. So, the correct answer is B. No.
upvoted 2 times
...
Mahesh1222
1 year, 1 month ago
Though Enable Ingress, Set Scale rule to Http is correct, it will work based on Http traffic coming in when the Instance is already running. But it doesn't address the problem mentioned in the question - where it already scaled down to 0 instances. So to address this first, we need to ensure that there is at least one instance of the container app running to handle incoming requests. This may involve adjusting the scaling settings, configuring minimum instance limits, or implementing a health check mechanism to keep at least one instance running at all times, even during periods of low traffic.
upvoted 3 times
...
jobolesonihal
1 year, 1 month ago
Selected Answer: B
The HTTP scale rule in Azure App Service allows you to automatically scale your app based on HTTP traffic. However, if the Azure container app is scaled down to 0 instances, the HTTP scale rule will not work because there are no instances to scale. In other words, the HTTP scale rule only applies when there are active instances of the app to handle incoming HTTP requests. When the app is scaled down to 0 instances, no requests are being processed, and the scale rule does not have any effect. Therefore, if you want the HTTP scale rule to work, you need to ensure that there are at least one or more instances of the app running.
upvoted 1 times
...
Ushakanth
1 year, 3 months ago
Selected Answer: B
Though Enable Ingress, Set Scale rule to Http is correct, it will work based on Http traffic coming in when the Instance is already running. But it doesn't address the problem mentioned in the question - where it already scaled down to 0 instances. So to address this first, we need to ensure that there is at least one instance of the container app running to handle incoming requests. This may involve adjusting the scaling settings, configuring minimum instance limits, or implementing a health check mechanism to keep at least one instance running at all times, even during periods of low traffic.
upvoted 2 times
...
emysa341
1 year, 4 months ago
A is correct since scale rule can be HTTP https://learn.microsoft.com/en-us/azure/container-apps/scale-app?pivots=azure-cli#:~:text=Scale%20rules%20are%20implemented%20as%20HTTP%2C%20TCP%2C%20or%20custom.
upvoted 1 times
...
FeriAZ
1 year, 4 months ago
Answer is A: Enabling Ingress: This would allow external traffic to reach the container app, which is necessary for users to access the app from outside the Azure network. Creating an HTTP Scale Rule: Azure Container Apps can automatically scale based on various metrics, including HTTP traffic. An HTTP scale rule would allow the app to scale up based on the incoming HTTP traffic. Applying the Rule to the Container App: Implementing the scale rule ensures that the container app scales appropriately in response to traffic, preventing it from scaling down to 0 instances when there is demand.
upvoted 3 times
...
ryuhei
1 year, 4 months ago
Selected Answer: B
Answer is B
upvoted 2 times
...
manopeydakon
1 year, 4 months ago
No! Enabling ingress and creating an HTTP scale rule won't directly address the issue of the app having scaled to 0 instances. Ingress relates to the network traffic coming into the app, and scale rules define when and how the app scales based on certain conditions. However, they won't directly bring the app back to running instances if it has scaled down to 0. To address the issue of the app having 0 instances, you might need to investigate why the app scaled down and take appropriate action, such as adjusting the scaling settings, reviewing resource constraints, or identifying any issues in the app itself.
upvoted 2 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