Question No: 121

You develop a set of Power Shell scripts that will run when you deploy new virtual machines (VMs).

You need to ensure that the scripts are executed on new VMs. You want to achieve this goal by using the least amount of administrative effort.

What should you do?

Create a new GPO to execute the scripts as a logon script.

Create a SetupComplete.cmd batch file to call the scripts after the VM starts.

Create a new virtual hard disk (VHD) that contains the scripts.

Load the scripts to a common file share accessible by the VMs.

Set the VMs to execute a custom script extension.

Answer: E Explanation:

After you deploy a Virtual Machine you typically need to make some changes before it’s ready to use. This is something you can do manually or you could use Remote PowerShell to automate the configuration of your VM after deployment for example.

But now there’s a third alternative available allowing you customize your VM: the CustomScriptextension.

This CustomScript extension is executed by the VM Agent and it’s very straightforward: you specify which files it needs to download from your storage account and which file it needs to execute. You can even specify arguments that need to be passed to the script. The only requirement is that you execute a .ps1 file.

Question No: 122 DRAG DROP

You manage an Azure Web App.

You need to move the Web App to a new App Service plan.

How should you complete the Azure PowerShell script? To answer, drag the appropriate Azure PowerShell cmdlets to the correct locations. Each Azure PowerShell cmdlets may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.

Answer:

Question No: 123

Your company is launching a public website that allows users to stream videos. You upload multiple video files to an Azure storage container.

You need to give anonymous users read access to all of the video files in the storage container.

What should you do?

Edit each blob#39;s metadata and set the access policy to Public Blob.

Edit the container metadata and set the access policy to Public Container.

Move the files into a container sub-directory and set the directory access level toPublic Blob.

Edit the container metadata and set the access policy to Public Blob.

Answer: D Explanation:

By default, the container is private and can be accessed only by the account owner. To allow public read access to the blobs in the container, but not the container properties and metadata, use the quot;Public Blobquot; option. To allow full public read access for the container and blobs, use the quot;Public Containerquot; option.

Question No: 126

You manage a cloud service that has a web application named WebRole1. WebRole1 writes error messages to the Windows Event Log.

Users report receiving an error page with the following message: quot;Event 26 has occurred. Contact your system administrator.quot;

You need to access the WebRole1 event log.

Which three actions should you perform? Each correct answer presents part of the solution.

Enable verbose monitoring.

Update the WebRole1 web.config file.

Update the cloud service definition file and the service configuration file.

Run the Set-AzureVMDiagnosticsExtensionPowerShell cmdlet.

Run the Enable-AzureWebsiteApplicationDiagnostic PowerShell cmdlet.

Create a storage account.

Answer: A,C,F Explanation:

step 1 specify the scheduled TransferLogLevelFilter to Verbose in the diagnostics.wadcfg step 2 Update the cloud service definition file and the service configuration file (.cspkg) step 3 best practice is to create a separate storage account for logging diagnostics data

Question No: 129

Note: This question is part of a series of questions that present the same scenario. Each questions in the series contains a unique solution that might meet the stated goals. Some questions sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review scree.

You create an Ubuntu Linux virtual machine (VM) by using the Azure Portal. You do not specify a password when you create the VM.

You need to connect to the terminal of the VM.

Solution: You connect to the public IP address of the VM by using Secure Shell (SSH) and specify your public key.

The processing tier must support high volume CPU loads at peak times throughout the year.

Dv2-series, a follow-on to the original D-series, features a more powerful CPU. The Dv2- series CPU is about 35% faster than the D-series CPU.

Automatic scaling of virtual machines in a scale set is the creation or deletion of machines in the set as needed to match performance requirements. As the volume of work grows, an application may require additional resources to enable it to effectively perform tasks.