Exam Prep Questions - Implement Web Apps Flashcards

1
Q

Verigon Corporation (Verigon.com) is moving several websites to Azure web apps. Each website is a separate division of the company with its own domain name and its own public SSL certificate, such as www.metroil.com, a subcorporation of Verigon. These domains will all share the same IP address in Azure.

What steps will be included in the migration to Azure?

A
  1. Upload the matching certificate for each website.
  2. For each website, under SSL bindings for each website, choose the matching hostname, matching certificate, and an SSL type of SNI SSL.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Metroil, Inc. has expanded its Azure web presence to several web apps. As the manager of these sites, you want to trace events in real-time from the Azure portal. The developers have included traces in the code, and now you want to see these events as they stream.

What additional steps should you take?

A
  1. For each website, go to Diagnostics Logs, turn on Application Logging, and click Save
  2. For each website you want to view, go to Tools and choose Log Stream
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

As the Azure web manager/owner for Dreamsuites, you want to take advantage of the monitoring capabilities that are available in the Azure website portal. You would like to be automatically notified via email when more than two HTTP server errors occur within a five-minute period.

How can you configure this in the portal?

A

Under Tools, Alerts, create a Metric alert and configure the desired values. Check the box to Email owners, contributors, and readers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

As a budget-minded Azure administrator for Metroil, you have managed to keep website costs down by keeping the web apps in a web service plan on the Basic B2 pricing tier. The company’s public internet site, www.metroil.com, has significantly increased in traffic in the past few weeks. You have reached your maximum number of instances and you need more instances, for both the www.metroil.com and anticipated growth of some of the other web apps.

How can you meet your future needs with the lowest cost?

A

Create a new web hosting plan at the Standard B2 level and move www.metroil.com to that plan.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

As the Azure web manager/owner for Dreamsuites, you want to take advantage of the monitoring capabilities that are available in the Azure website portal. You have configured the logging of several server metrics.

How can you download these logs for further analysis?

A
  1. Use an FTP client and log in using FTP deployment credentials
  2. Use the Powershell cmdlet Save-AzureWebsiteLog
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

As the Azure administrator of the Metroil website, you want to be sure your new web presence can handle any intermittent traffic increases. You have chosen the Premium pricing tier. You want additional instances of the web app to be automatically scaled up or down based on the CPU percentage average value. There should be a total limit of 3 possible instances.

What is the best way to automate this behavior?

A

Under the Scale Out setting, choose to Scale by CPU percentage, then set the instance slider to 3, and choose your instances and target range.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

The Verigon company website has been successfully migrated to Azure. Verigon wants to keep a tight budget on Azure spending when possible. Auto-scaling up to seven instances has been sufficient to meet the company needs so far. However, careful analysis of the usage statistics, SQL performance, and a few other metrics has not been satisfactory. You have decided that switching to four cores for each instance will alleviate the bottleneck.

What change should you make using the Azure portal?

A

On the Settings blade, choose to Scale Up, and choose S3 Standard

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

The Nutex Corporation, a US company, has just acquired another company in Canada. With expansion in mind, you have moved their on-premises intranet website to Azure as www.nutex.com so that employees worldwide can easily access information from any browser that has Internet access. You have chosen the Basic pricing tier and created a standalone certificate authority (CA) on a Windows 2012 R2 server in the main office.

Because HR information is included in the intranet site, you want to encrypt communications between the employees’ web browsers and the server. All employees from both companies are members of a single AD forest.

What steps will be included in the process?

A

You will need to obtain a certificate from a recognized certificate authority for nutex.com. You can create a website in the Free tier of Azure with SSL already enabled. The disadvantage of using the free SSL implementation is that you must use the .azurewebsites.net address. If you use a custom domain and the automatic implementation of SSL, users that connect to your website maybe asked for a password over SSL and then appear to a site with a different name because the *.azurewebsites.net is in the Microsoft Internal Corporate root.

You should configure a custom domain name in the Azure app service. The existing domain of nutex.azurewebsites.net is automatically enabled for SSL via a wildcard.

You will need to switch to the Premium pricing tier. For a custom domain to have HTTPs you must be using the Standard pricing tier or the Premium pricing tier. You cannot have the Basic tier to enable https for a custom domain.

You need to upload your certificate to Azure using IIS Manager, OpenSSL, or another utility. The certificate file is typically a .pfx certificate. You will then need to configure SSL in the web app via the SSL binding section. You can use either Server Name Indication (SNI)-based or IP-based SSL. SNI-based SSL allows multiple domains to share the same IP address. Separate security certificates are used for each domain. IP-based SSL is the traditional method of associating SSL certificates with a web server. IP-based SSL has a single certificate with a domain name that is mapped by an external IP address of the server to the domain name.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

As the Azure admin for the Nutex Corporation, you want to obtain diagnostic data for the NutexWeb website that is now published and running in Azure. Performance is lagging, and you suspect there are issues with the file system on the web server.

You have loaded the Powershell Azure module. You run Save-AzureWebsitelog -name nutexweb -output c:\diagnose.zip from the PowerShell prompt. The resulting zipped file is sparse and has no diagnostic information.

What must be done to get better diagnostics?

A

You should select FileSystem under Web server logging, then chose Save. The scenario indicates that log files are being downloaded, but do not contain the desired information. This is because logging has not been turned on. After logging is enabled, Web server logs can be read with the LogParser tool, which is available as a download from Microsoft. In addition to logging the server FileSystem, you can also track the server storage, or log individual applications.

Once your desired logging is enabled, you should run the Powershell cmdlet string Save-AzureWebsitelog -name nutexweb -output c:\diagnose2.zip, where the value of the -output parameter is the location where you want to save the log files.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

