Please enable JavaScript.
Coggle requires JavaScript to display documents.
Azure Architect Exam (Design Application storage and data access…
Azure Architect Exam
Design Application storage and data access strategy(5-10%)
Table storage
its massively no sql storage system used to store structured/non relational data
each row has partition key and row for index search
Odata protocol can be used to access data
its schema less and can easily adapt any data that application evolves into
user data for web applications,address books,device information and any number of entity data can be stored in table.
An storage account can hold multiple number of tables as per the plan
Advantages
It can store upto TB of structured data capable of web scale application
storing datasets that dont require complex joins,foreign keys,stored procs
quickly querying data using clustered index
accessing data using ODATA protocol and linq queries with wcf data service .net library
Azure Local Storage
Its a temporary file system storage area
this data is per instance(web/worker role instance).the storage disappears as instance dies
advantage of local storage is faster than any other storage
local storage resides in same vm. so very low latency
max size of local storage is 20gb
code to write
configuration code
<webrole name="localstorageweb">
<localresources>
<localstorage name="lessonstorage" sizeinmb="20mb">
<localresources>
Code in c#
LocalResource myStorage = RoleEnvironment.GetLocalResource("lessonStorage");
string filePath = Path.Combine(myStorage.RootPath, "Lesson.txt");
File.WriteAllText(filePath, "First Lesson");
Azure Import/Export
use the WAImportExport tool and generate journal file/s
attach the journal file into import job
ship the drive to microsoft data center using usps/ups/fedex
Architect an Azure computing Infrastructure(10-15%)
Hybrid solutions with virtual network
1.Three ways one premise services connected to virtual network site to site,point to site,express route
Site To site
Establishing secured connection between site office and cloud
Dynamic gateway required when using point/site to site vpn
Brings VMs in cloud into local server network
These vms can be added to local domain,security policies can be applied
bandwidth of <1gbps and supports IPSecure protocol
supports policy based (static routing) and route based(dynamic vpn routing)
used in active-active or active-passive connection resiliency
used mostly for dev/test/lab scenarios and for smal scale production workloads
Point to site
Connect local computer to azure virtual network
Windows vpn can be used to connect into any VM
It can be connected anywhere using secure socket tunneling protocol(SSTP)
SSTP helps in establishing connection through firewalls and network address transalation.
its helpful for small workforce and helps in troubleshooting,monitoring and testing
Typically <100mbps aggregate and supports SSTP protocol
support route based(dynamic routing) and used mostly for prototyping scenario
Express Route
Provides three types of services
1.1. Private peering-used in virtual networks including all virtual machines and cloud services
1.2.Public peering-used mostly for Power Bi and dynamics 365
1.3. Microsoft peering- used for office 365 and dynamics 365 customer engagement applciations
Provides 10mbps to 10gbps bandwidth f speed
provides BGP routing and used mostly for azure services,enterprise class and mission critical workloads,backups,big data and azure as DR site
Azure Traffic Manager
traffic manager uses DNS to redirect client request to most appropriate end point
Traffic manager provides high availability of application by monitoring endpoints and provides automatic failover incase endpoint goes down
User access the service by domain name provided by traffic manager
Traffic manager improves application responsivemenss by directing traffic to endpoint having lower network latency
Traffic manager reroutes the traffic when maintenance happens at certain endpoint
traffic manager supports external,non azure endpoints by enabling it to be used with hybrid cloud and on premise deployments
Traffic manager pick up end point dpending on policy,availability & performance
Traffic manager functions during DNS resolution stage
Design Advanced Application(20-25%)
Azure service Bus
Its a multi tenant cloud service and that means service is shared by multiple users
each user(app developer) creates namespace and defines communication between namespaces
each namespace can use one or more instances of three different communciation mechanisim
3.1. Queues-allows one directional communication.it acts as broker and stores (sent messages) until received by recipient.Each message received by single recepient
3.2. Topics-provides one dimensional communication using subscription.A single topic can have multiple subscriptions.
3.3. Relays-Provides bidirectional communication.It doesn't store in flight messages.Its not a broker and passes messages to destination application
Each messages in queue and topics will have key value pair with message payload
4.1. the payload can be binary,text /xml
https://lockmedown.com/be-sure-with-azure-net-azure-service-bus-part-1/
Queue
A receiver can read the messages from queue in two different ways
1.1. receiveanddelete-receives message from queue and deletes.sometimes receiver crashes before completing its read and the message got lost
1.2. Peeklock-reads and removes the message from queue.It doesn't delete but it locks the message making it invisible for other receiver to accept
1.2.1. if receiver process the message,it calls it complete and deletes the message
1.2.2. if receiver decides it cant process the message,it will abandon and removes the lock from the message and make it available for other receiver
1.2.3. if receiver neither calls any of these methods as mentioned above within configurable period(default 60 s),it abandons the message and make it available for other receiver
1.3. There is a potential situation for message duplication on using queue
Topics
Only difference in topic compared to queue is it enables each receiving application to creates its own subscription by using filter
This is more of publish subscribe model
Relays
Through relay each application establishes outbound tcp connection with service bus
All communication between these applciation pass through these connections
As connections established from inside datacenter,firewall allows traffic without opening new ports
To use relay, application relies on wcf service.service bus provides wcf bindings that makes it straightforward for windows application to interact with relays
Design Azure web and mobile apps(5-10 %)
web role vs worker role
Web role can be composed of mvc,asp.net view
webrole sends message to queue
worker process accepts message from queue and sends to storage(blob/table)
one web role can connect to multiple worker process
web role and worker role are in distributed architecture connected through azure queue
Design Azure resource manager(5-10%)
Secure Resources(20-25%)
design management,monitoring & business continuity strategy(20-25%)