<?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 Neeraj Sharma on Medium]]></title>
        <description><![CDATA[Stories by Neeraj Sharma on Medium]]></description>
        <link>https://medium.com/@techbyneeraj?source=rss-2995667ba31f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*qZSy3rfH3LyNNzhsxTBSLA.png</url>
            <title>Stories by Neeraj Sharma on Medium</title>
            <link>https://medium.com/@techbyneeraj?source=rss-2995667ba31f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 02:48:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@techbyneeraj/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[Self-Hosted Obsidian Sync with Syncthing: A Step-by-Step Guide]]></title>
            <link>https://techbyneeraj.medium.com/self-hosted-obsidian-sync-with-syncthing-a-step-by-step-guide-ed8fbc54a766?source=rss-2995667ba31f------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed8fbc54a766</guid>
            <dc:creator><![CDATA[Neeraj Sharma]]></dc:creator>
            <pubDate>Sun, 19 Jul 2026 18:16:04 GMT</pubDate>
            <atom:updated>2026-07-26T12:36:32.462Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>My notes were in a long-distance relationship with my other laptop. Syncthing fixed the commute.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/198/1*Q1mkDXDxYuFdzoH9mpWLfw.png" /></figure><p>I was introduced to Obsidian a year back by my son and off late I noticed myself heavily using it for taking notes for different purposes. If you use Obsidian on more than one computer, you’ve probably run into the same annoyance I did recently, your notes live on whichever machine you last touched them.</p><p>You can pay for Obsidian’s official Sync service, but there’s a free way to keep everything in sync, without worrying about your privacy of storing your data at some one’s else computers, sometimes it is a cloud in tech speak :-).</p><p><strong>What is Obsidian for starters</strong><br>Obsidian is a free note-taking app that stores your notes as plain text files (Markdown) right on your computer, instead of locking them inside some app’s database. That means your notes are just files in a folder which you can manage as you wish. It uses a vault which is simply the folder Obsidian uses to hold a set of notes. When you point Obsidian at a folder, that folder becomes a vault: all your notes, images, and settings for that project live inside it.</p><p>Off course, you can have several vaults for different purposes (work, personal, a book you’re writing), and each is just a normal folder on disk.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/343/1*myzgBYoDYJevtqI_MeShPw.png" /></figure><p>I was wondering how to solve the issue of syncing my notes across two personal devices I use heavily, a windows PC and a Mac air laptop. Then I came to know about Syncthing.</p><p>Syncthing is an open-source tool that copies files directly between your own devices. Nothing passes through a third-party server if you don’t want it to.</p><p><strong><em>Though it is not specific to Obsidian, you can use it for sync across devices, in general.</em></strong></p><p>In this post I’ll walk through setting it up on two machines a Windows PC and a Mac so that an Obsidian vault stays identical on both, syncing over your local network. Though this blog details on local network setup, it provides options of syncing across multiple networks and multiple devices.</p><p>The setup has three parts: install Syncthing on each machine, connect the two machines to each other, and share the vault folder between them. Let’s dive in.</p><h3>Machine 1: Install Syncthing on Windows</h3><p>Grab the Windows installer from the SyncthingWindowsSetup releases page:</p><p><a href="https://github.com/Bill-Stewart/SyncthingWindowsSetup/releases/tag/v2.0.2">https://github.com/Bill-Stewart/SyncthingWindowsSetup/releases/tag/v2.0.2</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*uQDIjSeAj8ytgvsw-IaGYw.png" /></figure><p>Run the installer and work through the wizard.</p><p><strong>1. Accept the terms and click Next.</strong> The first screen is just the “About Syncthing” blurb, read it if you like, then continue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/1*YDg4fGBmk9olHGbM1ESD4w.png" /></figure><p><strong>2. Turn off relays if you’re only syncing on your home network.</strong> On the configuration screen, set <em>Relays enabled</em> to false. Relays route your traffic through public servers when devices can&#39;t reach each other directly. If both machines are on the same LAN, you don&#39;t need them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/1*9iRB3b3QDxU9LxGxqegq-g.png" /></figure><p><strong>3. Review and install.</strong> The summary screen confirms your choices — relays disabled, GUI on 127.0.0.1:8384, Syncthing set to start on login. Click Install.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*jk1VYKFgMNYEXNGPQmYHxQ.png" /></figure><p><strong>4. Open the config page.</strong> When it finishes, leave <em>Open Syncthing configuration page</em> ticked and click Finish. Your browser opens the Syncthing dashboard at 127.0.0.1:8384.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*jf8ggIARWoha4IVyBr13XA.png" /></figure><p>Or you can simply hit the URL (if your port 8384 is available): 127.0.0.1:8384</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F5GB0N3GT1amZHIs_V5FTw.png" /></figure><h3>Configure the connection settings</h3><p>Since we’re staying on the local network, we can switch off everything that reaches out to the wider internet. Go to <strong>Actions → Settings → Connections</strong> and untick <em>Enable NAT traversal</em>, <em>Enable Relaying</em>, and <em>Global Discovery</em>. Leave <em>Local Discovery</em> on. This is how the two machines find each other on your network. Click on Save.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*g61lbMRdkRxMIek41VnCxQ.png" /></figure><h3>Machine 2: Install Syncthing on the Mac</h3><p>On the second machine, install Syncthing the same idea, different tool. On macOS, Homebrew is easiest:</p><pre>brew install syncthing<br>brew services start syncthing</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O_AF9mfnP6z8E4iW63dKTA.png" /></figure><p>Then open http://127.0.0.1:8384/ in your browser and repeat the same connection tweaks you made on Windows i.e. NAT traversal, relaying, and global discovery off; local discovery on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G7UXCTZBStD6V9d0LaBC3A.png" /></figure><h3>Connect the two machines</h3><p>Now the two Syncthing instances need to know about each other. Every device has its own <strong>Device ID</strong>, a long string you’ll find under <strong>Actions → Show ID</strong> (there’s a QR code too, it is handy if you’re copying between phones).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xlmpu51889HiOJWbcSbP9A.png" /></figure><p>On first machine(in my case it is Windows PC), click <strong>Add Remote Device</strong>, paste in the other machine’s Device ID, and give it a friendly name like mac. If both are running, each one will usually list the other under &quot;nearby devices&quot; so you can just click it instead of typing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/951/1*UB8UUDsrgJYxA_yr7xHM-Q.png" /></figure><p>Do the same on the other side, or simply accept the connection request that pops up. Once they’ve shaken hands, each machine shows the other as connected.</p><h3>Share the vault folder</h3><p>With the machines linked, it’s time to share the actual notes.</p><p>On the machine that has your vault, click <strong>Add Folder</strong>. Set a <strong>Folder Label</strong> (e.g. my-vault) and point the <strong>Folder Path</strong> at your Obsidian vault — for example ~\Documents\Obsidian Vault. Note the <strong>Folder ID</strong>: it has to match on both machines, so let Syncthing generate it and keep it as-is.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*uwqAf3AJ28D7FW5T51LYBA.png" /></figure><p>Then open the folder’s <strong>Sharing</strong> tab and tick the other device so Syncthing knows to send this folder there. Click on Save.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rv3WbsTsaF4Bs1Xr76Bdrw.png" /></figure><p>My Windows PC looks like below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ey7QmXaKz-9oLlDTR-gS5g.png" /></figure><p>On the second machine(MacBook Air in my case), a prompt appears saying the first device wants to share a folder. Click <strong>Add</strong>, confirm the same local path for your vault, and Syncthing starts copying.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TmZ0UHtSGYDgYUPRD7idyQ.png" /></figure><p>Give it a moment. You’ll see the folder move through “Syncing” and land on <strong>Up to Date</strong> on both machines. Your vault now lives on both computers and stays matched. On Second device, it looks like below for me.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WgqzfTm41sWvv8cmvAME1g.png" /></figure><p><strong>Optional:</strong> If multiple users share a computer you can keep your file private to by setting up creds (though there might be few other OS considerations on shared devices, non related to syncthing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xVH0npTc9EEHpOqD74X7pw.png" /></figure><h3>A quick word on sync conflicts</h3><p>Syncthing syncs continuously in the background, so a note you edit on one machine shows up on the other within seconds. But if you edit the <em>same</em> note on both machines before they’ve had a chance to sync, Syncthing can’t guess which version you meant. Instead of overwriting your work, it keeps both.</p><p>You’ll see a second file named something like Configure Obsidian Sync.sync-conflict-20260719-104126-T5G2WUD.md.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/506/1*SqK81eLxTXeIyr7BNpQuMQ.png" /></figure><p>Nothing is lost; you just open both, decide which change to keep, and delete the conflict copy. In practice this is rare if you let a machine finish syncing before switching to the other one.</p><h3>Cross devices Sync (general)</h3><p>As we understood the concepts now, it is relatively straightforward to follow it to set up cross device sync for general stuff.</p><p><strong>Step 1: Create a folder on first device, Windows PC in my case, and Share with other device mac, in my case.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*2QYd3dNSJAv-_1t_ahdxMQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*f4RSy6iesNRjoP79ox-sQA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*3qSfbObXFfdprOjvjGtpKQ.png" /></figure><p><strong>Step 2: Accept the connection from second device (mac in my case).</strong></p><p><strong>Pro-tip: If the new folder pop up does not appears, pls pause and start sync from other device.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*iGfjrevQMmPS9yWLWZkBQA.png" /></figure><p><strong>Step 3: Add the destination folder from mac and its is done.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*Beh1lh7uw2y5oP52i4qgig.png" /></figure><p><strong>And this is it.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*9OgDG1OfPumy1oU6w2pjVw.png" /></figure><h3>Wrapping up</h3><p>That’s the whole setup: install Syncthing on each machine, connect them by Device ID, and share your vault folder. No subscription or cloud storage is required, and your notes never leave your own devices. Once it’s running you can mostly forget about it, edit on either machine and the other catches up on its own.</p><p>The same steps work for a third or fourth device, and for folders that have nothing to do with Obsidian. A vault is just a folder, and Syncthing is happy to keep any folder in sync.</p><p><strong><em>Thanks for reading. You can read my other blogs </em></strong><a href="https://medium.com/@connectwithneeraj"><strong><em>here</em></strong></a><strong><em> or connect with me on </em></strong><a href="https://www.linkedin.com/in/clouddevopsarchitect/"><strong><em>LinkedIn</em></strong></a><strong><em> if you prefer to stay in touch.</em></strong></p><p><strong>Disclaimer</strong><br>This blog is meant for education purposes only, please use it at your discretion while following the steps on critical systems.</p><p>Image credits goes to Obsidian and Syncthing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed8fbc54a766" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Authorization is architecture. Everything else is implementation.]]></title>
            <link>https://techbyneeraj.medium.com/how-modern-security-systems-decide-who-gets-access-89ba5ec43051?source=rss-2995667ba31f------2</link>
            <guid isPermaLink="false">https://medium.com/p/89ba5ec43051</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[google]]></category>
            <dc:creator><![CDATA[Neeraj Sharma]]></dc:creator>
            <pubDate>Sat, 31 Jan 2026 21:06:50 GMT</pubDate>
            <atom:updated>2026-02-21T10:27:00.320Z</atom:updated>
            <content:encoded><![CDATA[<p>In 2014, Google made a rare and uncomfortable admission: the traditional enterprise security model, firewalls at the edge, VPNs for remote access, and implicit trust once “inside the network”, no longer worked.</p><p>The idea was simple and disruptive:</p><blockquote><em>“The network is not a security boundary.”</em></blockquote><p>Every access request would be evaluated individually based on identity and context, not location. This succeeded through a clean separation of responsibilities that architects call the “Four Horsemen”: PEP, PAP, PDP, and PIP.</p><h3>Where These Ideas Really Came From</h3><p>Google didn’t invent these concepts. Their roots go back to the early 2000s, when enterprises began to realize that hard-coding authorization logic into applications did not scale. Policies became inconsistent, audits were painful, and small changes required full redeployments.</p><p>In response, standards bodies introduced XACML (eXtensible Access Control Markup Language), which formally defined four logical roles:</p><ul><li>Policy Enforcement Point (PEP)</li><li>Policy Administration Point (PAP)</li><li>Policy Decision Point (PDP)</li><li>Policy Information Point (PIP)</li></ul><p>While XACML defines an authorization <strong>architecture</strong>; Zero Trust defines a <strong>security philosophy</strong> — the two often complement each other, but are not the same.</p><p>At the time, this separation felt academic. Google’s BeyondCorp proved it could work at planetary scale.</p><blockquote>“Architecture matters most when systems scale beyond human intuition.”</blockquote><h3>High-level authorization model</h3><p>Requests are enforced by PEPs, evaluated by a centralized PDP, governed by policies from a PAP, and enriched with contextual data from PIPs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1022/0*h8q_HCb2oc6EMLxM.png" /></figure><p><em>Requests are intercepted by PEPs, evaluated by the PDP, governed by PAP-defined policy, and enriched by PIPs.</em></p><h3>1. Policy Enforcement Point (PEP)</h3><p>The PEP is the gatekeeper.</p><p>It intercepts requests and enforces decisions. It does not interpret policy or fetch context. If the decision is <em>deny</em>, the request stops with no exceptions.</p><p>Typical examples:</p><ul><li>API gateways</li><li>Reverse proxies</li><li>Service mesh sidecars</li></ul><blockquote>“If enforcement is complex, the design is already broken.”</blockquote><h3>2. Policy Administration Point (PAP)</h3><p>The PAP is where intent lives.</p><p>Policies are authored, reviewed, versioned, and approved here. A good PAP allows security teams to manage rules without touching application code.</p><blockquote>“If your policies live in code, your auditors are reading Java.”</blockquote><h3>3. Policy Decision Point (PDP)</h3><p>The PDP is the brain.</p><p>It evaluates requests against policies and context and returns a deterministic answer: <em>allow</em> or <em>deny</em>.</p><p>Key traits:</p><ul><li>Centralized logic</li><li>Consistent outcomes</li><li>Strong logging for audit and debugging</li></ul><h3>4. Policy Information Point (PIP)</h3><p>Policies need facts. PIPs provide them.</p><p>Common inputs:</p><ul><li>User identity attributes</li><li>Device security posture</li><li>Resource classification</li><li>Risk and anomaly signals</li></ul><blockquote>“Context turns rules into judgment.”</blockquote><h3>Let’s see how Google applies it</h3><p>Google’s internal network had become too permissive.</p><p>Once users authenticated to the VPN, many internal services trusted the network implicitly. A single compromised credential could allow lateral movement across systems. Google removed the idea of a trusted internal network entirely:</p><ul><li>No default trust based on IP address</li><li>No broad VPN access</li><li>Every request authenticated, authorized, and encrypted</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*L7i5L4JYi1BqWHMH.jpg" /></figure><p>Only when <em>all</em> conditions were satisfied was access granted. Access decisions are based on identity and evaluated contextual signals, including location — rather than implicit trust in network placement.</p><h3>Outcome</h3><ul><li>VPNs became unnecessary for most access</li><li>Lateral movement was dramatically reduced</li><li>Authorization decisions became auditable and explainable</li></ul><p>BeyondCorp wasn’t a product. It was an architectural commitment.</p><h3>How this can be applied across major Public Clouds</h3><p>Today, security isn’t just about services; it’s about Policy as Code (PaC) and Identity-Aware Fabrics that handle both humans and AI agents. Now the major cloud providers have moved beyond “custom scripts” to dedicated Authorization-as-a-Service platforms.</p><h3>Why This Transition Matters</h3><p>In the “Old Way,” your security was only as good as the developer who wrote the authorization code. If they forgot a single if statement, you had a data breach.</p><p>In the Modern Way, security is architectural. Because the PDP is separate from the application, you can update a security policy across 1,000 microservices instantly without redeploying a single line of application code.</p><h3>Tips for the Transition:</h3><ol><li>Don’t DIY the PDP: Use managed services like Verified Permissions or Entra. Your developers should focus on features, not writing authorization engines.</li><li>Start with the PEP: If you can’t intercept the request, you can’t secure it. Ensure every entry point to your system has a PEP.</li><li>Audit the PIP: Your decisions are only as good as your data. If your PIP (Identity Provider) is messy, your authorization will be too.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Oaet5HEbx0l6lWwoEE7Kcw.png" /></figure><h3>AWS: The Cedar Revolution</h3><p>The Old Way (DIY): Engineers used to build a Custom PDP using AWS Lambda. The PEP (API Gateway) would trigger a Lambda function that manually checked a database (PIP) to see if a user had access. This was slow to develop and hard to audit.</p><p>AWS has replaced complex Lambda logic with Amazon Verified Permissions, a dedicated engine built on the Cedar policy language.</p><ul><li>PEP: Amazon API Gateway or VPC Lattice. Requests are intercepted and enforced at the network edge or service-to-service boundary.</li><li>PDP: Amazon Verified Permissions. It provides millisecond-latency decisions using Cedar policies that are mathematically provable and “stateless.” It evaluates requests based on principal, action, resource, and context.</li><li>PAP: AWS Management Console or Infrastructure as Code (Terraform/CDK). Policies are version-controlled in Git and deployed as “Policy Stores” in AWP.</li><li>PIP: Amazon Cognito, Amazon Verified Access, and application-provided context.<strong> </strong>Supplies identity attributes, device trust signals, and request-specific context used by the policy decision point during authorization evaluation.</li></ul><p>The diagram below illustrates how enforcement and decisioning are separated in practice (this is one of the example architectures).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EjStXKh7sZTYfEkxk6GAHw.png" /></figure><h3>Azure: The Entra Access Fabric</h3><p>The Old Way (DIY): Authorization was often scattered across Azure Functions and manually managed Role-Based Access Control (RBAC) groups. If you wanted to check device compliance, you had to write custom integration code.</p><p>Microsoft has unified its security under the Entra suite, treating every access request as part of a continuous “Access Fabric” that now natively supports AI identities.</p><ul><li>PEP: Microsoft Entra Private Access (for internal apps) or Azure API Management.</li><li>PDP: Microsoft Entra Conditional Access. This is the industry’s most advanced PDP, now using Security Copilot (AI) to evaluate risk in real-time.</li><li>PAP: Microsoft Entra Admin Center or Microsoft Graph API.</li><li>PIP: Microsoft Graph, Intune (for device compliance), and Entra Verified ID (for decentralized identity).</li></ul><p>The diagram below illustrates how enforcement and decisioning are separated in practice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/0*ytkJqDkkEKkOWHGl.png" /></figure><h3>GCP: BeyondCorp Enterprise &amp; Chrome</h3><p>The Old Way (DIY): Access was managed through complex IAM Policies and custom Cloud Run services acting as intermediate gates. It worked, but it was “heavy” to maintain.</p><p>Google has integrated the browser itself as the primary enforcement point, making the “Four Horsemen” invisible to the end user.</p><ul><li>PEP: Identity-Aware Proxy (IAP) and Chrome Enterprise Premium. The browser now acts as a first-class enforcement point, blocking data exfiltration at the tab level.</li><li>PDP: Access Context Manager. It evaluates levels of trust based on the user’s current environment.</li><li>PAP: GCP Console or Cloud Deployment Manager.</li><li>PIP: Cloud Identity, Endpoint Verification, and Security Command Center.</li></ul><p>The diagram below illustrates how enforcement and decisioning are separated in practice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/0*fzH_qXymLr_RHkxj.png" /></figure><h3>Cloud Implementation Comparison Matrix</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NVIRER3jGEegi7ggBqSbKg.png" /></figure><h3>Modern Additions</h3><h3>1. The Rise of Non-Human Identities (NHI)</h3><p>In 2026, more “users” are AI agents and Service Accounts than humans, so architecture must now handle “Machine-to-Machine” (M2M) authorization.</p><blockquote><em>Note: A PDP must be able to verify if an AI bot has the “human sponsorship” required to access sensitive customer data.</em></blockquote><h3>2. The Centralized PDP Pitfall</h3><p>While a centralized PDP is great for consistency, it is a Single Point of Failure (SPoF). Modern implementations solve this by using Edge PDPs.</p><ul><li>Instead of every request traveling back to a central server, the PAP pushes “mini-policies” out to the PEPs (like Cloudflare Workers or AWS Lambda@Edge) so the decision happens closer to the user.</li></ul><h3>3. The New Frontier: Policy as Code (PaC)</h3><p>The biggest change since Google published those papers isn’t <em>where</em> the decisions happen, but <em>how</em> they are written.</p><p>In modern systems, we no longer “configure” security; we code it. Using tools like Open Policy Agent (OPA) and languages like Rego or Cedar, security teams can now treat authorization exactly like software:</p><ol><li>Version Control: Policies live in Git. You can see exactly who changed a “Deny” to an “Allow” three months ago.</li><li>Automated Testing: Before a policy goes live, you run a test suite to ensure it doesn’t accidentally lock out the entire DevOps team.</li><li>Peer Review: A security engineer must “Approve” the Pull Request before the policy is deployed to the PDP.</li></ol><blockquote>“Security scales when policies are treated like software: versioned, tested, and peer-reviewed.”</blockquote><h3>Why This Architecture is Sustainable</h3><p>This model works because it enforces discipline:</p><ul><li>Enforcement is simple</li><li>Decisions are centralized</li><li>Policies are human-readable</li><li>Context is externalized</li></ul><p>Google proved it at massive scale. Today, the same pattern underpins modern Zero Trust systems across every major cloud.</p><blockquote>“Security scales when decisions are consistent and enforcement is unavoidable.”</blockquote><p>This model enforces separation of concerns. By moving the “brain” (PDP) away from the “gatekeeper” (PEP), you allow your applications to stay “dumb” and focused on business logic. The application doesn’t need to know <em>why</em> a user is allowed in; it only needs to trust the PEP’s enforcement.</p><p>The “Four Horsemen” (PEP, PAP, PDP, PIP) are the blueprint for a world where the network no longer protects you. As we move into an era of autonomous AI agents and hybrid work, this architecture isn’t just a “best practice”, it’s a requirement for survival. Authorization is not a feature you sprinkle into code. It is an architectural decision that shapes everything else.</p><p>If your authorization model <em>implicitly trusts</em> where a request comes from rather than evaluating who and what is making it, you’re still operating a pre-BeyondCorp security model.</p><p><em>Thanks for reading, hope this blog provided some useful inputs on how moderns sstems secure access, for any feedback please feel free to reach out.</em></p><p><strong>You can read my other blogs </strong><a href="https://medium.com/@connectwithneeraj"><strong>here</strong></a><strong> or connect with me on </strong><a href="https://www.linkedin.com/in/clouddevopsarchitect/"><strong>LinkedIn</strong></a><strong>.</strong></p><h3>References &amp; Credits</h3><ol><li><a href="https://research.google/pubs/pub43231/">Google Research BeyondCorp: A New Approach to Enterprise Security</a></li><li><a href="https://cloud.google.com/beyondcorp">Google Cloud BeyondCorp Documentation</a></li><li><a href="https://www.oasis-open.org/committees/xacml/">OASIS XACML Standard</a></li><li><a href="https://csrc.nist.gov/publications/detail/sp/800-207/final">NIST Zero Trust Architecture (SP 800–207)</a></li><li><a href="https://docs.aws.amazon.com/security/">AWS Security Documentation</a></li><li><a href="https://www.microsoft.com/security/business/zero-trust">Microsoft Zero Trust Guidance</a></li><li><a href="https://cloud.google.com/iap">Google Cloud Identity-Aware Proxy</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89ba5ec43051" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building AI on AWS in 2025 — A Recap]]></title>
            <link>https://techbyneeraj.medium.com/building-ai-on-aws-in-2025-a-recap-c3ce676b80dc?source=rss-2995667ba31f------2</link>
            <guid isPermaLink="false">https://medium.com/p/c3ce676b80dc</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Neeraj Sharma]]></dc:creator>
            <pubDate>Wed, 31 Dec 2025 21:05:09 GMT</pubDate>
            <atom:updated>2025-12-31T21:05:09.944Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building AI on AWS in 2025 — A Recap</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*K_JvFznOT-XYNUbZ" /></figure><blockquote>“The best years in tech aren’t always the most exciting ones, they’re the ones where things begin to make sense.”</blockquote><p>By the end of 2025, one thing became clear: AI on the cloud finally started to feel normal. Not boring, but dependable. And for <strong>Amazon Web Services</strong>, that was a very good year.</p><p>In my opinion, AWS did not try to win headlines with bold claims or dramatic positioning. Instead, it focused on making AI easier to build, easier to run, and easier to trust. For teams actually shipping AI into production, that approach quietly paid off.</p><p>This is a simple quick recap of how AWS approached AI in 2025, what it shipped, and if many builders walked away feeling more confident than overwhelmed.</p><h3>A personal moment that changed my view on AWS AI</h3><p>Early in 2025, I remember talking to a friend who happens to be an engineering lead, and had already lived through two “AI platform rewrites” in less than a year. Each time, a new tool promised to simplify everything, and each time, the system became harder to operate. When I asked what they thought about AWS’s latest AI updates, they paused and said, “Nothing here feels revolutionary, and that’s exactly why we’re adopting it.”</p><p>That stuck with me.</p><p>Later in the year, another leader from one of my previous employers described migrating their retrieval pipeline to native AWS services. Their feedback was not excitement, but relief. Fewer components to maintain. Fewer failure points. Fewer late-night alerts. That emotional response tells you a lot about where AWS AI landed in 2025.</p><h3>AWS focused on foundations, not flash</h3><p>AWS’s AI strategy in 2025 followed a clear pattern:</p><ul><li>Let customers choose models freely</li><li>Make AI systems reliable and governable</li><li>Lower the cost and operational burden</li></ul><p>Instead of selling “AI magic,” AWS sold predictability. For enterprises and serious builders, that was a welcome shift.</p><h3>Amazon Bedrock became the center of AWS AI</h3><p>Amazon Bedrock matured significantly in 2025 and became the foundation for most AI work on AWS. It has turned into a centerstage service while speaking of AI at AWS in last few years.</p><h3>Model choice without lock-in</h3><p>AWS expanded Bedrock to support a wide range of foundation models, including proprietary and open-weight options. The key idea was flexibility. Teams could test, compare, and switch models without redesigning their entire application.</p><p>In practice, this meant fewer architectural regrets. If a model stopped performing well or became too expensive, teams had options.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*CxewqqmKDcLLCxB6" /></figure><h3>Smarter fine-tuning for real workflows</h3><p>AWS introduced reinforcement-style fine-tuning in Bedrock. Instead of retraining models from scratch, teams could improve performance using feedback loops tied to real outcomes.</p><p>This worked especially well for internal tools, customer support flows, and domain-specific tasks where labeled data is limited but human feedback is available.</p><h3>Agents that felt safe to deploy</h3><p>2025 was also the year AWS made agents feel usable in production. Bedrock added evaluation tools, guardrails, and policy controls so teams could understand what agents were doing and stop them when needed.</p><p>This did not remove risk, but it made risk manageable. And that is often the difference between experimentation and deployment.</p><h3>Vector storage became part of everyday AWS architecture</h3><p>One of the most practical AI features AWS launched in 2025 was S3 Vectors.</p><p>Instead of relying on external vector databases, teams could now store and search embeddings directly within the AWS storage ecosystem. This made retrieval-augmented generation setups simpler, cheaper, and easier to operate.</p><p>For many teams, this removed an entire category of infrastructure from their diagrams. That alone saved time, money, and stress.</p><h3>SageMaker grew quieter and more reliable</h3><p>SageMaker updates in 2025 focused on stability. AWS improved large-scale training with better recovery, elastic scaling, and stronger monitoring. Training jobs became less fragile and easier to resume after failures.</p><p>This mattered for teams running long experiments or training at scale. Instead of babysitting jobs, engineers could focus on results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*5cAZWNZ6GSEkI9sp.png" /></figure><h3>Custom chips shaped AWS’s AI cost story</h3><p>AWS continued investing heavily in its own silicon, especially Trainium and Inferentia.</p><p>While GPUs remained important, many customers found that AWS chips offered better availability and lower costs for steady workloads. In a year when AI budgets were under scrutiny, that flexibility mattered.</p><p>AWS’s message was simple: performance is important, but predictable costs are just as critical.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*69HpKNWVWFUkfl37.jpg" /></figure><h3>Hybrid and regulated AI got real attention</h3><p>Another positive sign in 2025 was AWS’s support for AI outside the public cloud.</p><p>AWS introduced ways to run managed AI infrastructure in customer data centers while keeping the same APIs and tooling. This opened doors for industries with strict data residency and compliance needs.</p><p>Instead of forcing customers to compromise, AWS adapted its platform to meet them where they are.</p><h3>A few interesting takeaways from AWS AI in 2025</h3><ul><li>AWS treated AI as infrastructure, not a special experiment</li><li>Bedrock emphasized choice and flexibility over exclusivity</li><li>Vector search became a native cloud capability</li><li>Training and inference costs became a first-class concern</li><li>Reliability and governance were built in, not bolted on</li></ul><p>Individually, these are small steps. Together, they represent a mature approach to AI.</p><h3>Why 2025 felt like a turning point</h3><p>What made AWS’s AI story optimistic in 2025 was not speed, but confidence. Teams stopped asking, “Should we build this?” and started asking, “How do we run this well?”</p><p>That shift only happens when tools feel dependable.</p><p>AWS may not always feel exciting, but in 2025, it felt trustworthy. And for organizations betting real products and real revenue on AI, that trust is everything.</p><p><em>Thanks for reading, hope this blog provided quick recap on AI on AWS, for any feedback please feel free to reach out.</em></p><p><strong>You can read my other blogs </strong><a href="https://medium.com/@connectwithneeraj"><strong>here</strong></a><strong> or connect with me on </strong><a href="https://www.linkedin.com/in/clouddevopsarchitect/"><strong>LinkedIn</strong></a><strong>.</strong></p><h3>Reference resources for this blog</h3><ul><li><strong>AWS AI Services Overview</strong> — a central page listing all AWS AI tools and services. <a href="https://aws.amazon.com/ai/services">AWS AI tools and services overview (official)</a></li><li><strong>Top AWS re:Invent 2025 AI Announcements</strong> — official roundup of the biggest cloud and AI news from re:Invent 2025. <a href="https://aws.amazon.com/blogs/aws/top-announcements-of-aws-reinvent-2025">Top AWS re:Invent 2025 announcements (AI highlights)</a></li><li><strong>Amazon Bedrock vs SageMaker Guide</strong> — help choosing the right AWS AI service for your needs. <a href="https://docs.aws.amazon.com/decision-guides/latest/bedrock-or-sagemaker/bedrock-or-sagemaker.html">Amazon Bedrock and SageMaker comparison guide (AWS Docs)</a></li><li><strong>AWS AI Factories</strong> — AWS’s managed AI infrastructure for hybrid and on-prem deployments. <a href="https://aws.amazon.com/about-aws/whats-new/2025/12/aws-ai-factories">AWS AI Factories announcement (2025)</a></li><li><a href="https://aws.amazon.com/ai/machine-learning/trainium/">AWS Trainium AI chips (official)</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c3ce676b80dc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS Security in 2025: What Actually Changed and Why It Matters]]></title>
            <link>https://techbyneeraj.medium.com/aws-security-in-2025-what-actually-changed-and-why-it-matters-78d2621487fc?source=rss-2995667ba31f------2</link>
            <guid isPermaLink="false">https://medium.com/p/78d2621487fc</guid>
            <category><![CDATA[cloud-security]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Neeraj Sharma]]></dc:creator>
            <pubDate>Sat, 13 Dec 2025 17:54:50 GMT</pubDate>
            <atom:updated>2025-12-13T17:56:12.542Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Jxp-i9gtMRMrIXHh.png" /></figure><blockquote><strong>Security doesn’t usually change through big launches. It improves when teams can finally see what matters and act on it.</strong></blockquote><p>Cloud security rarely improves through big, dramatic shifts. More often, it gets better through incremental changes that reduce noise, improve context, and make it easier for teams to act. Looking back at AWS security announcements in 2025, that pattern is hard to miss.</p><p>Instead of launching entirely new categories of tools, AWS focused on making existing security services more operationally useful, especially for teams operating at scale. The emphasis was less on novelty and more on fixing long-standing operational pain points.</p><p>This blog post covers the AWS security updates from 2025 that stood out to me, and why they matter in real environments rather than in slide decks.</p><h3>AWS Security Hub: From Compliance Dashboard to Operational Tool</h3><p>One of the most meaningful updates this year was the general availability of Security Hub with near real-time analytics and risk prioritisation.</p><p>Historically, Security Hub did a solid job aggregating findings, but many teams still struggled to answer a basic question: what should we fix first? In practice, the volume of findings often outpaced the team’s ability to respond.</p><p>The 2025 updates move Security Hub closer to addressing that gap by introducing:</p><ul><li>Near real-time risk scoring across accounts and Regions</li><li>Automatic correlation of findings from services such as GuardDuty, Inspector, and Macie</li><li>Historical and trend-based risk views</li><li>Improved organisation-wide visibility and central management</li></ul><p>These changes shift Security Hub away from being primarily a reporting and compliance dashboard toward something that can realistically support day-to-day security operations.</p><h3>Amazon GuardDuty: Better Threat Stories, Not Just Alerts</h3><p>GuardDuty also saw meaningful improvements in 2025, particularly with Extended Threat Detection for EC2 and ECS workloads.</p><p>The core improvement here is correlation. The trend, sounds familiar? Instead of emitting isolated alerts, GuardDuty now links related signals across network activity, API calls, and runtime behaviour to surface multi-stage attacks.</p><p>In practice, this results in:</p><ul><li>Fewer low-context alerts</li><li>Higher-confidence findings</li><li>Faster investigations</li></ul><p>For teams running containerised, ephemeral, or highly dynamic workloads, this additional context significantly reduces investigation time and alert fatigue. In my experience, this is a really a big problem for SRE teams.</p><h3>AWS Security Agent (Preview): Security Earlier in the Lifecycle</h3><p>One of the more forward-looking announcements this year was the AWS Security Agent, currently in preview.</p><p>The intent is clearly to help teams identify security risks earlier, rather than waiting until workloads are already deployed. The agent is designed to:</p><ul><li>Assess application security using architectural and code context</li><li>Highlight risks during design and development phases</li><li>Reduce manual review effort through automated analysis</li></ul><p>While it is still early, this aligns with a broader shift toward embedding security into the software development lifecycle instead of bolting it on after the fact.</p><h3>AI Across AWS Security Services: Quiet, Practical Progress</h3><p>There has been no shortage of AI hype in security, but AWS has taken a relatively restrained approach. In 2025, AI features across security services focused mainly on:</p><ul><li>Summarising and enriching findings</li><li>Improving prioritisation</li><li>Assisting investigations and triage</li></ul><p>The emphasis is on reducing operational toil rather than replacing human judgement. From a practitioner’s perspective, that restraint is a positive sign.</p><p>Related announcements at re:Invent also pointed toward agent-based assistance for incident response and security operations, reinforcing the idea of AI as a copilot rather than an autonomous decision maker.</p><h3>IAM and Preventive Guardrails: Incremental but Important</h3><p>Not every meaningful security improvement comes with a headline announcement. Throughout 2025, AWS continued to strengthen IAM, Access Analyser, and preventive guardrails.</p><p>Most of these updates focused on:</p><ul><li>Clearer policy insights</li><li>Safer defaults</li><li>Better detection of unintended access</li></ul><p>Misconfigurations remain one of the most common causes of cloud security incidents. Incremental improvements in this area often have more real-world impact than entirely new detection features.</p><h3>Security Features in 2025 at a Glance</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W6BB4Gw4IE5sGcdVc_IIBw.png" /></figure><h3>What These Changes Say About AWS Security Direction</h3><p>AWS does not publish a single security roadmap, but the direction becomes clear when these updates are viewed together:</p><ul><li>The focus is shifting from producing large volumes of findings to enabling better decisions through prioritisation and correlation.</li><li>Security insights are increasingly enriched with workload context and runtime behaviour.</li><li>More security controls are being introduced earlier in the lifecycle, reducing reliance on post-deployment fixes.</li><li>Automation is evolving to support human judgement, favouring transparent and assistive workflows over opaque systems.</li></ul><p>These changes reflect how real security teams operate today. Teams are stretched, environments move quickly, and expectations remain high.</p><h3>Final Thoughts</h3><p>If I had to summarise AWS security in 2025 in a single sentence, it would be this: AWS is focusing less on adding new security tools and more on making existing ones easier to operate at scale.</p><p>Strong security still starts with sound architecture, clear ownership, and least privilege. The tooling is improving, but intent and design remain more important than features.</p><p>As always, the best security decisions begin with understanding the business problem, not the service announcement.</p><p>My other medium blogs are available <a href="https://techbyneeraj.medium.com/">here.</a></p><p><strong>Disclaimer:</strong> This post reflects personal experience and publicly available AWS announcements. Always refer to official AWS documentation for the most up-to-date information.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=78d2621487fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Decoding Azure Solutions Architect Expert Exam (AZ‑305): Tips & Tricks]]></title>
            <link>https://techbyneeraj.medium.com/decoding-azure-solutions-architect-expert-exam-az-305-tips-tricks-fbd675bc10ea?source=rss-2995667ba31f------2</link>
            <guid isPermaLink="false">https://medium.com/p/fbd675bc10ea</guid>
            <category><![CDATA[certification]]></category>
            <category><![CDATA[architecture]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[azure]]></category>
            <dc:creator><![CDATA[Neeraj Sharma]]></dc:creator>
            <pubDate>Fri, 04 Jul 2025 18:02:14 GMT</pubDate>
            <atom:updated>2025-07-04T20:26:30.980Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Decoding </strong>AZ‑305: Designing Microsoft Azure Infrastructure Solutions Exam<strong>: Tips &amp; Tricks</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BvXUzSZd_oxNF07HETryBA.png" /></figure><blockquote>“Every company is a software company.”<br> — Satya Nadella, CEO of Microsoft</blockquote><p><strong>Background about the exam</strong></p><p>As we all know that Cloud has become the new baseline for delivering modern workloads, and organisations now expect solutions that are secure, cost‑optimised, resilient, and compliant from day one. Cloud architectures are always built with trade-offs in mind. Though one needs to look for strategic solutions as refactoring/changes can be challenging in future, at the same time one should not try to over-engineer solutions.</p><p>The Azure Solutions Architect Expert credential is Microsoft’s endorsement for designing exactly that.</p><p>Though AZ-104 isn’t required before you sit the AZ-305 exam, but you must hold an active AZ-104 Azure Administrator certification in order to receive the Microsoft Certified Azure Solutions Architect Expert badge.</p><p>The exam validates one’s expertise in turning business requirements into well‑architected cloud designs.</p><p>I first earned the Solutions Architect Expert badge back in 2022. Unfortunately I missed my renewal for the exam on 28 March 2025. Honestly, it felt bad and hence I thought of regaining it asap. I got the first opportunity to sit for the exam on July 1st.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AVeZP5Bwl3hik12olR_BRA.png" /></figure><p><strong>Exam overview</strong></p><p><strong>Difficulty level:</strong> I will rate it a 6 on a scale of 10 on a difficulty level. In fact I felt that exams like AZ-500, AZ-104 are much harder in comparison.</p><p><strong>Question types: </strong>Case studies, multiple‑choice, drag‑and‑drop architecture diagrams.</p><p><strong>Skills measured: </strong>Identity &amp; governance, data storage, business continuity, infrastructure design</p><p><strong>Target audience</strong></p><ul><li>Cloud or solutions architects involved in designing solutions on Azure.</li><li>Senior DevOps or infra engineers wanting to move from implementation to designer/architect roles.</li></ul><p><strong>Exam domains (Microsoft update: 18 Oct 2024)</strong></p><p><strong>Domain &amp; Weight</strong></p><p>· Design identity, governance &amp; monitoring: 25–30 %<br>· Design data storage solutions: 20–25 %<br>· Design business‑continuity solutions: 15–20 %<br>· Design infrastructure solutions: 30–35 %</p><p><strong>Exam logistics</strong></p><ul><li><strong>Questions:</strong> 40–60 (I got 49 questions this time, including 6 from case study)</li><li><strong>Duration:</strong> 120 minutes seat time (140 min including NDA &amp; survey)</li><li><strong>Passing score:</strong> 700/1000</li><li><strong>Cost:</strong> US $165 (varies by region)</li><li><strong>Delivery:</strong> Online proctoring via Pearson VUE or in‑centre</li><li><strong>Validity:</strong> 1 year, renewable with a free online assessment</li><li><strong>Retake policy:</strong> 24 hours wait after first fail and then 14 days between attempts (max 5 per 12 months)</li></ul><p><strong>Important Topics and Quick Tips</strong></p><p>· Understand management group hierarchy, Azure Policy vs. Blueprints, and Conditional Access. There were few questions which mentioned Conditional access.</p><p>· Know redundancy options and when to use Cosmos DB, SQL Managed Instances, or PostgreSQL Flexi. Understand which performance tiers allows storage tier transitions.</p><p>· Understand RTO/RPO and how to map to Azure Site Recovery/Backup and design for regional resilience, how it relates to on-prem DR scenerios.</p><p>· Compare hybrid connectivity options, container services espcially AKS.</p><p>· Good understanding of cost optimisation strategies for various services can be helpful to solve few questions, I saw few of them in the exam.</p><p>· Concepts around Log Analytics queries and configure alerts with Azure Monitor.</p><p>· In long case‑study questions, read the last line first (I do it this way and found it effective), it usually states the key constraint.</p><p>· There’s no programming language‑selection step (unlike AI‑102), AZ‑305 is architecture‑centric which can be relatively easy for architects who dont code much.</p><p><strong>Recommended/Useful resources</strong></p><p>· <a href="https://learn.microsoft.com/en-us/credentials/certifications/resources/study-guides/az-305">AZ-305 Study Guide</a></p><p>· <a href="https://learn.microsoft.com/en-us/training/paths/microsoft-azure-architect-design-prerequisites/">Learning Paths &amp; Modules</a></p><p>· <a href="https://learn.microsoft.com/en-us/credentials/certifications/resources/study-guides/az-305#exam-sandbox">AZ-305 Sandbox</a></p><p>· <a href="https://learn.microsoft.com/en-us/credentials/certifications/exams/az-305/#resources">Start Practice Test</a></p><p>· <a href="https://www.youtube.com/playlist?list=PLlVtbbG169nH_CJl4wwKBfS1V8nMYr7xL">John Savill AZ-305 Playlist</a></p><p><strong>Final thoughts</strong></p><p>I see this exam as a validation of one’s skills which is about balancing security, cost, performance, and resilience with Azure’s ever‑evolving toolbox. The study prep will sharpen the very skills you’ll use daily as a cloud architect, so enjoy the process. And as we know, the best architecture diagrams start with the business problem, not from service features.</p><p><strong><em>Disclaimer: </em></strong><em>This guide reflects my own experience and public Microsoft documentation. Always check the official exam page for the latest changes before scheduling.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fbd675bc10ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Decoding Azure AI Engineer Associate Exam (AI-102): Tips and Tricks]]></title>
            <link>https://techbyneeraj.medium.com/decoding-azure-ai-engineer-associate-exam-ai-102-tips-and-tricks-f307c28871f8?source=rss-2995667ba31f------2</link>
            <guid isPermaLink="false">https://medium.com/p/f307c28871f8</guid>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[certification]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Neeraj Sharma]]></dc:creator>
            <pubDate>Mon, 26 May 2025 11:26:16 GMT</pubDate>
            <atom:updated>2025-08-30T17:18:02.201Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/272/1*zVgQ4kDk7ZUKosIsMknumw.png" /></figure><blockquote>“AI won’t take your job; the person who uses AI will.”<br> — Jensen Huang, CEO of NVIDIA</blockquote><h3>Why this AI exam matters</h3><p>In last few years artificial intelligence has moved from research labs into everyday use. AI is now increasingly integrated in products and services we use on a daily basis. This has accelerated the demand for engineers who can design, build, and secure AI solutions responsibly.</p><p>Like Security, AI is no more an afterthought for most organisations and hence strategic use of AI including responsible AI and ethical considerations are now baked into design discussions and treated as first class design considerations.</p><p>Last few years have not only seen AI adoption sky‑rocket but with it an increasing spotlight on topics such as model misuse, data privacy, and recognition of inherent biases. Reports from <a href="https://www.gartner.com/en/newsroom/press-releases/2024-02-29-ai-regulations-to-drive-responsible-ai-initiatives">Gartner</a>, <a href="https://www.mckinsey.com/alumni/news-and-events/global-news/firm-news/responsible-ai-confronting-risks-guiding-application">McKinsey</a>, and Microsoft’s own Responsible AI <a href="https://www.microsoft.com/en-us/corporate-responsibility/responsible-ai-transparency-report">research</a> make it clear that organisations are hungry for AI skills delivered with a safety‑first mindset. Though we see rampant use of AI, various reports including one from <a href="https://www.gartner.com/en/newsroom/press-releases/2024-10-03-gartner-says-generative-ai-will-require-80-percent-of-engineering-workforce-to-upskill-through-2027">Gartner,</a> suggests that there is a severe shortage of quality AI engineers, driving massive upskilling for existing engineers.</p><p>Unsurprisingly, the Azure AI Engineer Associate certification (AI‑102) has become one of the most sought after certifications in industry today.</p><p>As per Microsoft’s official guide, this certification validates your ability to plan, build, manage, and deploy end‑to‑end Azure AI solutions that make use of services such as Azure AI Vision, Azure AI Language, Azure AI Search and many other.</p><h3>Background</h3><p>My journey into Azure AI started back in late 2023, when I was asked to prototype a chatbot that could answer product queries by reading PDFs stored in Azure Blob Storage. What began as a small proof‑of‑concept turned into six months of deep‑dive learning across Azure Cognitive Services, Natural Language Processing, and MLOps. Along the way I earned a handful of AI‑related certifications, but AI‑102 was on my radar from sometime as the gold standard for demonstrating real‑world solution skills.</p><h3>Exam Overview</h3><p>The AI‑102 exam measures your ability to translate business requirements into secure, scalable, and responsible Azure AI solutions. On a difficulty scale of 1 to 10, I’d place it around an 5 because of its breadth, covering everything from generative AI and RAG (Retrieval‑Augmented Generation) to computer vision, speech, and knowledge mining. Expect scenario‑based questions that test not just what each service does, but <strong><em>when</em></strong><em> </em>you should choose one service over another.</p><h3>Target Audience</h3><p>This certification is aimed at professionals who design, implement, and monitor AI solutions on Azure. Typical candidates include AI engineers, solution architects with an AI focus, and senior developers who need to infuse AI capabilities like vision, speech, or generative AI, into existing applications.</p><h3>Exam Domains</h3><p>The exam is divided into the following domains (updated 30 April 2025):</p><ul><li><strong>Plan and manage</strong> an Azure AI solution — 20–25 %</li><li><strong>Generative AI solutions</strong> — 15–20 %</li><li><strong>Agentic solutions</strong> — 5–10 %</li><li><strong>Computer vision solutions</strong> — 10–15 %</li><li><strong>Natural language processing solutions</strong> — 15–20 %</li><li><strong>Knowledge mining &amp; information extraction</strong> — 15–20 %</li></ul><p>A detailed breakdown of these domains can be found in the Official Study Guide on Microsoft Learn (refer to resources section).</p><h3>Exam Logistics</h3><p>· <strong>Format</strong>: 50–60 questions (multiple choice, multiple response, and case studies). I got 50 on the exam.</p><p>· <strong>Duration:</strong> 100 minutes</p><p>· <strong>Cost: </strong>USD $165 (varies by country; always refer to the official exam page for the most current pricing).</p><p>· <strong>Mode:</strong> Available both online via Pearson VUE and in‑person at testing centres.</p><p>· <strong>Results:</strong> Typically available immediately after completion.</p><p>· <strong>Certification Validity:</strong> 1 year, with free renewal via an online assessment on Microsoft Learn. Just in case you fail, you can retake it 24 hours after the first attempt.</p><p><strong>Important note <br></strong>At the beginning of exam, it asks for your choice of programming language. There are just two options, Python and C#. I choose Python as my preferred language for the exam. The code snippets and questions based on it are modelled in your chosen programming language.</p><h3>Preparation Strategy</h3><p>I have a moderate exposure on Azure AI services, though the landscape is changing fast so one has to be on their toes all the time. I still set aside three weeks for focused study, following the free Microsoft Learn learning path, and few practice tests from Udemy. If you’re starting from scratch, budget at least a month of consistent, structured preparation.</p><p>I highly recommend trying some Hands‑on labs at least the ones provided on Microsoft learn learning path. They are absolutely essential especially for topics like Azure AI services, Azure AI language, and Vision Studio custom models deployments. You can sign up for a free Azure trial account or use the sandbox provided by Azure Learn.</p><p>You have access to MS learn website and search functionality during the exam. Personally, I felt it was very slow to load and search and just slows one down but it is still something worth considering in your planning strategy.</p><p>There was one enterprise case study in my exam. I found it both challenging to analyse but interesting.</p><p>· <strong>Responsible AI</strong>: Understand content safety filters, blocklists, and how the Azure AI Content Safety service plugs into the moderation pipeline. There were few questions on this section especially safety filters and blocklists.</p><p>· <strong>Generative AI &amp; RAG: </strong>Brush up<strong> </strong>LLMs basics, including Azure OpenAI Service, embeddings and usecases, temperature and impact of parameters like top-p. Understand what token means in LLM’s context and bearing on costs. Do a quick read-through of the relatively new Azure AI Foundry.</p><p>· <strong>Agentic solutions: </strong>Be comfortable with the use cases like when to use orchestrator flow vs. function calling.</p><p>· <strong>Computer Vision</strong>: Practice building a custom vision model and know the trade‑offs between image classification and object detection. Remember when to choose the specific Custom Vision versus general Azure AI services as there is some overlap.</p><p>· <strong>Natural Language Processing</strong>: Brush up on language detection, sentiment analysis, and translation APIs. You can expect a couple of questions on custom language models and Azure Question Answering service formerly known as QnA Maker.</p><p>· <strong>Knowledge Mining</strong>: Get comfortable provisioning Azure AI Search, defining skillsets, and querying indexes with vector search. I got few questions around it.</p><h3>Final Thoughts</h3><p>Earning the Azure AI Engineer Associate certification was both challenging and rewarding. The exam pushes you to think holistically about AI solutions — balancing performance, cost, security, and responsibility.</p><p>Whether you’re looking to pivot into an AI‑focused role or chasing a promotion, AI‑102 is a stamp of credibility that employers and others recognise. Not to forget the confidence, prepraring for the exam instills in onself by understanding various Azure AI Services deeply.</p><p>Good luck on your certification journey — and remember, the best way to learn AI is to build with it!</p><h3>Recommended Resources</h3><ol><li><a href="https://learn.microsoft.com/en-us/credentials/certifications/azure-ai-engineer/?practice-assessment-type=certification">Exam Duration and Experienc</a>e</li><li><a href="https://learn.microsoft.com/en-us/credentials/support/retake-policy">Exam Retake Policy</a></li><li><a href="https://learn.microsoft.com/en-us/credentials/certifications/azure-ai-engineer/?practice-assessment-type=certification">Microsoft Learn Modules and AI Learning Path</a></li><li><a href="https://learn.microsoft.com/en-us/shows/exam-readiness-zone/preparing-for-ai-102-plan-and-manage-an-azure-ai-solution">Official Readiness Prep Videos</a></li><li><a href="https://learn.microsoft.com/en-us/credentials/certifications/azure-ai-engineer/practice/assessment?assessment-type=practice&amp;assessmentId=61&amp;practice-assessment-type=certification">Microsoft Practice Assessment</a></li><li><a href="https://go.microsoft.com/fwlink/?linkid=2226877">Exam Sandbox for a realistic exam environment</a></li></ol><p>Thanks for reading. Feel free to connect with me on <a href="https://www.linkedin.com/in/clouddevopsarchitect/">LinkedIn</a> or follow my medium blogs <a href="https://techbyneeraj.medium.com/">here</a> for more tech related content.</p><h3>Credits</h3><p>Microsoft Azure Exam Guide, Microsoft Documentation.</p><p><strong>Disclaimer<br></strong>The information above is based on my personal experience. Please use discretion to determine what works for your situation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f307c28871f8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Decoding Azure Security Engineer Associate Exam: Tips and Tricks]]></title>
            <link>https://techbyneeraj.medium.com/decoding-azure-security-engineer-associate-exam-tips-and-tricks-92c371ec04da?source=rss-2995667ba31f------2</link>
            <guid isPermaLink="false">https://medium.com/p/92c371ec04da</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[cloud-security]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Neeraj Sharma]]></dc:creator>
            <pubDate>Sat, 08 Feb 2025 12:42:24 GMT</pubDate>
            <atom:updated>2025-02-08T15:30:54.239Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/282/1*2rNkyRVitBNDvWx0TgVxEQ.png" /></figure><blockquote><strong>“Trust but verify.”</strong></blockquote><blockquote>Ronald Reagan</blockquote><p><strong>“AI or no AI, security will always be around,”</strong> someone recently remarked during a conversation, and it struck a chord with me. This statement feels so true, as technology continues to touch or better say, penetrate every aspect of our lives, the focus is likely to shift from physical security to digital and cybersecurity.</p><p>In technology, we often talk about “shift-left”, a concept that reflects a growing consensus that security is no longer just a checklist item. Instead, it’s an overarching concern that needs to be integrated into every phase of the SDLC (Software Development Lifecycle).</p><p>In last few years we have already seen this trend, security breches and hacks are an all time high, just to reference facts from some reports (<a href="https://secureframe.com/blog/data-breach-statistics">secureframe</a>, <a href="https://www.gov.uk/government/statistics/cyber-security-breaches-survey-2024/cyber-security-breaches-survey-2024">gov.uk</a>,<a href="https://www.techtarget.com/whatis/34-Cybersecurity-Statistics-to-Lose-Sleep-Over-in-2020"> techtarget</a>). And so is the demand for cybersecurity professionals and cloud security (<a href="https://www.gov.uk/government/publications/cyber-security-skills-in-the-uk-labour-market-2024/cyber-security-skills-in-the-uk-labour-market-2024">gov.uk report</a>, <a href="https://www.cyberseek.org/heatmap.html">cyberseek</a>).</p><p>May be I have convinced you enough to start looking Security/Cloud Security from different lens or may be with bit more respect, if it was not earlier the case :-)</p><p>As per Microsoft official guide, this certification validates your expertise in implementing security controls, maintaining security posture, managing identity and access, and protecting data, applications, and networks in Microsoft Azure environments.</p><p><strong>Background</strong></p><p>My journey into cloud security began in 2018 when I was working with AWS. I was asked to upskill on AWS security services for customer engagements, which led me to spend six months to a year learning the nitty-gritty of security while also earning several security certifications along the way.</p><p>If you’re interested, I wrote a <a href="https://medium.com/@connectwithneeraj/ace-your-aws-security-speciality-certification-exam-in-style-b973b3c6aa03">blog</a> about my AWS Security Engineer Specialty Certification experience.</p><p>Am I digressing by talking about my AWS security experience in a blog about Azure Security Certification? Partly, yes — but it’s intentional. My goal is to highlight that cloud security principles remain largely the same across vendors. My previous experience has been invaluable in my day-to-day work within the Azure Security ecosystem over the last 2–3 years, as well as in preparing for this certification.</p><p><strong>Exam Overview</strong></p><p>The AZ-500 exam assesses a candidate’s ability to manage identity and access, implement platform protection, manage security operations, and secure data and applications within Azure. On a difficulty scale of 1 to 10, I would rate this exam around a 8, considering its comprehensive coverage of Azure security topics. To be honest, I have found this exam as one of the toughest among ones I have appeared for.</p><p><strong>Target Audience</strong></p><p>This certification is designed for professionals who implement, manage, and monitor security for Azure resources. Ideal candidates include security engineers, Azure administrators, and IT professionals responsible for securing Azure environments.</p><p><strong>Exam Domains</strong></p><p>The exam is divided into the following domains:</p><ol><li><strong>Manage Identity and Access (30–35%)</strong></li><li><strong>Implement Platform Protection (15–20%)</strong></li><li><strong>Manage Security Operations (25–30%)</strong></li><li><strong>Secure Data and Applications (25–30%)</strong></li></ol><p>A detailed breakdown of these domains can be found in the <a href="https://learn.microsoft.com/en-gb/credentials/certifications/resources/study-guides/az-500">Official Study Guide</a>.</p><p><strong>Exam Logistics</strong></p><ul><li><strong>Format:</strong> 40–60 questions (multiple choice, multiple response, and case studies).</li><li><strong>Duration:</strong> 150 minutes. For exam, it is 120 or 140 mins depending on whether Labs sessions were included or not in your exam. This is not known in advance.</li><li><strong>Cost:</strong> $165 USD (subject to change; always refer to the <a href="https://learn.microsoft.com/en-us/credentials/certifications/azure-security-engineer/">official exam page</a> for the most current pricing).</li><li><strong>Mode:</strong> Available both online via Pearson VUE and in-person at testing centers.</li><li><strong>Results:</strong> Typically available immediately after completion.</li><li><strong>Certification Validity:</strong> 1 year, with options for renewal through online assessments. Please note: there is no fees for certification renewals and this is what I like the most about Azure Exams.</li></ul><p><strong>Preparation Strategy</strong></p><p>I use many Azure Security services and features in my day-to-day job, which are also part of the exam domains. However, I still needed about a week to go through video courses and assessments on Udemy, as well as browse through Microsoft’s official resources. Links to these resources are available in the <strong>Recommended Resources</strong> section.</p><p>For this exam, I highly recommend having sufficient hands-on labs or practical exposure as you can expect many scenerio based questions where you need to analyse configurations, troubleshoot and suggest fixes.</p><p>One effective strategy for practice is signing up for a free Azure subscription, which provides free credits for a month. Engaging in practical labs will reinforce theoretical knowledge and concepts, making the learning process much more effective.</p><p><strong>Tips and Tricks</strong></p><ul><li><strong>Security Operations: </strong>I think gaining proficiency in using Microsoft Defender for Cloud and Azure Sentinel for threat detection and response, can be useful both from professional and certification standpoint. I think I had around a dozen questions on Azure defender.</li><li><strong>Network Security: </strong>Be well-versed in configuring virtual networks, network security groups (NSG), Azure Firewalls. You can expect at least 5–10 troubleshooting or analysis based questions around network security.</li><li><strong>Understand Microsoft Entra (Azure AD):</strong> A significant portion of the exam focuses on identity and access management. Ensure you’re familiar with user and group management, role-based access control (RBAC), and conditional access policies. You might see some questions on PIM as well.</li><li><strong>Data Protection:</strong> Try to understand encryption methods, Azure Storage Accounts Security, Azure Key Vault Security, and best practices for securing data at rest and in-transit.</li></ul><p><strong>Final Thoughts</strong></p><p>Pursuing the AZ-500 certification has been a rewarding experience, for myself which enhanced my understanding of Azure’s security landscape and boosted my confidence. For those preparing for this certification, I highly recommend a good balance of hands-on practice and conceptual understanding. There are plenty of free resources available, some of which are listed in the section below.</p><p>Best of luck on your certification journey!</p><h3>Recommended Resources</h3><ol><li><a href="https://learn.microsoft.com/en-gb/credentials/certifications/resources/study-guides/az-500">Official Study Guide</a></li><li><a href="https://learn.microsoft.com/en-us/training/courses/az-500t00">Microsoft Learn Modules</a></li><li><a href="https://learn.microsoft.com/en-us/shows/exam-readiness-zone/preparing-for-az-500-manage-identity-and-access-1-of-4">Official Readiness Prep Videos</a></li><li><a href="https://learn.microsoft.com/en-us/credentials/certifications/azure-security-engineer/practice/assessment?assessment-type=practice&amp;assessmentId=57&amp;practice-assessment-type=certification">Microsoft provide Self assessment</a></li><li>Sandbox link <a href="https://go.microsoft.com/fwlink/?linkid=2226877">here</a> for simulating exam like environment</li></ol><p><strong><em>Thanks for reading, you can read my other blogs </em></strong><a href="https://medium.com/@connectwithneeraj"><strong><em>here</em></strong></a><strong><em> or connect with me on </em></strong><a href="https://www.linkedin.com/in/clouddevopsarchitect/"><strong><em>LinkedIn</em></strong></a><strong><em>. If you have any feedback, please reach out to me and I will be happy to incorporate any useful inputs/suggestions.</em></strong></p><p><strong>Credits<br></strong>Microsoft Azure Exam Guide, Microsoft Documentation and bit of experience :-)</p><p><a href="https://aws.amazon.com/certification/certified-ai-practitioner"><strong>Image credits</strong></a></p><p><strong>Disclaimer</strong>: Above information is based on my personal experiences so please use discretion to see if the above tips and tricks works for you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=92c371ec04da" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Decoding AWS AI Practitioner Exam: Tips and Tricks]]></title>
            <link>https://techbyneeraj.medium.com/decoding-aws-ai-practitioner-exam-tips-and-tricks-e54180955dfd?source=rss-2995667ba31f------2</link>
            <guid isPermaLink="false">https://medium.com/p/e54180955dfd</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[certification]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Neeraj Sharma]]></dc:creator>
            <pubDate>Sat, 04 Jan 2025 16:21:56 GMT</pubDate>
            <atom:updated>2025-01-05T11:16:29.334Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/328/1*dO0XrJ5EllWj48XJKmYstA.png" /></figure><blockquote><strong>AI is the canvas, and humanity is the artist painting the future.</strong></blockquote><blockquote><strong>Anonymous</strong></blockquote><h3>Background</h3><p>In 2019, I earned my first Machine Learning certification i.e. AWS Machine Learning Speciality, which got expired in 2022. At that time, I used to work for AWS and my motivation was pure curiosity for this amazing technology, which has disrupted almost all businesses and domains over last few years. I admit that completing ML certification was a fascinating and satisfying journey, as I explored most AWS AI services, that were still in their infancy during that time. I recall, I was pleasantly surprised by the potential and capabilities of AWS SageMaker (rebranded AWS SageMaker AI).</p><p>Fast forward to 2024, I decided to deepen my understanding of Large Language Models (LLMs) and commit to some hands-on projects in this domain. For context, my journey into LLMs began with a young mentor, yes, my son, who introduced me to the basics of prompt engineering in mid 2023. This was the time when ChatGPT from OpenAI was making waves in the AI world, and to be honest, I was initially bit hesitant to fully embrace GPT’s capabilities.</p><p>Gradually, I started exploring some real-world use cases and implementations of GPT technology. But it was a slow progress, due to other professional commitments. Last December, I thought of getting little more serious around my learning and expertise on LLMs and plan to write the AWS AI Practitioner Exam, as a first step.</p><p>If you’re considering diving into LLMs or the broader field of AI on AWS, the blog captures my experience and some tips to help you navigate the process, the focuses though, is more on the certification aspect.</p><p>In my opinion, AWS Certified AI Practitioner exam covers a wide range of AI frameworks, concepts, and related AWS technologies, with a particular focus on generative AI. I believe, the mention of generative AI itself, should be enough to get people excited about the exam :-)</p><h3>Exam Overview</h3><p>If I want to compare the exam for difficulty level, on a scale of 1 to 10, where 1–3 represents very easy, 4–5 average, 6–8 moderately difficult, and 9–10 extremely challenging, I’d rate the AWS AI Practitioner Exam at about a 4–5.</p><h4>Target Audience</h4><p>As per AWS, target audience for this exam are individuals familiar with AI/ML technologies on AWS but not necessarily building solutions. This includes business analysts, IT support, marketing professionals, product/project managers, line-of-business/IT managers, and sales professionals.</p><h4>Exam Domains</h4><p>Below are the domains along with weightage of each on the exam:</p><p><strong>Domain 1</strong>: Fundamentals of AI and ML (20% of scored content) <br><strong>Domain 2</strong>: Fundamentals of Generative AI (24% of scored content) <br><strong>Domain 3</strong>: Applications of Foundation Models (28% of scored content) <strong>Domain 4</strong>: Guidelines for Responsible AI (14% of scored content)<br><strong>Domain 5</strong>: Security, Compliance, and Governance for AI Solutions (14% of scored content)</p><p>More details around each domain can be found in AWS official study guide (please reference “Resources” section).</p><h4>Exam Logistics</h4><ul><li><strong>Format</strong>: 65 questions (multiple choice and multiple response; &gt;80% are multiple choice type).</li><li><strong>Duration</strong>: 90 minutes.</li><li><strong>Cost</strong>: $100 USD + taxes (check for previous AWS exam benefits, which can give you 50% discount on your exam).</li><li><strong>Mode</strong>: Online via Pearson VUE or in-person.</li><li><strong>Results</strong>: Typically available within 24 hours (SLA: 5 days).</li><li><strong>Certification validity</strong>: 3 years</li></ul><p>Here’s what the exam preparation looked like for me:</p><ul><li><strong>Study Time</strong>: About a week, averaging 2–3 hours per day, plus an additional 5–6 hours for practice tests, review, and note-taking.</li></ul><h4>Tips and Tricks</h4><ol><li><strong>Amazon Bedrock</strong>: The exam focuses heavily on Bedrock, its key features, and practical use cases. Pay special attention to when to use out-of-the-box foundational models versus custom models and fine-tuning.</li><li><strong>SageMaker Basics</strong>: Expect questions about SageMaker’s role — primarily when it’s appropriate and when it might be overkill.</li><li><strong>Amazon Q Products</strong>: Familiarize yourself with Amazon Q and its related offerings.</li><li><strong>AWS AI/ML Services</strong>: Understand the unique value of services like AWS Transcribe, AWS Personalize, and AWS Comprehend, along with their integration potential for solving specific use cases.</li><li><strong>General ML Concepts</strong>: Brush up on foundational ML principles, such as transfer learning, supervised vs. unsupervised algorithms, basics of Deep learning, and when to use each approach. A high level understanding of various model evaluation metrics is a must, as you might possibly see few questions around that.</li><li><strong>AI security &amp; Responsible AI</strong>: This is really interesting section contributing few questions to the exam. It is highly relevant, considering current debates in AI community around Responsible AI (Security, Privacy, Governance, Compliance etc.)</li></ol><h3>My learnings from the exam prep</h3><p>You don’t need a certification prep to learn something new, but for me, certifications have always been a way to stay accountable to my learning process and to validate my skills. Moreover, the preparation process equips me to explore the breadth of service offerings along with some of their shinny features, and current limitations.</p><p>On high level, this certification provides a useful foundational knowledge to get started with AI/ML especially AWS AL/ML stack. This gives you comprehensive when a specific service fits a specific use case. AI security &amp; Responsible AI topics provided a fresh perspective to look at this disruptive technology.</p><p>Post this I plan to go full hand’s projects in implementing some cool projects utilising LLMs and AWS Stack— which I was postponing from few months.</p><p>AWS ML Associate and Speciality certifications can be additional options readers can explore, if they want to really deep dive.</p><p>Hope the blog might have provided some orientation towards AWS AI Practitioner certification, if you find this useful, please do share to your network.</p><h3>Recommended Resources</h3><ul><li><strong>Good Course on Udemy targeted for the exam<br></strong><a href="https://www.udemy.com/course/aws-ai-practitioner-certified">https://www.udemy.com/course/aws-ai-practitioner-certified</a></li><li><strong>Practice Tests from Udemy<br></strong><a href="https://www.udemy.com/course/practice-exams-aws-certified-ai-practitioner">https://www.udemy.com/course/practice-exams-aws-certified-ai-practitioner</a></li><li><strong>More details on the certification</strong> <a href="https://d1.awsstatic.com/training-and-certification/docs-ai-practitioner/AWS-Certified-AI-Practitioner_Exam-Guide.pdf?p=cert&amp;c=ai&amp;z=3">https://aws.amazon.com/certification/certified-ai-practitioner</a></li><li><strong>AWS Official Exam Guide available at </strong><a href="https://d1.awsstatic.com/training-and-certification/docs-ai-practitioner/AWS-Certified-AI-Practitioner_Exam-Guide.pdf?p=cert&amp;c=ai&amp;z=3">https://d1.awsstatic.com/training-and-certification/docs-ai-practitioner/AWS-Certified-AI-Practitioner_Exam-Guide.pdf?p=cert&amp;c=ai&amp;z=3</a></li><li><strong>AWS Official Practice Test </strong><a href="https://explore.skillbuilder.aws/learn/course/external/view/elearning/19790/exam-prep-official-practice-question-set-aws-certified-ai-practitioner-aif-c01-english">https://explore.skillbuilder.aws/learn/course/external/view/elearning/19790/exam-prep-official-practice-question-set-aws-certified-ai-practitioner-aif-c01-english</a></li><li><strong>Free Prep course from AWS Skill Builder </strong><a href="https://explore.skillbuilder.aws/learn/public/learning_plan/view/2193/standard-exam-prep-plan-aws-certified-ai-practitioner-aif-c01">https://explore.skillbuilder.aws/learn/public/learning_plan/view/2193/standard-exam-prep-plan-aws-certified-ai-practitioner-aif-c01</a></li><li><strong>Paid Prep course from AWS Skill Builder </strong><a href="https://explore.skillbuilder.aws/learn/public/learning_plan/view/2194/enhanced-exam-prep-plan-aws-certified-ai-practitioner-aif-c01">https://explore.skillbuilder.aws/learn/public/learning_plan/view/2194/enhanced-exam-prep-plan-aws-certified-ai-practitioner-aif-c01</a></li></ul><p><strong><em>Thanks for reading, you can read my other blogs </em></strong><a href="https://medium.com/@connectwithneeraj"><strong><em>here</em></strong></a><strong><em> or connect with me on </em></strong><a href="https://www.linkedin.com/in/clouddevopsarchitect/"><strong><em>LinkedIn</em></strong></a><strong><em>. If you have any feedback, please reach out to me and I will be happy to incorporate any useful inputs/suggestions.</em></strong></p><p><strong>Credits<br></strong>AWS Exam Guide, AWS Documentation and a bit of experience :-)</p><p><a href="https://aws.amazon.com/certification/certified-ai-practitioner"><strong>Image credits</strong></a></p><p><strong>Disclaimer</strong>: Above information is based on my personal experiences so please use discretion to see if the above tips and tricks works for you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e54180955dfd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Decoding Azure Locks — a lifesaver or a nightmare?]]></title>
            <link>https://techbyneeraj.medium.com/decoding-azure-locks-a-lifesaver-or-a-nightmare-732a8a58e3f2?source=rss-2995667ba31f------2</link>
            <guid isPermaLink="false">https://medium.com/p/732a8a58e3f2</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[cloud-security]]></category>
            <category><![CDATA[azure-devops]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Neeraj Sharma]]></dc:creator>
            <pubDate>Sat, 14 Dec 2024 19:45:08 GMT</pubDate>
            <atom:updated>2025-01-04T09:45:40.502Z</atom:updated>
            <content:encoded><![CDATA[<h3>Decoding Azure Locks — a Lifesaver or a Nightmare?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*91AM4ZDrS_xpb4AoY7TpvA.png" /></figure><blockquote>The ship is the safest when it is in port, but that is not what ships are built for.</blockquote><blockquote>— <strong>Paul Coelho</strong></blockquote><p>Assume you have a important presentation for your senior stakeholders this afternoon, you wake up fresh, glance through your emails and the stop at one email. You read something strange. For few moments you can’t believe your eyes. Then you call your team lead or a technical SME to confirm if this is true.</p><p>Yes, some automation glitch has cause an outage on system and now this is going to cost you at least, some part of your presentation probably, the practical aspects you plan to showcase.</p><p>You can relax now!!! This is just imaginary scenario created to explain the context why preventing resources from accidental deletion is paramount in high stake situations.</p><p><em>I am sure it might have taken place at many occasions, though the order if events or other details might have been different, as I imagined :-)</em></p><h4>Locks: a security and a preventive measure</h4><p>Critical resources needs to be preserved or better say prevented from accidental deletions.</p><p>There are few ways to approach this use case. One is to block all such operations in first place, probably via a Azure Policy. But then most companies today, have some dedicated team for managing such policies. This brings dependency on other teams which brings unforseen delays to projects.</p><p>Some can argue, why not using principle of least privilege and not allow such access via custom RBAC roles. While this is possible option, if your team does not manages RBAC roles much like Azure Policies, it again poses similar challenges. Moreover, in most cases, automated processes using a technical user identity or Service principal which is typically used for IAC systems, needs access to all most CRUD operations permissions for valid reasons. Not having “delete permission” on this identity poses significant operational challenges.</p><h4>Enter Locks: a potential solution</h4><p>Locks are meant to solve challenges such as accidental user deletions and modifications by being applied on Azure resources. Basically you can lock an entire Azure subscription, resource group, or resource to protect them by overriding any user permissions.</p><h4>Scope of locks</h4><p>Lock applied at higher scope is inherited by resources at a lower level, for example: a lock applied at resource group level is inherited by resources within that resource group.</p><p>For a quick recap of resource hierarchy, please see below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/433/0*Rt_bYoEIb0t62utk.png" /><figcaption>Management Levels and Hierarchy</figcaption></figure><p>Unlike role-based access control (RBAC), management locks can be used to apply a restriction across all users and roles. This do provides an additional security layer as well as a preventive measure against disasters.</p><h4>Modes to apply locks</h4><p>Locks can be applied in two modes: CanNotDelete or ReadOnly. With first one, authorised users can read and modify a resource, but they can’t delete it while with the latter users can read a resource, but can’t delete or update it.</p><h4>Locks don’t protect against all operations</h4><p>Yes, locks don’t protect against all operations. For example: a CanNotDelete lock at a storage account still allows deletion of containers/blobs etc.</p><p>How this can be true? <br>Well, this can be understood from perspective of Azure API operations, which falls into Control plane and Data plane operations. While Azure control plane operations hit the endpointhttps://management.azure.com, Azure data plane operations depending on the service type reaches service endpoint <a href="https://myaccount.blob.core.windows.net/">https://mystorageaccount.blob.core.windows.net/.</a></p><p>It implies locks protect a resource from changes, but they don’t restrict how a resource performs its functions. This explains that while lock prevents storage account from deletion, it does not prevent blobs from being deleted which falls on data plane.</p><p>Another example to clarify: a ReadOnly lock on an Azure Postgres Flexi server protects it from deletions or modifications, while allowing you to create, update, or delete data in the server database. In other words, data plane is not impacted by locks. That’s where you data backup and restore, basically Data loss prevention (DLP)/Disaster recovery (DR) kicks in, but this is not the scope of current blog.</p><h4>How the implement locks</h4><p>Basically the identity applying the lock, in most cases, the one configured for automated process like CI/CD pipelines, need the permissions to manage locks i.e. applying locks and removing locks. Removing locks or unlock, is required when you want to delete the resource, basically when it is intended.</p><p>Locks can be applied in multiple ways, say from Azure portal — a real DevOps engineer will hate this :-) Or by using a Terraform, BICEP or ARM template, or through some Azure CLI scripts/automation.</p><p>Just a quick example from Azure CLI:</p><p>To lock a resource, provide the name of the resource, its resource type, and its resource group name.</p><pre>az lock create — name LockSite — lock-type CanNotDelete — resource-group exampleresourcegroup — resource-name examplesite — resource-type Microsoft.Web/sites</pre><p>To delete a lock for a resource, use:</p><pre>lockid=$(az lock show — name LockSite — resource-group exampleresourcegroup — resource-type Microsoft.Web/sites — resource-name examplesite — output tsv — query id)<br>az lock delete — ids $lockid</pre><h4>Locks are not so cool as they sound</h4><p>There are certain constraints which one needs to be careful about when applying locks. Otherwise, locks can easily turn into nightmare for the teams troubleshooting issues (without any real bug/issue). Really non-productive, isnt it???</p><p>Yes, Azure locks can have some side effects which impacts how certain operations run in Azure.</p><p>To clarify, let see one example, some Azure services, like Azure Databricks, use managed applications to implement service, which creates two resource groups:</p><ol><li>An unlocked resource group for service overview.</li><li>A locked resource group for service infrastructure.</li></ol><p>You can’t delete the infrastructure resource group or its lock directly, as it’s owned by a system application. To remove it, delete the service, which will automatically delete the infrastructure resource group.</p><p>Detailed list of such constraints can be accessed <a href="https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/lock-resources?tabs=json">here</a>.</p><h4>How to choose scope of lock then?</h4><p><em>&gt; Whether I should go for a Resource level lock versus a higher order lock is a point of contention. While there are no clear guidelines and depends on use case, below can serve an anchor to decide.</em></p><p><em>&gt; Clearly a lock at RG scope seems easy to implement, even if user get the RBACs implemented via some central teams managing polices and permissions. While if we have many resources to protect, this can bit challenging for your technical identity to have multiple RBACs.</em></p><p><em>&gt; RG scope lock obviously has a bigger blast radius and any misconfigurations has a bigger impact compared to resource level lock.</em></p><p><em>&gt; This can be operationally challenging in development environments where churn of resources are high.</em></p><h4>Some recommendations from my experiments with locks</h4><p><em>Avoid locking in dev environments, they put unnecessary handcuff and stifle development velocity.</em></p><p><em>&gt; Test the CI/CD flows when you need to unlock for any intended operation. Treat this as an exception and not the norm, else you have chose locks a a safety net to please people only.</em></p><p><em>&gt; If something fails and you don’t understand the reason to see, refer the Microsoft documentation to check if this is a side effects of these locks.</em></p><p><em>&gt; Many IAC tools like Terraform provides ways to provide protection against accidental deletes but then they only protect from actor or principal perspective, say your CI/CD technical user but manual errors can still happen on resource side. For details check </em><a href="https://developer.hashicorp.com/terraform/tutorials/state/resource-lifecycle"><em>here</em></a><em>.</em></p><p><em>&gt; Explore custom Azure polices if they provide a way suitable for your use case. For details check </em><a href="https://learn.microsoft.com/en-us/azure/governance/policy/concepts/effect-basics#denyaction-preview"><em>here</em></a><em>.</em></p><p><em>&gt; If your architecture allows consider using decentralise resource across resource groups, one such example is “critical resource group” from which you don’t want to delete resources anytime, other being “non critical” which can expect some churn. You can obviosly lock your “critical resource group” now and while implementing need based locks on other resource group.</em></p><p>In summary, while Azure locks provide a great way to prevent Azure resources against unintended actions especially deletions, overlooking some of the constraints they pose and how Azure locks fit in your architecture and support your use case; can have detrimental effects in the longer run. Discretion along with detailed impact assessment is a <strong>“must”</strong> especially for this Azure feature.</p><p><strong><em>Thanks for reading, you can read my other blogs </em></strong><a href="https://medium.com/@connectwithneeraj"><strong><em>here</em></strong></a><strong><em> or connect with me on </em></strong><a href="https://www.linkedin.com/in/clouddevopsarchitect/"><strong><em>LinkedIn</em></strong></a><strong><em>. If you have any feedback, please reach out to me and I will be happy to incorporate any useful inputs/suggestions.</em></strong></p><p><strong>Resources</strong></p><ol><li>Lock resources: <a href="https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/lock-resources?tabs=json">https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/lock-resources?tabs=json</a></li><li>Bicep, ARM and Terraform templates: <a href="https://learn.microsoft.com/en-us/azure/templates/microsoft.authorization/locks?pivots=deployment-language-bicep">https://learn.microsoft.com/en-us/azure/templates/microsoft.authorization/locks?pivots=deployment-language-bicep</a></li><li>Powershell, Azure CLI and Python examples: <a href="https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/lock-resources?tabs=json">https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/lock-resources?tabs=json</a></li></ol><p><strong>Credits<br></strong>Azure documentation and a bit of experience :-)</p><p><strong>Disclaimer<br></strong>The above blog is for educational purpose please avoid using it on prod/live systems without proper design, implementation and testing in lower environments. There are obviously many pitfalls and intricacies, which can’t be covered in a small blog like this one.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=732a8a58e3f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[K9s — a Game changer for DevOps Teams]]></title>
            <link>https://techbyneeraj.medium.com/k9s-a-game-changer-for-devops-teams-995014aaff0d?source=rss-2995667ba31f------2</link>
            <guid isPermaLink="false">https://medium.com/p/995014aaff0d</guid>
            <category><![CDATA[container-orchestration]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[Neeraj Sharma]]></dc:creator>
            <pubDate>Fri, 01 Nov 2024 14:11:59 GMT</pubDate>
            <atom:updated>2024-11-01T14:11:59.696Z</atom:updated>
            <content:encoded><![CDATA[<h3>K9s — a Game changer for DevOps Teams</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*3eHKeQ84KKu7cM6W.png" /></figure><blockquote>“Complexity is your enemy. Any fool can make something complicated. It is hard to make something simple.” — Richard Branson</blockquote><p>In my previous roles as a DevOps engineer, one of the biggest challenges I faced was managing and troubleshooting Kubernetes clusters efficiently. The sheer complexity and scale of Kubernetes environments often lead to a tangled mess of logs, configurations, and deployments, making it difficult to maintain control and ensure smooth operations.</p><p>I used to rely on having some custom solutions (have alias and functions in my profiles) to improve productivity at those times. It is fascinating that in last few years several tools like Lens, Rancher, Octant, have emerged to manage that complexity. On similar lines, K9s steps in as a game-changer for DevOps Engineers managing k8s clusters.</p><h4>The Challenge: Managing Kubernetes Clusters</h4><p>Kubernetes, while powerful, can be notoriously complex to manage. As engineers we often find ourselves struggling with numerous command-line tools, dashboards, and scripts to keep K8s clusters running optimally.</p><p>Tools like kubectl provide the necessary commands but can be cumbersome and unintuitive for day-to-day operations, especially under delivery and troubleshooting pressures. In my experience, this complexity can slow down response times during incidents and increase the likelihood of human error.</p><h4>Similar Tools in the Market</h4><p>Before diving into K9s, it’s important to acknowledge some of the existing tools that aim to simplify Kubernetes management. kubectl as well know, is the de facto command-line tool provided by Kubernetes, but it requires a steep learning curve. I will still not discount the tool, as for many use cases it is valuable, for example for someone working on automation side, this is a must know tool.</p><p>Tools like Lens, Octant, and Rancher offer more user-friendly interfaces with additional functionalities.</p><p>However, each of these tools comes with its own set of limitations, often involving trade-offs between ease of use, performance, features and costs.</p><p>I have used Linux a lot in past and terminal based editors like Vim comes naturally in mytoolkit. Now K9s is unique in a way that it is a terminal based editor, I understand that many would rate UI based tools over K9s higher but then it is a matter of personal preference :-)</p><p>In a nutshell, K9s’ unique blend of simplicity, speed, and terminal-centric design gives it an edge for those who prefer a more hands-on and command-line-focused approach.</p><h4>The History of K9s</h4><p>K9s was born out of a need for a more intuitive and efficient way to interact with Kubernetes clusters. Fernand Galiana, recognised the gaps in existing solutions and sought to create a terminal-based UI that would streamline cluster management. Since its initial release, K9s has rapidly gained traction in the DevOps community for its simplicity, speed, and some really powerful features.</p><h4>Key Features of K9s</h4><p>In my experience, K9s offers a tons of features designed to make a DevOps engineer’s life easier, below are some of the standout ones:</p><ul><li><strong>Intuitive Terminal UI</strong>: It has a highly interactive terminal UI that allows for quick navigation and management of Kubernetes resources. This includes viewing resources/their manifests, describing them, updating resources by editing with your favourite editor and even deleting them.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6lK-pfizyNR-bpx0.png" /></figure><ul><li><strong>Resource Monitoring</strong>: It enables real-time monitoring of pods, nodes, and other resources, displaying them right at top, making it easier to detect and address those issues promptly.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*J-k4wLnch3oXPrOZ.png" /></figure><ul><li><strong>Log Management</strong>: K9s simplifies log access and filtering, helping engineers to quickly pinpoint problems. Much like a editor, say Vim you can search the logs.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-fQIRl1BT4fGuSap.png" /></figure><ul><li><strong>Custom Views and Commands</strong>: Users can create custom views and commands tailored to their specific workflows, enhancing productivity.</li><li><strong>Context Switching</strong>: This is one of my favourites. It allows one to seamlessly switch between different Kubernetes contexts and namespaces without leaving the terminal.</li></ul><p><em>I personally liked the ease with which I can exec into a pod with a keypress.</em></p><p>There are tons of other features for advanced users which makes it fascinating and the best part is that it is constantly evolving.</p><p>Whether it’s monitoring resource usage, troubleshooting issues, or managing deployments, K9s accelerates workflows and reduces the cognitive load (read as: remembering tons of commands or sifting endlessly though Kubernetes documentation). This allows engineers to focus more on strategic tasks rather than being bogged down by operational details.</p><h4><strong>Installation</strong></h4><p>K9s is available on Linux, macOS and Windows platforms. Binaries for Linux, Windows and Mac are available as tarballs in the <a href="https://github.com/derailed/k9s/releases">release page</a>.</p><p>On macOS or Linux:<br><strong>brew install derailed/k9s/k9s</strong></p><p>On Windows (that how I configured it for myself)<br><strong>choco install k9s -y</strong></p><p><strong>Access control</strong><br>On RBAC enabled clusters, you would need to give your users/groups permissions so that they can use K9s to explore their Kubernetes cluster. K9s needs minimally read privileges at both the cluster and namespace level to display resources and metrics.</p><h4>Limitation or Challenges</h4><p>It is not fair we don’t speak about current K9s limitations and challenges:</p><ul><li>K9s is command-line only, which can be challenging for users accustomed to graphical interfaces like Lens or Rancher. It also lacks visual insights and dashboards, making it less informative at a glance, though this ultimately comes down to personal preference.</li><li>For customisation you still need knowledge of K9s and Kubernetes configs, which can be complex and technical at times.</li><li>Running K9s on large clusters may slow down performance, especially on less powerful machines and I have faced it few times :-(</li><li>Custom plugins are supported but fewer than other tools, reducing flexibility.</li><li>Though i would love to see this future, currently it lacks real-time session sharing, making it less ideal for team-based troubleshooting.</li><li>Users must manually update K9s to keep it secure and functional, unlike some tools with automatic updates.</li><li>Trust me, it can be addictive. Heavy dependence on K9s could limit users’ understanding of underlying Kubernetes and kubectl commands.</li></ul><h4><strong>Next Steps and Future Developments</strong></h4><p>Looking ahead, K9s is poised for further enhancements which will make it even more valuable in an DevOps Engineer’s toolkit. I guess that potential future developments could include below, which mostly stems from current limitations:</p><ul><li>Deeper integration with other DevOps tools and platforms.</li><li>Leveraging AI/ML to provide predictive analytics and automated troubleshooting.</li><li>More options for customising the interface and functionalities to fit individual workflows.</li><li>Enhancements to security management and compliance monitoring within Kubernetes clusters.</li></ul><h4><strong>Recommendations</strong></h4><p>For DevOps teams looking to streamline their Kubernetes operations, I highly recommend incorporating K9s into your toolset. Its balance of simplicity and power can significantly enhance productivity and reduce the time spent on managing clusters.</p><p>Another way to learn about its new features is to stay active in the community, contribute to its development, and keep an eye on future updates to maximise the benefits K9s can bring to your workflows.</p><p>K9s has established itself as a game changer for DevOps teams by addressing the complexities of Kubernetes management with an intuitive and efficient approach, it empowers engineers to maintain control over their environments and focus on delivering value. As K9s continues to evolve, its impact on the DevOps landscape will undoubtedly grow, making it an indispensable tool for Kubernetes practitioners.</p><h4><strong>Resources</strong></h4><p><a href="https://github.com/derailed/k9s">https://github.com/derailed/k9s</a></p><h4><strong>Credits</strong></h4><p>K9s documentation and my experience with the tool</p><p><strong><em>Thanks for reading, you can read my other blogs </em></strong><a href="https://medium.com/@connectwithneeraj"><strong><em>here</em></strong></a><strong><em> or connect with me on </em></strong><a href="https://www.linkedin.com/in/clouddevopsarchitect/"><strong><em>LinkedIn</em></strong></a><strong><em>. If you have any feedback, please reach out to me and I will be happy to incorporate any useful inputs/suggestions.</em></strong></p><h4><strong>Disclaimer</strong></h4><p>The above blog is not paid and meant only educational purpose, please use your own discretion while adopting any tools and technologies.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=995014aaff0d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>