Exam Prep Questions - Implement Virtual Machines Flashcards
You are the Azure administrator for your company. You successfully move the company’s public facing Web site to Azure. Now the developers would like to take advantage of the workloads that are available. They have requested that you make an SQL database available to them through Azure. Which 2 methods can you use?
- Choose a SQL Database from the Azure market
2. Upload an existing VM with SQL installed.
As the new Virtuart, Inc. administrator for Azure, you want to maintain Azure availability while keeping costs as low as possible. Your predecessor created three load-balanced VMs at the D4 Standard size. In the past these VMs were heavily utilized, but much of the workload has been moved elsewhere. Each VM has five data disks, and the current role and usage of these machines does not justify the number of cores and memory that you are paying for. You do not need SSD storage, so even two cores would be sufficient for now. You want to resize them to get the price as low as possible without shutting them down.
You mistakenly attempted to move a VM to the A2 standard size using the Set-AzureVMSize cmdlet. You get the error “Failed to configure virtual machine.”
How can you configure these existing VMs to reduce costs?
You would use the Azure portal to move the VM to the A3 Standard size. This will give you the lowest possible cost that can still handle five data disks and load balancing.
Although not offered as a response in this scenario, you could have also used the Set-AzureVMSize cmdlet. The following example updates a virtual machine named VirtuArtVM5 to the Standard_A3\Large size:
Get-AzureVM -ServiceName “VirtuArtSvc1” -Name “VirtuArtVM5” | Set-AzureVMSize “Large” | Update-AzureVM
The reason that the Powershell attempt failed in the scenario was that the D2 size only supports up to four data disks. The number of disks stays the same between pricing tiers that end in the same number. Therefore, all pricing tier sizes ending in three can have up to four data disks (Basic A3, Standard A3, Standard D3, etc.).
As the Metroil, Inc admin for Azure, you have successfully configured several VMs. Everything was working successfully until today, when one of your on-premise applications stopped receiving data from one of the Azure VMs. The VM is running and passes your diagnostic test. Your on-premise firewall only allows traffic from specific IP addresses. You suspect that the IP addresses changed when you stopped all of the VMs for a maintenance period.
You want to prevent this address from changing in the future so that you can configure the firewall. What are the Steps?
You will run the Powershell New-AzureReservedIP cmdlet. This will create an IP address that will stay associated with your VM or your cloud service role, even if all of the VMs are shutdown. If a VM is in a Stopped or Deallocated state, its current IP address will be deleted if the address is dynamic.
Add the IP address to the existing VM with the Set-AzureReservedIPAssociation cmdlet.
After creating a reserved IP address and adding it to the target VM, you will need to run the Powershell Get-AzureReservedIP cmdlet. This cmdlet will display the new reserved IP address so you can add it to a firewall rule.
Once you have reserved this IP address, it will stay with your subscription until you remove it with the Remove-AzureReservedIP cmdlet.
You are the Azure administrator for Nutex, Inc. You are concerned with keeping costs down, but the company is even more concerned with storing a large number of customer records on your VHD images. Nutex wants a contingency plan in case a natural disaster disrupts the region that currently holds your Azure VMs, which is the EastUS region.
You need to ensure that you can view all of the stored customer data even if a regional disaster happens. What steps would you take to meet this goal?
You would need to create an Azure storage account with Read-Access Geographically Redundant Storage (RA-GRS) as your data redundancy option.
This will provide Nutex with six copies of the data, with three copies stored in each region. This is the most expensive option, but is the only choice that meets the needs of the scenario. You would configure page blob storage to hold the VHDs.
As the Azure administrator for Nutex, you have created a website and several Windows Server virtual machines in Azure. Nutex currently only uses the Microsoft operating systems. However, an internal project team has come to you because they want to create an Apache server that will access company data. The Apache server needs to run on Linux OS because certain required features will not work on Windows.
Which steps should you take to create this Linux VM and securely access it?
You will choose Virtual Machines from the main blade, then select a Linux OS such as Ubuntu. Note that you could also have chosen an image with Apache on Ubuntu from the VM Depot in the Marketplace, although that option was not offered in this scenario.
You will want to generate an OpenSSH public key. You can create this with a tool such as ssh-keygen on Linux, or PuTTYGen for Windows. (As Nutex is currently an all-Windows shop it is unlikely that they already have one, as Microsoft does not currently have an SSH server. Note that at the time of this writing, the Powershell team has announced that they will eventually be supporting SSH.
You will provide the SSH public key on the Basics blade. Password authentication is the other option for this field.
Next, you will configure the Linux server name and user name on the Basics blade. After entering the server name, you will choose the subscription, resource group, and location. There are some additional configuration steps you must take that are not described in this scenario.
On a client machine, connect to the new VM using SSH.
You are the Azure administrator for Dreamsuites. A disruption in server access would be a large financial loss for the company. You know that even Azure can experience hardware failures. You want to take advantage of Azure’s 99.95% service-level agreement (SLA) for your VMs.
What should you do to maximize availability?
Create at least two virtual machines, group them into an availability set, and place them in different fault domains.
You are the new Azure administrator for Metroil, Inc. As you move from an on-premises infrastructure to Azure, you want to ensure that your virtual machine(s) can handle the existing storage workload. You anticipate that total required space for the applications plus the server operating system will be around 50 GB. You know that your minimum data storage needs will be at least 1500 GB. All of the existing VMs are in the Basic tier.
What configuration will satisfy the projected storage needs?
Create a single VM with a single OS disk and two 1-TB data disks.
You are the Azure administrator for Metroil, Inc. Metroil has an Azure IaaS Windows Server 2012 R2 VM called VM1. VM1 has a 100 GB OS disk. There is a 500 GB volume on a data disk containing highly sensitive information that is accessed only by senior management. The company wants to protect this data at rest from any unauthorized access, including Microsoft.
What method could you use that entails the least administrative effort?
Add the BitLocker feature to VM1 and enable it on the data volume.
Virtuart has customized a “classic” Azure Windows Server 2008 R2 VM named Virtuart2008-1 that monitors a piece of industrial machinery used in the company’s production facilities. Virtuart needs you to create an exact VM image of this server, including all customizations such as user names and machine names. You are testing some updates to the monitoring software and would like to use this image as a “snapshot” to return to a known good configuration if something goes wrong.
What steps would be involved in this process?
- Open the classic virtual machine blade in the Azure Portal.
- Click Capture.
- Configure an image name and image label.
- Uncheck the box labelled I’ve run Sysprep on the virtual machine.
As the Azure administrator for Nutex, you are slowly migrating your on-premises Hyper-V environment to Azure. You decide to begin with a local VM called NutexSrv10, which has a 100 GB dynamic virtual OS disk named Disk1.vhdx. There is room for expansion on Disk1 because you recently deleted several GB of files. You want to upload Disk1 to the Azure storage account for use with your VMs there.
What steps are involved in this process?
- Shut down NutexSrv10. This will allow you to run the Convert-VHD cmdlet. You will use the Convert-VHD cmdlet to convert the disk to the VHD format.
- You will use the Add-AzureVHD cmdlet to upload Disk1 to Azure.
- You do not need to use the Convert-VHD cmdlet to . The Add-AzureVHD cmdlet will automatically convert the disk to the Fixed type.
Metroil, Inc. uses custom software to monitor industrial equipment used in its manufacturing facilities nationwide. As the Azure administrator, you have been asked to add this software to multiple Windows Server 2012 R2 virtual machines. The software requires several Windows Server features to be installed as well as a few registry modifications.
You have decided that you can streamline this process by using Powershell’s Desired State Configuration (DSC) capabilities. You have created the DSC configuration script on-premise in Powershell ISE, and are ready to test it on the Azure VM named Monitor1. What are the appropriate steps?
- Save the script with a .ps1 extension.
- Run the Publish-AzureVMDscConfiguration cmdlet and include all necessary parameter values. This cmdlet will pull the script and all necessary DSC resources, zip them, and upload the zipped file to the Azure storage account.
- Apply the DSC to the Monitor1 VM using the Set-AzureVMDscExtension cmdlet. Assuming the script runs as intended, you can use this same cmdlet to apply the script to other VMs as needed.
You are the Azure administrator for Nutex, Inc. You will be creating four identical Azure classic VM web servers for intranet use. Based on your experience with another location, you know that processor usage increases significantly during working hours (8:00 AM to 5:00 PM). You would like Azure to start and stop these VMs automatically based on demand so that you are not paying for excess resources.
What steps should you take?
- Create the four web server classic VMs.
- Add the VMs to an availability set. Adding the VMs to an availability set will allow you to configure autoscaling.
- Configure autoscale to scale by the CPU metric. Your goal is to avoid using resources that you don’t need, so this will allow Azure to start up or shut down the VMs based on processor demand.