<?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 Naman Thakur on Medium]]></title>
        <description><![CDATA[Stories by Naman Thakur on Medium]]></description>
        <link>https://medium.com/@erakrypton?source=rss-31322e313a4c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ynCkAGIJXSu5XGJ89qu33Q.jpeg</url>
            <title>Stories by Naman Thakur on Medium</title>
            <link>https://medium.com/@erakrypton?source=rss-31322e313a4c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 11:09:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@erakrypton/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[AWS Certified Solution Architect Associate -Notes]]></title>
            <link>https://infosecwriteups.com/aws-certified-solution-architect-associate-notes-dcc71adb092c?source=rss-31322e313a4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/dcc71adb092c</guid>
            <category><![CDATA[certification-notes]]></category>
            <category><![CDATA[aws-certification]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[solution-architect-notes]]></category>
            <category><![CDATA[aws-solutions-architect]]></category>
            <dc:creator><![CDATA[Naman Thakur]]></dc:creator>
            <pubDate>Wed, 10 Jul 2024 04:56:00 GMT</pubDate>
            <atom:updated>2025-02-02T17:40:21.796Z</atom:updated>
            <content:encoded><![CDATA[<h3>AWS Certified Solution Architect Associate Notes</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*xgyofsBDFxQPrZ5Iu184Cg.png" /></figure><h3>Contents -</h3><ol><li>Cloud Computing</li><li>IAM (Identity and Access Management)</li><li>EC2, Spot Fleet, Share responsibility model</li><li>EBS, ENI, Placement groups, EC2 Hibernate</li><li>AMI, EC2 Image builder, Instance Store, SG</li><li>EFS (Elastic File System), FSx</li><li>Scalability, Agility &amp; Elasticity</li><li>ELB(Elastic Load Balancer)</li><li>ASG (Auto Scaling Group)</li><li>RDS, Aurora, ElastiCache</li><li>Route 53, Beanstalk</li><li>Amazon S3</li></ol><h3>Cloud Computing</h3><p><strong>AWS regions</strong></p><ul><li>Isolated between each other</li><li>ends with a number (e.g., eu-west-1)</li><li>Have at least 3 AZ</li></ul><p><strong>Availability Zones</strong></p><ul><li>children of regions</li><li>include <strong>ONE</strong> or more data centers with redundant networking, power and connectivity</li><li>suffix with a b c (eu-west-1a)</li><li>connected with high bandwidth, ultra-low latency connections</li></ul><p><strong>Edge locations</strong></p><ul><li>the places where data are cached to reduce latency</li><li>used by CloudFront to cache copies</li></ul><p><strong>Local zones</strong></p><ul><li>An extension of AWS</li><li>Multi-tenants (used by multiple parties, not just one company like Outposts)</li></ul><h3><strong>IAM (Identity and Access Management)</strong></h3><p><strong><em>STS ( Security Token Service )</em></strong></p><ul><li>Enable to create temporary, limited credentials to access AWS resources</li><li>Short-term credentials: you configure the expiration period</li></ul><p><strong><em>Account alias</em></strong></p><ul><li>Customize login URL</li><li>used as the account ID</li></ul><p><strong><em>IAM Root user</em></strong></p><ul><li>created by default, should not share, has the most power</li><li>MFA should be enabled</li></ul><p><strong><em>IAM Users</em></strong></p><ul><li>can be part of 0 to n groups</li></ul><p><strong><em>IAM Identities</em></strong></p><ul><li>Users</li><li>Groups</li><li>Roles</li></ul><p><strong><em>IAM Group</em></strong></p><ul><li>Contains users only</li></ul><p><strong><em>IAM Policies</em></strong></p><ul><li><strong>Types</strong></li></ul><ol><li><strong>Identity-based:</strong> attach managed and inline policies to IAM identities → grant permission to identities</li><li><strong>Resource-based policies:</strong> attach inline policies to resources.</li></ol><p><strong><em>A statement in an IAM Policy consists of Sid, Effect, Principal, Action, Resource, and Condition</em></strong></p><p><strong><em>Roles</em></strong></p><ul><li>Not used by users but by programs.</li><li>For example, assign a role to EC2 to do some tasks on AWS.</li><li>Consists of permissions</li><li>Use to create custom combinations of permissions</li></ul><p><strong><em>Strong password using password policy</em></strong></p><ul><li>Require length</li><li>prevent-reuse</li><li>force rotation</li></ul><h3><strong>EC2, Spot Fleet, Share responsibility model</strong></h3><h4><strong><em>Types of instances</em></strong></h4><ul><li>General purposes</li><li>Compute optimized (Prefix C) (High Performance CPU)</li><li>Memory optimized (Prefix R/X) (Large RAM)</li><li>Storage optimized (Prefix I/D) (Large Storage)</li></ul><h4><strong><em>Dedicated Host</em></strong></h4><ul><li>allow you to use your existing per-socket, per-core, or per-VM software licenses that are bound to VMs, sockets, or physical cores, subject to your license terms</li></ul><h4><strong><em>EC2 On-demand</em></strong></h4><ul><li>Pay per second or hours</li><li>Minimum 60 seconds</li></ul><p><strong><em>Purchase options</em></strong></p><ul><li><strong>On-demand (regular case)</strong></li><li><strong>Spot instance (cheap but not reliable) [upto 90% discount] -</strong>Application that can be stop and start any time</li><li><strong>Reserved instance (big discount but need long-term commitment:</strong> either 1 year or 3 years) up to 72% discount reserve a particular instance attributes</li></ul><p><strong>Options</strong></p><ol><li>Standard: Can change AZ, instance size (Linux), networking type</li><li>Convertible: Can change AZ, instance size, OS, payment options, have lower discount than standard up to 66% discount</li></ol><ul><li><strong>Dedicated hosts</strong> (most expensive, physical server, can request location placement, not sharing hardware)</li><li><strong>Dedicated instance</strong> (virtual, cannot require location placement)</li><li><strong>Capacity reservation</strong> (no discount, only reserve resources in a specific AZ for any duration)</li><li>The minimum charge for an on-demand instance is 60 seconds (so if you use less than 60, you still charged 60s)</li></ul><p><strong><em>User data</em></strong></p><ul><li>Bash script that run on 1st start-up (once) of EC2 instance</li></ul><h4><strong><em>EC2 Spot Instance Request-</em></strong></h4><ul><li>Can get a discount of up to 90%</li><li>Define the <strong>max spot price</strong> and get the instance while<strong> the current spot price &lt; max</strong></li></ul><ol><li>The hourly spot price varied based on offer &amp; capacity.</li><li>If the current spot price &gt; your max price you can choose to stop or terminate your instance with a 2 mins grace period.</li></ol><ul><li><strong>Other strategy:</strong> Spot Block (to prevent your instance from being reclaimed): “Block” the spot instance for a specified time frame (1 to 6 hours) without interruption.</li></ul><h4><strong><em>Spot Instance Launch type -</em></strong></h4><ul><li><strong>One time — </strong>If the instance got terminated, it will not spin up again</li><li><strong>Persistent — </strong>A new instance will spin up once requirements are met</li></ul><p>Open, Active, or disabled spot instances can be canceled only.</p><p>First, cancel the spot request.</p><h4><strong><em>EC2 Enhanced Networking (SR-IOV):</em></strong></h4><ul><li>Higher bandwidth, higher packet per second, lower latency</li><li>How to get Enhanced Networking:</li><li>Option 1: Elastic Network Adapter (ENA) up to 100 Gbps</li><li>Option 2: Intel 82599 VF up to 10 GBps — Legacy</li></ul><h4><strong><em>Elastic Fabric Adapter (EFA)</em></strong></h4><ul><li>Improved ENA for HPC, only works for Linux</li><li>Great for inter-node communications, tightly coupled workflows</li><li>Bypasses the underlying Linux OS to provide low-latency, reliable transport</li></ul><h3>EBS, ENI, Placement groups, EC2 Hibernate</h3><h4><strong>EBS volume —</strong></h4><p>Elastic Block Store aka Hard disk connected to the client machine over the network (i.e. not a physical drive)</p><ul><li>AZ specific.</li><li>We can attach multiple EBS to a single instance.</li><li>EBS created in one availability zone can only be assigned to instances of the same availability zone.</li><li>Single EBS can attach to multiple instances as well only with volume type io1 &amp; io2</li><li>We can attach the EBS of another availability zone with the help of a snapshot.</li><li>We can increase the size of EBS volume on runtime.</li><li>We can attach EBS directly on the client level by AMI.</li></ul><p><strong>Delete on Termination — </strong>If it is ticked when the instance gets terminated, EBS will be deleted. By default, it is unticked.</p><h4><strong><em>Snapshot -</em></strong></h4><ol><li>Snapshots are region-specific.</li><li>Snapshots are stored in the S3 bucket.</li><li>When we make a snapshot of any volume, it is made in incremental order.</li><li>Pay for snapshots.</li><li>Pay for snapshot restore on Archive (free for the standard). (75% cheaper)</li><li>Take up to 24–72 hrs for archive snapshot to restore.</li><li><strong>Fast Snapshot Restore </strong>— Quickly restore snapshot with no latency but have to pay the cost</li></ol><h4><strong><em>Placement Groups —</em></strong></h4><p>Placement Group is a configuration option offered by AWS that lets you arrange a group of interdependent instances in a certain way across the underlying hardware on which those instances reside.</p><p>When you create a placement group, you specify one of the following strategies for the group:</p><ul><li><strong>Cluster- </strong>clusters instances into a low-latency group into a single same Availability Zone. (high network throughput)</li></ul><p>-Risk of failure due to the same AZ</p><ul><li><strong>Spread- </strong>spreads instances on different underlying hardware &amp; AZ underlying hardware (max 7 instances per group per AZ)</li><li><strong>Partition-</strong>spreads instances across many different partitions (which rely on different sets of racks) within an AZ.</li></ul><p>-Scales to 100s of EC2 instances per group (Hadoop, Cassandra, Kafka)</p><ul><li>Can span across multiple AZs in the same region.</li></ul><p><strong>EBS Volume Type -</strong></p><ul><li>Io1/io2 block type are used for database workload</li><li>Can be attached to multiple instances of same AZ</li><li>Upto <strong>16</strong> instances at a time.</li></ul><h4><strong>ENI (Elastic Network interface) </strong>— Virtual Network Card</h4><p><em>The ENI can have the following attributes:</em></p><ul><li>Primary private IPV4, one or more secondary IPV4</li><li>One Elastic IP (Pv4) per private IPv4</li><li>One Public IPV4</li><li>One or more security groups</li><li>A MAC address</li></ul><p>You can create ENI independently and attach them on the fly (move them) on EC2 instances for failover</p><ul><li><strong>Bound to a specific availability zone (AZ)</strong></li></ul><h4><strong>EC2 Hibernate -</strong></h4><ul><li>When we hibernate an instance, whatever was in RAM, the in-memory state is going to be preserved.</li><li>The instance boot is much faster (the OS is not stopped / restarted)</li><li>Under the hood: the RAM state is written to a file in the root EBS volume</li><li>The root EBS volume must be encrypted</li><li>When the instance is started,then the RAM is going to be loaded from disk onto the EC2 instance memory.</li><li><strong>Instance RAM Size </strong>— must be less than 150 GB.</li><li><strong>Instance Size </strong>— not supported for bare metal instances.</li><li><strong>AMI </strong>— Amazon Linux 2, Linux AMI, Ubuntu, RHEL, CentOS &amp; Windows.</li><li><strong>Root Volume </strong>— must be EBS, encrypted, not instance store, and large</li><li>Available for <strong>On-Demand</strong>, <strong>Reserved</strong> and <strong>Spot Instances</strong></li><li>An instance can NOT be hibernated more than<strong> 60 days</strong></li></ul><h3><strong>AMI, EC2 Image builder, Instance Store, SG</strong></h3><h4><strong>AMI — Amazon Machine Image</strong></h4><ul><li>In simple terms it a entire copy of an OS called as Image.</li><li>AMI can made public to share externally.</li><li>AMI can be copied to another region.</li><li>To delete AMI first deregister it. After that delete it.</li><li>Region specific</li></ul><h4><strong><em>EC2 Image builder -</em></strong></h4><ul><li>EC2 Image Builder is region specific</li><li>Free service</li><li>Only pay for underlying services (storage)</li></ul><h4><strong>Instance store -</strong></h4><ul><li>Ephemeral storage, not suitable for persistent data</li><li>When we use Instance store the EC2 is attached to a physical hardware</li><li>Fast because resides on the same physical machine with EC2</li><li>Cannot attach/reattach to different EC2</li><li>Data lost when disk failure/instance hibernate</li></ul><h4><strong>Security Group -</strong></h4><ul><li>SG control how traffic is allowed into or out of EC2 instances</li><li>Security group only contain allow rules</li><li>SG are Region Specific</li><li>All inbound traffic is blocked by Default</li><li>All outbound traffic is authorized by default</li></ul><h3>EFS (Elastic File System), FSx</h3><h4>EFS — Network File System</h4><ul><li>Serverless file system</li><li>EFS is region specific</li><li>You pay only for the storage you use, for read and write access to data stored in Infrequent Access storage classes, and for any provisioned throughput.</li><li>can mount to many EC2</li><li>Can share between AZ</li><li>Can use with on-premises service</li><li><strong>EFS-IA</strong> storage class for cheaper price. Suitable for files are not accessed every day (save up to 92%)</li><li>EFS moves files to <strong>EFS-IA</strong> based on last time file is accessed (configurable using lifecyle Policy)</li><li>Cost to retrieve data from EFS-IA</li></ul><h4>FSx</h4><ul><li>Serverless file system</li><li>Launch 3rd party high performance file system on AWS</li><li>It supports 4 main types of file systems:</li></ul><p><strong><em>Amazon FSx for Windows File Server -</em></strong></p><ul><li>Typically deployed across two availability zones for high availability.</li><li>Supports Windows native protocols SMB (Server Message Block) protocol and Windows NTFS.</li><li>Compatible with Microsoft Active Directory.</li><li>Allows you to mount the FSx file system onto your Windows machines.</li><li>Can be mounted to linux EC2 instances.</li></ul><p><strong><em>Amazon FSx for Lustre -</em></strong></p><ul><li>Optimized for high-performance computing (HPC) and machine learning (ML) workloads for Linux machines.</li><li>Designed to deliver high throughput and low latency.</li></ul><p><strong><em>Seamless integration with S3 —</em></strong></p><ul><li>Can “read S3” as a file system (through FSx)</li><li>Can write the output of the computations back to S3</li></ul><p><strong><em>Amazon FSx for NetApp ONTAP -</em></strong></p><ul><li>Managed NetApp ONTAP on AWS</li><li>File System compatible with NFS, SMB, iSCSI protocol</li><li>Move workloads running on ONTAP or NAS to AWS</li></ul><p>Works with: Linux, Windows, MacOS , VMware Cloud on AWS ,Amazon Workspaces &amp; AppStream 2.0, Amazon EC2, ECS and EKS</p><ul><li>Storage shrinks or grows automatically</li></ul><p>Snapshots, replication, low-cost, compression and data de-duplication</p><p><strong><em>Amazon FSx for OpenZFS -</em></strong></p><ul><li>Managed OpenZFS file system on AWS</li><li>File System compatible with NFS (V3, V4, V4. 1, V4.2)</li><li>Move workloads running on ZFS to AWS</li></ul><h3><strong>Scalability, Agility &amp; Elasticity</strong></h3><ul><li><strong>High availability</strong> — means that you are having your applications across multiple availability zone.</li><li><strong>Vertical scaling</strong> — means that you’re increasing the size of an instance.</li><li><strong>Horizontal scaling —</strong> is that you are increasing the number of instances.</li><li><strong>Elasticity</strong> — is the ability to scale out and in based on demand.</li><li><strong>Scalability — </strong>is the ability to scale up and scale out.</li><li><strong>Agility</strong> — is a concept of the Cloud that is going to be able to make you work faster, because you can create and delete resources very, very quickly.</li></ul><h3>ELB(Elastic Load Balancer)</h3><h4><strong>ELB — Elastic Load Balancer</strong></h4><ul><li>Forward request to multiple EC2</li><li>Managed service</li></ul><p><strong>Four types:</strong></p><h4><strong>App load balancer (http level 7)</strong></h4><ul><li>On layer 7 (application layer HTTP for example)</li><li>Load balance traffic between EC2</li><li>Auto-select healthy instances</li></ul><p>The Application Load Balancer also supports Transport Layer Security (TLS) offloading. The Classic Load Balancer supports SSL offloading.</p><h4><strong><em>Network Load Balancer (TCP — layer 4)</em></strong></h4><ul><li>Handle millions of requests per second</li><li>Support dynamic host port mapping</li><li>NLB has one static IP per AZ</li><li>Health check support the <strong>TCP,HTTP and HTTPS protocols</strong></li></ul><h4><strong>Classic LB (layer 4 &amp; 7)</strong> —</h4><p>about to retire soon</p><h4><strong>Gateway LB — </strong>Layer 3</h4><ul><li><strong>Transparent Network Gateway </strong>— single entry/exit for all traffic</li><li><strong>Load Balancer</strong> — distributes traffic to virtual appliances</li></ul><h4>Sticky Sessions (Session Affinity)</h4><ul><li>With sticky sessions the same client is always redirected to the same instance behind a load balancer</li><li>This works for Classic Load Balancer, Application Load Balancer &amp; Network Load Balancer</li><li>For both CLB &amp; ALB, the “cookie” used for stickiness has an expiration date you control</li><li>Enabling stickiness may bring imbalance to the load over the backend EC2 instances</li></ul><ol><li><strong>Application-based Cookies — </strong>Custom cookie generated by the target</li></ol><ul><li>Can include any custom attributes required by the application</li></ul><p><strong>2. Duration-based Cookies — </strong>Cookie generated by the load balancer</p><h4><strong>Cross Zone Load Balancing-</strong></h4><p>Equally distribute the data across all instances across multiple AZ</p><p><strong>Application Load Balancer</strong></p><ul><li>Enabled by default (can be disabled at the Target Group level)</li><li>No charges for inter AZ data</li></ul><p><strong>Network Load Balancer &amp; Gateway Load Balancer</strong></p><ul><li>Disabled by default</li><li>You pay charges ($) for inter AZ data if enabled</li></ul><p><strong>Classic Load Balancer</strong></p><ul><li>Disabled by default</li><li>No charges for inter AZ data if enabled</li></ul><h4><strong>SSL — Server Name Indication (SNI) -</strong></h4><p>SNI solves the problem of loading multiple SSL certificates onto one web.</p><p><strong>Connection Draining</strong></p><p>Feature naming</p><ul><li><strong>Connection Draining</strong> — for CLB</li><li><strong>Deregistration Delay</strong> — for ALB &amp; NLB</li><li>Time to complete “in-flight requests” while the instance is de-registering or unhealthy</li><li>Stops sending new requests to the EC2 instance which is de-registering</li></ul><h4><strong>Connection Draining</strong></h4><p>Feature naming</p><ul><li><strong>Connection Draining</strong> — for CLB</li><li><strong>Deregistration Delay</strong> — for ALB &amp; NLB</li><li>Time to complete “in-flight requests” while the instance is de-registering or unhealthy</li><li>Stops sending new requests to the EC2 instance which is de-registering</li></ul><h3>ASG (AutoScaling Group)</h3><p>The goal of an Auto Scaling Group (ASG) is to:</p><ul><li>Scale out (add EC2 instances) to match an increased load</li><li>Scale in (remove EC2 instances) to match a decreased load</li><li>Ensure we have a minimum and a maximum number of machines running</li><li>Automatically register new instances to a load balancer</li><li>Replace unhealthy instances</li><li>Can scale manually or dynamically</li><li><strong>Manual Scaling: </strong>Update the size of an ASG manually</li><li><strong>Dynamic scaling : </strong>Respond to changing demand</li></ul><h4><strong><em>Simple / Step Scaling</em></strong></h4><ol><li>When a CloudWatch alarm is triggered (example CPU &gt; 70%), then add 2 units</li><li>When a CloudWatch alarm is triggered (example CPU &lt; 30%), then remove 1</li></ol><h4><strong><em>Target Tracking Scaling</em></strong></h4><p>Example: I want the average ASG CPU to stay at around 40%</p><h4><strong><em>Scheduled Scaling</em></strong></h4><ol><li>Anticipate a scaling based on known usage patterns</li><li>Example: increase the min. capacity to 10 at 5 pm on Fridays</li><li><strong>Predictive scaling:</strong> use machine learning to predict future traffic</li></ol><h3>RDS, Aurora, ElastiCache</h3><h4>RDS — Relation Database Services</h4><p>Amazon RDS is a web service that helps you to set up, operate, and scale a relational database in the cloud.</p><p><strong>Amazon RDS provides six database engines to choose :</strong></p><ol><li>Amazon Aurora <strong>7. </strong>IBM DB2</li><li>PostgreSQL <strong>8. </strong>Auora</li><li>MySQL</li><li>MariaDB</li><li>Oracle Database</li><li>Micrsoft SQL Server</li></ol><p><strong>Advantages of RDS -</strong></p><ul><li>RDS is a managed service:</li><li>Automated provisioning, underline OS patching</li><li>Continuous backups and restore to specific timestamp (Point in Time Restore)!</li><li>Monitoring dashboards</li><li>Read replicas for improved read performance</li><li>Multi AZ setup for DR (Disaster Recovery)</li><li>Maintenance windows for upgrades</li><li>Scaling capability (vertical and horizontal)</li><li>Storage backed by EBS (gp2 or iol)</li></ul><h4>RDS storage auto scaling</h4><ul><li>Automatically increase the storage when running out of storage</li><li>Avoid manually storage increase</li><li>You have to set Maximum Storage Threshold (maximum limit for DB storage)</li></ul><p><strong>Automatically modify storage if:</strong></p><ol><li>Free storage is less than 10% of allocated storage</li></ol><p>2. Low-storage lasts at least 5 minutes</p><p>3. 6 hours have passed since last modification</p><p>4. Useful for applications with unpredictable workloads</p><p>5. Supports all RDS database engines</p><p><strong>Read replicas:</strong></p><ul><li>distribute read load between servers</li><li>Maximum 15 replicas</li><li>Replication is ASYNC, so read are eventually consistent</li><li>Within AZ, Multiple AZ &amp; Cross AZ</li><li>Replicas can be promoted to its own DB</li><li>Read replica only used with SELECT statement</li></ul><p><strong>Read replicas fee:</strong></p><ul><li>No fees for read replicas with same region</li><li>Only need to pay for cross-region replicas</li><li><strong>RDS Multi AZ(Disaster Recovery)</strong></li><li>Disaster recovery &amp; local performance</li><li>Sync replication</li><li>One DNS name — automatic app failover to standby</li><li>Increase availability</li><li>Read replicas can also be setup as DR</li></ul><p><strong>RDS — From Single-AZ to Multi-AZ</strong></p><ul><li>Zero downtime operation (no need to stop the DB)</li><li>Just click on “modify” for the database</li></ul><p><strong>RDS Custom</strong></p><ul><li>Managed Oracle and Microsoft SQL</li><li>Have access to underlying OS and database</li></ul><p><strong>RDS Backup</strong></p><p><strong>Automated backups:</strong></p><ul><li>Daily full backup of the database (during the backup window)</li><li>Transaction logs are backed-up by RDS every 5 minutes</li></ul><p>=&gt; ability to restore to any point in time (from oldest backup to 5 minutes ago)</p><ul><li>I to 35 days of retention, set <strong>0</strong> to disable automated backups</li></ul><p><strong>Manual DB Snapshots:</strong></p><ul><li>Manually triggered by the user</li></ul><p>In a stopped RDS database, you will still pay for storage. If you plan on stopping it for a long time, you should snapshot &amp; restore instead</p><p><strong>RDS Proxy</strong></p><ul><li>Fully managed database proxy for RDS</li><li>Allow apps to pool and share DB connections ( Lambda -&gt; RDS Proxy-&gt; RDS DB instance)</li><li>Improve database efficiency by reducing the stress or db resources</li><li>Serverless autoscaling, high available (Multi AZ)</li><li>Reduce RDS and Aurora failover time by 66%</li><li>Enforce IAM authentication</li><li>RDS proxy is only privately accessible</li></ul><h4>Amazon Aurora — relational database</h4><ul><li>Support <strong>PostgreSQL</strong> and <strong>MySQL</strong> .</li><li>It claims 5x performance over <strong>MySQL</strong> and over 3x performance over <strong>PostgreSQL</strong></li><li>Aurora storage automatically grows in increments from <strong>10GB</strong> up to <strong>64TB</strong></li><li>Aurora can have 15 replicas (while MySQL has only 5), replication process is faster.</li><li>Failover in Aurora is instantaneous.</li><li>Aurora costs more than classic RDS (around 20%)</li></ul><p><strong>Aurora availability:</strong></p><ul><li>Stores 6 copies of the data across 3 AZs — only needs 4 copies for writes and 3 for reads</li><li>It has self healing properties with peer-to-peer replication.</li><li>Storage is split across 100s of volumes</li><li>In case of master failure, the failover happens in less than 30 seconds</li></ul><p><strong>Aurora DB Cluster-</strong></p><ul><li>In Aurora we always have one writer endpoint</li><li><strong>Read endpoint:</strong> basically does load balancing between read replicas</li><li><strong>Aurora endpoints:</strong> we can map each connection to the appropriate instance or group of instances based on an use case.</li></ul><p><strong>Aurora Replica Auto Scaling- </strong>Increase the Read Replicas if many read requests</p><p><strong>Aurora — Custom Endpoints -</strong></p><ul><li>Define a subset of Aurora Instances as a Custom Endpoint</li><li>Example: Run analytical queries on specific replicas</li><li>The Reader Endpoint is generally not used after defining Custom Endpoints</li></ul><p><strong>Aurora Serverless — </strong>Scaling configuration for Aurora that automatically scales capacity up or down based on your application’s needs</p><ul><li>Recommended for infrequent, intermittent or unpredictable workloads</li><li>Only pay for what you use</li><li>No application impact when scaling</li></ul><p><strong>Global Aurora -</strong></p><p>There are two ways to have cross region replication:</p><p><strong>Aurora Cross Region Read Replicas:</strong></p><ul><li>Useful for disaster recovery</li><li>Sub Second data access cross region</li><li>Simple to put in place</li></ul><p><strong>Aurora Global Database (recommended):</strong></p><ul><li>We can specify one primary region for read/write</li><li>We can have up to 5 secondary regions (read-only)</li><li>Cross-region Replication take less than 1 second</li><li>We can have up to 16 read replicas per secondary region</li><li>In case we need to promote one region, the RTO (Recovery Time Objective) is <strong>below 1 minute</strong></li></ul><p><strong>Aurora Machine Learning — </strong>Enable to integrate ML services like SageMaker, Comprehend.</p><p>Use case: Fraud detection, product recommendation, sentimental analysis</p><p><strong>Aurora Backups -</strong></p><p><strong>Automated backups:</strong></p><ul><li>I to 35 days retention (cannot be disabled).</li><li>point-in-time recovery in that timeframe</li></ul><p><strong>Manual DB Snapshots</strong></p><ul><li>Manually triggered by the user</li><li>Retention of backup for as long as you want</li></ul><p><strong>RDS &amp; Aurora Restore options -</strong></p><p><strong>Restoring MySQL RDS database from S3:</strong></p><ul><li>Store the on-premises backup database on Amazon S3</li><li>Restore the backup file onto a new RDS instance running MySQL</li></ul><p><strong>Restoring MySQL Aurora cluster from S3:</strong></p><ul><li>Create a backup of on-premises database using Percona XtraBackup</li><li>Store the backup on S3 and restore the backup file onto to a new Aurora instance.</li></ul><p><strong>Aurora Database Cloning -</strong></p><ul><li>Create a new Aurora DB Cluster from an existing one.</li><li>Faster than snapshot &amp; restore</li><li>Uses copy-on-write protocol</li><li>Useful to create a “staging” database from a “production”</li></ul><p><strong>Aurora Security</strong></p><ul><li>Provides encryption at rest using KMS</li><li>If the master is not encrypted, read replicas can’t be encrypted</li><li>Unencrypted database can be encrypted by using DB Snapshot and restore encrypted</li><li>Encryption in <strong>flight</strong> is done using <strong>SSL</strong></li><li>Possibility to authenticate using IAM token</li><li>The Aurora instance is protected with security groups (just like basic RDS)</li><li>There is no way to SSH into an Aurora instance</li></ul><h4>ElastiCache</h4><ul><li>In-memory database</li><li>Managed redis/memcached</li><li>Use for caching</li><li>Both support sub-millisecond response time</li><li>Help reduce load off databases for read intensive workloads</li></ul><p><strong>DB Cache</strong></p><ul><li>Application queries the ElastiCache first. If no data is available for the query (cache miss), the application gets the data from RDS and stores it into the cache</li><li>Caching helps relieve the load from the database</li><li>Cache must have an invalidation strategy to make sure only the most current data is stored in the cache</li></ul><p><strong>User Session Store</strong></p><ul><li>Uses logs into the application</li><li>The application writes the session data to the cache</li><li>The session data can be reused by other instance of the back-end</li></ul><p><strong><em>Redis vs Memcached</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W5nEsN3AkP67Ve7oU9djLg.png" /></figure><p><strong>ElastiCache Security</strong></p><p><strong>All caches in ElastiCache:</strong></p><ul><li>Support SSL in flight encryption</li><li>Do not support IAM authentication</li><li>IAM policies on ElastiCache are only used for AWS API-level security</li></ul><p><strong>Redis AUTH</strong></p><ul><li>We can set a password/token when we create a Redis cluster</li><li>This is an extra layer of security on top of the security groups</li></ul><p><strong>Memcached</strong></p><ul><li>Supports SASL-based authentication</li></ul><p><strong>Caching Patterns</strong></p><ul><li><strong>Lazy loading:</strong> all the reads are cached, data can become stale in cache</li><li><strong>Write Through:</strong> adds/updates of data are cached when written to the database</li><li><strong>Session Store:</strong> store temporary session data in cache using TTL features</li></ul><h3>Route 53, Beanstalk</h3><h4>Route53</h4><ul><li>Route53 is a Managed DNS (Domain Name System)</li><li>DNS is a collection of rules and records which helps clients understand how to reach a server through its domain name</li><li>In AWS, the most common records are:</li></ul><p><strong>A:</strong> map a hostname to IPv4</p><p><strong>AAAA:</strong> map a hostname tp IPv6</p><p><strong>CNAME:</strong> map a hostname to another hostname</p><p><strong>Alias:</strong> map a hostname to an AWS resource</p><p><strong>Route 53 can use:</strong></p><ol><li>public domain names we own</li><li>private domain name that can be resolved by EC2 instances inside our VPCs</li></ol><p><strong>Route53 has advanced features such as:</strong></p><ol><li>Load balancing through DNS — also called <strong>client load balancing</strong></li><li>Health checks</li><li>Routing policy: simple, failover, geolocation, latency, weighted, multi value</li></ol><ul><li><strong>Public</strong> and <strong>Private</strong> hosted zone (Private -&gt; only queried within private resources)</li><li>We pay $0.5 per month per hosted zone</li></ul><p><strong>Route 53 as a Registrar — </strong>We can register domain(similar to godaddy)</p><p><strong><em>TTL (Time to Live)</em></strong></p><ul><li>TTL a is way for web browser and clients to cache the response of the DNS query</li><li>Reason for caching is not to overload the DNS</li></ul><p><strong>High TTL (24 hours):</strong></p><ul><li>Less traffic for DNS</li><li>Possibility of outdated records</li></ul><p><strong>Low TTL (60 seconds):</strong></p><ul><li>More traffic on DNS</li><li>DNS records wont be outdated for longer periods which makes changing DNS records easier</li></ul><p><strong>TTL is mandatory for each DNS record!</strong></p><p><strong>CNAME Records vs Alias Records</strong></p><p>AWS resources usually expose an AWS hostname</p><p><strong>CNAME (Canonical Name record):</strong></p><ul><li>Points a domain name to any another domain name (example: app.mydomain.com =&gt; other.domain.com)</li><li>CNAME records work only for non root domains! (example of a non-root domain: something.rootdomain.com)</li></ul><p><strong>Alias records:</strong></p><ul><li>Point a hostname to an AWS resource (app.mydomain.com =&gt; something.amazonaws.com)</li><li>Alias records work for both root and non-root domain</li><li>They are free of charge</li><li>Alias record is always A and AAAA</li><li>We cannot set an alias record for an EC2 connect</li><li>They can do health checks</li></ul><p><strong>Route53 Health Checks</strong></p><ul><li>HTTP health check are only for Public resources</li><li>If an instance is unhealthy, Route53 does not send traffic to it</li><li>An instance is unhealthy if fails to respond to X (default 3) amount of requests in a row</li><li>It becomes healthy again if passes X (default 3) health checks in a row</li><li>Default health checks interval is 30s (Fast Health Checks: can be set to 10s — higher cost)</li><li>About 15 health checkers will check the end-point’s health</li><li>Health check protocols: HTTP, TCP, HTTPS (no SSL verification)</li><li>Can be integrated with CloudWatch</li></ul><p><strong>Calculated Health Checks</strong></p><ul><li>Combine the results of multiple Health Checks into a single Health Check</li><li>You can use OR, AND, or NOT</li><li>Specify how many of the health checks need to pass to make the parent pass</li></ul><p><strong>For private hosted zone -</strong></p><p>We can create a CloudWatch Metric and associate a CloudWatch Alarm, then create a Health Check that checks the alarm itself</p><h4><strong>Routing Policies</strong></h4><ol><li><strong>Simple Routing Policy</strong></li></ol><ul><li>Used to redirect to a single source</li><li>We can not attach health checks to a simple routing policy</li><li>Simple routing policy can return multiple values to a client</li><li>If multiple values are returned the client can chose a random value</li></ul><p><strong>2. Weighted Routing Policy</strong></p><ul><li>Route to resource with a percentage (70% go to resource A, 30% go to B…)</li><li>Helpful to test a new application version</li><li>Can be associated with health checks</li><li>Assign weight <strong>0</strong> to resource, to stop send traffic to a resource</li><li>Assign weight <strong>0 </strong>to all resource, all record will return equal traffic</li></ul><p><strong>3. Latency Routing Policy</strong></p><ul><li>Redirects to a server that has the least latency to the client</li><li>Mainly used when latency is a priority for the clients</li><li>Latency is evaluated in terms of user to designed AWS Region</li></ul><p><strong>4. Failover Routing Policy</strong></p><ul><li>Configure for active-passive failover</li><li>If the primary record fails, traffic is routed to the secondary record</li><li>Requires a health check in order to work, failover is detected based on health checks</li></ul><p><strong>5. Geolocation Routing Policy</strong></p><ul><li>It is routing based on the user’s location</li><li>We can specify where the traffic should be routed if the user is requesting from an IP that originates from a country</li><li>Requires a default policy (in case there is no match for a location)</li></ul><p><strong>6. Geoproximity Routing Policy</strong></p><ul><li>It is also do routing based on the user’s location</li><li>Ability to shift more traffic to resources based on the defined bias</li><li>Resources can be:</li><li>AWS resources (specify AWS region)</li><li>Non-AWS resources (specify Latitude and Longitude)</li><li>You must use Route 53 Traffic Flow to use this feature</li></ul><p><strong>7. IP-based routing policy:</strong> Route users based on the IP</p><p><strong>8. Multi Value Routing Policy</strong></p><ul><li>Use when routing traffic to multiple resources</li><li>Route 53 return multiple values/resources</li><li>Can be associated with Health Checks (return only values for healthy resources)</li><li>Up to 8 healthy records are returned for each Multi-Value query</li><li>Multi-Value is not a substitute for having an ELB</li></ul><h4>Beanstalk -PAAS</h4><ul><li>Elastic Beanstalk is a developer centric view of deploying applications on AWS</li><li>Automatically handles the deployment and can have access to undelying os</li><li>Helps developers run code faster by provisioning required infra (EC2/ELB/ASG…)</li><li>Paas</li><li>Supports many languages &amp; deployment options. Also supports docker</li><li>Can be used to monitor and check the health of an environment.</li><li>Free to use, the user pays for the infra</li><li>We deploy application versions to environments and can promote application versions to the next environment</li><li>We can rollback to previous versions of the application</li><li>We have full control over the lifecycle of the application</li></ul><h3>Amazon S3</h3><p><strong>Pricing — </strong>You are charged by</p><ul><li>Storage</li><li>Request &amp; Data retrieval</li><li>Data transfer out</li></ul><ol><li>IN from internet is free</li><li>Out to internet is free for the first 100GB per month</li><li>Data transfer between S3 buckets or other services in the same region</li><li>Data transferred out to cloudfront</li></ol><ul><li>Management &amp; analytics</li><li>Replication</li><li>S3 Object Lambda</li></ul><h4>S3 Transfer Acceleration</h4><ul><li>Increase transfer speed by transferring file to an AWS edge location which will forward the data to the S3 bucket in the target region</li><li>fast, easy, and secure transfers of files over long distances between your client and an S3 bucket.</li><li>uses the globally distributed edge locations in Amazon CloudFront.</li></ul><p>Buckets</p><ul><li>bound to a region</li><li>name must be unique</li></ul><p>Object</p><ul><li>files</li><li>Object’s key is its full path</li><li>Max size is 5TB</li><li>Max upload size is 5GB</li></ul><h4>Bucket policy</h4><ul><li><strong>User-based:</strong></li></ul><ol><li><strong>IAM Policies — </strong>which API calls should be allowed for specific user from IAM</li></ol><ul><li><strong>Resource-based:</strong></li></ul><ol><li><strong>Bucket policies — </strong>bucket wide rules from the S3 console — allow across account.</li><li><strong>Object ACL </strong>— fine grain (can be disabled)</li><li><strong>Bucket ACL — </strong>less common (can be disabled)</li></ol><p><strong>Encryption :</strong> Encrypt objects — in Amazon S3 using encryption keys</p><h4>S3 Versioning —</h4><p>similar to Git</p><h4>Access Logging —</h4><ul><li>Store all audit logs to S3</li><li>Must select bucket to log</li></ul><h4>S3 replication</h4><ul><li>Disabled by default</li><li>Can be across regions or in the same region</li><li><strong><em>CRR — Cross Region Replication</em></strong></li><li><strong>SRR — Same Region Replication</strong></li><li>Must enable versioning</li><li>Copy is async</li><li>Buckets can be from different accounts</li><li><strong>S3 Batch Replication </strong>— We can replicate existing objects using Replicates existing objects and objects that failed replication</li></ul><h4>Storage class</h4><ul><li><strong>Standard:</strong> 99.99% availability</li><li><strong>Standard-IA:</strong> Access infrequently. Access instantly, cross AZ</li><li><strong>One Zone-IA:</strong> 99.5% availability. Access instantly, single AZ (Cheaper than standard IA) — data is lost when AZ is destroyed</li><li><strong>Amazon S3 Intelligent-</strong>Tiering (Automatically move objects between classes to save cost -Based on usable pattern ) It is cheaper as compare to IA.</li><li><strong>Amazon S3 Glacier Storage —</strong></li></ul><ol><li><strong>Glacier Instant retrieval:</strong></li></ol><p><strong>a.</strong> Milliseconds retrieval, great for data accessed once a quarter</p><p><strong>b.</strong> Minimum storage duration of 90 days</p><p><strong>2. Glacier Flexible retrieval:</strong></p><p><strong>a. </strong>Ideal for backup and disaster recovery use cases when large sets of data. occasionally need to be retrieved in minutes</p><p><strong>b. </strong>Retrieval time<strong> Expedited</strong> (1 to 5 minutes), <strong>Standard</strong> (3 to 5 hours), <strong>Bulk</strong> (5–12 hours) -free</p><p><strong>c. </strong>Minimum storage duration of 90 days</p><p><strong>3. Glacier Deep Archive: </strong>for long term storage(minimum storage duration 180 days)</p><p><strong>a. </strong>Lowest cost storage class designed for long-term retention of data that will be retained for 7–10 years</p><p><strong>b.</strong> Retrieval time within <strong>Standard</strong> (12 hours), <strong>Bulk</strong> (48hours)</p><h4>S3 Glacier —</h4><p>Automatic encryption enabled</p><h4>Glacier vault lock —</h4><p>Lock for future edit</p><h4>S3 Object Lock —</h4><ul><li>Write once read many</li><li>Block a specific version deletion for specific time</li><li>Versioning must be enabled</li></ul><p><strong><em>Retention mode — Compliance:</em></strong></p><ol><li>Object versions can’t be overwritten or deleted by any user, including the root user</li></ol><p>2. Objects retention modes can’t be changed, and retention periods can’t be shortened</p><p><strong><em>Retention mode — Governance:</em></strong></p><ol><li>Most users can’t overwrite or delete an object version or alter its lock settings</li><li>Some users have special permissions to change the retention or delete the object</li></ol><p><strong><em>Retention Period:</em></strong></p><p>protect the object for a fixed period, it can be extended</p><p><strong><em>Legal Hold:</em></strong></p><ul><li>protect the object indefinitely, independent from retention period</li><li>can be freely placed and removed using the s3:PutObjectLegalHold IAM permission</li></ul><h4>S3 Encryption</h4><ul><li>No encryption</li><li><strong>Server-side encryption</strong> — (default) Server encrypts the file after receiving it</li><li><strong>Client side encryption — </strong>User Encrypt the file before uploading it</li></ul><h4>S3 -Lifecycle Rules</h4><ul><li><strong>Transition Actions </strong>— configure objects to transition to another storage class</li><li><strong>Expiration actions </strong>— configure objects to expire (delete) after some time</li></ul><p>Rules can be created for a certain <strong>prefix</strong> (example: s3://mybucket/mp3/*)</p><p>Rules can be created for certain object Tags (example: Department: Finance)</p><h4>S3 -Requester</h4><ul><li>The requester instead of the bucket owner pay the cost of the request and the data download from bucket</li><li>Requester must AWS authenticated (means request from other AWS account)</li></ul><h4>S3 -Event Notification</h4><ul><li>Create events for S3:ObjectCreated, S3:ObjectRemoved, S3: ObjectRestore, S3:Replication…</li><li>Object name filtering possible (* jpg)</li><li>S3 event notification can be send to SNS, SQS, Lambda function &amp; EventBridge</li><li><strong>EventBridge</strong> support over 18 services as destinations</li></ul><p>EventBridge Capabilities — Archive, Replay Events, Reliable delivery</p><h4>S3 Performance Optimizations</h4><ul><li><strong>Multi-Part upload:</strong> will split data into smaller chunks and it will upload them in parallel. It is recommended to be used for files bigger than 100MB, it is mandatory for files bigger than 5GB</li><li><strong>S3 Transfer Acceleration</strong></li><li><strong>S3 Byte-Range Fetches:</strong> can be used to speed up downloads by parallelizing GET requests. Can be used to retrieve only a part of the file. Divide the file in parts and upload parallel files</li></ul><p><strong>S3 Select and Glacier Select</strong></p><ul><li>Can be used to retrieve less data using SQL queries to do server side filtering</li><li>We can filter by rows and columns. SQL statements should be simple, we can not have joins</li><li>The purpose of S3 Select is to use less network traffic</li></ul><h4>S3 Batch Operations</h4><ul><li>Perform bulk operations on existing S3 objects with a single request, example:</li><li>Modify object metadata &amp; properties</li><li>Copy objects between 53 buckets</li><li>Encrypt un-encrypted objects</li><li>Modify ACLs, tags</li><li>Restore objects from S3 Glacier</li><li>Invoke Lambda function to perform custom action on each object</li><li>A job consists of a list of objects, the action to perform, and optional parameters</li><li>S3 Batch Operations manages retries, tracks progress, sends completion notifications, generate reports…</li><li>You can use S3 Inventory to get object list and use S3 Select to filter your objects</li></ul><h3>References-</h3><ol><li><strong>Ernyoke — </strong><a href="https://github.com/Ernyoke/certified-aws-solutions-architect-associate">certified-aws-solutions-architect-associate</a></li><li><strong>Udemy Course —</strong> <a href="https://expedia.udemy.com/course/aws-certified-solutions-architect-associate-saa-c03/learn/lecture/13725426?start=0#overview">Stephane Maarek’s Course</a></li><li><strong>Udemy test practise — </strong><a href="https://expedia.udemy.com/course/practice-exams-aws-certified-cloud-practitioner/learn/quiz/4915793/test#overview">Link 1</a></li><li><strong>Udemy test practise — </strong><a href="https://expedia.udemy.com/course/aws-certified-cloud-practitioner-practice-exams-c/learn/quiz/4550439#overview">Link 2</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dcc71adb092c" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/aws-certified-solution-architect-associate-notes-dcc71adb092c">AWS Certified Solution Architect Associate -Notes</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cybersecurity Interview Questions For Freshers]]></title>
            <link>https://infosecwriteups.com/cyber-security-interview-questions-for-freshers-a6307092b1a5?source=rss-31322e313a4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a6307092b1a5</guid>
            <category><![CDATA[freshers]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[interview-questions]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[interview-tips]]></category>
            <dc:creator><![CDATA[Naman Thakur]]></dc:creator>
            <pubDate>Sun, 09 Oct 2022 08:47:43 GMT</pubDate>
            <atom:updated>2025-06-04T11:55:57.223Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello Everyone,In this article I’ll be sharing useful resources, tips &amp; interview questions for all Cyber Security Freshers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/1*fPjj2M2HbDVONvLhLfmLoA.png" /></figure><blockquote>To excel in a Cyber Security interview as a fresher, it is important to have a foundational understanding of Cyber Security concepts, rather than being a pro. Therefore, prioritize clearing the basics and fundamentals before diving into advanced topics. This approach can increase your chances of success in the interview.</blockquote><h3>Interview Questions:</h3><ol><li>What are <a href="https://www.geeksforgeeks.org/network-devices-hub-repeater-bridge-switch-router-gateways/"><strong>Network Devices</strong></a><strong> ? </strong>Repeater, Hub, Switch, Bridge, Router.</li><li>What is an <strong>IP address</strong>, <strong>Classes of IP address </strong>?</li><li><a href="https://www.geeksforgeeks.org/14-most-common-network-protocols-and-their-vulnerabilities/"><strong>Common Protocols </strong></a><strong>&amp; </strong><a href="https://www.researchgate.net/figure/Commonly-used-port-numbers_tbl1_30511385"><strong>Port No.</strong></a><strong> </strong>(FTP, SSH, TLS, SMTP, DNS, HTTP, LDAP, HTTPS, RDP, ARP, DHCP etc)</li><li>Explain <a href="https://www.google.com/search?q=OSI+%26+TCP%2FIP+Model.&amp;rlz=1C5CHFA_enIN1023IN1024&amp;oq=OSI+%26+TCP%2FIP+Model.&amp;aqs=chrome..69i57.168j0j7&amp;sourceid=chrome&amp;ie=UTF-8">OSI &amp; TCP/IP Model</a> (Mostly <a href="https://www.imperva.com/learn/application-security/osi-model/#:~:text=The%20Open%20Systems%20Interconnection%20(OSI,companies%20in%20the%20early%201980s"><strong>OSI model</strong></a> is asked)</li><li>What is <a href="https://www.geeksforgeeks.org/tcp-3-way-handshake-process/"><strong>3-Way Handshake</strong></a>?</li><li>What is a <a href="https://www.youtube.com/watch?v=aUPoA3MSajU"><strong>Firewall</strong></a> and types of firewall.</li><li>Difference in <a href="https://www.checkpoint.com/cyber-hub/network-security/what-is-firewall/what-is-a-stateful-firewall/stateful_vs_stateless_firewall/#:~:text=A%20stateless%20firewall%20differs%20from,of%20inbound%20and%20outbound%20connections"><strong>Stateless and Statefull</strong></a> Firewall?</li><li>What is <strong>IDS</strong>(Intrusion Detection System) &amp; <strong>IPS</strong> (Intrusion Prevention System) ? <a href="https://www.varonis.com/blog/ids-vs-ips#:~:text=An%20IPS%20has%20the%20same,an%20unauthorized%20user%20is%20detected.">Difference between them.</a></li><li>What is the difference in <a href="https://heimdalsecurity.com/blog/host-intrusion-detection-system-hids/"><strong>HIDS and NIDS</strong></a>?</li><li>What is <a href="https://www.kaspersky.com/resource-center/definitions/what-is-a-vpn"><strong>VPN</strong></a> and types of VPN?</li><li>What is <a href="https://www.cloudflare.com/en-gb/learning/ddos/glossary/web-application-firewall-waf/"><strong>WAF</strong></a>(Web Application Firewall)?</li><li>What is <a href="https://www.cloudflare.com/en-gb/learning/dns/what-is-dns/"><strong>DNS</strong></a> (Domain Name System) ? How DNS works.</li><li>What are <a href="https://www.fortinet.com/resources/cyberglossary/proxy-server"><strong>proxy server</strong></a>?</li><li>What is the difference in <a href="https://www.geeksforgeeks.org/difference-between-network-address-translation-nat-and-port-address-translation-pat/"><strong>NAT &amp; PAT</strong></a> ?</li><li>What is <a href="https://www.fortinet.com/resources/cyberglossary/what-is-dmz"><strong>DMZ </strong></a><strong>(Demilitarized zone)</strong>?</li><li>What is <a href="https://www.kaspersky.com/resource-center/definitions/what-is-cryptography"><strong>cryptography</strong></a>?</li><li>Difference in <a href="https://www.geeksforgeeks.org/difference-between-symmetric-and-asymmetric-key-encryption/"><strong>symmetric and asymmetric</strong></a><strong> </strong>cryptography?</li><li>Difference in <a href="https://medium.com/swlh/the-difference-between-encoding-encryption-and-hashing-878c606a7aff"><strong>Encryption, hashing</strong> &amp;<strong> encoding</strong></a> ?</li><li>What is<a href="https://en.wikipedia.org/wiki/Salt_(cryptography)"> <strong>salted hash</strong></a>?</li><li>What is <a href="https://www.f5.com/services/resources/glossary/ssl-tls-encryption"><strong>SSL </strong>and <strong>TLS</strong></a> ?</li><li>What is <a href="https://www.geeksforgeeks.org/the-cia-triad-in-cryptography/"><strong>CIA triad</strong></a>? (Confidentiality, Integrity &amp; Availability)</li><li>What is <a href="https://www.digiaware.com/2018/12/vulnerability-threat-risk-key-difference-examples/"><strong>Vulnerability</strong>, <strong>Threat </strong>&amp; <strong>Risk</strong></a> ?</li><li>Difference in <strong>V.A (Vulnerability assessment)</strong> and <strong>P.T(Penetration testing) </strong>?</li><li>What is <a href="https://www.arubanetworks.com/techdocs/ClearPass/6.7/Aruba_DeployGd_HTML/Content/802.1X%20Authentication/About_AAA.htm#:~:text=AAA%20stands%20for%20authentication%2C%20authorization,necessary%20to%20bill%20for%20services."><strong>AAA</strong></a><strong> ? </strong>( Authentication, Authorization &amp; Accounting)</li><li>What is <a href="https://www.imperva.com/learn/application-security/social-engineering-attack/"><strong>Social Engineering attack</strong></a>?</li><li>What is <a href="https://www.ncsc.gov.uk/guidance/phishing#:~:text=Phishing%20is%20when%20attackers%20attempt,them%20to%20a%20dodgy%20website."><strong>phishing attack</strong></a> ? <a href="https://blog.usecure.io/types-of-phishing-attack">Types of phishing attacks</a> (<strong>Vishing, Smishing, Spear Phishing, Whaling, Shoulder Surfing</strong>)</li><li>What is a <a href="https://www.geeksforgeeks.org/malware-and-its-types/"><strong>malware</strong></a> ? Different types of malware. (<strong>Virus, Worm, Ransomware, Trojan Horse, Backdoor, Rootkits, Adware, Spyware</strong>)</li><li>What is <a href="https://www.fortinet.com/resources/cyberglossary/what-is-port-scan"><strong>port scanning</strong></a>?</li><li>What is <a href="https://www.malwarebytes.com/spoofing"><strong>Spoofing</strong></a> ?</li><li>What is <a href="https://sucuri.net/guides/what-is-brute-force-attack/"><strong>Brute Force Attack</strong></a> and how to prevent it?</li><li>What is <a href="https://www.techtarget.com/searchsecurity/definition/dictionary-attack"><strong>Dictionary attack</strong></a> &amp; <a href="https://www.futurelearn.com/info/courses/hands-on-password-attacks-and-security/0/steps/202820#:~:text=Rainbow%20table%20attacks%20are%20similar,they%20need%20less%20computing%20power."><strong>Rainbow attack</strong></a>?</li><li>What is <a href="https://www.imperva.com/learn/application-security/man-in-the-middle-attack-mitm/"><strong>MITM</strong></a> (Man in The Middle Attack)?</li><li>What is <a href="https://www.fortinet.com/resources/cyberglossary/dos-vs-ddos"><strong>DOS &amp; DDOS</strong></a><strong> </strong>attack .Difference between them and<a href="https://www.indusface.com/blog/best-practices-to-prevent-ddos-attacks/"> how to prevent it</a>?</li><li>What is <a href="https://www.paloaltonetworks.com/cyberpedia/what-is-botnet"><strong>botnet</strong></a>?</li><li>What is <a href="https://www.rapid7.com/fundamentals/vulnerability-management-and-scanning/"><strong>vulnerability management</strong></a>?</li><li>What is <a href="https://authy.com/what-is-2fa/"><strong>2FA</strong></a> (Two Factor Authentication)?</li><li>What is <a href="https://www.techtarget.com/searchsecurity/definition/single-sign-on"><strong>SSO</strong></a> (Single Sign On)?</li><li>What is <a href="https://owasp.org/www-project-top-ten/"><strong>OWASP Top 10</strong></a>?</li><li>What is <a href="https://sucuri.net/guides/what-is-sql-injection/"><strong>SQL injection</strong></a><strong> </strong>and how to prevent it ?</li><li>What is<strong> </strong><a href="https://owasp.org/www-community/attacks/xss/"><strong>XSS</strong></a><strong> (Cross Site Scripting </strong>)? Types of XSS and how to prevent it?</li><li>What is <a href="https://medium.com/@chiragrai3666/csrf-today-techniques-mitigations-and-bypasses-b1cf6a6cd81c#:~:text=Cross%2DSite%20Request%20Forgery%20(CSRF,on%20a%20post%2Cetc)."><strong>CSRF</strong></a><strong> (Cross Site Request Forgery)</strong>? How to prevent it?</li><li>What is <a href="https://portswigger.net/web-security/access-control/idor"><strong>IDOR</strong></a><strong> (Insecure direct object references)</strong>?</li><li>What is <a href="https://owasp.org/www-project-top-ten/2017/A2_2017-Broken_Authentication"><strong>Broken Authentication</strong></a> and how to prevent it?</li><li>What is <a href="https://www.techtarget.com/searchsecurity/definition/identity-access-management-IAM-system"><strong>Identity &amp; Access Management </strong></a>(<strong>IAM</strong>)?</li><li>What is <a href="https://www.computernetworkingnotes.com/ccna-study-guide/how-dhcp-works-explained-with-examples.html"><strong>DHCP </strong></a>? How DHCP works.</li><li>What is <a href="https://www.itgovernance.co.uk/iso27001"><strong>ISO 27001 Framework</strong></a><strong> </strong>?</li><li>What is <a href="https://www.directdefense.com/solutions/security-compliance/pci/#:~:text=What%20is%20PCI%20Compliance%3F,transactions%20in%20the%20payments%20industry."><strong>PCI -DSS</strong></a> compliance ?<strong>(Payment Card Industry Data Security Standards)</strong></li><li>What is <a href="https://www.cdc.gov/phlp/publications/topic/hipaa.html#:~:text=The%20Health%20Insurance%20Portability%20and,the%20patient&#39;s%20consent%20or%20knowledge."><strong>HIPAA</strong></a> ? <strong>(Health Insurance Portability and Accountability Act)</strong></li><li>What are the recent attacks?</li><li>What is <a href="https://medium.com/novice2pro/log4j-critical-vulnerability-cve-2021-44228-655dd5bd3ca9"><strong>log4j vulnerability</strong></a>?</li><li>What is <a href="https://www.imperva.com/learn/data-security/data-loss-prevention-dlp/"><strong>DLP</strong></a> ? (Data Loss Prevention)</li><li>What is <a href="https://www.geeksforgeeks.org/kerberos/"><strong>Kerberos</strong></a><strong> authentication</strong> ?</li><li>What is <a href="https://www.nist.gov/cyberframework"><strong>NIST Framework</strong></a>?</li><li>What is <a href="https://www.trendmicro.com/vinfo/us/security/definition/zero-day-vulnerability"><strong>Zero day attack</strong></a>?</li></ol><h3>Additional questions for SOC Analyst role :</h3><ol><li>What is <a href="https://www.checkpoint.com/cyber-hub/threat-prevention/what-is-soc/"><strong>SOC</strong></a> <strong>(Security Operation Center)</strong>?</li><li>What are the <a href="https://www.techtarget.com/searchsecurity/tip/5-key-enterprise-SOC-roles-and-responsibilities#:~:text=5%20SOC%20roles%20and%20their,manager%20and%20security%20engineer%2Farchitect.">different roles in SOC</a> ?</li><li>What is an<strong> </strong><a href="https://www.databarracks.com/blog/whats-the-difference-between-an-event-and-an-incident"><strong>event &amp; incident</strong></a><strong> </strong>?</li><li>What is<strong> </strong><a href="https://developers.google.com/machine-learning/crash-course/classification/true-false-positive-negative"><strong>True Positive, False Positive &amp; False Negative</strong></a><strong> </strong>?</li><li>What is <a href="https://www.trellix.com/en-us/security-awareness/operations/what-is-siem.html"><strong>SIEM (Security Investigation &amp; Event Management)</strong></a>?</li><li>What is <a href="https://www.rapid7.com/solutions/security-orchestration-and-automation/#:~:text=SOAR%20(Security%20Orchestration%2C%20Automation%2C,response%2C%20and%20security%20operations%20automation."><strong>SOAR (Security Orchestration, Automation, and Response)</strong>?</a></li><li>What is <a href="https://www.crowdstrike.com/cybersecurity-101/endpoint-security/endpoint-detection-and-response-edr/"><strong>EDR</strong></a><strong> (Endpoint Detection &amp; Response)</strong>?</li><li>Difference in EDR &amp; Antivirus .</li><li>What is <a href="https://www.trellix.com/en-us/security-awareness/endpoint/what-is-xdr.html"><strong>XDR (Extended Detection &amp; Response)</strong></a> ?</li><li>What is <a href="https://www.crestdatasys.com/blogs/splunk-architectures-and-components/"><strong>Splunk</strong></a> ? Explain its component and architect?</li><li>What is <a href="https://www.servicenow.com/products/itsm/what-is-sla.html#:~:text=A%20service%20level%20agreement%20(SLA)%20is%20a%20contract%20between%20a,Get%20ITSM"><strong>SLA</strong></a> (Service Level Agreement) ?</li><li>Explain <a href="https://www.cm-alliance.com/cybersecurity-blog/what-are-the-6-phases-in-a-cyber-incident-response-plan"><strong>Incident Response Life Cycle</strong></a> ?</li><li>What are <a href="https://www.manageengine.com/log-management/siem/static-dynamic-event-correlation.html"><strong>correlation rules</strong></a> ?</li><li>What is <a href="https://www.crowdstrike.com/cybersecurity-101/threat-intelligence/"><strong>threat intelligence</strong></a> ?</li><li>If a malware is detected, is there any tool to block it directly?</li><li>What is <a href="https://yogeshchauhan.com/what-is-host-hardening-and-what-are-some-important-hardening-steps/"><strong>host hardening</strong></a>?</li><li>Explain <a href="https://www.varonis.com/blog/cyber-kill-chain"><strong>Cyber kill chain</strong></a>?</li><li>What is a <a href="https://www.rapid7.com/fundamentals/mitre-attack/"><strong>MITRE ATT&amp;CK</strong></a> ?</li><li>What is a <a href="https://cofense.com/knowledge-center/what-is-a-cyber-response-playbook/#:~:text=What%20is%20a%20Cyber%20Response,incidents%20with%20cyber%20response%20playbooks."><strong>playbook</strong></a>?</li><li>What is <a href="https://www.optiv.com/cybersecurity-dictionary/dwell-time#:~:text=Dwell%20time%20represents%20the%20length,is%20usually%20measured%20in%20days."><strong>DWELL</strong></a><strong> time, </strong><a href="https://www.ccsinet.com/blog/driving-down-mttd-mttr/#:~:text=Mean%20time%20to%20detect%2C%20or,once%20it%20has%20been%20discovered."><strong>MTTD &amp; MTTR</strong></a> ?</li><li>What is an <a href="https://www.logsign.com/blog/what-is-ioc-in-cyber-security/"><strong>IOC</strong></a><strong> (Indicator of Compromise)</strong>?</li></ol><h3>Tips:</h3><ol><li>Certifications are not mandatory for beginners in cybersecurity. Don’t overspend on them. The <strong>CompTIA Security+ </strong>certification is a good option if you have a budget of around 15–17k.</li><li>Bug bounty hunting should not be motivated by money. Learn from free resources on YouTube and Google. Focus on gaining experience and knowledge.</li><li>During interview always try to make a two way communication.</li><li>Always ask questions from the interviewer at end. Try to understand what the interviewer is looking from an candidate.</li><li>Start working on your resume &amp; Linkedin profile.</li><li>Don’t fake anything in your resume.</li><li>Explore different domains in Cyber Security such as Application Security, SOC (Security Operation Center), Cloud Security, IAM (Identity &amp; Access Management), IT-auditing.</li><li>Make notes of your learning it will gonna help you during interview preparation.</li></ol><h3><strong>Resources For Interviews :</strong></h3><ol><li><a href="https://www.youtube.com/watch?v=Y3ozkAFuiHc&amp;list=PL0hT6hgexlYzX6AWwcyDbAZQUKYJL2Mdt">Prabh Nair Playlist</a></li><li><a href="https://intellipaat.com/blog/interview-question/cyber-security-interview-questions/">Intellipaat Interview questions</a>.</li><li><a href="https://www.edureka.co/blog/interview-questions/cybersecurity-interview-questions/">Edureka Interview questions</a></li><li><a href="https://www.youtube.com/watch?v=XcvOPASqTN8&amp;list=PLLYYYiOtWXG-wq1MTD4QsSlgdb_oHJAQf">SOC Expert Playlist</a>.</li><li><a href="https://github.com/nixonion/Cybersecurity-Interview-Questions/blob/main/300%20interview%20questions%20for%20cyber%20security%20roles.pdf">Github link</a></li><li><a href="https://www.youtube.com/watch?v=BOixsDLyVG4">Cyber Community Interview questions</a>.</li><li><a href="https://www.youtube.com/watch?v=zzrmmQ7F1nE&amp;list=PLG49S3nxzAnnjucQ18QzbCrv-er2zH7d9">Professor Messer Security+ Playlist.</a></li></ol><h3>Resources for Learning &amp; Practise:</h3><ol><li><a href="https://tryhackme.com/"><strong>TryHackme</strong></a> Platform for learning networking &amp; security.</li><li><a href="https://letsdefend.io/"><strong>Letsdefend</strong></a><strong> </strong>Platform for SOC.</li><li><a href="https://www.hackthebox.com/"><strong>Hackthebox</strong></a> Platform for advance learning.</li><li><a href="https://picoctf.org/"><strong>PicoCTF</strong></a><strong> </strong>to practise CTF’s.</li><li><a href="https://www.youtube.com/c/HackerSploit"><strong>HackerSploit</strong></a> YT Channel.</li><li><a href="https://www.youtube.com/c/BittenTech"><strong>BittenTech</strong></a> YT Channel.</li></ol><blockquote><em>Leave a comment below if you’ve any queries or you can connect with me on </em><a href="https://www.linkedin.com/in/naman-thakur-19097718b/"><strong><em>Linkedin</em></strong></a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6307092b1a5" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/cyber-security-interview-questions-for-freshers-a6307092b1a5">Cybersecurity Interview Questions For Freshers</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TryHackMe — Ninja Skills writeup :]]></title>
            <link>https://infosecwriteups.com/tryhackme-ninja-skills-writeup-9c6aa090e9f6?source=rss-31322e313a4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c6aa090e9f6</guid>
            <category><![CDATA[tryhackme-ninja-skills]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <dc:creator><![CDATA[Naman Thakur]]></dc:creator>
            <pubDate>Mon, 13 Jul 2020 05:26:12 GMT</pubDate>
            <atom:updated>2025-05-31T12:35:40.927Z</atom:updated>
            <content:encoded><![CDATA[<h3>TryHackMe — Ninja Skills writeup :</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2hWu21sBIQalqRxClxHFDQ.png" /></figure><p>Hello guys , this is my first writeup and I’m going to show how to solve the <a href="https://tryhackme.com/room/ninjaskills"><strong>Ninja Skills</strong></a><strong> </strong>room on <a href="https://tryhackme.com/"><strong>TryHackMe</strong></a>.</p><p>This room main focus on the use of <strong>find command</strong> so it’s better to solve<strong> </strong><a href="https://tryhackme.com/room/thefindcommand"><strong>The find command</strong></a> room first. We can execute various other commands with <strong>Find command.</strong></p><p>syntax — find &lt;file-name&gt; -exec &lt;command&gt; \;</p><blockquote><strong>Link:-</strong> <a href="https://www.tecmint.com/35-practical-examples-of-linux-find-command/">https://www.tecmint.com/35-practical-examples-of-linux-find-command<strong>/</strong></a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*blJa1Q0GDVV4cwmswyEEvw.png" /></figure><p>Deploy the room and connect to it by ssh port with given credentials (new-user as the username and password.)</p><pre>ssh <a href="/service/mailto:new-user@10.10.216.206">new-user@10.10.216.206</a></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NUdryErNm-_FTCffndRaoQ.png" /></figure><pre>find / -type f \( -name 8V2L -o -name bny0 -o -name c4ZX -o -name D8B3 -o -name FHl1 -o -name oiMO -o -name PFbD -o -name rmfX -o -name SRSq -o -name uqyw -o -name v2Vb -o -name X1Uy \) 2&gt;&gt;/dev/null</pre><p>Above command will print all the files we searched,<strong> (2&gt;&gt;/dev/null ) </strong>used to ignore any files that throw up errors when we try to read them) , With <strong>-type</strong>, you can use <strong>d</strong> to only find directories, and <strong>f</strong> to only find files. The <strong>-name</strong> flag is used to specify a name or pattern.Use this command along with -exec to solve the challenge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vn9snF3xY7NNU4bpKrhQrw.png" /></figure><h4><strong>TASK1: Which of the above files are owned by the best-group group</strong></h4><pre>find / -type f \( -name 8V2L -o -name bny0 -o -name c4ZX -o -name D8B3 -o -name FHl1 -o -name oiMO -o -name PFbD -o -name rmfX -o -name SRSq -o -name uqyw -o -name v2Vb -o -name X1Uy \) -exec ls -ilrt {}\; 2&gt;&gt;/dev/null</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F2ISO_KFbTZ9Bzoz3JgdMQ.png" /></figure><p><strong>TASK 2: Which of these files contain an IP address?</strong></p><pre>-&gt; grep -Eo &quot;([0-9]{1,3}[\.]){3}[0-9]{1,3}&quot; <br>    (used to print the ip address from the files)<br>-&gt;  grep -Eo &quot;([0-9]{1,3}[\.]){3}[0-9]{1,3}&quot; *<br>     (* used to print the file name and dir)</pre><blockquote><strong>Link:-</strong> <a href="https://www.shellhacks.com/regex-find-ip-addresses-file-grep/">https://www.shellhacks.com/regex-find-ip-addresses-file-grep/</a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ncJuUX57SZX8oPerVnrijQ.png" /></figure><p><strong>TASK 3: Which file has the SHA1 hash of 9d54da7584015647ba052173b84d45e8007eba94?</strong></p><pre>-exec sha1sum {} \;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PkM-jFVwupsRhzJ177qidw.png" /></figure><p><strong>TASK 4: Which file contains 230 lines?</strong></p><pre>-exec wc -l 230 {} \;</pre><p>Reference: <a href="https://www.tecmint.com/wc-command-examples/"><strong>https://www.tecmint.com/wc-command-examples/</strong></a></p><p>Only one file is not available here ,so that file contain 230 lines.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RPncfEtU0YBVtxkPF-cmfQ.png" /></figure><p><strong>TASK 5: Which file’s owner has an ID of 502?</strong></p><pre>-exec ls -ln {} \;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lR03XAVkoLLSxxdqQ6RBEg.png" /></figure><p><strong>TASK 6: Which file is executable by everyone?</strong></p><pre>You can use ls -ln command (list information about the FILEs) to find out the file / directory owner and group names.<br>It is written in -rwx-rwx-rwx format where r is read , w is write , x is execute</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fwlsTnnCrTJ0hDkZZJ28lw.png" /></figure><blockquote>Leave a comment below if you’ve any queries or you can connect me at <a href="https://www.linkedin.com/in/naman-thakur-19097718b/"><strong>Linkedin</strong></a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c6aa090e9f6" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/tryhackme-ninja-skills-writeup-9c6aa090e9f6">TryHackMe — Ninja Skills writeup :</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>