<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Azaan MHD</title>
    <description>The latest articles on DEV Community by Azaan MHD (@azaan_mhd_221365462399442).</description>
    <link>https://dev.to/azaan_mhd_221365462399442</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1748013%2F566c9b72-d151-4648-a62e-f5854fca4ca0.png</url>
      <title>DEV Community: Azaan MHD</title>
      <link>https://dev.to/azaan_mhd_221365462399442</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/azaan_mhd_221365462399442"/>
    <language>en</language>
    <item>
      <title>AWS Solutions Architect Associate Exam Preparation Quiz 1</title>
      <dc:creator>Azaan MHD</dc:creator>
      <pubDate>Sun, 06 Oct 2024 11:15:32 +0000</pubDate>
      <link>https://dev.to/azaan_mhd_221365462399442/aws-solutions-architect-associate-exam-preparation-quiz-1-21f6</link>
      <guid>https://dev.to/azaan_mhd_221365462399442/aws-solutions-architect-associate-exam-preparation-quiz-1-21f6</guid>
      <description>&lt;p&gt;Let's consider a scenario where your company's Trainee Engineer stores an access key with an access key ID and secret access key in a Text file on a custom Amazon Machine Image(AMI). The company uses the access key to access Amazon DynamoDB tables from instances created from the AMI.Do you consider this as a security risk? If yes, As a mentor what will be the security best practice for this scenario? &lt;/p&gt;

&lt;p&gt;(A).Pass the access key to the instances through instance user data.&lt;br&gt;
(B).Obtain the access key from a key server launched in a Private Subnet.&lt;br&gt;
(C).Put the access key in an Amazon S3 bucket and retrieve the access key on boot from the Instance.&lt;br&gt;
(D).Create an IAM role with permission to access the Table and launch all instances with the new role.&lt;/p&gt;

&lt;p&gt;**&lt;em&gt;Note - *&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;(1).Access keys should not be stored on the EC2 Instance directly.
(2).The Best Practice is to use IAM Roles attached to the instance, which allows the instance to securely access other AWS services without storing credentials.
(3).If access keys must be used, They can be stored in AWS Secrets Manager or Parameter store and retrieved at runtime, but avoid hard-coding them or using environment variables for for security reasons.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;**&lt;em&gt;Best Practice - *&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Use IAM Roles: Always prefer using an IAM role attached to the instance to access other AWS services. This is the most secure and recommended approach by AWS.

Avoid Hardcoding Access Keys: Never hardcode access keys in your application code, environment variables, or configuration files on the instance.

Use Secrets Manager or Parameter Store: If you must store sensitive information like access keys, use AWS Secrets Manager or Parameter Store and have your instance retrieve them securely at runtime.

Rotate Credentials: Ensure that any long-term credentials you use are rotated regularly, but it's better to avoid long-term credentials altogether in favor of IAM roles and temporary credentials.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Finally the Answer is - D&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;(D).Create an IAM role with permission to access the Table and launch all instances with the new role.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>aws</category>
      <category>cloud</category>
      <category>cloudcomputing</category>
      <category>cloudskills</category>
    </item>
    <item>
      <title>IAM Service in AWS</title>
      <dc:creator>Azaan MHD</dc:creator>
      <pubDate>Sat, 03 Aug 2024 18:20:43 +0000</pubDate>
      <link>https://dev.to/azaan_mhd_221365462399442/iam-service-in-aws-117o</link>
      <guid>https://dev.to/azaan_mhd_221365462399442/iam-service-in-aws-117o</guid>
      <description>&lt;p&gt;&lt;strong&gt;Key Points about IAM&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;IAM - Identity and Access Management.&lt;br&gt;
