<?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 Arunesh Choudhary on Medium]]></title>
        <description><![CDATA[Stories by Arunesh Choudhary on Medium]]></description>
        <link>https://medium.com/@aruneshey?source=rss-d81a4ba8b19d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*F0DcIaDKMAne_zmN180aFA.jpeg</url>
            <title>Stories by Arunesh Choudhary on Medium</title>
            <link>https://medium.com/@aruneshey?source=rss-d81a4ba8b19d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 07:35:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aruneshey/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[Cloud Spanner vs Cloud Bigtable vs Cloud SQL]]></title>
            <link>https://medium.com/google-cloud/cloud-spanner-vs-cloud-bigtable-vs-cloud-sql-184c53aecc94?source=rss-d81a4ba8b19d------2</link>
            <guid isPermaLink="false">https://medium.com/p/184c53aecc94</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[gcp-certification]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[google-cloud-architect]]></category>
            <dc:creator><![CDATA[Arunesh Choudhary]]></dc:creator>
            <pubDate>Fri, 08 May 2026 02:59:51 GMT</pubDate>
            <atom:updated>2026-05-08T02:59:51.748Z</atom:updated>
            <content:encoded><![CDATA[<p>If you are preparing for the GCP Professional Cloud Architect exam, one topic you will see again and again is choosing the right database service.</p><p>Google Cloud has several database products, and sometimes the options sound very similar. The exam loves to test whether you understand <em>why</em> one service fits a scenario better than another.</p><p>The three services students struggle with the most are:</p><ul><li><strong>Cloud SQL</strong></li><li><strong>Cloud Spanner</strong></li><li><strong>Cloud Bigtable</strong></li></ul><p>The good news is that once you understand the purpose of each one, the decision becomes much easier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZRwuelPCOIX5bmGieSiZtw.png" /></figure><p>In this guide, we will break them down in simple language and build a practical framework you can use both in the exam and in real-world architecture decisions.</p><h3>Start With This Simple Mental Model</h3><p>Think of the services like this:</p><p><strong>Cloud SQL: </strong>Traditional relational applications</p><p><strong>Cloud Spanner: </strong>Global-scale relational systems with strong consistency</p><p><strong>Cloud Bigtable: </strong>Massive high-throughput NoSQL workloads</p><p>If you remember only this comparison, you will already answer many exam questions correctly.</p><p>Now let’s understand them one by one.</p><h3>Cloud SQL: The Easy Starting Point</h3><p>Cloud SQL is usually the simplest option.</p><p>It is basically Google managing a relational database for you, so you do not need to worry about backups, patching, replication, or infrastructure management.</p><p>If your application already uses PostgreSQL or MySQL, Cloud SQL is often the first service you should think about.</p><h3>What Cloud SQL supports</h3><ul><li>PostgreSQL</li><li>MySQL</li><li>SQL Server</li></ul><p>You still use standard SQL, your existing ORM still works, and most migration tools continue working normally.</p><p>That is why Cloud SQL is extremely common for companies moving existing applications to Google Cloud.</p><h3>When Cloud SQL is the right choice</h3><p>Choose Cloud SQL when:</p><ul><li>You are migrating an existing relational app to GCP</li><li>Your workload is a normal web application or API</li><li>Your traffic is moderate</li><li>You need ACID transactions</li><li>You want something simple and cost-effective</li><li>Your data comfortably fits within a traditional relational setup</li></ul><p>Typical examples include:</p><ul><li>SaaS applications</li><li>Billing systems</li><li>User account systems</li><li>Internal business applications</li><li>Standard CRUD applications</li></ul><h3>Where Cloud SQL struggles</h3><p>Cloud SQL is not designed for massive horizontal scaling across the world.</p><p>You cannot scale writes globally like you can with Spanner.</p><p>So if the question says things like:</p><ul><li>“globally distributed”</li><li>“millions of writes across regions”</li><li>“strong consistency worldwide”</li></ul><p>then Cloud SQL is probably not the answer.</p><h3>Exam shortcut</h3><p>If the exam describes:</p><ul><li>an existing PostgreSQL or MySQL database</li><li>minimal code changes</li><li>lift-and-shift migration</li></ul><p>then Cloud SQL is usually the correct answer.</p><h3>Cloud Spanner: Relational Database at Global Scale</h3><p>Now let’s talk about Cloud Spanner.</p><p>This service is one of Google’s most impressive technologies.</p><p>Cloud Spanner gives you:</p><ul><li>relational database features</li><li>SQL support</li><li>ACID transactions</li><li>horizontal scaling</li><li>strong consistency across regions</li></ul><p>Normally, databases force you to choose between consistency and scalability.</p><p>Spanner is designed to give you both.</p><p>That is why architects use it for mission-critical global systems.</p><h3>What makes Spanner special</h3><p>Imagine a banking system where users connect from:</p><ul><li>Canada</li><li>Europe</li><li>Asia</li><li>South America</li></ul><p>No matter where the user connects from, account balances must always remain accurate.</p><p>No stale reads.<br>No conflicting transactions.<br>No regional inconsistency.</p><p>That is exactly the kind of problem Cloud Spanner solves.</p><h3>When to choose Cloud Spanner</h3><p>Choose Spanner when:</p><ul><li>You need strong consistency globally</li><li>Your application serves users across multiple regions</li><li>Your workload must scale horizontally</li><li>You need relational data modeling at massive scale</li><li>Downtime or inconsistency is unacceptable</li></ul><p>Common examples include:</p><ul><li>Financial systems</li><li>Global inventory platforms</li><li>Airline reservation systems</li><li>Worldwide gaming backends</li><li>Global SaaS platforms</li></ul><h3>Things students should remember</h3><p>Spanner is powerful, but it is expensive.</p><p>For small applications, it is usually overkill.</p><p>Many exam questions try to trick students into choosing Spanner even when Cloud SQL would work perfectly fine.</p><p>If the workload is small or regional, Cloud SQL is often the better architectural decision.</p><h3>Exam shortcut</h3><p>If you see phrases like:</p><ul><li>“global consistency”</li><li>“multi-region transactional database”</li><li>“financial transactions at global scale”</li></ul><p>the answer is almost always Cloud Spanner.</p><h3>Cloud Bigtable: Built for Massive Throughput</h3><p>Cloud Bigtable is very different from the other two.</p><p>This is not a relational database.</p><p>There are:</p><ul><li>no joins</li><li>no foreign keys</li><li>no traditional SQL queries</li></ul><p><strong>Bigtable is designed for one thing: </strong>handling enormous amounts of data extremely fast.</p><p>Think of it as a giant high-speed engine for processing huge streams of information.</p><h3>What Bigtable is good at</h3><p>Bigtable shines when you have:</p><ul><li>billions of records</li><li>extremely high write throughput</li><li>time-series data</li><li>event streams</li><li>telemetry data</li><li>IoT sensor ingestion</li></ul><p>It is commonly used for:</p><ul><li>sensor data</li><li>monitoring systems</li><li>clickstream analytics</li><li>personalization systems</li><li>financial market feeds</li><li>machine learning feature stores</li></ul><h3>The most important Bigtable concept</h3><p>Bigtable depends heavily on row keys.</p><p>Your data access pattern is designed around reading by row key or row ranges.</p><p>This is very different from relational databases where you can freely join tables and run complex SQL queries.</p><h3>When Bigtable is NOT a good choice</h3><p>Do not choose Bigtable if you need:</p><ul><li>joins</li><li>relational modeling</li><li>ad-hoc SQL queries</li><li>multi-row ACID transactions</li></ul><p>Students often choose Bigtable just because the dataset is large.</p><p>But large scale alone does not automatically mean Bigtable.</p><p>The access pattern matters more.</p><h3>Exam shortcut</h3><p>If the question mentions:</p><ul><li>time-series data</li><li>IoT devices</li><li>telemetry</li><li>millions of writes per second</li><li>low-latency NoSQL workloads</li></ul><p>then Bigtable is usually the correct answer.</p><h3>The Simplest Decision Framework</h3><p>When solving exam questions, ask yourself these two questions.</p><h3>Question 1:</h3><p>Does the workload need a relational database?</p><p>If YES:</p><ul><li>Continue to Question 2</li></ul><p>If NO:</p><ul><li>Think about Bigtable or other NoSQL services</li></ul><h3>Question 2:</h3><p>Does it need global horizontal scaling with strong consistency?</p><p>If YES:</p><ul><li>Choose Cloud Spanner</li></ul><p>If NO:</p><ul><li>Choose Cloud SQL</li></ul><p>That is honestly the easiest way to approach most exam scenarios.</p><h3>Common Exam Scenarios</h3><h3>Scenario 1</h3><p>A company wants to move its PostgreSQL application to Google Cloud with minimal code changes.</p><h4>Best Answer: Cloud SQL</h4><p>Why? Because it supports PostgreSQL directly and avoids re-architecting the application.</p><h3>Scenario 2</h3><p>A global banking system needs strongly consistent account balances worldwide.</p><h4>Best Answer: Cloud Spanner</h4><p>Why? Because strong global consistency is Spanner’s biggest strength.</p><h3>Scenario 3</h3><p>An IoT platform collects billions of sensor readings every day.</p><h4>Best Answer: Cloud Bigtable</h4><p>Why? Because Bigtable is optimized for massive time-series ingestion.</p><h3>Scenario 4</h3><p>A startup is building a standard SaaS platform with subscriptions, user accounts, and billing.</p><h4>Best Answer: Cloud SQL</h4><p>Why? Because the workload is relational, moderate in size, and does not need global distribution.</p><h3>Quick Comparison</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*RnNHpD-ksVQhFw__uhLXMw.png" /><figcaption>Comparison: Cloud Spanner vs Cloud Bigtable vs Cloud SQL</figcaption></figure><h3>Final Thoughts</h3><p>One of the biggest mistakes students make is choosing the “most powerful” service instead of the “most appropriate” service.</p><p>A good cloud architect always starts with requirements:</p><ul><li>Do we need relational data?</li><li>Do we need global consistency?</li><li>Do we need massive throughput?</li><li>Do we need horizontal scaling?</li><li>What is the budget?</li></ul><p>Once you think this way, database selection becomes much more logical.</p><p>Here is the easiest way to remember everything:</p><ul><li>Use Cloud SQL for traditional relational applications</li><li>Use Cloud Spanner for globally consistent relational systems</li><li>Use Cloud Bigtable for massive NoSQL throughput and time-series workloads</li></ul><p>The Professional Cloud Architect exam is not testing whether you can memorize product names. It is testing whether you can make the right architectural decision based on business and technical requirements.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=184c53aecc94" width="1" height="1" alt=""><hr><p><a href="https://medium.com/google-cloud/cloud-spanner-vs-cloud-bigtable-vs-cloud-sql-184c53aecc94">Cloud Spanner vs Cloud Bigtable vs Cloud SQL</a> was originally published in <a href="https://medium.com/google-cloud">Google Cloud - Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Manage gcloud Profiles Like a Pro]]></title>
            <link>https://medium.com/google-cloud/manage-gcloud-profiles-like-a-pro-de765f26ab82?source=rss-d81a4ba8b19d------2</link>
            <guid isPermaLink="false">https://medium.com/p/de765f26ab82</guid>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[gcp-security-operations]]></category>
            <category><![CDATA[gcloud-cli]]></category>
            <dc:creator><![CDATA[Arunesh Choudhary]]></dc:creator>
            <pubDate>Wed, 10 Dec 2025 16:31:00 GMT</pubDate>
            <atom:updated>2025-12-10T16:31:00.310Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong><em>Your Cheat Sheet for Creating and Switching Contexts in the Google Cloud CLI</em></strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zeBeeUBQVlSOqXmYBi2NWA.png" /></figure><p>If you work with <strong>Google Cloud</strong> long enough, you have probably felt the pain of repeating the same flags over and over:--projects, --region, --zone. It’s tedious, easy to mess up, and frustrating when you’re moving between environments.</p><p><strong>The fix?</strong></p><p>But where do you run <strong>gcloud config</strong>? It’s part of the <strong>gcloud CLI</strong>, Goolge Cloud’s command-line tool for managing resources. The <strong>gcloud</strong> <strong>CLI</strong> itself comes bundled inside the <strong>Google Cloud SDK, </strong>a comprehensive package that includes everything you need to manage Google Cloud from your local machine.</p><p>Harnessing gcloud config lets you:</p><ul><li>Set default project, region, and zone</li><li>Switch configurations instantly</li><li>Streamline your workflow so you spend less time typing and more time building</li></ul><p>In this post, we’ll break down the essential gcloud config commands that make your CLI workflow painless.</p><p><strong>What is Google Cloud SDK (Software Development Kit)?</strong></p><p>The <strong>Google Cloud SDK</strong> is the toolkit that bundles all the tools you need to interact with Google Cloud, including the gcloud CLI. It also includes specialized CLIs like gsutil for Cloud Storage and bq for BigQuery, client libraries for popular languages, and local emulators for testing services before deployment.</p><p><strong>What is the gcloud CLI?</strong></p><p>The <strong>gcloud CLI</strong> lets you create and manage Google Cloud resources directly from the command line or automation scripts. With it, you can:</p><ul><li>Create Compute Engine VM instances</li><li>Manage Cloud SQL databases</li><li>Work with GKE clusters</li><li>Run Dataproc jobs</li><li>Configure Cloud DNS</li><li>Deploy resources via Deployment Manager</li></ul><h3>How to download the gcloud cli?</h3><p><a href="https://docs.cloud.google.com/sdk/docs/install-sdk">Quickstart: Install the Google Cloud CLI | Google Cloud SDK | Google Cloud Documentation</a></p><p>Before diving in, make sure the <strong>gcloud CLI</strong> is installed:</p><pre>gcloud version</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3Z5THJE6MBwJLh2bADpQ3A.png" /></figure><p>This command shows the installed version of the CLI and confirms that it’s ready to use.</p><h3><strong>Check all the available configurations</strong></h3><p>This shows you all available profiles and highlights which one is ACTIVE.</p><pre>gcloud config configurations list</pre><p>You’ll always have a <strong>default configuration</strong>, which is automatically created when you first install the CLI. The default configuration is useful for day-to-day work, but when managing multiple projects or environments, creating and switching between configurations helps prevent mistakes like deploying resources to the wrong project or region.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nI4GP2nIy0drEcJlD_M0nw.png" /></figure><h3><strong>To create a new configuration (profile)</strong></h3><pre>gcloud config configurations create gcloud-config-demo</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_ceOOErBCobsaJk5holyNg.png" /></figure><p>This command creates a new configuration named gcloud-config-demo. Each configuration stores its own set of defaults, including project, region, and zone, so you can switch between multiple environments without affecting your existing setup.</p><p>Now any gcloud commands you run will use the settings in this configuration until you switch again.</p><h3>Authenticate Your User</h3><p>Before you can start working with Google Cloud resources from the CLI, you need to authenticate your user account. This ensures that your gcloud commands have permission to access the projects and services you want to work with.</p><p>Run the following command to log in:</p><pre>gcloud auth login</pre><p>This will open a browser window where you can sign in with your Google account. Once authenticated, the CLI will store your credentials locally.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2Xh0fJIdvnz9kAYRlL3IFw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kPV8FWzYulRWcYawh-0lSA.png" /></figure><h3>Verify Configuration</h3><p>Once the user is authenticated, it’s time to check your configurations</p><pre>gcloud config configurations list</pre><p>In recent versions of the CLI, the output includes an <strong>IS_ACTIVE</strong> column instead of highlighting. A value of True indicates the active configuration, and False means it’s inactive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fq03pXpRcNzhfeHeGn3ccg.png" /></figure><h3>Check Authenticated User</h3><pre>gcloud auth list</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1E8m3WCdjqCqSmIBjM4k1Q.png" /></figure><p>This command lists all accounts authenticated on your machine and highlights the currently active user.</p><h3>Set Project and Zone</h3><p>These settings are saved only to the active configuration:</p><pre># Set your project<br>gcloud config set project [PROJECT_ID]<br><br># Set your compute zone<br>gcloud config set compute/zone [ZONE]</pre><h3>Switch Between Configurations</h3><p>You can create multiple configurations for different environments and switch between them:</p><pre># Activate the default configuration<br>gcloud config configurations activate default<br><br># Activate back the gcloud-config-demo configuration<br>gcloud config configurations activate gcloud-config-demo</pre><h3>Temporary Configuration Override (Bonus)</h3><p>You can run a command as if a specific configuration is active <strong>without switching</strong>:</p><pre>gcloud compute instances list --configuration=gcloud-config-demo</pre><h3>To clean up:</h3><pre>gcloud config configurations delete gcloud-config-demo</pre><h3>Wrapping Up</h3><p>That’s it! With gcloud config, you can set defaults, switch between projects, and keep your environments organized, no more typing the same flags over and over.</p><p>Play around with creating configurations, setting defaults, and switching profiles. It makes working with <strong>Google Cloud</strong> from the CLI much faster and less stressful.</p><p>Happy Clouding! ☁️</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de765f26ab82" width="1" height="1" alt=""><hr><p><a href="https://medium.com/google-cloud/manage-gcloud-profiles-like-a-pro-de765f26ab82">Manage gcloud Profiles Like a Pro</a> was originally published in <a href="https://medium.com/google-cloud">Google Cloud - Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>