exam questions

Exam AZ-104 All Questions

View all questions & answers for the AZ-104 exam

Exam AZ-104 topic 4 question 32 discussion

Actual exam question from Microsoft's AZ-104
Question #: 32
Topic #: 4
[All AZ-104 Questions]

You plan to create the Azure web apps shown in the following table.

What is the minimum number of App Service plans you should create for the web apps?

  • A. 1
  • B. 2
  • C. 3
  • D. 4
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
EleChie
Highly Voted 2 years, 7 months ago
Correct Answer: B .NET Core 3.0: Windows and Linux ASP .NET V4.7: Windows only PHP 7.3: Windows and Linux Ruby 2.6: Linux only Also, you can’t use Windows and Linux Apps in the same App Service Plan, because when you create a new App Service plan you have to choose the OS type. You can't mix Windows and Linux apps in the same App Service plan. So, you need 2 ASPs. Reference: https://docs.microsoft.com/en-us/azure/app-service/overview
upvoted 101 times
Indy429
1 year, 4 months ago
Makes a lot of sense. At first I thought A, but I forgot about the fact that you can only have 1 OS per App Service Plan. B seems to be the safest answer.
upvoted 2 times
...
Ozzy3458
2 years, 6 months ago
Ruby 2.6 ca run on Windows. check it ! So the answer is correct. A is the correct answer. RubyInstaller for Windows https://rubyinstaller.org
upvoted 7 times
adeyhtech87
2 years, 2 months ago
Ruby 2.7 works with only the Linux App service plan, as I can check in Jan 2023. Not sure, if Ruby 2.6 would have ever supported Windows. So the answer is B correct. We basically need 1 service plan for Linux App setup environment and one for windows based workload.
upvoted 7 times
...
slovik
2 years, 6 months ago
Maybe it can but it's not listed as webapp runtime for windows: $ az webapp list-runtimes --os windows [ "dotnet:7", "dotnet:6", "DOTNETCORE:3.1", "ASPNET:V4.8", "ASPNET:V3.5", "NODE:18LTS", "NODE:16LTS", "NODE:14LTS", "PHP:7.4", "java:1.8:Java SE:8", "java:11:Java SE:11", "java:17:Java SE:17", "java:1.8:TOMCAT:10.0", "java:11:TOMCAT:10.0", "java:17:TOMCAT:10.0", "java:1.8:TOMCAT:9.0", "java:11:TOMCAT:9.0", "java:17:TOMCAT:9.0", "java:1.8:TOMCAT:8.5", "java:11:TOMCAT:8.5", "java:17:TOMCAT:8.5" ]
upvoted 25 times
...
...
...
simonseztech
Highly Voted 2 years, 6 months ago
Selected Answer: B
Tested on 2022-10-12 in the portal : PHP & Ruby are Linux only so the answer is 2
upvoted 18 times
...
[Removed]
Most Recent 7 months, 3 weeks ago
Selected Answer: B
it´s B
upvoted 1 times
...
3b66239
10 months, 2 weeks ago
Selected Answer: B
B: ASP.NET requires WIndows Ruby requires custom container with Linux From April 2023, App Support for Ruby finished and can only be ran from custom containers Reference: https://azure.microsoft.com/en-gb/updates/rubysupport/ To create a custom container for Ruby you can follow Azure guide that uses Linux: https://github.com/Azure/app-service-linux-docs/blob/master/HowTo/use_ruby_with_container.md
upvoted 1 times
...
marerad
11 months, 3 weeks ago
This is not clear to me, I have found sites stating that ruby can be easily installed on Windows OS platform: https://rubyinstaller.org/ https://stackify.com/install-ruby-on-windows-everything-you-need-to-get-going/ I would go rather with A (1). Please let me know what you think.
upvoted 1 times
...
Dhelailla
1 year, 1 month ago
Selected Answer: A Just tested on my lab after googled it and all 4 apps worked on Windows. So you just need 1 App Service plan.
upvoted 2 times
et20230303
1 year, 1 month ago
how did you get Ruby to work on windows?
upvoted 2 times
Dhelailla
1 year ago
With the Windows Package Manager: https://www.ruby-lang.org/en/documentation/installation/
upvoted 1 times
...
...
...
Amir1909
1 year, 1 month ago
B is correct
upvoted 1 times
...
Amir1909
1 year, 2 months ago
B is correct
upvoted 1 times
...
iamchoy
1 year, 7 months ago
Selected Answer: B
Azure App Service plans define the region (Datacenter) of the physical server where your web app will be hosted and the amount of storage, RAM, and CPU the underlying virtual machine will have. One App Service plan can host multiple web apps, mobile apps, API apps, and function apps. All apps in the same plan run on the same VM instance(s) and share the same resources. Different runtime stacks (like .NET Core, ASP.NET, PHP, or Ruby) can coexist in the same App Service plan, provided they are supported by the operating system of the plan (Windows or Linux). Given the web apps you have: - WebApp1: .NET Core 3.1 (LTS) runs on both Windows and Linux. - WebApp2: ASP.NET v4.8 runs only on Windows. - WebApp3: PHP 7.3 runs on both Windows and Linux. - WebApp4: Ruby 2.6 typically runs on Linux. You can choose to have: 1. One App Service plan for WebApp1, WebApp2, and WebApp3 all on Windows. 2. A separate App Service plan for WebApp4 on Linux. This results in a total of 2 App Service plans. The answer is: B. 2
upvoted 7 times
...
riccardoto
1 year, 8 months ago
Selected Answer: B
The correct answer is still "B", but probably this question will soon require some update. - current LTS versioon of .NET Core is called .NET 6 (goes both in windows and Linux) - .NET 4.7 is not available (.NET 4.8 is) - this goes in windows only - PHP is available in versions 8.0, 8.1, 8.2 --> this goes in liinux only - Ruby support has ended in April 2023. All in all, the table is specifying "runtime stack", so I guess it should state more clearly that it expect answers with "code" publish mode. Actually, one could also just deploy 1 service plan by using the "docker container" mode - though the operational effort would be higher.
upvoted 5 times
...
MGJG
1 year, 8 months ago
OpenAI: f you want to minimize the number of App Service plans to just one, you would need to choose an App Service plan that can accommodate all the different runtime stacks. In this case, you can use a "Windows" based plan since it can support .NET, ASP.NET, PHP, and Ruby applications. So, you would need one App Service plan for all the web apps: App Service Plan for Multiple Runtime Stacks: webapp1 (Runtime stack: .NET Core 3.1) webapp2 (Runtime stack: ASP.NET v4.8) webapp3 (Runtime stack: PHP 7.3) webapp4 (Runtime stack: Ruby 2.6)
upvoted 1 times
...
sakibmas
1 year, 8 months ago
Selected Answer: A
Ruby 2.6 can run on Windows
upvoted 1 times
...
Mehedi007
1 year, 8 months ago
Selected Answer: B
https://learn.microsoft.com/en-us/azure/app-service/overview#next-steps Also you can’t use Windows and Linux Apps in the same App Service Plan. Passed the exam on 26 July 2023. Scored 870. Exact question came.
upvoted 3 times
...
LGWJ12
1 year, 8 months ago
Selected Answer: B
WebApp1 and WebApp2 in windows appservice plan and WebApp3 and WebApp4 in linux. The correct answer is B.
upvoted 1 times
...
Bentot
1 year, 9 months ago
It is stated that Ruby 2.6, the 2.6 version can run on windows. Tricky question.
upvoted 1 times
...
someonewaiting
1 year, 10 months ago
I suspect that does az-104 really worth it. This question shouldn't be for operators, it should be for developers.
upvoted 4 times
...
sankar07
2 years ago
Selected Answer: B
2 is right. You need 1 for windows and 1 for linux. Because .Net 47 runs only on windows. Ruby runs only on linux. The other 2 can run on both.
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