Create a Function App with Sticky Sessions to Minimize Azure-Related Costs

Create a Function App with Sticky Sessions to Minimize Azure-Related Costs

Question

SIMULATION -

This is a lab or performance-based testing (PBT) section.

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 lab by clicking the Next button

Tasks -

Click to expand each objective -

To connect to the Azure portal, type https:/portal.azure.com in the browser address bar.

You need to create a function app named corp7509086n1 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?

Explanations

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: corp7509086n1 -

Hosting plan: Azure App Service plan

(need this for the sticky sessions)

Pricing tier of the the App Service plan: Shared compute: Free

Step 3:

Select Create to provision and deploy the function app.

https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-function-app-portal

As an AI language model, I do not have access to a live environment to perform the task, but I can provide you with the general steps that you can follow to complete the task:

  1. Open the Azure portal by typing https:/portal.azure.com in the browser address bar.

  2. Sign in to your Azure account with your credentials.

  3. In the Azure portal, click on the "Create a resource" button (+) in the left-hand menu.

  4. In the search box, type "Function App" and select "Function App" from the search results.

  5. On the Function App page, click on the "Create" button.

  6. In the "Basics" tab of the "Create Function App" page, enter the following details:

  • Subscription: Choose the subscription that you want to use for this function app.
  • Resource group: Create a new resource group or select an existing one.
  • Function App name: Enter "corp7509086n1" as the name of the function app.
  • Publish: Choose "Code" as the publish option.
  • Runtime stack: Choose the runtime stack that you want to use for your function app.
  • Operating System: Choose the operating system that you want to use for your function app.
  1. In the "Hosting" tab of the "Create Function App" page, select the "App Service Plan" option.

  2. Click on the "Create new" link next to the "App Service Plan" field.

  3. In the "Create App Service Plan" page, enter the following details:

  • Name: Enter a name for the app service plan.
  • Subscription: Choose the subscription that you want to use for the app service plan.
  • Resource group: Create a new resource group or select an existing one.
  • Operating System: Choose the operating system that you want to use for the app service plan.
  • Location: Choose the location where you want to host the app service plan.
  1. Under "Size and scale", select "Custom".

  2. Under "Instance size", select the instance size that you want to use for your app service plan.

  3. Under "Instance count", select "1" for the instance count.

  4. Under "High availability", select "On" for the "Configure load balancing" option.

  5. Under "Sticky sessions", select "On".

  6. Click on the "Apply" button to save the settings.

  7. In the "Create Function App" page, click on the "Review + create" button.

  8. Review the settings and click on the "Create" button to create the function app.

Note: To minimize the Azure-related costs of the App Service plan, you can choose a lower instance size or reduce the instance count. However, these decisions should be made based on your specific requirements and workload.