<?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 Kunal Pal on Medium]]></title>
        <description><![CDATA[Stories by Kunal Pal on Medium]]></description>
        <link>https://medium.com/@kunalpal215?source=rss-63275e5d79b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*HU4mRRofmTeZFmpSKZsyvA.jpeg</url>
            <title>Stories by Kunal Pal on Medium</title>
            <link>https://medium.com/@kunalpal215?source=rss-63275e5d79b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 05:54:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kunalpal215/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[PhonePe SDE-1 Interview Experience 2025]]></title>
            <link>https://medium.com/@kunalpal215/phonepe-sde-1-interview-experience-2025-d19c8feef923?source=rss-63275e5d79b------2</link>
            <guid isPermaLink="false">https://medium.com/p/d19c8feef923</guid>
            <category><![CDATA[android-interviews]]></category>
            <category><![CDATA[frontend-interviews]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[coding-interviews]]></category>
            <category><![CDATA[phonepe]]></category>
            <dc:creator><![CDATA[Kunal Pal]]></dc:creator>
            <pubDate>Sun, 21 Dec 2025 12:19:45 GMT</pubDate>
            <atom:updated>2025-12-21T12:19:45.975Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/408/1*wgL7zS5yPyCyPNIv_VoVrg.png" /></figure><p>Hi 👋🏻, I am Kunal, and I interviewed at PhonePe for an SDE-1 position in Jan 2025. I had 7 months of full-time experience at that time. Let’s get started.</p><h3>How did I get the opportunity?</h3><p>I cold emailed PhonePe recruiters and luckily got a response for an open position in Pincode (a hyperlocal shopping app by PhonePe). I got asked for my current CTC and expected CTC, and interviews got scheduled within a week.</p><p>PhonePe generally takes 4 rounds of interviews: 1 machine coding, 2 Technical rounds (DSA focused), 1 Hiring Manager round.</p><h3><strong>Round 1</strong></h3><p>I got this round scheduled, but not sure of the reasons, this got skipped and I was moved to technical rounds.</p><h3>Round 2</h3><p>This round was taken by an SDE-3 and it was for 1 hour duration. We started off with introductions and moved to the DSA question. Two questions were asked of medium level difficulty. Exact questions are:</p><ol><li><a href="https://www.geeksforgeeks.org/dsa/maximize-sum-of-k-elements-in-array-by-taking-only-corner-elements/">https://www.geeksforgeeks.org/dsa/maximize-sum-of-k-elements-in-array-by-taking-only-corner-elements/</a></li><li><a href="https://leetcode.com/problems/knight-probability-in-chessboard/description/">https://leetcode.com/problems/knight-probability-in-chessboard/description/</a></li></ol><p>I solved both the questions in 45 mins with the best time and space optimizations, and later he asked about my current work and projects. Got positive feedback, and I got moved to the next round.</p><h3>Round 2</h3><p>This round was taken by an SDE-3, and the pattern was exactly the same as the previous round, but 1 question was of medium difficulty, and 1 was of hard difficulty (trickier to get). Exact questions are:</p><ol><li>In a tetrahedron OABC, find the number of ways to start from O and end up at O in exactly N hops. One hop is moving from one vertex to an adjacent vertex.</li><li><a href="https://leetcode.com/problems/evaluate-division/description/">https://leetcode.com/problems/evaluate-division/description/</a></li></ol><p>I solved both the questions in 50 mins with the best time and space optimizations. later he asked about my current work and projects. Got positive feedback, and I got moved to the next round.</p><p>Before scheduling the hiring manager round, the recruiter contacted me and mentioned that they have budget constraints and will only be able to match my current CTC, and if I say yes, they will proceed for next round. I took a day to come up with a decision. I considered factors:</p><ul><li>My current role is remote, and PhonePe is 5 days WFO.</li><li>PhonePe is a brand name and will be a good addition to my resume. My current company is mid-sized.</li><li>Switching at the same CTC is not considered a good move unless there is a big ROI.</li></ul><p>I mentioned to the recruiter that I will be okay if a decent hike can be given on my current CTC. Got a response in a day, saying it won’t be possible, and because of this Hiring Manager round never happened.</p><h3>Takeaways</h3><p>Overall experience was good, just that some things at the end couldn’t be aligned. I am grateful to had the opportunity.</p><p>Thank you for reading!! Plz like this article if you found this helpful.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d19c8feef923" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Passing Environment vars to AWS ECS]]></title>
            <link>https://medium.com/@kunalpal215/passing-environment-vars-to-aws-ecs-79b774f74920?source=rss-63275e5d79b------2</link>
            <guid isPermaLink="false">https://medium.com/p/79b774f74920</guid>
            <category><![CDATA[aws-secrets-manager]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-ecs]]></category>
            <category><![CDATA[parameter-store]]></category>
            <category><![CDATA[s3]]></category>
            <dc:creator><![CDATA[Kunal Pal]]></dc:creator>
            <pubDate>Sun, 07 Dec 2025 19:16:15 GMT</pubDate>
            <atom:updated>2025-12-07T19:20:37.538Z</atom:updated>
            <content:encoded><![CDATA[<p>AWS Elastic Container Service is a managed container orchestration service that helps in easily deploying, managing, and scaling containerized applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*7f09xk8YmkOnJtt-It3iSw.png" /></figure><p>Env vars include secrets like the database credentials, API keys, and config variables that need to be injected at runtime. There are various ways to get this done, with their own positives and negatives.</p><h3>AWS S3 hosted .env files</h3><p>ECS task definition allows referencing S3-hosted .env files as environment files and directly injects parsed variables into the container environment. The following code snippet shows how it is done:</p><pre>{<br>    &quot;family&quot;: &quot;&quot;,<br>    &quot;containerDefinitions&quot;: [<br>        {<br>            &quot;name&quot;: &quot;&quot;,<br>            &quot;image&quot;: &quot;&quot;,<br>            ...<br>            &quot;environmentFiles&quot;: [<br>                {<br>                    &quot;value&quot;: &quot;arn:aws:s3:::amzn-s3-demo-bucket/envfile_object_name.env&quot;,<br>                    &quot;type&quot;: &quot;s3&quot;<br>                }<br>            ],<br>            ...<br>        }<br>    ],<br>    ...<br>}</pre><p>You can specify up to 10 files per task definition. In case of the same variable, present in multiple files, the first occurrence of that variable’s value, as per the order of the env files mentioned, takes precedence.</p><p><strong>Positives</strong></p><ul><li>Easy and direct.</li><li>Good enough for a small team size.</li><li>Set bucket level policies to prevent unwanted access.</li></ul><p><strong>Negatives</strong></p><ul><li>No mechanism for rotation of secrets.</li><li>As anyone having access can edit the S3 file, there is no governance/process to be followed in your team causing issues when unwanted/mistakes happen.</li></ul><p><strong>Pricing</strong></p><p>Std. S3 data transfer costs (would be $0 in case of same-region data transfers).</p><h3>AWS Secrets Manager</h3><p>It is an offering from AWS designed specifically to store and handle secrets. Secrets reside as key-value under a namespace. Each secrets namespace can hold up to <strong>65Kb-</strong>sized data. It offers <strong>role-based access control (RBAC)</strong>, <strong>attribute-based access control (ABAC),</strong> which can be useful for finer controls. It provides rotation of stored secrets, such as database credentials. Data stored can be encrypted using AWS Key Management Service (KMS). It is accessible from all other AWS services, making it easy to reference your secrets. It offers versioning support for each secret update. The following is code snippet, showing how a secret is referenced from a task definition:</p><pre>{<br>  &quot;containerDefinitions&quot;: [{<br>    &quot;secrets&quot;: [{<br>      &quot;name&quot;: &quot;environment_variable_name&quot;,<br>      &quot;valueFrom&quot;: &quot;arn:aws:secretsmanager:region:aws_account_id:secret:secret_name-AbCdEf&quot;<br>    }]<br>  }]<br>}</pre><p><strong>Positives</strong></p><ul><li>Secrets are stored securely because of encryption.</li><li>Provides secret rotation directly.</li><li>role-based and attribute-based access control.</li><li>With manually defining vars to be included, developers know exactly what secrets need to be there, also new practice to do such updates via contributing to the task definition update can be followed in the team.</li></ul><p><strong>Negatives</strong></p><ul><li>Additional cost and setup</li><li>Manual overhead when adding/removing a var in task definition.</li></ul><p><strong>Pricing</strong></p><ul><li>$0.4/month per secrets namespace</li><li>$0.05 per 10,000 API calls to the secrets</li></ul><h3>AWS Parameter Store</h3><p>It is a tool in AWS Systems Manager, which can be used for configuration data management, secrets management. Secrets need to be defined directly as an entry. It is designed to cater to a wider purpose: secrets, app configurations, etc. Two types of storage parameters are available:</p><ul><li>Std Parameter: Max 4Kb size</li><li>Adv Parameter: Max 8Kb size</li></ul><p>Storage parameter supports the following:</p><ul><li>String: Plaintext data.</li><li>StringList: A comma-separated list of strings.</li><li>SecureString: Encrypted data using AWS Key Management Service (KMS).</li></ul><p>It is Accessible from all other AWS services. It offers <strong>role-based access control (RBAC),</strong> which can be used to manage controls. It offers versioning support for each parameter update. The following is code snippet, showing how a secret is referenced from a task definition:</p><pre>{<br>  &quot;containerDefinitions&quot;: [{<br>    &quot;secrets&quot;: [{<br>      &quot;name&quot;: &quot;environment_variable_name&quot;,<br>      &quot;valueFrom&quot;: &quot;arn:aws:ssm:region:aws_account_id:parameter/parameter_name&quot;<br>    }]<br>  }]<br>}</pre><p><strong>Positives</strong></p><ul><li>Secrets are stored securely.</li><li>With manually defining vars to be included, developers know exactly what secrets need to be there, also new practice to do such updates via contributing to the task definition update can be followed in the team.</li><li>role-based access control.</li></ul><p><strong>Negatives</strong></p><ul><li>Additional cost and setup.</li><li><strong>Attribute-based access control (ABAC)</strong> is a bit harder to implement.</li><li>No direct secret rotation is possible. Need to manage that via some way, for example, a custom lambda.</li><li>Manual overhead when adding/removing a var in task definition.</li></ul><p><strong>Pricing:</strong></p><p>Std Parameter:</p><ul><li>No Cost</li></ul><p>Adv Parameter:</p><ul><li>$0.05 per month</li><li>$0.05 per 10,000 API interactions</li></ul><h3>External Vault</h3><p>Using an External vault to store and manage secrets and consume them via a shared volume, to which a sidecar container writes the secrets.</p><ul><li><a href="https://www.hashicorp.com/products/vault">Hashicorp Vault</a></li><li><a href="https://medium.com/awesome-azure/keeping-secrets-safe-in-asp-net-core-with-azure-key-vault-228a1409bb3a">Azure Key Vault</a></li></ul><p><strong>Positives:</strong></p><ul><li>Secrets are stored securely.</li><li>With manually defining vars to be included, developers know exactly what secrets need to be there, also new practice to do such updates via contributing to the ask definition update can be followed in the team.</li></ul><p><strong>Negatives</strong></p><ul><li>External Dependency and its setup and management.</li><li>Additional cost and setup to configure things in AWS, and setting up the vault service.</li><li>Manual overhead when adding/removing a var via code changes.</li></ul><h3>Recommendations</h3><ul><li>Secrets Manager and Parameter Store are the recommended options as both serve the purpose, but differ in some areas.</li><li><strong>Secrets Manager</strong> is the recommended option if your requirements are more towards better granular access management, and rotation of directs easily, and cost is not a big issue.</li><li><strong>Parameter Store</strong> is the recommended option as it offers various positives, std parameter doesn’t cost, and as requirements grow, you can move towards Secrets Manager.</li></ul><h3>Appendix</h3><ul><li><a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/specifying-sensitive-data.html">Pass sensitive data to an Amazon ECS container</a></li><li><a href="https://aws.amazon.com/secrets-manager/">Cloud Password Management, Credential Storage - AWS Secrets Manager - AWS</a></li><li><a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-parameter-store.html">AWS Systems Manager Parameter Store</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79b774f74920" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>