IAM - It is one of the key service provided for the AWS users and Group to access the AWS resources securely.&lt;br&gt;
IAM - It is advisable to create IAM user/groups after the account creation and from the newly created AWS admin user we can create many users/groups.&lt;br&gt;
IAM - AWS IAM user account which has admin privilege can be able to assign resources to the user/group accounts it creates.(Note that the account which is used to create AWS environment initially is called Admin/Super user account.)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;IAM - It is recommended to create users from the IAM service for the following reasons-&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;(1).To avoid unlimited access to resources - It keeps the root/super user account secure. &lt;br&gt;
(2).IAM admin users can be tracked - It is useful for audit and troubleshooting&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;IAM Users -&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It can be a person or service - Used to interact with AWS resources based on the security credentials and permissions.(what action for what services resources)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Features of IAM users -&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;(1).Unique set of credentials(password and access keys) - To interact with AWS services.&lt;br&gt;
(2).Permissions - It is Defined using IAM Policies(JSON Documents). It specify what actions are allowed or denied on which resources.&lt;br&gt;
(3).Groups - IAM users can be organized into groups therefore permissions can be assigned to groups.&lt;br&gt;
(4).MFA(Multi-Factor Authentication) - Extra layer of security.&lt;br&gt;
(5).Programmatic Access - IAM users can have access keys to interact with AWS service via APIs,SDKs,or the AWS CLI.&lt;br&gt;
(6).Console Access - IAM users also can have password for accessing the AWS Management Console.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Usecase of IAM User -&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;(1). To track and manage individual user access activities - Individual access.&lt;/p&gt;

</description>
      <category>iam</category>
      <category>aws</category>
      <category>cloud</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Python List - Introduction 01</title>
      <dc:creator>Azaan MHD</dc:creator>
      <pubDate>Wed, 31 Jul 2024 14:03:35 +0000</pubDate>
      <link>https://dev.to/azaan_mhd_221365462399442/python-list-309m</link>
      <guid>https://dev.to/azaan_mhd_221365462399442/python-list-309m</guid>
      <description>&lt;p&gt;List is a common data structure in many programing languages to manipulate sequence of element inside in it. In Python List is a data structure and element inside it can be any data type. such as:-Integers,floats,Strings,lists,tuple,Dictionaries,sets,booleans, and also custom objects and functions. &lt;/p&gt;

&lt;p&gt;For Example:-&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Define various data types
integer_value = 4
float_value = 3.14
complex_value = 3 + 4j
string_value = "Hello, Kaniyam!"
list_value = [1, 2, 3]
tuple_value = (4, 5, 6)
dictionary_value = {"name": "Kaniyam Foundation", "Date_of_birth": "2012-01-01", "Age_as_at_2024": 12}
set_value = {7, 8, 9}
frozenset_value = frozenset([10, 11, 12])
boolean_value = True
bytes_value = b"kaniyam"
bytearray_value = bytearray(b"Kaniyam")
memoryview_value = memoryview(b"Kaniyam")

def function():
    return "Kaniyam"

lambda_value = lambda x: x + 1

class MyClass:
    pass

my_object = MyClass()

# Create a list containing all these elements
List_of_data_types_which_can_be_included_in_the_List_data_structure_in_python = [
    integer_value, float_value, complex_value, string_value, list_value, tuple_value, dictionary_value, set_value, frozenset_value,
    boolean_value, bytes_value, bytearray_value, memoryview_value, function, lambda_value, my_object
]

# Print the list
print(List_of_data_types_which_can_be_included_in_the_List_data_structure_in_python)

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[4, 3.14, (3+4j), 'Hello, Kaniyam!', [1, 2, 3], (4, 5, 6), {'name': 'Kaniyam Foundation', 'Date_of_birth': '2012-01-01', 'Age_as_at_2024': 12}, {8, 9, 7}, frozenset({10, 11, 12}), True, b'kaniyam', bytearray(b'Kaniyam'), &amp;lt;memory at 0x7e608fedc1c0&amp;gt;, &amp;lt;function function at 0x7e60c4dc67a0&amp;gt;, &amp;lt;function &amp;lt;lambda&amp;gt; at 0x7e60c4dc6cb0&amp;gt;, &amp;lt;__main__.MyClass object at 0x7e60c4dea6b0&amp;gt;]

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
  </channel>
</rss>
