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?
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
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.
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.
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
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.
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
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.
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)
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.
This section is not available anymore. Please use the main Exam Page.AZ-104 Exam Questions
Log in to ExamTopics
Sign in:
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.
EleChie
Highly Voted 2 years, 7 months agoIndy429
1 year, 4 months agoOzzy3458
2 years, 6 months agoadeyhtech87
2 years, 2 months agoslovik
2 years, 6 months agosimonseztech
Highly Voted 2 years, 6 months ago[Removed]
Most Recent 7 months, 3 weeks ago3b66239
10 months, 2 weeks agomarerad
11 months, 3 weeks agoDhelailla
1 year, 1 month agoet20230303
1 year, 1 month agoDhelailla
1 year agoAmir1909
1 year, 1 month agoAmir1909
1 year, 2 months agoiamchoy
1 year, 7 months agoriccardoto
1 year, 8 months agoMGJG
1 year, 8 months agosakibmas
1 year, 8 months agoMehedi007
1 year, 8 months agoLGWJ12
1 year, 8 months agoBentot
1 year, 9 months agosomeonewaiting
1 year, 10 months agosankar07
2 years ago