Exam Prep Questions - Implement Web Apps Flashcards
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?
- Upload the matching certificate for each website.
- For each website, under SSL bindings for each website, choose the matching hostname, matching certificate, and an SSL type of SNI SSL.
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?
- For each website, go to Diagnostics Logs, turn on Application Logging, and click Save
- For each website you want to view, go to Tools and choose Log Stream
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?
Under Tools, Alerts, create a Metric alert and configure the desired values. Check the box to Email owners, contributors, and readers.
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?
Create a new web hosting plan at the Standard B2 level and move www.metroil.com to that plan.
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?
- Use an FTP client and log in using FTP deployment credentials
- Use the Powershell cmdlet Save-AzureWebsiteLog
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?
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.
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?
On the Settings blade, choose to Scale Up, and choose S3 Standard
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?
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.
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?
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.
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?
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.
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?
Go to Application Settings under the blade for your web app. Choose Set deployment credentials and enter a new username and password
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?
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.
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?
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.
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?
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
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?
- Compress the Powershell script into a zipped file.
- Click on Settings.
- Click the Webjobs tab.
- Choose Add Job and give the job a name.
- Under “How to Run” , choose Continuous.
- Browse to the zipped file, and click Create.