<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Nandani Yadav on Medium]]></title>
        <description><![CDATA[Stories by Nandani Yadav on Medium]]></description>
        <link>https://medium.com/@nandani2510?source=rss-2ab1b5bd5e31------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*5yEIi2gPgydK7QiE6ccl8A.jpeg</url>
            <title>Stories by Nandani Yadav on Medium</title>
            <link>https://medium.com/@nandani2510?source=rss-2ab1b5bd5e31------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 00:32:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nandani2510/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[AZ-900 Fundamentals Certification Summary]]></title>
            <link>https://medium.com/@nandani2510/az-900-fundamentals-certification-summary-dda9aa58ed6d?source=rss-2ab1b5bd5e31------2</link>
            <guid isPermaLink="false">https://medium.com/p/dda9aa58ed6d</guid>
            <category><![CDATA[az900]]></category>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[certification]]></category>
            <category><![CDATA[azure]]></category>
            <dc:creator><![CDATA[Nandani Yadav]]></dc:creator>
            <pubDate>Sat, 25 May 2024 21:43:44 GMT</pubDate>
            <atom:updated>2024-05-25T21:43:44.014Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Cloud Computing</strong></h3><p>Cloud Computing is a delivery model for services like storage, computer power, networking, analytics and more services over the internet.</p><blockquote><strong>Cloud Characteristics</strong></blockquote><ol><li>Scalability : Ability to scale, allocating or deallocating resources.</li></ol><p>Vertical Scaling : Increasing the size of RAM or memory storage. Scaling up means when you increase memory, scaling down means when you decrease memory.</p><p>Horizontal Scaling : Increasing the amount of resources. Scaling out means increasing resources and scaling in means decreasing resources.</p><p>2. Elasticity : Ability of system to scale dynamically.</p><p>3. Agility : Ability to allocate and deallocate resources quickly.</p><p>4. Fault Tolerance : Ability of system to remain up and running during component and service failures</p><p>Disaster is serious disruption of services caused naturally</p><p>5. Disaster recovery : Setting up replication and DNS routing, so you’re automatically directed to the working version of the system.</p><p>6. High Availability : uptime / (uptime + downtime) Ability of system to run for long time with little downtime.</p><h3><strong>Principle of economies of scale</strong></h3><p>Key characteristics : Cost per unit (service) lowers as the size of the company grows</p><h3>CapEx vs OpEx</h3><p>Capital Expenditure : Own infrastructure and make the initial big investment.</p><p>Downside :</p><ol><li>Support staff (maintenance required)</li><li>Power and networking</li><li>Hardware failures</li></ol><p>Operational Expenditure : Pay for what you use, rent infrastructure. Minimal maintenance. Cancel servers anytime.</p><h3>Consumption-based model</h3><ol><li>No upfront cost</li><li>No wasted resources</li><li>Pay for additional resources when needed</li><li>Stop paying when not needed</li></ol><p>Multiple pricing components per service and very granular usage measurement.</p><h3>IaaS vs PaaS vs SaaS</h3><p>Infrastructure : Virtualization, servers, networking, storage.</p><p>Platform : Operating System, Middleware, Runtime</p><p>Software : Applications data</p><p>As a service means who will manage what?</p><p><strong>Infrastructure-as-a-service </strong>: If you decide to manage platform and software and outsource infrastructure.</p><p>Use cases : Migration of workloads, test and development, storage, backup and recovery. eg. SQL server installed on a machine</p><p><strong>Platform-as-a-service :</strong> Manage platform and infrastructure, you will only manage applications.</p><p>Use cases : development framework, analytics and BI eg. Azure SQL database</p><p><strong>Software as-a-service :</strong> Ownership of everything outsourced.</p><p>Use cases : Buying shell applications eg. one drive, outlook</p><h3>Cloud Deployment Model</h3><p>Public Cloud : Not owning data center, everything runs on cloud provider hardware, some services share hardware with other customers.</p><p>Private Cloud : Everything own datacenter, self-service should be provided, you maintain the hardware, offer greatest degree of control.</p><p>Hybrid Could : Mix of both private and public, offers greatest degree of flexibility.</p><p><em>Hybrid and Private cloud model allow to build applications with strict security and compliance requirements and run legacy applications with specialized infrastructure.</em></p><h3>Geographies, Regions and Availability Zones</h3><ol><li>Data Center : Physical facility, hosting a group of networked servers, own power, cooling and networking infrastructure.</li><li>Regions : Area on the planet, low-latency networks, location for your services, few services are only available in certain regions and some are global services, special government and partnered regions.</li><li>Availability Zones : Regional feature, grouping of physically separate facilities, to protect from data center failures. If one zone goes down others are working.</li></ol><p><strong>Two service categories:</strong></p><p>Zonal Services : Which availability zone are we deploying to (Virtual machines, disks etc)</p><p>Zone-redundant : SQL, storage, automatically replicate data across AZs</p><p>Not all regions are supported, supported region has three or more zones and a zone is one or more data centers.</p><p>Region Pairs : Each region is paired with another region, each pair region resides within same geography and are static, planned updates, platform-provided replication, data residency.</p><h3>Geographies</h3><p>Discrete market, contains two or more regions, ensure data residency, resiliency and compliance, fault tolerant to protect wide failures, each region belongs only to one geography.</p><h3>Resources, Resource Groups and Resource Manager</h3><ol><li>Resources : Objects used to manage services in azure, represents service lifecycle, all resource can represent as JSON definition. Type, api version, name, location common properties in json.</li><li>Resource Groups : Grouping of logically related resources.</li></ol><p>How to group resources:</p><ol><li>Type : SQL databases</li><li>Lifecycle : app, environment</li><li>Department</li><li>Billing, location or combination</li></ol><p>Each resource must be in one and only one resource group, they have their locations assigned, resources can reside in a different locations, resource can be moved between resource groups, can’t be nested.</p><p>3. Resource Manager : Management Layer for all resources and resource groups, unified language, check all privileges, controls access and resources.</p><h3>Compute Services</h3><p>It’s a category of on-demand services used to run cloud based applications</p><p>Virtualization / Virtual Machines : Emulating a physical machine, separate virtual software on a single machine. Different operating systems, hardware config per machine and it is done by azure virtual machines. IaaS, total control over OS and software. Supports marketplace and custom images. Vertical scaling, high degree of control.</p><p>Virtual Machine scale sets : IaaS, set of identical virtual machines, built-in auto scaling features, designed for manual and auto-scaled workloads like web services, batch processing etc.</p><p>Containers: Less maintenance, sandbox environment for each app. Container runtime. Use host’s OS, emulate OS (Vms emulate hardware), lightweight, less compute and storage requirements, respond quicker to changes, designed for any scenario, no autoscaling.</p><p>Azure Container Instances : Simplest and fastest ways to run a container in Azure, Platform as a service, serverless containers, designed for small web apps, background jobs and scheduled scripts.</p><p>Azure Kubernetes service : same as containers but scalable using load balancer. Open source container orchestration platform, high customizable, min nodes 3, PaaS.</p><p>App service : Low maintenance, PaaS, supports multiple languages and container, designed as enterprise grade web application service, scalable.</p><p>Azure Functions : run small piece of code, export as web services, PaaS, serverless, consumption based, dedicated plan, designed for micro/nano services, scalable, least maintenance, handle unpredictable workload demand.</p><h3>Networking Services</h3><p>Networking services helps in connecting cloud and on-prem resources, protect and monitor services, help with application delivery</p><blockquote>Azure Virtual Network</blockquote><p>Representation of physical network infrastructure of virtual machines, it helps in managing and connecting VMs to resources. It also has subnets which helps in managing IP address allocation and group related resources together, networking filtering and segment.</p><p>If we want to connect multiple virtual network we can use VPN gateway and VNET peering.</p><p>Network Security Groups : Helps in controlling the traffic that reaches your subnet. Subnets can’t be nested.</p><blockquote>VPN gateway</blockquote><p>On-prem to azure traffic over public internet. Cross regional communication of azure private networks.</p><blockquote>Azure Load Balancer</blockquote><p>Distribution of traffic across multiple resources. Helps in scalability and high availability. Supports internal and external traffic and TCP / UDP applications.</p><blockquote>Azure Application Gateway</blockquote><p>It’s also used for distributing traffic. Usually if traffic is http web, we use application gateway instead of load balancer. It has redirection capability, session affinity, URL routing, SSL termination.</p><blockquote>Content Delivery Network</blockquote><p>Deliver web content to users with minimum latency, all the content is place on multiple locations (point of presence).</p><h3>Azure Storage Services</h3><p>Types of data : Structured ( schema based relational db ), semi-structured (no schema, common key properties), unstructured (images, binary files, movies)</p><blockquote>Azure Blob Storage</blockquote><p>A blob (binary large object) is, three storage tiers, designed for storage of files of any kind.</p><p>Hot — frequently accessed data, cool — infrequently accessed data (lower availability, high durability), archive — rarely accessed data.</p><blockquote>Azure Queue Storage</blockquote><p>Storage for small pieces of data, designed for scalable asynchronous processing.</p><blockquote>Azure Table Storage</blockquote><p>Storage for semi-structured data (NoSQL), no need for foreign joins, relationships, strict schema, designed for fast access.</p><p>Many programming interfaces and SDKs</p><blockquote>Azure File Storage</blockquote><p>Similar to blob storage, instead of blob you store files and instead of containers you have share, the difference is the way you access files. In file storage you access by SMB protocol.</p><p>Designed to extend on-premise file shares or implement lift and shift scenarios. Storage for files accessed via shared drive protocols.</p><blockquote>Azure Storage Account</blockquote><p>Group of services include blob storage, queue, table and file storage. Used to store files, messages and semi-structured data. Highly scalable, durable, cheapest per GB storage.</p><blockquote>Azure Disk Storage</blockquote><p>Disk emulation in the cloud, persistent storage for VMs, different sizes, types(SSD, HDD), performance tiers.</p><p>Disk can be unmanaged (blob managed by user) or managed (by Azure)</p><h3>Database Services</h3><blockquote>Azure Cosmos DB</blockquote><p>Globally Distributed NOSQL database service, schema less and multiple APIs (SQL&lt; MongoDB, Cassandra, Gremlin, Table Storage). Designed for highly responsive applications with super low latency responses and multi-regional applications, low latency, multi-master, perfect for serverless.</p><blockquote>Azure SQL database</blockquote><p>Structured data, relational database service (PaaS). Rich Query capabilities, high performance, reliable, full managed and secure database for building applications. Managed instance, SQL Data Warehouse, SQL VM IaaS, Db for MySQL, Db for PostgreSQL</p><h3>Azure Marketplace</h3><p>Azure shop, find first and third-party products. All categories products IaaS, PaaS, SaaS. Part of commercial marketplace.</p><ol><li>Microsoft appsource : Products that they offer azure, power bi, dynamics 365, microsoft 365. It’s for business users</li><li>Azure Marketplace : Azure products for developers and IT users.</li></ol><h3>Azure IOT Services</h3><blockquote>Azure IoT Hub</blockquote><p>Managed service for bi-directional communication, it’s a PaaS which is highly secure, scalable and reliable. Integrates with a lot of Azure Services. Programmable SDKs for popular languages, software for multiple protocols.</p><blockquote>Azure IoT Central</blockquote><p>Application delivery platform. SaaS, use industry specific app templates, no deep technical knowledge required. Service for connecting, management and monitoring IoT devices. Highly scalable, secure and reliable. It’s built on top of IoT Hub and 30+ other services.</p><blockquote>Azure Sphere</blockquote><p>Secure end-2-end IoT solutions. Azure sphere certified chips, Azure sphere OS based on linux and security service trusted device-to-cloud communication. Provides hardware, OS and security.</p><h3>Azure Big Data And Analytics Services</h3><p>Big Data : Velocity, Volume and Variety.</p><blockquote>Azure Synapse Analytics</blockquote><p>Big data analytics platform (PaaS). Multiple components spark, synapse SQL (SQL pools, SQL on-demand), Synapse pipelines (ETL), Studio (unified experience).</p><blockquote>Azure HDInsight</blockquote><p>Flexible multi-purpose big data platform (PaaS), offers multiple technologies (Hadoop, Spark, Kafka, HBase, Hive, Storm, Machine Learning).</p><blockquote>Azure Databricks</blockquote><p>Big data collaboration platform (PaaS), based on spark, unified workspace for notebook, cluster, data, access management and collaboration. Integrates very well with common Azure data services.</p><h3>Azure Artificial Intelligence Services</h3><blockquote>Azure Machine Learning</blockquote><p>Cloud-based platform for creating, managing and publishing machine learning models. PaaS, machine learning workspace (top level resources) and ML studio (web portal for end-2-end development).</p><p>Features:</p><ol><li>Notebooks — using python and R</li><li>Automated ML — run multiple algorithms combinations to choose best model</li><li>Designer — graphical interface for no-code development</li><li>Data and compute — management for storage and compute resources</li><li>Pipelines — orchestrate model training, deployment and management tasks.</li></ol><h3>Azure Serverless Computing Services</h3><p>It is cloud-hosted execution environment that allows customers to run their applications in the cloud while completely abstracting underlying infrastructure.</p><blockquote>Azure Functions</blockquote><p>Serverless coding platform (FaaS), designed for nano-service architectures and even-based applications. Scales up and down very quickly, highly scalable. Supports popular languages and frameworks.</p><blockquote>Azure Logic Apps</blockquote><p>Serverless enterprise integration service (PaaS), 200+ connectors for popular services. Designed for orchestration of business processes, integration workflows for applications, data, systems and services, No-code solution.</p><blockquote>Event Grid</blockquote><p>Fully managed serverless event routing service, uses publish-subscribe model, designed for event-based and near-real time applications. Supports dozen of built-in events from most common Azure services.</p><h3>Azure DevOps Solutions</h3><p>Practice that combine both development and operations. Deliver faster and high quality.</p><blockquote>Azure DevOps</blockquote><p>Collection of services for building solutions using DevOps practices.</p><p>Services included:</p><ol><li>Boards — tracking work</li><li>Pipelines — building CI/CD workflows (build, test and deploy apps)</li><li>Repos — code collaboration and versioning with Git</li><li>Test plans — manual and exploratory testing</li><li>Artifacts — manage project deliverables</li></ol><p>Extensible with marketplace — over 1000 of available apps and evolved from TFS, through VSTS.</p><blockquote>DevTest Labs</blockquote><p>Service sandbox environment for developers/testers (PaaS). Quick setup of self-managed virtual machines, preconfigured templates for VMs, plenty of additional artifacts (tools, apps, custom actions). Lab policies (quotas, sizes, auto-shutdowns), share and automate labs via custom images. Premade plugins/API/tools for CI/CD pipelines automation.</p><h3>Azure Tools</h3><blockquote>Azure Portal</blockquote><p>Public web-based interface for management of Azure platform, designed for self-service, simple tasks, customizable. Not suitable for very big deployment or automation tasks</p><blockquote>Azure PowerShell</blockquote><p>Powershell and module, designed for automation, multi-platform with powershell core.</p><p>Simple to use</p><ol><li>Connect-AzAccount — log into Azure</li><li>Get-AzResourceGroup — list resource groups</li><li>New-AzResourceGroup — create new resource group</li><li>New-AzVm — create virtual machine.</li></ol><blockquote>Azure CLI</blockquote><p>Command line interface for Azure, designed for automation, multi-platform.</p><p>Simple to use:</p><ol><li>az login</li><li>az group list — list resource groups</li><li>az group create — create new resource group</li><li>az vm create — create virtual machine</li></ol><p>Native OS terminal scripting.</p><blockquote>Azure CloudShell</blockquote><p>All the tools will be preinstalled and no need to install anything on local machine. Cloud-based scripting environment, completely free, supports both Azure PowerShell and CLI and additional tools.</p><p>Multiple client interfaces</p><ol><li>Azure Portal integration</li><li>Shell Portal</li><li>Visual Studio Code Extension</li><li>Windows Terminal</li><li>Azure Mobile App</li><li>Microsoft Docs integration</li></ol><h3>Azure Advisor</h3><p>Personalized consultant service. Designed to provide recommendations and best practices for:</p><ol><li>Cost (SKU sizes, idle services, reserved instances, etc.)</li><li>Security (MFA settings, vulnerability settings, agent installations etc.)</li><li>Reliability (redundancy settings, soft delete on blobs, etc)</li><li>Performance (SKU sizes, SDK versions, IO throttling, etc.)</li><li>Operational Excellence (service health, subscription limits, etc.)</li></ol><p>Actionable recommendations and it’s free.</p><h3>Azure Security Groups</h3><blockquote>Network Security Groups</blockquote><p>Imagine having a Virtual network which has multiple subnets for microservices. It will allow all the internet traffic to go and come through these subnets, but if we want to allow only specific traffic to come we use network security groups.</p><p>Designed to filter traffic to (inbound) and from (outbound) Azure resources located in Azure Virtual network. Filtering controlled by rules. Ability to have multiple inbound and outbound rules.</p><p>Rules are created by specifying:</p><ol><li>Source/Destination (IP addresses, service tags, application security groups)</li><li>Protocol (TCP, UDP, any)</li><li>Port (or Port Ranges, 3389 — RDP, 22-SSH, 80 HTTP, 443 HTTPS)</li><li>Direction (inbound or outbound)</li><li>Priority (order of evaluation)</li></ol><blockquote>Application Security Groups</blockquote><p>Feature that allows grouping of virtual machines located in Azure virtual network. Designed to reduce the maintenance effort (assigned ASG instead of explicit IP address)</p><h3>User-defined Routes with Route Tables</h3><p>Custom (user-defined, static) routes (UDRs). Designed to override Azure default routing or add new routes. Managed via Azure Route Table resource. Associated with a zero or more virtual network subnets.</p><h3>Azure Firewall</h3><p>Firewall is a network security service that monitors and controls incoming and outgoing traffic. NSG helps in filtering traffic based on IP and protocol but there are more advance one’s which allow to filter traffic on domain.</p><p>Managed, cloud-based firewall service. Built-in high availability, highly scalable. Inbound and outbound traffic filtering rules. Support for FQDN (Fully qualified domain name) ex. microsoft.com. Full Integrated with Azure monitor for logging and analytics.</p><p>By default all traffic through the firewall is blocked, a rule has to be added in order to enable traffic flow.</p><h3>Azure DDoS Protection</h3><p>DoS — Denial of Service, Cyber-attack with intent to cause temporary or indefinite disruption of service.</p><p>DDoS protection service in Azure. Designed to detect malicious traffic and block it while allowing legitimate users to connect. Prevent additional costs for auto-scaling environments.</p><p>Two tiers:</p><ol><li>Basic — automatically enabled for Azure platform</li><li>Standard — additional mitigation and monitoring capabilities for Azure Virtual Network resources.</li></ol><p>Standard tier uses machine learning to analyze traffic patterns for better accuracy.</p><h3>Azure Identity Services</h3><blockquote>Identity</blockquote><p>Fact of being something or someone. A user with username and password. Also applications or other servers with secret keys or certificates.</p><blockquote>Authentication</blockquote><p>The process of verification /assertion of identity</p><blockquote>Authorization</blockquote><p>The process of ensuring that only authenticated identities get access to the resources for which they have been granted access.</p><blockquote>Access Management</blockquote><p>The process of controlling, verifying, tracking and managing access to authorized users and application.</p><blockquote>Azure Active Directory</blockquote><p>Identity and Access Management service in Azure. Identities management users, server, groups and applications. Access management — subscriptions, resource groups, roles, role assignments, authentication and authorization settings, etc.</p><p>Used by multiple cloud platforms — Azure, MS 365, Office 365, Live.com services (Skyone, OneDrive, etc)</p><p>Syncs with on-prem Active Directory via sync services.</p><blockquote>Multi-factor Authentication</blockquote><p>Process of authentication using more than one factor (evidence) to prove identity.</p><p>Factor types:</p><ol><li>Knowledge factor — Something you know ex. password, login</li><li>Possession factor — Something you have ex. phone, token, card, key</li><li>Physical Characteristic factor — Something you are ex. fingerprint, voice, face, eye iris</li><li>Location factor — Somewhere you are ex. GPS location</li></ol><p>Supported by Azure AD by default (simple on-off switch)</p><h3>Azure Security Center</h3><p>Centralized/unified infrastructure and platform security management service. Natively embedded in Azure services. Integrated with Azure Advisor. Includes feature like security recommendations, monitoring for cloud and on-premises workloads, automatic security assessments, analysis of threats and attacks, just-in-time VM access, and many more.</p><p>Two tiers:</p><ol><li>Free (Azure Defender OFF) — included in all Azure services, provides continuous assessments, security score, and actionable security recommendations.</li><li>Paid (Azure Defender ON) — hybrid security, threat protection alerts, vulnerability scanning, just in time (JIT) VM access, etc.</li></ol><h3>Azure Key Vault</h3><p>Managed service for securing sensitive information (application/platform) (PaaS). Secure storage service for Keys, Secrets and certificates. Highly integrated with other Azure services (VMs, Logic Apps, Data Factory, Web Apps, etc.) Centralization and access monitoring and logging.</p><h3>Azure Role-based Access Control (RBAC)</h3><blockquote>Role</blockquote><p>Role is a collection of actions that the assigned identity will be able to perform. Answers “What can be done?”</p><blockquote>Security Principal</blockquote><p>It is an Azure object (identity) that can be assigned to a role (ex. users, groups or applications/service objects like service principals or managed identities). Answers “Who can do it?”</p><blockquote>Scope</blockquote><p>Scope one or more Azure resources that the access applies to. Answers “Where can it be done?” Scope are hierarchical</p><p>Management Groups &gt; Subscriptions &gt; Resource Groups &gt; Resources.</p><p>Role assignment is a combination of the role definition, security principal and scope.</p><p>RBAC is a authorization system built on Azure Resource Manager. Designed for fine-grained access management of Azure Resources. Built-in and Custom roles are supported.</p><h3>Azure Resource Locks</h3><p>Designed to prevent accidental deletion and/or modification. Used in conjunction with RBAC.</p><p>Two Types of locks</p><ol><li>Read-only (ReadOnly) — only read actions are allowed.</li><li>Delete (CanNotDelete) — all actions except delete are allowed.</li></ol><p>Scopes are hierarchical (inherited)</p><p>Subscriptions &gt; Resources Groups &gt; Resources.</p><p>Management Groups can’t be locked. Only Owner and User Access Administrator roles can manage locks (built-in roles).</p><h3>Azure Resource Tags</h3><p>Tags are simple Name (key) — Value pairs. Designed to help with organization of Azure resources. Used for resources governance, security, operations management, cost management, automation etc.</p><p>Typical tagging strategies:</p><ol><li>Functional — mark by function (ex. environment = production)</li><li>Classification — mark by policies used (ex. classification = restricted)</li><li>Finance/Accounting — mark for billing purposes (ex. department = finance)</li><li>Partnership — mark by association of users/groups (ex.owner = adam)</li></ol><p>Applicable for resource, resource groups and subscriptions. Not inherited by default. That means if resource tags are applied to resource group, it doesn’t apply to resources itself.</p><p><em>Tag names must be unique within the scope of single Azure resource. You can’t have two tags with same name applied on a single Azure Resource</em></p><h3>Azure Policy</h3><p>Designed to help with resource governance, security, compliance, cost management, etc.</p><p>Policies focus on resource properties (RBAC focus on user actions). Policy definition defines what should happen. Define the condition (if/else) and the effect (deny, audit, append, modify, etc). Examples include allowed resource types, allowed locations, allowed SKUs, inherit resource tags. Built-in and custom policies are supported.</p><p>Policy initiative — a group of policy definitions.</p><p>Policy assignment — assignment of a policy definition/initiative to a scope. Scopes can be assigned to a management groups, subscriptions, resource groups and resources.</p><h3>Azure Blueprints</h3><p>A blueprint is a guide, pattern or design for making something.</p><p>Package of various Azure components (artifacts). Resource Groups, ARM templates, Policy Assignments, Role Assignments. Centralized storage for organizationally approved design patterns. Blueprint definition — describing what should happen (reusable package). Blueprint assignment — describing where it should happen (package deployment). We can reuse the blueprint definition.</p><h3>Cloud Adoption Framework for Azure</h3><p>Cloud adoption is a strategic move by an organization to leverage cloud in their business. Cloud Adoption Framework for Azure is a set of tools, best practices, guidelines and documentation to help companies with this journey.</p><blockquote>Strategy</blockquote><p>Why move? What’s the motivation triggers?</p><p>Migration : Cost savings, reduction in complexity, operation optimization, increased business agility.</p><p>Innovation : Global scale, customer experience improvements, transformation of products or services, market disruption.</p><p>Business Outcomes : What to measure? Defined, concise and observable outcome captured by a specific measure. Revenue, profit, Cost, Global access, new market.</p><p>Business Justification : What is my return of investment? Develop a business case to validate the financial model that supports your motivations and outcomes. Azure TCO calculator (Total cost of ownership helps customers with estimations of all costs associated with the current infrastructure in their on-premises environment), Azure pricing calculator (allows customers to estimate cost of Azure services), Azure cost management.</p><p>First Project : Business criteria (Currently operating, dedicated owner, strong motivation to move) and Technical criteria (minimum assets and dependencies)</p><blockquote>Plan</blockquote><ol><li>Digital Estate (Inventory of assets) : What you currently have and what to do with it in company!</li></ol><p>Five R’s of Rationalization:</p><p>Rehost : Take existing applications to cloud without changing IaaS</p><p>Refactor : Make small change in codebase in order to fit in PaaS in Azure.</p><p>Rearchitect : Complex change to code, add new services. Used to implement new features or fix incompatible applications.</p><p>Rebuild : Creating from scratch.</p><p>Replace : Look at every single application and see what cloud service has to offer and drop the existing one and take that SaaS</p><p>2. Initial Organization Alignment : Make sure everyone is align and agrees</p><p>3. Skill Readiness Plan</p><p>4. Cloud Adoption Plan</p><blockquote>Ready</blockquote><ol><li>Azure Setup Guide</li><li>Azure Landing Zone : Setting up codebase / environment</li><li>Extend Landing Zone</li><li>Best Practices</li></ol><blockquote>Adopt</blockquote><p>Migrate :</p><ol><li>First Migration : Migrate first project to cloud and familiarize with tools.</li><li>Migration Scenarios : Every migration is different</li><li>Best Practices</li><li>Process Improvements</li></ol><p>Innovate :</p><ol><li>Business Value Consensus (Value to Strategy)</li><li>Innovation Guide (Tools)</li><li>Best Practices</li><li>Process Improvements.</li></ol><blockquote>Govern and Manage</blockquote><p>Govern : Comply, control and secure</p><p>Manage : Operate and Optimize.</p><ol><li>Define governance solutions : Business needs, agility, control risks.</li><li>Manage cloud environment : Stable and cost effective</li></ol><p>Organize : Roles and Responsibilities. (RACI matrix)</p><p>Documentation and communication of every stage is critical requirement for the process.</p><h3>Core tenets of Security, Privacy, Compliance</h3><blockquote>Microsoft Privacy Statement</blockquote><p>Info : Personal data, collection, purpose and usage. Describes in context of microsoft offerings services, apps, websites, software, servers, devices and it is used by everyone.</p><blockquote>Online Services Terms</blockquote><p>Provides legal environment, licensing term describes in context of online services Azure, Dynamics 365, Office 365, Bing Maps. Designed for organizations legal teams.</p><blockquote>Data Protection Addendum</blockquote><p>Information about obligations between your company and microsoft (processing and security of personal and customer data). Described for online services. Designed for legal teams and security teams of organization.</p><blockquote>Trust Center</blockquote><p>One stop shop website to review all information regarding security, compliance, privacy, policies and practices. Described in context of online services. Designed for business managers, administrators, security teams and legal teams.</p><blockquote>Azure Compliance Docs</blockquote><p>Website for compliance national, US government, industry and regional specific. It varies from trust center as it describes only in context of Azure and compliance. Same audience as Trust Center.</p><blockquote>Azure Sovereign regions</blockquote><p>Azure Government : Separate instance, physically isolated, authorized personal only.</p><p>Azure China : Separately regulated, physically separated, operated by 21Vianet. East Asia is part of sovereign region.</p><h3>Cost Affecting Factors</h3><blockquote>Resource Types</blockquote><p>What kind of service do we use?</p><p>CPU, memory, uptime — VM</p><p>CPU, Memory, storage, uptime — SQL</p><p>Executions, memory/sec — Functions</p><p>Storage X Tier, operations — Storage</p><p>Actions — Logic App</p><p>Free — Resource Group</p><blockquote>Services</blockquote><p>What is our Azure offer types?</p><p>Web direct, enterprise, cloud solution provider.</p><blockquote>Location</blockquote><p>Where are our services located?</p><blockquote>Bandwidth/Traffic</blockquote><p>How much data do we move in and out of Azure?</p><p>Upload data — ingress or inbound. Free</p><p>Downloading data from Azure — Egress or outbound. Not free</p><h3>Cost Saving Methods</h3><blockquote>Reservations</blockquote><p>Types</p><ol><li>Reserved instances — Azure Virtual Machines</li><li>Reserved capacity — Azure Storage, SQL Database vCores, Databricks DBUs, Cosmos DB RUs</li><li>Software plans — Red Hate, Red Hat OpenShift, SUSE Linux, etc.</li></ol><p>Reservations are made for 1 or 3 years</p><blockquote>Spot VM</blockquote><p>Significant discount for Azure VMs. Capacity can be taken away at any time. Customer can set maximum price after discount. Best for interruptible workloads (batch processing, dev/test environments, large compute workloads, non-critical tasks, etc.)</p><blockquote>Hybrid use Benefit</blockquote><p>Use existing license in Azure</p><p>Windows Server, RedHat and SUSE Linux— Azure VM</p><p>SQL Server — Azure SQL Database, Azure SQL Managed Instance, Azure SQL Server on VM, Azure Data Factory SQL Server Integration Services.</p><blockquote>Cost Reduction Methods</blockquote><p>Tools</p><p>Azure Pricing Calculator — estimate cost of Azure services</p><p>Total Cost of Ownership calculator — compare datacenter versus Azure workloads.</p><h3>Azure Cost Management</h3><p>Centralized service for reporting usage and billing of Azure environment. Self-service cost exploration capabilities. Budgets and alerts. Cost recommendations. Automated exports.</p><p><strong>Minimizing costs</strong></p><ol><li>Azure Pricing Calculator to choose the low-cost region</li></ol><p>Good latency, all required services are available, data sovereignty/compliance requirements.</p><p>2. Hybrid use benefit and Azure reservations</p><p>3. Azure Cost Management monitoring, budgets, alerts and recommendations.</p><p>4. Understand service lifecycle and outcome environments.</p><p>5. Use autoscaling features to your advantage</p><p>6. Azure Monitor to find and scale down underutilized resources.</p><p>7. Use tags and policies for effective governance.</p><h3>SLA and Composite SLA in Azure</h3><p>Service Level Agreement (SLA) is a formal agreement between a service provider and a customer. SLA is a promise of a service’s availability (uptime and connectivity). Availability is a measure of time that a service remains operational.</p><p>SLA — per month availability</p><p>Each service has its own SLA. Ranges from 99% to 99.999%. Free services typically don’t have an SLA. Broken SLA means service credit return (discount).</p><p>Composite SLA is a combined SLA of all components in your application.</p><p>Factor that impact SLA:<br>Lower your SLA : Adding more services. Free/preview services.</p><p>Raise your SLA : Adding Redundancy. Service configuration (ex. Availability zones)</p><p>Higher tier services offer better SLAs. Free services typically have no SLA. Preview services have no SLA.</p><h3>Service Lifecycle in Azure</h3><blockquote>Public Preview</blockquote><p>No SLA. Some services have no support coverage. Released to limited region availability with limited functionality. Pricing changes and direction changes. Azure portal previews. It’s a <strong>beta</strong> stage of the service available to general public use. Features can also be in preview stages and designed for testing, not production solutions.</p><blockquote>General Availability</blockquote><p>It is a <strong>production</strong> release of the service.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dda9aa58ed6d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Coding Challenge — Git Contributions Visualisation Tool Solution]]></title>
            <link>https://medium.com/@nandani2510/coding-challenge-git-contributions-visualisation-tool-solution-b8e8bb9fac33?source=rss-2ab1b5bd5e31------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8e8bb9fac33</guid>
            <category><![CDATA[git-tool]]></category>
            <category><![CDATA[visualization]]></category>
            <category><![CDATA[coding-challenge]]></category>
            <category><![CDATA[tools]]></category>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[Nandani Yadav]]></dc:creator>
            <pubDate>Sat, 18 May 2024 16:29:30 GMT</pubDate>
            <atom:updated>2024-05-18T17:17:41.999Z</atom:updated>
            <content:encoded><![CDATA[<h3>Coding Challenge #62— Git Contributions Visualisation Tool Solution</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*iQOPhnTbD5beJWzDXG8zaA.png" /></figure><p>In the world of software development, understanding version control systems like Git is crucial. Git allows developers to track changes, collaborate effectively, and maintain a history of their codebase. One interesting aspect of Git is its commit history, which provides insights into the development activity within a repository. In this blog post, we’ll explore a coding challenge by [John Crickett](<a href="https://www.linkedin.com/in/johncrickett/">https://www.linkedin.com/in/johncrickett/</a>) focused on building a tool to analyze Git repositories and visualize commit activity using Python.</p><h3>Step Zero</h3><p>Set up your IDE / editor and programming language of choice. You could take this in a few different directions building it as a CLI tool, desktop tool or even as a local analyser that pushes the data to a remote server for rendering on the web. The choice is yours.</p><p>Solution : I used python language and Pycharm IDE for this.</p><h3>Step 1</h3><p>In this step your goal is to find the git repositories within a directory structure on your local machine. In other words if you have a folder structure like this:</p><pre>.<br>|- ccwc<br>|   |- .git<br>|- ccsh<br>|   |- .git<br>|- ccredis<br>|   |- .git<br>|- docs</pre><p>You should find that the folders ccwc, ccsh and ccredis contain a Git repository but docs does not.</p><p>Solution :</p><pre>import os<br>import argparse<br><br>def find_git_repos(directory):<br>    git_repos = []<br>    for root, dirs, files in os.walk(directory):<br>        if &#39;.git&#39; in dirs:<br>            git_repos.append(root)<br>    return git_repos<br><br>def main():<br>    parser = argparse.ArgumentParser(<br>        description=&#39;Find git repositories within a directory structure.&#39;)<br>    parser.add_argument(&#39;directory&#39;, type=str,<br>                        help=&#39;The root directory to search for Git repositories.&#39;)<br>    args = parser.parse_args()<br>    directory = args.directory<br>    git_repos = find_git_repos(directory)<br><br>    if git_repos:<br>        print(&quot;Found Git repositories in the following directories&quot;)<br>        for repo in git_repos:<br>            print(repo)<br>    else:<br>        print(&quot;No Git repositories found in the specified directory.&quot;)<br><br>if __name__ == &quot;__main__&quot;:<br>    main()</pre><pre>Found Git repositories in the following directories<br>/Users/nandini/Desktop/test/ccwc<br>/Users/nandini/Desktop/test/ccredis<br>/Users/nandini/Desktop/test/ccsh</pre><p>os module for directory navigation</p><p>argparse for command-line argument parsing</p><p>Run the script using below command:</p><p>python main.py /path/to/search/directory</p><blockquote>Challenges faced in Step 1:</blockquote><ol><li>It was showing “No such directory found” as I was using relative path.</li></ol><p><strong>Solution :</strong> Use the absolute path to the directory. To be more precise navigate in the UI where your folder is and go in the info section (depending on your OS) and copy the exact path from there.</p><p>2. “No Git repositories found in the specified directory”</p><p><strong>Solution : By default, ‘.git’ directories are hidden in Unix-based systems (like macOS in my case). So, make sure that these directories are not hidden and accessible by the script.</strong></p><p>One way is to use below command in terminal<br>defaults write com.apple.Finder AppleShowAllFiles TRUE</p><p>Then relaunch finder<br>killall Finder</p><p>resource : <a href="https://stackoverflow.com/questions/11197249/show-system-files-show-git-ignore-in-osx">https://stackoverflow.com/questions/11197249/show-system-files-show-git-ignore-in-osx</a></p><p>Another way is to use shortcut in Finder ‘<em>Command + shift + .’</em></p><h3>Step 2</h3><p>In this step your goal is to analyse a repository and determine how many commits there have been in the previous 30 days by the current user.</p><p>If you’re a new developer you can probably find a library for your tech stack that can parse a Git Repository and extract the details. If you are more experienced check out the coding challenge that has you <a href="https://substack.com/redirect/7fa24b8f-38c8-456a-be72-524110d4f615?j=eyJ1IjoiM2ptMmxsIn0.IeApTipcxHU4533bSVc8u1vn_Bi2RD7omJAsnHJiFbo">building you own Git client</a> and build your own module to parse the repository. It will be a huge additional learning opportunity.</p><p>Solution :</p><pre>def get_commits_in_last_30_days(repo_path, author_email):<br>    repo = git.Repo(repo_path)<br>    commits = list(repo.iter_commits(&#39;master&#39;, since=(datetime.now() - timedelta(days=30)).isoformat()))<br>    commits_by_author = [commit for commit in commits if commit.author.email == author_email]<br>    return len(commits_by_author)</pre><pre>Found Git repositories in the following directories<br>/Users/nandini/Documents/python/pdf-invoices<br>Number of commits by nandini976804@gmail.com in the last 30 days : 4</pre><h3>Step 3</h3><p>In this step your goal is to allow the user to specify a starting location for the search — i.e . to define what the root folder to begin looking for Git repositories is and to allow the user to specify a number of days to go back when generating the visualisation.</p><p><strong>Solution :</strong></p><pre>def get_commits_in_last_n_days(repo_path, days, author_mail):<br>    repo = git.Repo(repo_path)<br>    since_date = (datetime.now() - timedelta(days=days)).isoformat()<br>    commits = list(repo.iter_commits(&#39;main&#39;, since=since_date))<br>    commits_by_author = [commit for commit in commits if<br>                         commit.author.email == author_mail]<br>    return len(commits_by_author)</pre><pre>Found Git repositories in the following directories<br>/Users/nandini/Documents/python/pdf-invoices<br>Number of commits by nandini976804@gmail.com in the last 8 days : 4</pre><h3>Step 4</h3><p>In this step your goal is to calculate all the stats for each of the repositories. I’d suggest creating a test suite for this step so you can check the logic and ensure that you code correctly gathers the stats for a repo and correctly identifies the contributor</p><pre>import os<br>import argparse<br>import git<br>from datetime import datetime, timedelta<br>import unittest<br><br><br>class GitRepoStats:<br>    def __init__(self, repo_path):<br>        self.repo_path = repo_path<br>        self.repo = git.Repo(repo_path)<br><br>    def total_commits(self):<br>        return len(list(self.repo.iter_commits()))<br><br>    def unique_contributors(self):<br>        return len(<br>            set(commit.author.email for commit in self.repo.iter_commits()))<br><br>    def commit_activity(self, days):<br>        since_date = (datetime.now() - timedelta(days=days)).isoformat()<br>        commits = list(self.repo.iter_commits(since=since_date))<br>        activity = {commit.author.email: 0 for commit in commits}<br>        for commit in commits:<br>            activity[commit.author.email] += 1<br>        return activity<br><br><br>class TestGitRepoStats(unittest.TestCase):<br>    def test_total_commits(self):<br>        repo = GitRepoStats(<br>            &#39;/Users/nandini/Documents/python/pdf-invoices/.git&#39;)<br>        self.assertEqual(repo.total_commits(), 4)<br><br>    def test_unique_contributors(self):<br>        repo = GitRepoStats(<br>            &#39;/Users/nandini/Documents/python/pdf-invoices/.git&#39;)<br>        self.assertEqual(repo.unique_contributors(), 1)<br><br>    def test_commit_activity(self):<br>        repo = GitRepoStats(<br>            &#39;/Users/nandini/Documents/python/pdf-invoices/.git&#39;)<br>        activity = repo.commit_activity(days=30)<br>        self.assertEqual(activity[&#39;nandini976804@gmail.com&#39;], 4)</pre><pre>Found Git repositories in the following directories:<br>/Users/nandini/Documents/python/pdf-invoices<br>Total commits: 4<br>Unique contributors: 1<br>Commit activity (last 30 days):<br>- nandini976804@gmail.com: 4 commits<br>...<br>----------------------------------------------------------------------<br>Ran 3 tests in 0.054s</pre><h3>Step 5</h3><p>In this step your goal is to render the contribution graph for the time period specified. I would suggest making it similar to the GitHub contribution graph, but if you’re feeling creative experiment and see if you can create an interesting alternative.</p><p><strong>Final Solution :</strong></p><pre>import os<br>import argparse<br>import git<br>from datetime import datetime, timedelta<br>import matplotlib.pyplot as plt<br><br><br>class GitRepoStats:<br>    def __init__(self, repo_path):<br>        self.repo_path = repo_path<br>        self.repo = git.Repo(repo_path)<br><br>    def total_commits(self):<br>        return len(list(self.repo.iter_commits()))<br><br>    def unique_contributors(self):<br>        return len(<br>            set(commit.author.email for commit in self.repo.iter_commits()))<br><br>    def commit_activity(self, days, author_email):<br>        since_date = (datetime.now() - timedelta(days=days)).isoformat()<br>        commits = list(self.repo.iter_commits(since=since_date))<br>        activity = {commit.author.email: 0 for commit in commits if<br>                    commit.author.email == author_email}<br>        for commit in commits:<br>            activity[commit.author.email] += 1<br>        return activity<br><br><br>def find_git_repos(directory):<br>    git_repos = []<br>    for root, dirs, files in os.walk(directory):<br>        if &#39;.git&#39; in dirs:<br>            git_repos.append(root)<br>    return git_repos<br><br><br>def main():<br>    parser = argparse.ArgumentParser(<br>        description=&#39;Find git repositories within a directory structure and &#39;<br>                    &#39;analyze commits by author.&#39;)<br>    parser.add_argument(&#39;directory&#39;, type=str,<br>                        help=&#39;The root directory to search for Git &#39;<br>                             &#39;repositories.&#39;)<br>    parser.add_argument(&#39;--email&#39;, type=str, required=True,<br>                        help=&#39;Email address of the author to analyze commits.&#39;)<br>    parser.add_argument(&#39;--days&#39;, type=int, default=30,<br>                        help=&#39;Number of days to go back when analyzing &#39;<br>                             &#39;commits (default: 30).&#39;)<br>    args = parser.parse_args()<br>    directory = args.directory<br>    author_email = args.email<br>    days = args.days<br>    git_repos = find_git_repos(directory)<br><br>    if git_repos:<br>        print(&quot;Found Git repositories in the following directories:&quot;)<br>        for repo_path in git_repos:<br>            print(repo_path)<br>            stats = GitRepoStats(repo_path)<br>            activity = stats.commit_activity(days, author_email)<br>            print(f&quot;Commit activity by {author_email} (last {days} days):&quot;)<br>            for email, count in activity.items():<br>                print(f&quot;- {email}: {count} commits&quot;)<br><br>            # Plotting Contribution Graph<br>            plt.figure(figsize=(10, 5))<br>            plt.bar(activity.keys(), activity.values(), color=&#39;green&#39;)<br>            plt.xlabel(&#39;Contributor Email&#39;)<br>            plt.ylabel(&#39;Commit Count&#39;)<br>            plt.title(f&#39;Contribution Graph for {author_email}&#39;)<br>            plt.xticks(rotation=45, ha=&#39;right&#39;)<br>            plt.tight_layout()<br>            plt.show()<br>    else:<br>        print(&quot;No Git repositories found in the specified directory.&quot;)<br><br><br>if __name__ == &quot;__main__&quot;:<br>    main()</pre><pre>Found Git repositories in the following directories:<br>/Users/nandini/Documents/python/pdf-invoices<br>Commit activity by nandini976804@gmail.com (last 30 days):<br>- nandini976804@gmail.com: 4 commits</pre><p>Still working on the graph outlook.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1004/1*CegPtcLPW63okt9bauUNuQ.png" /></figure><h3>Going Further</h3><p>Congratulations for getting this far. If you want to take it further here are some suggestions:</p><ul><li>Allow a per repository graph.</li><li>Generate stats for each contributor.</li><li>Cache the results, so you only need to recalculate for a repo since the last date. Handle edge cases.</li></ul><p>These are the enhancement that I’ll be working on further. Thanks to <a href="https://codingchallenges.substack.com/">https://codingchallenges.substack.com/</a> for this coding challenge. Open for improvement and suggestions :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8e8bb9fac33" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS Solutions Architect — Associate Certification Topic Wise Summary]]></title>
            <link>https://medium.com/@nandani2510/aws-solutions-architect-associate-certification-topic-wise-summary-dae1fdb0b880?source=rss-2ab1b5bd5e31------2</link>
            <guid isPermaLink="false">https://medium.com/p/dae1fdb0b880</guid>
            <category><![CDATA[aws-certification]]></category>
            <category><![CDATA[aws-solutions-architect]]></category>
            <category><![CDATA[aws-service]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Nandani Yadav]]></dc:creator>
            <pubDate>Thu, 11 Apr 2024 23:31:03 GMT</pubDate>
            <atom:updated>2024-04-11T23:31:03.575Z</atom:updated>
            <content:encoded><![CDATA[<h3>AWS Solutions Architect — Associate Certification Topic Wise Summary</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*JFeYG2dD0tAeeAHTNusxOA.jpeg" /></figure><h3><strong>AWS Machine Learning :</strong></h3><p><strong>Rekognition </strong>: Detecting face, labeling, people, text, images , videos using ML, also detecting inappropriate or offensive content</p><p><strong>Transcribe</strong> : convert speech to text, removes any personally identifiable information <strong>(PII)</strong></p><p><strong>Polly </strong>: convert text to speech using deep learning</p><p><strong>Polly Lexicon</strong> : Pronunciation lexicons, in simple terms converting fancy or stylish words into actual word. eg n@nd%n% =&gt; nandini</p><p><strong>Polly SSML</strong> : Speech Synthesis Markup Language — enables more customization. eg whispering, speaking style etc.</p><p><strong>Translate :</strong> Allows natural and accurate language translation</p><p><strong>Lex :</strong> Automatic Speech Recognition to convert speech to text (eg. Alexa, chatbots)</p><p><strong>Connect :</strong> Helps in creating a contact flow, cloud-based virtual contact center</p><p><strong>Comprehend &amp; Comprehend Medical:</strong> Use Natural Language Processing to find insights and key phrases in texts</p><p><strong>SageMaker :</strong> Service for developers/data scientists to build ML models</p><p><strong>Forecast :</strong> Uses ML to deliver highly accurate forecasts</p><p><strong>Kendra :</strong> document search service (Incremental Learning), eg extracts data from a document</p><p><strong>Personalize :</strong> Offer real-time personalized recommendations</p><p><strong>Textract :</strong> Extracts text or data from any scanned document using AI and ML</p><h3><strong>AWS Monitoring, Audit and Performance :</strong></h3><p><strong>CloudWatch :</strong></p><p>Imagine you deployed your website and in few months it got very popular that you want to expand globally. But once you do that people from different regions are facing problem as the website crashes and it’s hard to identify the problem across globe.</p><p>What if we have a proper logging mechanism and we can monitor each phase by the collected data points and mitigate the problem.</p><p>That’s where AWS cloudwatch service comes in</p><p>Collect -&gt; Monitor -&gt; Event -&gt; Analyse</p><p>The way you measure a data point over a given period of time gives you a form of metric to analyse</p><p>You get the facility to create log streams for an application and send that log to cloudwatch to analyse the metrics and log to resolve an issue.</p><p>So cloudwatch provides metrics for every services with near-real-time delivery. (metrics are CPU utilization, networking). We can also filter metrics to only stream a part of them.</p><p>We can create cloudwatch dashboards of metrics or custom metrics.</p><p>If we want to judge the current state of the resource, we need a benchmark to compare with. If the CPU utilization of instance goes above 85%, then we want to scale a new instance. So 85% becomes a threshold and CPU utilization is the benchmark we’re judging on.</p><p>For it to keep track of current instance, we can keep a cloudwatch metrics or based on threshold value.</p><p><strong>CloudWatch Alarms :</strong></p><p>Let’s take a real world example, if you’re a gamer and you want to have your hands on in playstation 5.</p><p>We can write a lambda function of currently available stocks (don’t do this, as you’ll be banned), and create a metrics which keep a count track of http status 200, keep an alarm if the count is ≥ 5 send notification to user. What if we want to schedule?<br>We can add cloudwatch event which triggers the lambda function every 1 minute and point it to the target in our case is the lambda function.</p><blockquote><strong>Alarm States :</strong></blockquote><p>OK : Metric or expression is <strong>within</strong> the defined threshold</p><p>INSUFFICIENT_DATA : The alarm has just started or not enough data is available</p><p>ALARM : Metric or expression is <strong>outside</strong> the defined threshold</p><blockquote><strong>Alarm targets:</strong></blockquote><p>Stop, Terminate, Reboot or Recover EC2 Instance</p><p>EC2 Auto Scaling</p><p>Amazon SNS</p><blockquote><strong>Composite Alarms : </strong>Monitoring the state of multiple other alarms</blockquote><blockquote><strong>CloudWatch Logs :</strong></blockquote><p>Log groups, log stream.</p><p>Can send logs to Amazon S3, Kinesis Data Streams, Kinesis Data Firehouse, AWS Lambda, OpenSearch</p><p>CloudWatch Logs — Sources:</p><p>SDK,, Elastic Beanstalk, CloudWatch Logs Agent, CloudWatch Unified Agent, ECS, Lambda, VPC flow logs, API Gateway, Cloudtrail, Route53.</p><p>Logs Insights : Query engine</p><p>Log data can take up to 12 hours to become available to export, API call is CreateExportTask</p><p>Logs Subscriptions : real-time log events for analysis, supports cross-account subscription.</p><blockquote><strong>By default no logs from EC2 will go to CloudWatch</strong>, you need to run a cloudwatch agent to push logs and assign IAM permissions.</blockquote><blockquote><strong>CloudWatch Logs Agent: </strong>Can only send to cloudwatch logs</blockquote><blockquote><strong>CloudWatch Unified Agent :</strong> Collect additional system-level metrics such as RAM, CPU, disk metrics, Netstat, Processes, Swap space to send to cloudwatch logs.</blockquote><blockquote><strong>Amazon EventBridge:</strong></blockquote><p>Schedule Cron Jobs</p><p>Event pattern</p><p>Trigger Lambda</p><p>EventBridge can analyze the events in your bus and infer the schema.</p><p>Resource-based policy : Manage permissions for a specific Event Bus, eg allow/ deny events from another AWS account or region</p><blockquote><strong>CloudWatch Insights:</strong></blockquote><p>Container Insights : ECS, EKS, Kubernetes on EC2, Fargate, needs agent for Kubernetes, metrics and logs.</p><p>Lambda Insights : Metrics for serverless application</p><p>Contributors Insights : Find “Top-N” contributors</p><p>Application Insights : Automatic dashboard to troubleshoot application and AWS services</p><blockquote><strong>AWS CloudTrail</strong></blockquote><p>Who is doing what?</p><p>Service that enables governance, compliance and audit for your AWS account, enabled by default.</p><p>Get an history of events/ API calls made within AWS account by :</p><p><em>Console</em></p><p><em>SDK</em></p><p><em>CLI</em></p><p><em>AWS Service</em></p><p>A trail can be applied to all regions or a single region.</p><blockquote><strong>CloudTrail Events :</strong></blockquote><p>Management Events : Operations performed on resources. eg configuring security, rules for routing data, setting up logging. By default, trails are configured to log management events. Separate Read and Write Events.</p><p>Data Events : Data events are not logged by default, S3 object level activity can separate Read and Write Events, AWS lambda function execution.</p><blockquote><strong>CloudTrail Insights :</strong> Enable this to detect unusual activity, analyzes write events to detect unusual patterns.</blockquote><p><strong>In cloudtrail events are stored for 90 days, to keep beyond this period log them to S3 and use Athena</strong></p><blockquote><strong>AWS Config : </strong>Helps with auditing and recording compliance of your AWS resources</blockquote><p>Config Rules, Config resource (compliance, configuration, CloudTrail API calls), Remediations, Notifications.</p><h3>IAM Identity And Access Management</h3><p>There are different Organizational Units :</p><p>Business Unit, Environmental Lifecycle, Project-Based</p><blockquote><strong>AWS Organizations</strong> : It’s a global service which allows to manage multiple AWS account. Main account is management account and others are member account and they can only be part on one organization. Shared reserved instances.</blockquote><p><strong>Advantages of AWS Organizations </strong>: Easy billing, central S3 account for cloudtrail logs, Cross Account Roles for Admin purposes.</p><p><strong>Security : Service Control Policies</strong> : Use IAM policies to OU or accounts to restrict users and roles. This rule does not apply on management account, must have an explicit allow.</p><p>SCP Hierarchy</p><blockquote><strong>IAM Conditions :</strong></blockquote><ol><li>aws:SourceIp (restrict client IP <strong><em>from</em></strong> which the API calls are being made)</li><li>aws:RequestedRegion (restrict the region the API calls are made <strong><em>to</em></strong>)</li><li>ec2:ResourceTag (restrict based on tags)</li><li>aws:MultiFactorAuthPresent (force MFA)</li></ol><blockquote><strong>IAM for S3 :</strong></blockquote><ol><li>s3:ListBucket permission applied to arn:aws:s3::test i.e bucket level permission</li><li>s3:GetObject, s3:PutObject, s3DeleteObject applied to arn:awn:s3::test/* i.e object level permission</li></ol><p><strong>aws:PrincipalOrgId : </strong>can be used in any resource policies to restrict access to accounts that are member of an AWS organization</p><blockquote><strong>IAM Roles vs Resource Based Policies:</strong></blockquote><p>When you assume a role, you give up your original permissions and take the permissions assigned to the role.</p><p>When using a resource-based policy, the principal doesn’t have to give up his permissions.</p><p>When a rule runs, it needs permissions on the target</p><p><strong>Resources Based policy : </strong>Lambda, SNS, SQS, CloudWatch Logs, API Gateway</p><p><strong>IAM role : </strong>Kinesis stream, ECS task, Systems Manager Run CMD</p><blockquote><strong>IAM Permission Boundaries :</strong> Advanced feature to use a managed policy to set the maximum permissions an IAM entity can get. Supported for users and roles and not for groups.</blockquote><blockquote><strong>AWS IAM Identity Center :</strong> One login for all your AWS accounts in AWS Organizations</blockquote><p><strong>Fine grained Permissions and Assignments :</strong></p><ol><li>Multi-Account Permissions : manage access across AWS accounts</li><li>Application Assignments : SSO access to many SAML business app, provide URLs, certificates and metadata</li><li>Attribute -Based Access Control : define permissions based on user’s attributes stored in IAM</li></ol><p>Microsoft Active Directory (AD):</p><p>Found on windows server with AD Domain Services, centralized securtiy management.</p><blockquote><strong>AWS Directory Services :</strong></blockquote><ol><li>AWS Managed Microsoft AD : Create your own AD in AWS, establish trust connections.</li><li>AD Connector : Directory gateway (proxy) to redirect to on-prem AD, supports MFA</li><li>Simple AD : no on prem AD, managed directory on AWS</li></ol><p><strong>We can connect IAM Identity Center with Active Directory</strong></p><ol><li>Connect to an AWS Managed Microsoft AD : Integration is out of the box</li><li>Connect to a Self-Managed Directory : Two way Trust relationship using AWS Managed MST MD, create an AD Connector.</li></ol><blockquote><strong>AWS Control Tower:</strong> Easy way to set up and govern a secure and compliant multi-account AWS environment, it uses AWS organizations to create accounts.</blockquote><p><strong>Control Tower Guardrails </strong>: Provides ongoing governance for Control Tower environment</p><ol><li>Preventive Guardrail : using SCPs (eg. restrict regions across all accounts)</li><li>Detective Guardrail : using AWS Config (eg. identify untagged resources)</li></ol><h3>AWS Security and Encryption</h3><p>Data is encrypted before sending and decrypted after receiving. TLS certificates help with encryption. Encryption in flight ensures no MITM (man in the middle attack) can happen.</p><blockquote><strong>Two types of encryption :</strong></blockquote><ol><li>Server-side encryption at rest : Data is encrypted after being received by the server and data is decrypted before being sent. Server must have the access to encryption/ decryption keys.</li><li>Client-side encryption : Data is encrypted by the client and never decrypted by the server, data will be decrypted by a receiving client.</li></ol><blockquote><strong>KMS Keys Types :</strong></blockquote><ol><li>Symmetric (AES-256 keys) : Single encryption key that is used to encrypt and decrypt. You never get access to the KMS key unencrypted.</li><li>Asymmetric (RSA &amp; ECC key pairs) : Public (Encrypt) and private (Decrypt) key pair.</li></ol><blockquote><strong>Types of KMS keys :</strong></blockquote><ol><li>AWS Owned keys (free) : SSE-S3, SSE-SQS, SSE-DDB</li><li>AWS Managed key : free (aws/service-name, eg aws/rds)</li><li>Customer managed keys created in KMS</li><li>Customer managed keys imported (must be symmetric key)</li></ol><p>AWS managed KMS and Customer-managed KMS key <strong>automatic key rotation</strong> every 1 year while imported key only manual rotation possible using alias.</p><p><strong>KMS key policies :</strong></p><ol><li>Default KMS key policy : created if you don’t provide any KMS key policy and gets complete access to the root user.</li><li>Custom KMS key policy : Define your own access, roles to access KMS key</li></ol><p><strong>KMS Multi-Region keys </strong>: Identical KMS keys available across different AWS regions that can be used interchangeably.</p><p>Topics yet to be added…. :)</p><p><strong>References :</strong> Stephane Maarek on Udemy and <a href="https://www.youtube.com/@Pythoholic">https://www.youtube.com/@Pythoholic</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dae1fdb0b880" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Troubleshooting Common Svelte Setup Errors.]]></title>
            <link>https://medium.com/@nandani2510/troubleshooting-common-svelte-setup-errors-bc1ddfe89e84?source=rss-2ab1b5bd5e31------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc1ddfe89e84</guid>
            <category><![CDATA[sveltekit]]></category>
            <category><![CDATA[sveltejs]]></category>
            <category><![CDATA[svelte]]></category>
            <dc:creator><![CDATA[Nandani Yadav]]></dc:creator>
            <pubDate>Thu, 11 Apr 2024 04:54:24 GMT</pubDate>
            <atom:updated>2024-04-11T04:54:24.025Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*4OcUeVgGVfDSkXRvFm0UVw.jpeg" /></figure><p>Creating a portfolio website using Svelte can be a rewarding experience, but it often comes with its set of challenges. Below are some common errors you might encounter when setting up a Svelte project and how to resolve them:</p><ol><li><strong>failed to load config from /Users/Desktop/portfolio/vite.config.ts error when starting dev server:</strong></li></ol><p>Error: Cannot find module ‘svgo’</p><p>Fix:</p><blockquote><strong>Install Dependencies:</strong> Run npm install in your project directory to ensure all required dependencies are installed.<br><strong>Check Package Location: </strong>Ensure your package.json file is located in the root directory of your project. If it’s outside the main folder, move it into the project root.<br><strong>Use pnpm as a Dependency Manager (Optional):</strong> If the issue persists, consider using pnpm as your package manager. Install pnpm globally with ‘npm install -g pnpm’, then ‘run pnpm install’ followed by ‘npm run dev ‘to start the development server.</blockquote><p><strong>2. Error: Missing “./Typewriter.svelte” specifier in “svelte-typewriter” package</strong></p><p>Fix:</p><blockquote>Adjust Import Statement: Instead of importing the component with a specific file path:</blockquote><blockquote>Instead of importing this way import Typewriter from ‘svelte-typewriter/Typewriter.svelte’;</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iYE_zDl_4iio5UqD6XARJw.png" /></figure><p><strong>Additional Tips:</strong></p><p><strong>Clear Cache:</strong> If you encounter persistent issues, try clearing your npm or pnpm cache with npm cache clean — force or pnpm cache clear.<br><strong>Verify Node Version</strong>: Ensure you are using a compatible version of Node.js for your Svelte project. Check the recommended version in the Svelte documentation.</p><p>By addressing these common errors and following the suggested fixes, you should be able to set up and run your Svelte portfolio website successfully. Good luck with your project!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc1ddfe89e84" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>