As the Azure manager for Verigon Corporation, your implementation of the new company web app has been more successful than expected. You are only using the Basic subscription plan, and have only been running this plan for a month. However, when you look at the server metrics you discover that at times the CPU percentages are running above 85%. This high resource utilization is happening more frequently each week. You want to take advantage of Azure’s auto-scaling capabilities. Specifically, you want Azure to add another Web App instance if the CPU percentage is greater than 80% on average for 10 minutes. You configure this setting, then realize that you would also like the additional instance to be removed if demand drops to less than 50% on average in a half hour.

What steps would be included in this process?

A

You will need to change to the Standard subscription tier. Auto-scaling is only offered in the Standard and Premium pricing tiers. Changing to Premium would work as well, but it is not offered as an option in this scenario.

You will need to choose to scale out using Scale by Schedule and Performance Rules and configure add a rule to add an instance if CPU% is greater than 80% for 10 minutes. Next, you will need to choose to scale out using Scale by Schedule and Performance Rules and configure add a rule to remove an instance if CPU% is less than 50% for 30 minutes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Dreamsuites, Inc. plans to move its small existing on-premises website to an Azure web app. Dreamsuites will be able to host its website in Azure without maintaining its own virtual machines. The existing on-premises website is written with the PHP framework and stores data in an SQL database. As the web administrator, you plan to use FTP to manually transfer files.

You have installed the Azure Powershell module and successfully created the website using the New-AzureWebsite Powershell cmdlet. However, you find you cannot transfer files with your FTP client. You are successfully logged in to the Azure portal.

What step should you perform?

A

Go to Application Settings under the blade for your web app. Choose Set deployment credentials and enter a new username and password

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

As the web administrator for Wonderweb.com, you have successfully migrated your website to Azure. You want to use Powershell to manage your Azure website. You have downloaded the Powershell cmdlets for Azure and imported the module.

What is the next step?

A

You will need to run the Get-AzurePublishSettingsFile cmdlet. This will store your information and secure credentials in a local file. This is a prerequisite step before you run the next cmdlet, which would be the Import-AzurePublishSettings cmdlet.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

You are the new Azure administrator for Dreamsuites, Inc. To make it easy for your developers to experiment with Azure, you want them to deploy and publish your websites to Azure using Visual Studio. You have created your web app. How can you automatically obtain the connection strings and other settings?

A

You should open the Web App blade in the Azure portal and choose Get Publish Profile. This pre-configured XML file has the instructions and credentials that Visual Studio will need to deploy to Azure. The developers can import this file into Visual Studio. Note that the deployment processes doesn’t actually provision the Azure resources.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

You are a web developer for the Nutex Corporation. You have a production web app called NutexWeb that is current experiencing some problems. The problems began when you swapped the NutexTest deployment slot with the production slot earlier today.

You also have a deployment slot called NutexProduction that was just created using NutexWeb as the configuration source.

How can you roll back the deployment to the state before you had problems?

A

You should swap NutexTest with the production slot. In this scenario, when the swap occurred earlier today, NutexTest became the “last known good” configuration. With Azure, this rollback is virtually seamless.

If you have just two slots, you can also use the new Switch-AzureWebsiteSlot Powershell cmdlet. The following command switches the NutexTest slot with the production slot:
Switch-AzureWebsiteSlot -Name Nutextest

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

You are the web site administrator for Dreamsuites, Inc. You have successfully deployed a website to the Azure platform. Some applications on the website create large unneeded log files that must be purged to keep the site running efficiently. You created a Powershell script to perform this task.

You log in to the Azure portal and select the Dreamsuites web app. What steps should you complete so that the log files are purged automatically?

A
  1. Compress the Powershell script into a zipped file.
  2. Click on Settings.
  3. Click the Webjobs tab.
  4. Choose Add Job and give the job a name.
  5. Under “How to Run” , choose Continuous.
  6. Browse to the zipped file, and click Create.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Dreamsuites, Inc. has expanded its online presence. Dreamsuites uses the Standard S3 pricing tier, which meets the specific needs of the Dreamsuites websites, including auto-scaling and daily backup. Dreamsuites has expanded the QA Department to meet busines demand. The web apps that the QA Department has requested for testing would become S3 instances. The QA team does not need the additional options of the Standard tier. They only require the current CPU and RAM hardware resources. Another pricing plan would be sufficient and much less expensive.

As the Azure administrator, how can you allocate these resources more effectively by choosing a more optimal pricing plan?

A

Your first step should be to open the Azure Portal and create a new web app named QA Web App. Next, you should go to the Web App blade and choose to create a new App Service Plan called QAplan. You cannot create an empty App Service Plan in the portal, but you can create a new App Service Plan as you create your first web app to go in the plan. App Service Plans were formerly known as Web Hosting plans. Each App Service plan has its own set of instances, and you get greater control over resource allocation. This separation of plans might also be useful for different projects or divisions within a corporation.

You would need to choose the B3 pricing tier. The Basic tier has lower costs due to less options, but the “3” size still meets the CPU and RAM hardware requirements.

You would create any future QA web apps in the QAplan service plan, so that they could run on “cheaper” instances.

17
Q

What DNS settings need to be configured for a custom (vanity) domain if leveraging Azure Web Apps?

A

The DNS records you add with your domain registrar can be either an A record or CNAME record. An A record resolves a domain to a specific IP address.

If you use an A record, then Azure requires that you first add a CNAME record to verify that you own the domain. This CNAME must be formatted as awverify..com and map to awverify..azurewebsites.net.

18
Q

What are the 3 Load balancing methods for Azure Traffic Manager?

A
  1. Performance - User routed to the closest data center deployed to.
  2. Round Robin - Distribute the load across multiple deployments
  3. Failover - Primary and Secondary deployments