<?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 Kundan Dombale on Medium]]></title>
        <description><![CDATA[Stories by Kundan Dombale on Medium]]></description>
        <link>https://medium.com/@kundandombale?source=rss-a720e8eb92d1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*kJ883OeNKjV4ppSQbA8-7w.jpeg</url>
            <title>Stories by Kundan Dombale on Medium</title>
            <link>https://medium.com/@kundandombale?source=rss-a720e8eb92d1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 16:15:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kundandombale/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[Using Regular Expressions for Detecting Suspicious Logins: A Real-World Example]]></title>
            <link>https://medium.com/@kundandombale/using-regular-expressions-for-detecting-suspicious-logins-a-real-world-example-7e8940db6694?source=rss-a720e8eb92d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e8940db6694</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[regular-expressions]]></category>
            <dc:creator><![CDATA[Kundan Dombale]]></dc:creator>
            <pubDate>Fri, 07 Feb 2025 04:30:32 GMT</pubDate>
            <atom:updated>2025-02-07T04:30:32.648Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Imagine you are a cybersecurity analyst at a large corporation. Your job is to monitor login attempts and identify any suspicious activity, such as multiple failed logins. Given the volume of logs generated daily, manually scanning through them is not feasible. This is where regular expressions (regex) can help automate the process.</p><h3>Understanding Regex Expressions in Detail</h3><p>Before diving into real-world examples, let’s break down the meaning of commonly used regex expressions and explain how they work.</p><h3>Regex Symbols and Their Meanings with Real-World Scenarios</h3><h3>1. * (Asterisk) - Matches Zero or More Occurrences</h3><h4>Scenario:</h4><p>Lisa, an email security specialist, needs to filter email addresses that contain multiple dots before the domain.</p><h4>Regex Explanation:</h4><p>\w+\.?\w*@example\.com → Matches &quot;<a href="/service/mailto:john@example.com">john@example.com</a>&quot;, &quot;<a href="/service/mailto:john.doe@example.com">john.doe@example.com</a>&quot;, &quot;<a href="/service/mailto:john..doe@example.com">john..doe@example.com</a>&quot;, etc.</p><h4>Example Code:</h4><pre>import re<br>pattern = r&quot;\w+\.?\w*@example\.com&quot;<br>emails = [&quot;john@example.com&quot;, &quot;john.doe@example.com&quot;, &quot;john..doe@example.com&quot;, &quot;john-example.com&quot;]<br>for email in emails:<br>    if re.fullmatch(pattern, email):<br>        print(f&quot;\U0001F4E7 Valid Email: {email}&quot;)</pre><h4>Output:</h4><pre>📧 Valid Email: john@example.com<br>📧 Valid Email: john.doe@example.com<br>📧 Valid Email: john..doe@example.com</pre><h4>Breaking Down the Pattern r&quot;\w+\.?\w*@example\.com&quot;</h4><ul><li>\w+ → Matches one or more alphanumeric characters (A-Z, a-z, 0-9, and underscores _).</li><li>\.? → Matches zero or one literal dot ..</li><li>\w* → Matches zero or more alphanumeric characters after the dot.</li><li>@example\.com → Matches exactly @example.com.</li></ul><p>This pattern ensures that: ✅ The email starts with letters/numbers. ✅ There may be a single dot (.) in the username. ✅ The domain is always example.com.</p><h3>2. {m,n} - Match a Specific Range of Occurrences</h3><h4>Scenario:</h4><p>Michael, a ticketing system administrator, needs to ensure ticket IDs have between 6 and 8 alphanumeric characters.</p><h4>Regex Explanation:</h4><p>\w{6,8} → Ensures ticket IDs contain 6 to 8 characters.</p><h4>Example Code:</h4><pre>pattern = r&quot;\w{6,8}&quot;<br>ticket_ids = [&quot;AB12&quot;, &quot;TICKET1&quot;, &quot;SUPPORT99&quot;, &quot;HELP2024&quot;]<br>for ticket in ticket_ids:<br>    if re.fullmatch(pattern, ticket):<br>        print(f&quot;🎫 Valid Ticket ID: {ticket}&quot;)</pre><h4>Output:</h4><pre>🎫 Valid Ticket ID: TICKET1<br>🎫 Valid Ticket ID: SUPPORT99</pre><h4>Breakdown:</h4><ul><li>\w{6,8} → Ensures that the string consists of 6 to 8 alphanumeric characters.</li></ul><h3>3. \d - Matches Any Digit (0-9)</h3><h4>Scenario:</h4><p>Oliver, an IoT engineer, wants to extract sensor readings from raw data logs.</p><h4>Regex Explanation:</h4><p>\d+ → Matches one or more digits representing sensor readings.</p><h4>Example Code:</h4><pre>pattern = r&quot;\d+&quot;<br>sensor_data = [&quot;Temperature: 23&quot;, &quot;Humidity: 78&quot;, &quot;Pressure: 1013&quot;]<br>for data in sensor_data:<br>    match = re.search(pattern, data)<br>    if match:<br>        print(f&quot;📡 Extracted Sensor Value: {match.group()}&quot;)</pre><h4>Output:</h4><pre>📡 Extracted Sensor Value: 23<br>📡 Extracted Sensor Value: 78<br>📡 Extracted Sensor Value: 1013</pre><h3>4. + (Plus Sign) - Matches One or More Occurrences</h3><h4>Scenario:</h4><p>Emma, an online store developer, wants to validate product codes that consist of uppercase letters followed by at least one digit.</p><h4>Regex Explanation:</h4><p>[A-Z]+\d+ → Matches codes like &quot;ABC123&quot;, &quot;X1&quot;, &quot;YZ99&quot;.</p><h4>Example Code:</h4><pre>pattern = r&quot;[A-Z]+\d+&quot;<br>product_codes = [&quot;ABC123&quot;, &quot;X1&quot;, &quot;YZ99&quot;, &quot;abcd12&quot;]<br>for code in product_codes:<br>    if re.fullmatch(pattern, code):<br>        print(f&quot;🛒 Valid Product Code: {code}&quot;)</pre><h4>Output:</h4><pre>🛒 Valid Product Code: ABC123<br>🛒 Valid Product Code: X1<br>🛒 Valid Product Code: YZ99</pre><h3>Using Regular Expressions for Detecting IP Addresses and Suspicious Logins</h3><h3>Real-World Scenario 1: Detecting Suspicious Login Failures and IP Addresses</h3><h4>Scenario:</h4><p>Noah, a network administrator, needs to track failed SSH login attempts from various IP addresses.</p><h4>Log Sample:</h4><pre>2024-02-07 10:15:45 User: admin - SSH Failed - IP: 45.76.23.8<br>2024-02-07 10:18:22 User: root - SSH Failed - IP: 92.168.88.1</pre><h4>Regex Pattern:</h4><pre>pattern = r&quot;\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2} User: \w+ - SSH Failed - IP: (\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})&quot;</pre><h4>Expected Output:</h4><pre>🚨 Suspicious SSH Login Attempt from IP: 45.76.23.8<br>🚨 Suspicious SSH Login Attempt from IP: 92.168.88.1</pre><h3>Real-World Scenario 2: Extracting Financial Data from Bank Transactions</h3><h4>Scenario:</h4><p>Sophia, a financial data analyst, needs to extract bank account transactions involving specific amounts.</p><h4>Transaction Log Sample:</h4><pre>Deposit of $2,345.67 successful.<br>Withdrawal of $1,200.50 pending.<br>Refund issued: $300.00</pre><h4>Regex Pattern:</h4><pre>pattern = r&quot;\$\d{1,3}(,\d{3})*\.\d{2}&quot;</pre><h4>Expected Output:</h4><pre>💲 Extracted Transaction: $2,345.67<br>💲 Extracted Transaction: $1,200.50<br>💲 Extracted Transaction: $300.00</pre><h3>Conclusion</h3><p>By using regex, professionals across different fields can automate text processing tasks, ensuring data integrity and efficiency. Whether you’re detecting failed logins, validating ticket IDs, extracting IoT sensor readings, or processing financial transactions, regex provides a powerful tool to simplify complex text pattern matching.</p><p>Now, it’s your turn! Try creating your own regex patterns to solve real-world problems in your industry.</p><p>🚀 Happy Regex Hunting!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e8940db6694" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Enhance Your Python Code Quality with Pylint: A Step-by-Step Guide]]></title>
            <link>https://medium.com/@kundandombale/enhance-your-python-code-quality-with-pylint-a-step-by-step-guide-24c7cad11253?source=rss-a720e8eb92d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/24c7cad11253</guid>
            <dc:creator><![CDATA[Kundan Dombale]]></dc:creator>
            <pubDate>Wed, 02 Oct 2024 17:25:39 GMT</pubDate>
            <atom:updated>2024-10-02T17:25:39.385Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s fast-paced development environment, ensuring the quality and maintainability of code is more important than ever. Whether you’re a solo developer or part of a large team, keeping your Python code clean, readable, and error-free is crucial. This is where Pylint, an open-source static code analysis tool, steps in to help.</p><p><strong>Pylint</strong> is designed to analyze your Python code and provide feedback on potential errors, stylistic inconsistencies, and more. In this article, we will walk through how to use Pylint effectively to ensure that your Python projects are following best practices, catching bugs early, and maintaining a high standard of code quality.</p><ul><li><strong>What is Pylint?</strong></li></ul><p>Pylint is a Python tool that checks for programming errors, enforces a coding standard, and looks for code smells, all without running the actual code. It integrates seamlessly into your development process, offering a real-time or on-demand way to improve your code.</p><p>Pylint evaluates your code against various standards, including:</p><p>-<strong> PEP8 (Python’s style guide)</strong></p><p><strong>- Common programming errors</strong></p><p><strong>- Refactoring suggestions</strong></p><p>- <strong>Best practices to enhance readability and maintainability</strong></p><ul><li><strong>Benefits of Using Pylint</strong></li></ul><p>- <strong>Early Error Detection: </strong>Catch errors like undefined variables, improper imports, or syntax issues before running the code.</p><p>- <strong>Consistency</strong>: Enforce consistent style across your team’s codebase, improving readability and maintainability.</p><p>- <strong>Refactoring</strong> <strong>Suggestions</strong>: Improve code quality by following Pylint’s suggestions for restructuring or refactoring.</p><p>- <strong>Automation</strong>: Automate code checks as part of a Continuous Integration (CI) pipeline to prevent bad code from being merged.</p><ul><li>Step-by-Step Guide to Using Pylint</li></ul><p><strong>1. Installing Pylint</strong></p><p>First, ensure Pylint is installed in your Python environment. Open your terminal or command prompt and run:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/0*Bo_y4H90igd2fM79" /></figure><blockquote>install pylint</blockquote><p>This will download and install Pylint, making it available for use in your projects.</p><p><strong>2. Running Pylint on Your Code</strong></p><p>Once installed, running Pylint is straightforward. Navigate to your project directory and run Pylint on a specific Python file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/0*7KJoTA92BHepSH68" /></figure><p>execute python program</p><p><strong>Pylint</strong> will analyze the file and output a list of detected issues, categorized by severity. Each issue includes a description, a line number, and a unique code to help you understand what needs to be fixed.</p><p><strong>3. Understanding the Output</strong></p><p>Pylint organizes its findings into different categories:</p><p>- <strong>C </strong>(<strong>Convention</strong>): Issues related to style conventions such as naming, indentation, and line length.</p><p>- <strong>R</strong> (<strong>Refactor</strong>): Recommendations for improving code structure and readability.</p><p>- W (<strong>Warning</strong>): Potential problems that could cause unexpected behavior.</p><p>- <strong>E</strong> (<strong>Error</strong>): Programming errors that will prevent the code from running correctly.</p><p>- <strong>F</strong> (<strong>Fatal</strong>): Critical issues that will stop your code from functioning altogether.</p><p><strong>4. Fixing Common Issues</strong></p><p>Let’s walk through a few typical problems Pylint might detect:</p><p>Line too long: Pylint checks for lines that exceed the maximum allowed length (79 characters by default). You can fix this by breaking the line into multiple lines or adjusting the logic.</p><p>- Unused import: Pylint flags unused imports, reminding you to remove unnecessary code, making your project more efficient.</p><p>- Trailing whitespace: Pylint helps eliminate redundant spaces at the end of lines, improving the visual cleanliness of your code.</p><p><strong>5. Customizing Pylint</strong></p><p>If you’re working on a large project with specific coding standards, Pylint’s default settings might not suit your needs. In this case, you can create a configuration file to customize its behavior:</p><pre>pylint --generate-rcfile &gt; .pylintrc</pre><p>You can modify the .pylintrc file to adjust rules like line length, naming conventions, and specific checks you want to enable or disable.</p><p><strong>6. Integrating Pylint with Your IDE</strong></p><p>Most popular Integrated Development Environments (IDEs) and code editors like VS Code, PyCharm, and Sublime Text have built-in support or plugins for Pylint. This allows you to get real-time feedback while writing code, highlighting issues as you go.</p><p>- In <strong>VS Code,</strong> for instance, simply install the Pylint extension, and you’ll start seeing Pylint suggestions and errors highlighted directly in your code.</p><p><strong>7. Automating Code Quality Checks</strong></p><p>To ensure high code quality across your entire development team, Pylint can be integrated into your CI/CD pipeline. Tools like <strong>Jenkins</strong>, <strong>GitHub</strong> Actions, or <strong>GitLab</strong> CI can run <strong>Pylint</strong> checks automatically whenever new code is committed, ensuring that no new issues are introduced into the main codebase.</p><h3>Pylint in Action: Real-World Example</h3><p>Let’s consider an example where you’re analyzing a Python file called example.py:</p><pre>def my_function():<br>    print(&#39;This line is way too long and exceeds the maximum allowed length according to Pylint which is 79 characters&#39;)<br>    return True</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/0*weBqaPp1tBlqmK0s" /></figure><p>When you run pylint example.py, you’ll see output like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/0*g-2b7FTjRyvf-_Gn" /></figure><h3>Breakdown of Output:</h3><p>1. <strong>Module Information:</strong></p><p>- Module example: Indicates that Pylint is analyzing the module named example.</p><p><strong>2. Errors and Warnings:</strong></p><ul><li><strong>example.py:3:0 C0301: Line too long (120/100) (line-too-long):</strong> <em>This warning (C0301) states that there is a line in the code (specifically line 3) that exceeds the maximum allowed length of 100 characters (it is 120 characters long)</em>.</li><li><strong>example.py:4:0: C0304: Final newline missing (missing-final-newline):</strong><em>This warning (C0304) indicates that the file does not end with a newline character, which is often considered good practice for code readability.</em></li><li><strong>example.py:1:0: C0114: Missing module docstring (missing-module-docstring):</strong><em>This warning (C0114) signifies that the module lacks a docstring, which is a description of what the module does.</em></li><li><strong>example.py:2:0: C0116: Missing function or method docstring (missing-function-docstring):</strong><em>This warning (C0116) indicates that the function does not have a docstring explaining its purpose.</em></li></ul><p><strong>3. Overall Code Rating:</strong></p><ul><li><strong>Your code has been rated at 0.00/10 (previous run: 0.00/10, +0.00):</strong></li></ul><p>-This line summarizes the overall rating of the code. In this case, it received a 0.00 out of 10, which signifies that the code has several significant issues.</p><p>This rating indicates that the code does not meet basic quality standards, and significant improvements are necessary to achieve a higher score. To improve this rating, you should address the identified issues, including correcting line lengths, adding appropriate docstrings, and ensuring proper formatting.</p><p>To fix this, break the string into multiple lines, like so:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/965/0*M--i9jUhFxrPb1us" /></figure><pre>&quot;&quot;&quot;This module demonstrates a simple function with Pylint checks.&quot;&quot;&quot;<br>def my_function():<br>    &quot;&quot;&quot;Print a message indicating that the line is too long.&quot;&quot;&quot;<br>    print(&quot;This line is way too long and exceeds the maximum allowed length &quot;<br>          &quot;according to Pylint which is 79 characters&quot;)<br>    return True</pre><p>Rerun Pylint, and you’ll see that the issue has been resolved.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/0*SDiQptrDWlPpX5W1" /></figure><h4><strong>Conclusion</strong></h4><p>Pylint is an invaluable tool for ensuring the quality and maintainability of Python code. By detecting errors, enforcing coding standards, and offering refactoring suggestions, Pylint helps developers focus on what really matters — delivering robust and efficient features. Whether you’re a solo developer or working as part of a team, integrating Pylint into your development workflow is a simple step that can make a significant difference in the quality of your Python code.</p><p>So, install Pylint today and start writing cleaner, better Python code!</p><p><strong>#Pylint #Python #CodeQuality #PEP8 #CleanCode #DeveloperTools #CI_CD #SoftwareDevelopment #DataEngineering #DataAnalyst #DataScientist #Programming #SoftwareEngineering #TechTools #PythonDevelopment #DevOps #BestPractices #CodeReview #QualityAssurance #AutomatedTesting #Agile #DataScience #DataAnalytics #DataQuality #MachineLearning #DataVisualization #CodingStandards #TechnicalDebt #Refactoring</strong></p><p>Feel free to share this article with your colleagues and team!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=24c7cad11253" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Journey: How I Successfully Cracked the Databricks Certified Associate Developer for Apache…]]></title>
            <link>https://medium.com/@kundandombale/my-journey-how-i-successfully-cracked-the-databricks-certified-associate-developer-for-apache-1d59f8531ed4?source=rss-a720e8eb92d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d59f8531ed4</guid>
            <category><![CDATA[spark]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[databricks]]></category>
            <category><![CDATA[pyspark]]></category>
            <category><![CDATA[databricks-certification]]></category>
            <dc:creator><![CDATA[Kundan Dombale]]></dc:creator>
            <pubDate>Sun, 07 Apr 2024 17:38:38 GMT</pubDate>
            <atom:updated>2024-04-08T01:31:05.016Z</atom:updated>
            <content:encoded><![CDATA[<h3>My Journey: How I Successfully Cracked the Databricks Certified Associate Developer for Apache Spark 3.0 Exam</h3><p>Getting certified in a specialized field like Apache Spark 3.0 can lead to exciting job opportunities and prove your skills in handling big data tasks. Recently, I took on the challenge of passing the Databricks Certified Associate Developer for Apache Spark 3.0 Exam. With thorough preparation and dedication, I not only passed the exam but also gained valuable insights into mastering this powerful technology.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*89NCbBDkjR8V6aMMdfKUYQ.png" /></figure><p>You’re welcome to inspect my wallet for my certificates. They’re all in there for you to see.</p><p><a href="https://credentials.databricks.com/profile/kundandombale/wallet#gs.7m5a49">Kundan Dombale&#39;s Credentials wallet * Databricks</a></p><h3><strong>Preparation Approach:</strong></h3><p><strong>Exam Blueprint Analysis:</strong><br>Prior to starting my preparation, I made sure to carefully study the exam blueprint provided by Databricks. This helped me grasp the key topics and their relative importance, allowing me to organise my study schedule effectively.</p><p>This certification is part of the Apache Spark learning pathway.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/0*lVXVuzgYEbQQWo5R.png" /></figure><p><strong>Minimum competency expectations</strong></p><p>1. Understanding the fundamentals of<strong> Spark architecture</strong>, including Adaptive Query Execution.<br> 2. Applying the Spark DataFrame API to accomplish various data manipulation tasks, including:</p><ul><li>Selecting, renaming, and manipulating columns.<br> <br> — Filtering, dropping, sorting, and aggregating rows.<br> <br> — Joining, reading, writing, and partitioning DataFrames.<br> <br> — Working with User Defined Functions (UDFs) and Spark SQL functions.</li></ul><p><strong>Duration</strong>:<br>Test takers are allotted 120 minutes to complete the certification exam.</p><p>Question Breakdown:<br>The exam consists of 60 multiple-choice questions. These questions are categorized by high-level topics as follows:</p><ol><li>Apache Spark Architecture Concepts — 17% (10 out of 60 questions)<br>2. Apache Spark Architecture Applications — 11% (7 out of 60 questions)<br>3. Apache Spark DataFrame API Applications — 72% (43 out of 60 questions)</li></ol><p><strong>Programming Language : </strong>This certification exam is available in Python and Scala.</p><p><strong>Resources-</strong></p><p>For those who prefer reading, “<strong>Spark: The Definitive Guide</strong>” book is an excellent resource for preparation. I suggest focusing on chapters 2 through 4 to grasp the fundamentals of Spark and its architecture. Additionally, it’s beneficial to explore the official website at <a href="https://spark.apache.org/docs/latest/cluster-overview.html">https://spark.apache.org/docs/latest/cluster-overview.html</a> for further insights.</p><p>Some potential questions to anticipate include:</p><ol><li>What is a task in the context of Apache Spark?</li><li>Define a slot in Spark’s processing model.</li><li>Enumerate and describe the various types of cluster modes in Spark, highlighting their differences.</li><li>Explain the concept of caching in Spark.</li><li>How do you cache a DataFrame in Spark?</li><li>Define memory-only and memory-and-disk storage levels in Spark, and explain their distinctions.</li><li>What defines the association between nodes and executors in Apache Spark?</li><li>Explain the role of the Spark driver.</li><li>What constitutes the most detailed level of the Spark execution hierarchy?</li><li>Identify examples of wide and narrow transformation functions.</li><li>The difference between cluster and client execution modes.</li><li>Difference between repartition and coalesce.</li></ol><p>To adequately prepare for the Databricks Certified Associate Developer for Apache Spark 3.0 exam, it’s crucial to focus on a variety of topics related to DataFrame operations and data manipulation. Here’s how you can approach each of the mentioned operations and concepts:</p><p>1. <strong>withColumn, withColumnRenamed, select</strong>: Understand how to add or rename columns in a DataFrame using `withColumn` and `withColumnRenamed` functions. Learn how to select specific columns from a DataFrame using the `select` method.</p><p>2. <strong>Aggregate Functions </strong>: Familiarize yourself with common aggregate functions such as `count`, `sum`, `avg`, `min`, and `max`. Practice using these functions to perform calculations on DataFrame columns.</p><p>3. <strong>describe, summary</strong>: Learn how to generate descriptive statistics for DataFrame columns using the `describe` and `summary` methods. Understand their differences and when to use each.</p><p>4. <strong>drop, dropDuplicates, filter</strong>: Master techniques for removing columns (`drop`), eliminating duplicate rows (`dropDuplicates`), and filtering rows based on specific conditions (`filter`).</p><p>5. <strong>Logical OR Operations</strong>: Understand how to perform logical OR operations to filter DataFrame rows based on multiple conditions using the `|` operator.</p><p>6. <strong>Join, CrossJoin, union, unionByName</strong>: Practice performing inner, outer, left, and right joins between DataFrames using the `join` method with different options, join with multiple conditions. Understand the concept of cross joins and when to use them.</p><p>7. <strong>Reading Various File Formats</strong>: Learn how to read data from different file formats such as CSV, JSON, text, and Parquet into Spark DataFrames using the `spark.read.format()` method.</p><p>8. <strong>Writing DataFrames to File Paths</strong>: Understand how to write Spark DataFrames to various file formats and file paths using the `write.format()` method as well as how to create a temp table/ view using dataframe.</p><p>9. <strong>Executing SQL Queries using spark.sql</strong>: Gain proficiency in executing SQL queries on Spark DataFrames using the `spark.sql()` method. Practice writing SQL queries to perform data manipulation and analysis tasks.</p><p>10. <strong>Using Functions like explode, unix_timestamp</strong>,<strong>from_unix_date</strong> <strong>and lit, split, regexp_replace, drop, na.drop, na.fill</strong>: Learn how to use built-in functions like `explode` for array-type columns, `unix_timestamp`, `regexp_replace` and `from_unix_date` for converting string timestamps to Unix timestamps, and `lit` for creating literal columns.</p><p>11. <strong>GroupBy, OrderBy, Aggregate functions</strong>: Practice grouping DataFrame rows using the `groupBy` method and performing aggregations within each group. Learn how to sort DataFrame rows using `orderBy`, both in ascending and descending order.</p><p>12. <strong>Utilization of spark.sql</strong>: Understand the benefits and use cases of using `spark.sql` for executing SQL queries directly on DataFrames. Practice using SQL syntax to perform complex data transformations and analysis tasks.</p><p>13. How can one register a UDF and employ it in both Spark SQL and Python?</p><p>14. Few questions will be around memory management.</p><p>Explore the Spark Python API documentation at the provided URL and search for functions. Attempt to comprehend their application, default values, and other relevant details.</p><p><strong>Some Helpful Links/Resources</strong></p><p>Databricks offers a complimentary video course as part of their Apache Spark Developer Learning Plan. This resource is tailored to aid developers in mastering Apache Spark, covering various fundamental and advanced topics essential for efficient big data processing.</p><p>You have the option to register either as a customer or a partner using your email address. Upon registration, you can proceed to add your company ID to complete the process.</p><p><a href="https://partner-academy.databricks.com/pages/21/home">Loading</a></p><p><strong>Other Resources</strong></p><ol><li><strong>Adaptive Query Execution</strong> <a href="https://www.databricks.com/blog/2020/05/29/adaptive-query-execution-speeding-up-spark-sql-at-runtime.html">https://www.databricks.com/blog/2020/05/29/adaptive-query-execution-speeding-up-spark-sql-at-runtime.html</a></li></ol><p><strong>2. Memory Management:</strong></p><p><a href="https://databricks.com/session/deep-dive-apache-spark-memory-management">https://databricks.com/session/deep-dive-apache-spark-memory-management</a>,</p><p><a href="https://medium.com/analytics-vidhya/apache-spark-memory-management-49682ded3d42">https://medium.com/analytics-vidhya/apache-spark-memory-management-49682ded3d42</a>,</p><p><a href="https://spark.apache.org/docs/latest/configuration.html#memory-management">Spark Configuration</a></p><p><strong>3. Practice Dataframe APIs, functions, UDFs</strong></p><p><a href="https://spark.apache.org/docs/latest/api/python/getting_started/quickstart_df.html">Quickstart: DataFrame - PySpark 3.5.4 documentation</a></p><p><strong>4. Garbage Collection: 1–2 questions will be around GC.</strong></p><p><a href="https://spark.apache.org/docs/3.1.1/tuning.html#garbage-collection-tuning">Tuning Spark</a></p><p><strong>5. Narrow vs Wide Transformations:</strong><br> — Understand the differences between narrow and wide transformations. Wide transformations necessitate shuffling partitions across worker nodes. For instance, group by, join, distinct, intersection, repartition, orderby, etc.</p><p><strong>6. Submitting Application:</strong><br><a href="https://spark.apache.org/docs/latest/submitting-applications.html">https://spark.apache.org/docs/latest/submitting-applications.html</a></p><p><strong>7. Cluster Management (Standalone -the native cluster manager):</strong><br> — Note the difference between client vs cluster mode where the driver runs</p><p><a href="https://spark.apache.org/docs/latest/cluster-overview.html">https://spark.apache.org/docs/latest/cluster-overview.html</a></p><p><strong>8. Job Scheduling</strong></p><p><a href="https://spark.apache.org/docs/latest/job-scheduling.html">Job Scheduling</a></p><p><strong>9 . Memory Management and Storage Levels (cache vs persist): </strong><br>Please note that starting from version 3.0, the default storage level for caching is MEMORY_AND_DISK. Additionally, it’s important to understand that you can modify the storage level using the persist method (not cache). Before changing the storage level, it’s necessary to unpersist the DataFrame.</p><ul><li><a href="https://spark.apache.org/docs/latest/configuration.html#memory-management">https://spark.apache.org/docs/latest/configuration.html#memory-management</a></li><li><a href="https://spark.apache.org/docs/latest/rdd-programming-guide.html#rdd-persistence"><strong>https://spark.apache.org/docs/latest/rdd-programming-guide.html#rdd-persistence</strong></a></li><li><a href="https://sparkbyexamples.com/spark/spark-persistence-storage-levels/">https://sparkbyexamples.com/spark/spark-persistence-storage-levels/</a></li><li><a href="https://medium.com/analytics-vidhya/apache-spark-memory-management-49682ded3d42">https://medium.com/analytics-vidhya/apache-spark-memory-management-49682ded3d42</a></li><li><a href="https://www.tutorialspoint.com/pyspark/pyspark_storagelevel.htm">https://www.tutorialspoint.com/pyspark/pyspark_storagelevel.htm</a></li></ul><p><strong>10. Reader and Writer methods:</strong><br> — Begin by studying these methods from the official documentation. Understand various modes of reading and writing. Note that the reader has the load() method and the writer has the save() method. Be cautious with the method arguments.</p><p>Try to understand the default behaviour of each function.</p><p><a href="https://spark.apache.org/docs/latest/sql-data-sources-text.html#:~:text=read().,write%20to%20a%20text%20file.">Text Files</a></p><p><strong>11. Spark Architecture:</strong></p><p>In Spark Architecture, it’s crucial to understand the roles of various components such as the driver, cluster manager, worker nodes, and node managers. Clear comprehension of the execution hierarchy (Job -&gt; Stage -&gt; Task) and relation between them.</p><ul><li><a href="https://spark.apache.org/docs/latest/api/python/index.html">PySpark Overview - PySpark 4.0.0 documentation</a></li><li><a href="https://spark.apache.org/docs/latest/api/python/getting_started/quickstart_df.html">Quickstart: DataFrame - PySpark 3.5.4 documentation</a></li><li><a href="https://spark.apache.org/docs/latest/sql-performance-tuning.html">Performance Tuning</a></li></ul><p>By focusing on these operations and concepts, along with hands-on practice and experimentation, you’ll be well-prepared to tackle the Databricks Certified Associate Developer for Apache Spark 3.0 exam. Remember to regularly review and reinforce your understanding of each topic to ensure success on exam day.</p><p>To get more details of exam syllabus and updated info check below link [<a href="https://www.databricks.com/learn/certification/apache-spark-developer-associate](https://www.databricks.com/learn/certification/apache-spark-developer-associate)">https://www.databricks.com/learn/certification/apache-spark-developer-associate](https://www.databricks.com/learn/certification/apache-spark-developer-associate)</a></p><p>Now you are equipped with all the necessary tools, you’re ready to dive in! If you need assistance, don’t hesitate to connect on <a href="https://www.linkedin.com/in/kdombale/">LinkedIn</a>. <a href="https://www.linkedin.com/in/kdombale/">https://www.linkedin.com/in/kdombale/</a></p><p>Best of luck on your journey!</p><p>And if you’ve made it this far, thank you for reading. I hope you found the blog insightful 😃.</p><p>Follow me for more engaging content on technology, productivity, and more!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d59f8531ed4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>