Azure 70-532 Revision Day 10

Ensure cached values(up to 26GB) are backup every hour

  1. Create storage account.
  2. Create Premium Tier Redis Cache. – support data persistence
  3. Choose P3 size. – cache up to 26GB
  4. Enable RDB Backup and configure backup frequency of 60 minutes.
  5. Choose storage account provide the correct key.

Create distributed cache cluster with 6 primary/replica cache pairs and 2 CPU cores in each node

Premium $sku – only Premium tier Redis caches support clustering.

P1 $size – P1 is the only Premium tier size with 2 CPU cores for each node.

6 $sharedCount – each shard consists of a primary/replica cache pair.

Web app configuration to sign in Azure AD B2C directory using Facebook

Domain Name: B2C Tenant Directoryunique domain within where B2C tenant directory is available. Application must connect to this domain to authenticate users and it is configured as a property of the tenant directory itself.

Reply URLS to which tokens are returned: Application Registrationthe reply URLs are location where B2C directory sends authentication tokens. Because these locations are different for each web app, they must be configured as part of application registration.

Facebook Identity Provider: Authentication Policiesidentity provider enables B2C directory to send authentication requests to external provider such as Facebook.

Service Fabric service do not run IIS at all

To provide HTML front-end user interface, move to a web framework that can be self-hosting such as ASP.NET Core 1 MVC.

Set maximum size of database to at least 300Gb

Raise service tier to Premium

Process messages in CloudQueue by using Azore Storage Client for .NET

GetMessagesprocess multiple messages because it allows specify number of messages retrieve in one call.

PeekMessages – temporary view, but not process it.

BeginPeek Messages – temporary view in asynchronous, but not process it.

BeginListQueuesSegemented – initiates asynchronous operation to return segment containing collection of queues.

Register object as a trigger. A trigger can execute before new item is created in database and modify it.

  1. Add triggerType and triggerOperation properties to object.
  2. Call client.createTriggerAsync() to register function as a trigger.
  3. Specify object whenever call the client.createDocumentAsync()

Azure 70-532 Revision Day 8

Error 503: Exceed queue limit number of transaction

Partition the messages between  multiple queues.

Premium tier Redis caches support deployment within a VNet

Must deployed as the only resources in a separate subnet.

Access Azure tables directly using the following format with OData protocol

http://<storage account><table>

Ensure lead from Service Bus queue is processed no more than once

Call Complete() or CompleteAsync() when worker process finished processing a lead.

When create a MessageReceiver, the default mode is PeekLock mode. In this mode, when a message is retrieved for processing from the queue, it remains in the queue but locked. When MessageReceiver finishes processing, it should call Complete() or CompleteAnsyc() so that message is removed from queue.

This is a robust approach – if MessageReceiver fails, message remains in the queue and the lock will expire by default after 1 minute. The message will be processed by another MessageReceiver or when the failed receiver restarts.

Set MessageReceiver receive mode to ReceiveAndDelete

Messages are deleted from the queue as soon they have been retrieved by MessageReceiver.

This is not robust – if MessageReceiver fails, messages can be lost and never processed.

RESTful query that retrieve number of throttled request each hour{subscription ID}/services/servicebus/Namespaces/NS1/Queues/QueueOne/Metrics/SVRBSY/Rollups/PT1H

  • SVRBSYreturn number of requests that were throttled because the server was busy.
  • Rollupsduration over which metric should be aggregated.
  • PT1H – specifies data should be summarized for each hour.

Standard tier service bus namespace – supports publish/subscribe feature

Could store file in blob storage and configure a shared access signature to allow subscribers access actual file. The message would contain URL to the blob.

Verify ID token was acquired by user after completing Azure AD B2C sign in policy.

Check Authentication Content Class Reference (acr) claim. – Azure AD B2C use this claim to record the name of the policy the user completed to acquire the token.


Azure 70-532 Revision Day 3

Analyze SQL Server Profile trace file for compatibility issues before migration SQL Server to Azure SQL Database

SQL Database Migration Wizard, check using SQL Server Profile trace or a Transact-SQL script file. It also migrates schema and bulk copy of data.

Optimize performance by caching web page data

Standard tier Azure Redis Cache, includes primary cache and secondary cache, SLA 99.9%. Can use ASP.NET Output Cache Provider to easily implement output caching in web app.

ASP.NT Session State Provider allows Azure Redis Cache store session state data.

Content Delivery Network (CDN) end point

CDN end point allow uploaded blobs to be accessed from a server in the closest geographic region to the user requesting the data.

Create persistent mounted file share on Windows VM

  1. Store credentials using cmdkey command with /add option.
  2. /user: storage account name
  3. /pass: storage key
  4. Call net use to create mounted share and associate with drive letter.

Add caching for cloud service

  1. Use the Dedicated Cache Capacity to determine cache requirements. Dedicated Cache Capacity Planner Excel spreadsheet to determine instance size, count and configuration settings.
  2. Add Cache Worker Role to Cloud Service Project. Cache Worker role is preconfigured for dedicated cache cluster setting.
  3. Set the Instance count property and VM Size property. In the configuration tab, these are the values derived from the Dedicated Cache Capacity Planner spreadsheet.
  4. Check the box for High Availability for default cache and set Expiration Type to Sliding Window. Sliding Window support objects stored in cache will not expire until 10 minutes last accessed.

Implement web endpoint monitoring

  1. Configure endpoint monitoring for VM to monitor from several test locations.
  2. Enable the Response Time endpoint monitoring metric for each test location.
  3. Configure an Alert for each Response Time endpoint monitoring metric.
  4. Define conditions for each Alert to send emails.

Creating endpoint from Azure Management Portal

  1. Protocol – TCP or UDP
  2. Private portconnection port for inbound connections within Azure
  3. Public portconnection port for connections originating outside of Azure