• No results found

Thought experiment Conigure an In-Role Cache

In document Oops, page not found. (Page 197-200)

I

n this thought experiment, apply what you’ve learned about this objective. You can ind answers to these questions in the “Answers” section at the end of this chapter.

You are the IT Administrator for Contoso and responsible for managing Cloud Ser-vices. One of the Cloud Services you manage is a dedicated cache that other Cloud Services use. The development team is updating one of the Cloud Services that uses the cache, and the update requires a new named cache be added to support the change.

Items stored in the cache must exist for 20 minutes before they expire. If a request is made for an item in the cache, then it should not expire until 20 minutes after the last time it was accessed. Notiications for the cache should be disabled.

1. What additional information do you need to be able to conigure the cache?

2. What settings will you use to conigure the cache?

3. How will this impact the capacity of the cache?

Objective summary

Operating system settings enable you to conigure the operating system family and the operation system version for a cloud service. Operating system settings apply to all roles in a cloud service and cannot be conigured uniquely for each role.

The operating system family can be set in the cloud service coniguration (.cscfg) ile using the osFamily property of the <ServiceConiguration> element.

The operating system version can be set in the cloud service coniguration (.cscfg) ile using the osVersion property of the <ServiceConiguration> element.

Remote desktop can be enabled for all roles in a cloud service or for individual roles.

To conigure remote desktop access, you need to provide a certiicate and credentials that will be used to connect to the virtual machine. You can retrieve the remote desktop (.RDP) ile for a virtual machine role instance using the Get-AzureRemoteDesktopFile

178 CHAPTER 3 Implement Cloud Services

PowerShell cmdlet. You can also retrieve it from the management portal by clicking the Connect button for a role that has remote desktop access enabled.

In-Role Cache can be conigured as either a located or dedicated topology. A co-located cache is hosted using the same resources of the virtual machine that is hosting the web role or worker role in the cloud service. A dedicated cache is hosted using the dedicated worker role instances. The full resources of the virtual machine instances are used for the cache.

Network trafic rules can be added to the cloud service deinition ile to control how roles communicate with one another using their internal endpoint conigurations.

Blocking access to a web role requires updating the <ipSecurity> section of the Applicationhost.conig ile on the virtual machine instance the web role runs on.

This can be accomplished using a startup task and updating the Web.conig of the web role to apply the coniguration at the time the virtual machine is provisioned.

Objective review

Answer the following questions to test your knowledge of the information in this objective.

You can ind the answers to these questions and explanations of why each answer choice is correct or incorrect in the “Answers” section at the end of this chapter.

1. Which are valid in-role caching topologies for a cloud service? (Choose all that apply).

A. Managed Cache B. Co-located cache C. Redis Cache D. Dedicated cache

2. You need to conigure a cloud service to use a speciic version of the Windows Server 2012 R2 operating system. Which setting in the cloud service coniguration (.cscfg) ile will you use?

A. osFamily

B. <ConigurationSettings>

C. osVersion D. <Instances>

3. You have been asked to conigure Remote Desktop (RDP) access for a cloud service.

Which Azure PowerShell cmdlet will you use to conigure RDP access?

A. New-AzureServiceRemoteDesktopExtensionConig B. Set-AzureServiceRemoteDesktopExtension

C. Get-AzureRemoteDesktopFile

D. Enable-AzureServiceProjectRemoteDesktop

Objective 3.1: Conigure Cloud Services and roles CHAPTER 3 179 4. You need to upload a certiicate for SSL to an existing cloud service deployment.

Which Azure PowerShell cmdlet should you use?

A. Add-AzureCertiicate B. New-AzureCertiicateSetting C. Set-AzureDeployment D. Get-AzureCertiicate

5. You need to reserve an IP address for a cloud service. Which three tasks are necessary in this to accomplish this task?

A. Use the New-AzureReservedIP PowerShell cmdlet to reserve an IP address in a speciied region and assign a name to reference the reserved IP address.

B. Add the <NetworkConiguration> to the cloud service coniguration ile identify-ing the reserved IP address by name.

C. Delete any existing cloud service deployments.

D. Re-deploy the cloud service with the updated service coniguration ile to the same region the reserved IP address was reserved in.

6. To conigure network trafic rules between role instances of a cloud service, which XML element must you use to deine the rules in the cloud service deinition ile?

A. <ServiceDeinition>

B. <NetworkTraficRules>

C. <InternalEndpoint>

D. <InputEndpoint>

7. You need to provide coniguration to store image iles in a local storage resource for a web role. Which XML element will you use to deine the local resource properties?

A. <LocalStorage>

B. <LocalResources>

C. <WebRole>

D. <Destinations>

8. You need to recommend an instance size for a worker role that requires at least 3 cores, 48 GB of memory, and local resource storage capacity of 500 GB. Which in-stance size would meet these requirements and be the most cost effective?

A. Large B. ExtraLarge C. Standard_D13 D. A7

180 CHAPTER 3 Implement Cloud Services

Objective 3.2: Deploy and manage Cloud Services

Deploying a cloud service to Microsoft Azure involves uploading the cloud service package (.cspkg) and the cloud service coniguration (.cscfg) iles to the staging or production slot of a cloud service. Although much of the coniguration for a cloud service is done during the packaging of the service, there are still several deployment options and environment settings that you should consider.

This objective covers how to:

Package a cloud service

Deploy a cloud service

Perform a VIP swap

Update a cloud service deployment

Scale a cloud service

Create a service bus namespace

In document Oops, page not found. (Page 197-200)