Download YouTube videos at cutyt.com. Free and Fast.

Home / Microsoft / AZ-300 / Question 15

Prev Question
Next Question

Question 15

You are the IT administrator for an automobile dealership on the west coast of the United States. The dealership wants to take advantage of Microsoft Azure by first moving its website to the cloud. The dealership wants to use the lowest cost solution possible.

Business Requirements

One of the problems the dealership has been facing is website downtime. The dealership typically provides maintenance every Sunday and Wednesday at 2:00 A.M. Eastern Time. However, because the dealership wants to attract customers all over the world, it wants to ensure that the website is always available. During peak seasons, the dealership notices that the website responds slower. The dealership wants this bottleneck eliminated.

Technical Requirements

The website is currently hosted at the dealership's domain registrar. The dealership wants move the site to Azure on Windows Server virtual machines (VMs). Users must be able to use the same domain name to reach the website. The website must be hosted in only one Azure region. The VMs must use a four-gigabyte (GB) solid state drive (SSD). The dealership expects there be less hands-on maintenance and administration once the infrastructure is moved to Azure.

You need to create the VM and assign it to the availability set named WebSiteAvailabilitySet.

Which commands should you use? Select correct placeholder values.

$set = Get-AzureRmAvailabilitySet -ResourceGroupName WebSiteResoureGroup -Name WebSiteAvailabilitySet


-VMName "DealershipWebServer" -VMSize "PLACEHOLDER 2" -AvailabilitySetId


"PLACEHOLDER 4" -ResourceGroupName WebSiteResourceGroup






You should use the following commands:

$set = Get-AzureRmAvailabilitySet

-ResourceGroupName WebSiteResoureGroup

-Name WebSiteAvailabilitySet

$vm = New-AzureRmVMConfig

-VMName "DealershipWebServer"

-VMSize "Standard_B1s"

-AvailabilitySetId $set.Id

New-AzureRmVM -ResourceGroupName WebSiteResourceGroup

-Location "westus" -VM $vm

The first command uses Get-AzureRmAvailabilitySet to retrieve the availability set named WebSiteAvailabilitySet and store it in a variable named $set.

The second command uses New-AzureRmVMConfig to create a VM configuration that sets the VM name to DealershipWebServer and the size to a B-series size named Standard_B1s. This is a Standard offering with a 4-GB SSD. This command also places the VM in the availability set retrieved by the first command. It stores the result in a variable named $vm.

The third command uses New-AzureRmVM to actually create the VM. It uses the configuration stored in the $vm variable to create the VM, and it places the VM in the West United States region.

You should not call New-AzureRmVM before New-AzureRmVMConfig. New-AzureRmVMConfig allows you to create the VM configuration, while New-AzureRmVM uses that configuration to create the VM.

You should not specify 4 GiB as the value for the -VMSize parameter. The value must be in the form <Offering>_<VM Size>.

You should not specify $set or WebSiteAvailabilitySet as the value of the -AvailabilitySetId parameter. The value must be the ID of an availability set.

You should not call New-AzureRmVM without specifying a value for the -VM parameter. Otherwise an empty VM is created.

You should not call New-AzureRmVMConfig last. This command is used to create a VM configuration, not to create the actual VM.



Load more
Prev Question
Next Question

Download YouTube videos at cutyt.com. Free and Fast.