exam questions

Exam AZ-300 All Questions

View all questions & answers for the AZ-300 exam

Exam AZ-300 topic 5 question 1 discussion

Actual exam question from Microsoft's AZ-300
Question #: 1
Topic #: 5
[All AZ-300 Questions]

SIMULATION -
Click to expand each objective. To connect to the Azure portal, type https://portal.azure.com in the browser address bar.






When you are finished performing all the tasks, click the "˜Next' button.
Note that you cannot return to the lab once you click the "˜Next' button. Scoring occur in the background while you complete the rest of the exam.

Overview -
The following section of the exam is a lab. In this section, you will perform a set of tasks in a live environment. While most functionality will be available to you as it would be in a live environment, some functionality (e.g., copy and paste, ability to navigate to external websites) will not be possible by design.
Scoring is based on the outcome of performing the tasks stated in the lab. In other words, it doesn't matter how you accomplish the task, if you successfully perform it, you will earn credit for that task.
Labs are not timed separately, and this exam may have more than one lab that you must complete. You can use as much time as you would like to complete each lab. But, you should manage your time appropriately to ensure that you are able to complete the lab(s) and all other sections of the exam in the time provided.
Please note that once you submit your work by clicking the Next button within a lab, you will NOT be able to return to the lab.

To start the lab -
You may start the lab by clicking the Next button.
You need to create a function app named corp8548987n1 that supports sticky sessions. The solution must minimize the Azure-related costs of the App Service plan.
What should you do from the Azure portal?

Show Suggested Answer Hide Answer
Suggested Answer: See explanation below.
Step 1:
Select the New button found on the upper left-hand corner of the Azure portal, then select Compute > Function App.
Step 2:
Use the function app settings as listed below.
App name: corp8548987n1
Hosting plan: Azure App Service plan (required for sticky sessions)
Pricing tier of the App Service plan: Shared compute: Free
Step 3:
Select Create to provision and deploy the function app.
References:
https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-function-app-portal

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
Ekramy_Elnaggar
Highly Voted 5 years, 7 months ago
So, "1) Create Function App 2) Hosting Plan: App Service Plan ( required for sticky sessions ) 3) ASP pricing Tier : Free"
upvoted 26 times
Mathew
5 years, 6 months ago
any Runtime stack ?
upvoted 2 times
...
praveen97
5 years ago
Agree with Ekramy_Elnaggar. I have tested it in the lab by creating the Function App using App Service Plan (any). I have chosen Free tier plan. ARR Affinity is ON by default which allows sticky sessions. https://azure.github.io/AppService/2016/05/16/Disable-Session-affinity-cookie-(ARR-cookie)-for-Azure-web-apps.html
upvoted 2 times
praveen97
5 years ago
For testing I have chosen Runtime Stack as '.Net Core' and OS as 'Windows'. 'Consumption' plan don't support ARR Affinity.
upvoted 1 times
...
...
...
kewl
Highly Voted 5 years, 8 months ago
Sticky sessions is on by default, so you just need to create a function app in a free App Service plan. Setting can be viewed in configuration->general settings of the function app. Setting name is ARR affinity.
upvoted 19 times
...
WassWave
Most Recent 4 years, 11 months ago
Guys, i don't think we can go with a Free App service Plan here, because the free and shared plans do not support functions. Docs say : "Your function apps can also run on the same dedicated VMs as other App Service apps (Basic, Standard, Premium, and Isolated SKUs)." https://docs.microsoft.com/en-us/azure/azure-functions/functions-scale
upvoted 2 times
ct84
4 years, 11 months ago
this is simply not true.. when you create a function app, you can select the "Free" tier without problem. Then, when you go in to the settings of the function app (running on the free tier), you can see the option for ARR affinity == ON quite clearly. It's under: Configuration -> General Settings -> ARR affinity.. I don't see the issue with free? Am i missing something?
upvoted 1 times
...
...
Johncena
5 years, 1 month ago
We can go for Free Tier also since session affinity is ON for all tiers as per the below link. https://azure.microsoft.com/en-in/pricing/details/app-service/plans/
upvoted 2 times
...
jonnybugaloo
5 years, 1 month ago
Always on / Sticky Session can only be used from APP Service Plan B1. F1 - Free and D1 (basic) don't support Always On. I just tested them all.
upvoted 3 times
ondemand
4 years, 12 months ago
it's not about always on, the question is about ARR actually. • Always On: Keeps the app loaded even when there's no traffic. It's required for continuous WebJobs or for WebJobs that are triggered using a CRON expression. • ARR(application request routing) affinity: In a multi-instance deployment, ensure that the client is routed to the same instance for the life of the session. You can set this option to Off for stateless applications.
upvoted 1 times
...
...
thirstylion
5 years, 1 month ago
ARR affinity if now "off" by default.
upvoted 4 times
denkes
5 years, 1 month ago
Not correct. It is turned "On" by default. I just checked in Portal: Created a Func app: Windows > Core .Net > Free Plan Switchted to Blade: Deployment > Settings > Configuration: Value for ARR affinity is "On". Anyway just double check in exam, in case you need to simulate it.
upvoted 3 times
ct84
4 years, 11 months ago
Totally agree... unless i am missing something! :O
upvoted 1 times
...
...
...
TYT
5 years, 3 months ago
Sticky session is on by default as others mentioned. You just have to create a Function App, select a run time stack (I choose .Net), Hosting plan should be App Service Plan, OS - Linux/Windows, and select the Free plan. I found a free one in Linux and click create.
upvoted 3 times
ct84
4 years, 11 months ago
Yep, works fine.
upvoted 1 times
...
...
sameer2803
5 years, 3 months ago
when u create a function app in shared app service plan it gives a warning " 'AlwaysOn' is not enabled. Your app may not function properly". And 'AlwaysOn' can only be enabled in basic app service plan. so they should not allow the function app to be deployed in free tier at the first place. but I guess to answer this question we are good with the answer displayed.
upvoted 1 times
...
SilentH
5 years, 6 months ago
For Operating System, you must select the Windows option otherwise you cannot modify the Sku size to select the Free pricing tier.
upvoted 1 times
simonxinyu
5 years, 6 months ago
Using Linux, you can have Free F1, I did a lab and verified.
upvoted 5 times
...
...
Ekramy_Elnaggar
5 years, 7 months ago
ARR Affinity option exist in the :F1: Free: ASP tier
upvoted 6 times
...
AnshMan
5 years, 7 months ago
Free service plan has "session affinity"
upvoted 4 times
...
Musk
5 years, 7 months ago
I think now is named Session affinity
upvoted 2 times
...
megasema
5 years, 8 months ago
Free App service plan doesn't support functions, you would need at least Basic one.
upvoted 4 times
onlyfunmails
5 years, 7 months ago
Agree, should be at least Basic plan for functions, https://azure.microsoft.com/en-in/pricing/details/app-service/plans/
upvoted 1 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 ...