<?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 Rim Chatti on Medium]]></title>
        <description><![CDATA[Stories by Rim Chatti on Medium]]></description>
        <link>https://medium.com/@chattiriim?source=rss-4eacdaf17577------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*oTYPNMHMcVzdzRQdovE4DQ.jpeg</url>
            <title>Stories by Rim Chatti on Medium</title>
            <link>https://medium.com/@chattiriim?source=rss-4eacdaf17577------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 22:06:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chattiriim/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[My Personal Path to GCP Professional Data Engineer Certification]]></title>
            <link>https://medium.com/@chattiriim/my-personal-path-to-gcp-professional-data-engineer-certification-7b7cd6dea08b?source=rss-4eacdaf17577------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b7cd6dea08b</guid>
            <dc:creator><![CDATA[Rim Chatti]]></dc:creator>
            <pubDate>Mon, 23 Sep 2024 10:08:19 GMT</pubDate>
            <atom:updated>2024-09-26T09:46:55.351Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fvTDIa3UhdDLFitVwZEGNg.jpeg" /><figcaption>My pride</figcaption></figure><p>I am writing this first and foremost for myself as a form of self-recognition for the efforts I’ve invested to achieve the certification. This journey has been both challenging and rewarding, and I want to take a moment to acknowledge my hard work <em>-claps-</em>!</p><p>Beyond that, I hope this “reflection” serves for anyone working towards this goal and looking for inspiration and motivation. If I can do it, so can you! Everyone’s journey is unique, while we might face different challenges along the way, the ultimate goal remains the same : earning that certification!</p><p>I aim to share insights and answer some common questions about the certification process. I hope these reflections provide support for your own journey.</p><h4><strong>WHY did I want to get the GCP Professional Data Engineer Certification?</strong></h4><p>The desire of earning it was mainly rooted from self-motivation, I have worked with GCP products but my experience was mainly practical lacking a deep understanding of the underlying concepts. Like any engineer, I managed to solve problems and deliver results! But I have always felt like I needed to consolidate my knowledge and time was always a constraint.</p><p>Fortunately my managers helped me find the right time to dedicate my self to get the certificate, they kept encouraging me and telling me the value of it. I initially thought that my hands-on experience with these tools would be sufficient to ace the certification. <em>Spoiler alert: I was wrong!</em></p><h4><strong>How long did the preparation last?</strong></h4><p>It took me around 2 months. At first, I procrastinated a bit! but once I got serious and commited myself fully, things started to fall into place.</p><h4><strong>What resources did I use?</strong></h4><p>I started my preparation with Cloud Gurus. It provides a helpful overview and serves as a good starting point to get a general understanding but not detailed enough and not always up-to-date. So to deepen my knowledge and ensure I was up-to-date, I used the official GCP documentation. And for hands-on experience, I relied on Cloudskillboost.<br>I also loved the <a href="https://www.thecloudgirl.dev/">The Cloud Girl</a> sketches, they help a lot when we have a visual memory!</p><h4><strong>Is the exam difficult?</strong></h4><p>Before I really dive into real preparation, I took a peek at some sample exam questions and let me tell you, it felt like impossibly hard! But don’t get discouraged it’s completly normal!</p><p>So yes I admit it’s difficult and challenging. But as I said, we don’t face the same challenges. For me, the most difficult topics were security concepts and Machine Learning ones, since those are areas I had less experience. What makes it somehow difficult is that, it’s not just about knowing what each technology does, but understand it in depth, how it works, how the architecture fits together, when to use it (compared to similar technologies), best practices and some real-world scenarios!</p><h4><strong>How did I prepare?</strong></h4><p>To begin with, I took the time to thoroughly understand the exam structure, the time constraints, and what to expect. Knowing these details in advance gave me a clearer perspective on how to approach my preparation.</p><p>The next step was creating a detailed study program and set milestones for each topic such as <strong>data storage</strong> (BigTable, Cloud Storage…), <strong>data processing</strong> (Dataflow, Dataproc), etc. This approach helped me break down the material into manageable sections and track my progress to not fall into the procrastination trap.</p><p>For each topic, I took progressive notes on OneNote, this allowed me to gradually build a full image of the material and made it much easier to review.</p><p>One aspect that makes the exam tricky is that sometimes more than one answer option can seem correct. The questions are designed to test not just your knowledge but your understanding of the subtleties between different concepts and when to use it compared to similar technologies.</p><p>For instance, when studying BigTable, I noted key points such as:</p><p><strong>General Information:</strong></p><ul><li><strong>Managed WIDE-COLUMN NoSQL Database</strong>: Cloud Bigtable is a managed, scalable NoSQL database designed for handling large amounts of data.</li><li><strong>High Throughput</strong>: Capable of processing vast quantities of data rapidly.</li><li><strong>Low Latency</strong>: Provides response times around 6 milliseconds per node.</li><li><strong>Scalability</strong>: Supports thousands of columns and billions of rows.</li><li><strong>High Availability</strong>: Ensures data is accessible even in the event of hardware failures.</li></ul><p><em>and much more…</em></p><p><strong>Architecture Concepts:</strong></p><ul><li><strong>Blocks of Contiguous Rows</strong>: These rows are sharded into tablets.</li><li><strong>Storage</strong>: Tablets are stored in Google Colossus.</li><li><strong>Automatic Management</strong>: Tasks like splitting, merging, and rebalancing are handled automatically.</li></ul><p><strong>Use Cases:</strong></p><ul><li><strong>Marketing and Finance</strong>: Managing transactions and purchase histories.</li><li><strong>Time Series and IoT</strong>: Collecting metrics from devices and sensors.</li></ul><p><strong>Not Use for:</strong></p><ul><li><strong>ACID transactions</strong> it should not be used for applications requiring strong consistency across complex relational datasets (like financial apps). In that case, it’s better to use <strong>Cloud Spanner</strong> or <strong>Cloud SQL</strong>, both of which offer full ACID compliance.</li><li><strong>SQL-like queries</strong>: Bigtable does not support <strong>SQL queries</strong> or typical <strong>relational database functionalities</strong> like SELECT, JOIN, or WHERE clauses.</li></ul><p>This way we understand how Cloud Bigtable is structured, how it operates, and have an idea when to not use it.</p><p>And I would also note some good practices,<em> some tips and tricks!</em></p><p><strong>Best Practices:</strong></p><p><strong>— Schema design:</strong></p><ul><li>Use revese timestamps so that the most recent data is retrieved first.</li><li>Limit to a maximum of <strong>100 column families</strong> per table.</li><li>The total size of all values in a single row should be <strong>less than 100 MB</strong>.</li><li><strong>Do not store more than 10 MB of data</strong> in a single cell.</li></ul><p><strong>— Keys to Avoid:</strong></p><ul><li>Row keys starting with a <strong>timestamp</strong> (this can lead to hotspotting).</li><li><strong>Sequential numeric IDs</strong>, as new rows will always be added at the end of the key range.</li><li><strong>Frequently updated identifiers</strong>, such as id#timeofupdate.</li><li><strong>Hashed values</strong>, since they prevent the use of natural sorting order.</li></ul><p><strong>— Troubleshooting Performance Issues:</strong></p><ul><li>Utilize <strong>Key Visualizer</strong> to analyze and troubleshoot performance.</li><li>Minimize the number of clients accessing the database.</li><li>Ensure that read and write operations are <strong>evenly distributed</strong> across all nodes in the cluster to avoid bottlenecks.</li></ul><p>There is much more to learn about BigTable! I just wanted to provide an example of how to approach understanding a technology to avoid falling for tricky and ambiguous questions.</p><p>If you’re embarking on this adventure, don’t forget that preparation is key. Take detailed notes, and allow yourself the time to fully grasp each concept. Certification is not just a symbol of skill but also a validation of expertise in the field.</p><p>Best of luck to everyone taking on this challenge :)</p><blockquote>“The journey of a thousand miles begins with one step.” Lao Tzu</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b7cd6dea08b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exporting data from BigQuery to Google Cloud Storage.]]></title>
            <link>https://medium.com/@chattiriim/exporting-data-from-bigquery-to-google-cloud-storage-377035361206?source=rss-4eacdaf17577------2</link>
            <guid isPermaLink="false">https://medium.com/p/377035361206</guid>
            <category><![CDATA[google-cloud-storage]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[bigquery]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Rim Chatti]]></dc:creator>
            <pubDate>Thu, 11 Jun 2020 14:37:58 GMT</pubDate>
            <atom:updated>2023-03-31T19:18:44.760Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/917/0*FlZcmUkGAGhaOH9V.png" /></figure><p>Google Cloud Platform (<strong>GCP</strong>) provides various storage options to meet a wide range of storage requirements, the choice of storage solution depends on the specific needs of the use case.</p><p>We will be using Google Cloud Storage which is Google Cloud’s<strong> <em>object file</em></strong><em> </em>storage. It stores your data <em>(stream videos, image, web asset libraries etc…)</em> as a <strong>blob</strong>. It’s considered as web friendly product because every GCS object has its unique key in the form of a URL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/270/0*qV8AVGsCeELHbNP6.png" /></figure><p>We will also be using another data storage way, a Big Data product : <strong>BigQuery</strong>. It is a fully managed (no infrastracture to manage) data warehouse used to analyze data. Once data is loaded into BigQuery, SQL queries can be run in seconds, making it a powerful tool for processing and analyzing large amounts of data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*aFHgqMKV3Ftlh7_yGBQYyA.png" /></figure><p>This tutorial will provide you with instructions for exporting data from <strong>Google Cloud BigQuery </strong>to <strong>Google Cloud Storage</strong>, as well as a better understanding of the BigQuery service.</p><p>To follow along with this tutorial, you will need the following:</p><p>— A computer with a stable internet connection. <br> — The latest version of Google Chrome, Firefox or Microsoft Edge web brower.<br> — Access to a Google Cloud Platform project</p><p><em>~ Let’s get started!</em></p><p><strong>I. First step</strong>:<strong><em> </em></strong>Upload data to BigQuery.</p><p>To begin, download the dataset you would like to work with. The choice of data is up to you, and there are many publicly available datasets to choose from.<br>One option is to search for datasets on <strong>data.world.</strong></p><p><a href="https://data.world/mkalish/great-streets/workspace/query?queryid=sample-0">great-streets - dataset by mkalish</a></p><ul><li>Create a dataset in BigQuery and give it a name such as dataset_id</li><li>Create a table within that dataset, name it my_table as an example. This table will be holding your original data uploaded from your computer.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*hbllb0qo9RNJuezClDnu-g.png" /><figcaption>Create table</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/562/1*sqEuzXvtIN1MkioRC7uo4w.png" /><figcaption>Click on advanced options and precise the number of rows you want to skip.</figcaption></figure><p>We <strong>LOVE </strong>BigQuery because it enables super-fast SQL queries thanks to the powerful Google’s infrastructure.</p><p>To run a query, select<strong> </strong><strong>Compose new query</strong> near the top right of the GCP console and in the Query editor text area, write the SQL query. BigQuery validates the syntax if the web UI displays a green checkmark below the text area.</p><p>I wrote a simple query, nothing complicated, <em>till now.</em></p><p>If you are new to writing SQL queries, start with simple queries and gradually build up to more complex ones. With BigQuery, you can perform a wide range of data analysis tasks, so there are many possibilities for exploring and manipulating your data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/246/1*Ie7gA5cyXJh11RWtpLUqbg.png" /><figcaption>Write your query*</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/165/1*7RbU5TmlpYeMZWiRX5wOrg.png" /><figcaption>Click on Query settings</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/452/1*kx7SnDPjvEkGi_MTI5WwBQ.png" /><figcaption>Settings of the query</figcaption></figure><ul><li>Once you run the query, a table you namedNew_table is created. It holds the results of the above simple *query.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/221/1*Q-87mkV-hRVYUj-bAtW3zw.png" /></figure><p><strong>What we want do next is</strong> : exporting the new tableNew_table to GCS.</p><p><strong>II. Exporting the data to GCS:</strong><em><br></em>Prepare your GCS by creating a bucket, naming it, etc…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*wzMNRNjGBeCY0l7o8HkPnA.png" /></figure><p>We can choose either the first method and use the User Interface, this is super duper simple or the second method which is more elegant to automate the process.</p><p><strong>— First method: </strong>via the Web UI</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/262/1*EuWK0zUjId5d9ADaltcrCg.png" /><figcaption>Click on Export to GCS</figcaption></figure><ul><li>Type your bucket name gcp-new-bucket, your folder name my-folder and my-csv-file.csv where you’ll get the result.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/473/1*jJV22cBeqRFFDhdNJOrg5A.png" /><figcaption>Your export format is <strong>CSV</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/427/1*ljU7vzm384UTnhAHqg2CAw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/535/1*IE1eW4GVrh3f7yh-Hn6smA.png" /></figure><ul><li>Click on the Link URL and let the magic begin!<br><strong>Here it is :)</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/174/1*Bl-dErvirdMGtiRWWNO49g.png" /><figcaption>my-csv-file.csv</figcaption></figure><p><strong>— Second method : </strong>Via a Python script</p><p>Python lovers can instead write a script that you can find in my github repository : <a href="https://github.com/RymCh/exportingfromBQtoGCS">https://github.com/RymCh/exportingfromBQtoGCS</a></p><ul><li>Get into your Shell editor</li><li>Copy exporting.py into your project’s directory</li></ul><p>To simplify the command line interface and automate the process, we can create a .sh file. This is especially convenient for making modifications, such as changing the table being exported or the output filename.</p><p>We only need to precise the name of the table we are exporting and the file to where we are exporting the table in GCS.</p><ul><li>Copy commands.sh into your project’s directory.</li><li>To run the script and execute the commands in the “.sh” file, use the following command in the GCP CLI: “bash ./commands.sh”.</li></ul><blockquote>“ Easy peasy, Lemon squeezy! ”</blockquote><h4>Here are some key skills you learned:</h4><ul><li>Importing a CSV file into a BQ table</li><li>Saving query results into a destination table</li><li>Exporting results from the destination table to GCS using two different methods.</li></ul><p>Please feel free to use the provided code and modify it as necessary. Thank you for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=377035361206" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting started with Spring boot]]></title>
            <link>https://medium.com/@chattiriim/starting-up-with-spring-boot-f7790e997fb5?source=rss-4eacdaf17577------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7790e997fb5</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[hello-world]]></category>
            <category><![CDATA[web]]></category>
            <category><![CDATA[intellij]]></category>
            <dc:creator><![CDATA[Rim Chatti]]></dc:creator>
            <pubDate>Fri, 27 Jul 2018 12:29:58 GMT</pubDate>
            <atom:updated>2020-05-27T22:42:11.500Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s create a simple web application using the Java Enterprise Edition: Spring boot and IntelliJ IDEA.</p><p>Let’s get started!</p><ol><li>Choose your SDK version, for me, it’s 8.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*dApJ-qqcBomrEhqgKzJbVA.png" /></figure><p>2. Next, you have to define group, artifact, etc..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*0VZIzcdN08GXR7Pt0nM02Q.png" /></figure><p>3. Next, choose your dependencies. We don’t need a lot of things here, just select Web.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*OlImxhAe1B3JsoONRWHW8Q.png" /><figcaption>Select Web</figcaption></figure><p>4. Click on Next then Finish. The project will be created with a main class</p><p>The main class contains the annotation @SpringBootApplicationwhich enables the auto-configuration, the component scan, and defining an extra configuration. This annotation is equivalent to @Configuration, @EnableAutoConfigurationand @ComponentScan altogether with their default attributes.</p><p>5. under src/main/java/thenameoftheproject</p><ul><li>Create a new package, let’s name it “Controllers”.</li><li>Right click on “Controllers” -&gt; new -&gt; Java Class -&gt; Hello.java</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*qqlgrFGbOoHFolICIl1HRg.png" /></figure><ul><li>Hello class should be defined as RestController that’s why we usually add @RestController annotation before its definition.</li><li>“Greetings” is the method that deals with the request and response. We should add @RequestMapping before its definition to specify the path (“/hello”)</li><li>We have added a request parameter @RequestParam. That’s optional, you can have a method without an argument.</li></ul><p>6. Since this application runs on the port 8080 then all you have to do now is go to your browser (Google Chrome in my case!) and type: “<strong>http://localhost:8080/hello?FirstName=Rim” </strong>(Rim is my FirstName :p ) <em>When you run the application don’t forget to add the request parameter.</em></p><p>7. Another option of using a <strong>Request parameter</strong> is to use @PathVariable. And the controller method for it is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*e3wyQEIqwmiIx8aYX8jvrw.png" /></figure><p>All you have to do right now is to type: “<strong>http://localhost:8090/hello/Rim” </strong>to run the application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/339/1*YZK8AKuqanqH70gEL7FZFw.png" /><figcaption>the final result.</figcaption></figure><p>8. Whenever you need to change the port: Set server.port property in application.properties file. You can find it under “ src &gt; main &gt; resources”</p><pre><strong>server.port = 8090</strong></pre><p>This is my GitHub repository for this little project 🍀</p><p><a href="https://github.com/RymCh/HelloWorld">https://github.com/RymCh/HelloWorld</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7790e997fb5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>