Professional Documents
Culture Documents
Topics to be covered
Week Broader Topic Topics Tools to be
covered
1. Introduction to Data:
1.1 Types of Data:
2. What is Database:
2.1 Types of Databases
1
AWS Solutions Architect Professional Week-4
1. Introduction to Data:
A collection of unique, compact pieces of information are called data. It may be utilized in
many different ways, including as text, numbers, media, bytes, etc. It may be kept on paper,
in an electronic memory, etc.
The term "data" comes from the Latin word "datum," which meaning "a single piece of
information." It is the term datum's plural.
Data is information that can be transformed into a form for rapid transfer and processing in
computers. Data can be swapped out.
• Nominal
• Ordinal
Quantitative Data Type
• Discrete
• Continuous
2
AWS Solutions Architect Professional Week-4
2. What is Database:
A database is an organized collection of data. They enable the manipulation and storage of
data digitally. Data administration is made simple by databases.
Let's use a database as an example. A database is used to hold data about people, their phone
numbers, and other contact information in an online telephone directory.
Let's think about Facebook as well. Data from members, their friends, member activities,
messages, adverts, and much more must be stored, modified, and presented.
3
AWS Solutions Architect Professional Week-4
transaction that corresponds to that account may also exist. When combined, these
tables can reveal details about the various markets for a certain software product.
Example: MySQL, PostgreSQL, MariaDB, Microsoft SQL Server, and Oracle Database.
• SQL
• Data Integrity
• Transactions
• ACID Compliance
SQL: Structured Query Language (SQL) The main means of communication with
relational databases is through language.
4
AWS Solutions Architect Professional Week-4
Non-relational databases:
Non-relational databases don't have as strict of a database schema as relational databases,
which organize data in a tabular fashion. In actuality, depending on the kind of database, non-
relational database’s structure data differently. Regardless of the kind of non-relational
database, they all try to address the problems of relational models' rigidity and scalability that
make them unsuitable for unstructured data forms like text, video, and photos.
Example: MongoDB, Cassandra, Redis, Couchbase and Apache HBase
These databases consist of:
5
AWS Solutions Architect Professional Week-4
Key-value
store
Types of
Graph Non- Document
store relational store
databases
column
store
3. Column store:
Although they are based on tables, column databases lack a rigid column structure. There is
no need that each column in a row include a value, and sections of rows and columns with
6
AWS Solutions Architect Professional Week-4
data in various formats can be mixed. Route optimization, fleet management, and industrial
maintenance applications are among the use cases for broad column databases.
AWS service: Amazon Keyspaces (for Apache Cassandra)
4. Graph store:
The structure of a graph database is a set of edges and nodes. Edges are the connections
connecting the nodes, which are the individual data values. With the help of these databases,
you may follow closely connected information in an organic network rather than an organized
table. Social networking, fraud detection, and recommendation engines are examples of use
cases for graph databases.
AWS service: Amazon Neptune
7
AWS Solutions Architect Professional Week-4
Amazon RDS creates a master user account for your DB instance as part of the creation process. This
master user has permissions to create databases and to perform create, delete, select, update, and
insert operations on tables the master user creates. You must set the master user password when you
create a DB instance, but you can change it at any time using the AWS CLI, Amazon RDS API operations,
or the 9 Amazon Relational Database Service User Guide DB instances AWS Management Console.
You can also change the master user password and manage users using standard SQL commands.
• General purpose
The following are the general-purpose DB instance types available:
db.m6g
db.m6gd
db.m6i
db.m5d
db.m5
db.m4
db.m3
• Memory-optimized
The following are the memory-optimized DB instance types available:
db.x2g
db.z1d
db.x2i
db.x1e
db.x1
db.r6g
db.r6gd
8
AWS Solutions Architect Professional Week-4
db.r6i
db.r5b
db.r5d
db.r5
db.r4
db.r3
• Burstable performance
db.t4g
db.t3
db.t2
You may deploy resources, including computation and storage, in a number of places that are
nearer to your consumers by using Local Zones. You may spread out resources, such database
instances and data, using Amazon RDS. Unless you expressly request it, resources aren't
replicated between AWS Regions.
9
AWS Solutions Architect Professional Week-4
Availability Zones
When you create a DB instance, you can choose an Availability Zone or have Amazon RDS
choose one for you randomly. An Availability Zone is represented by an AWS Region code
followed by a letter identifier (for example, us-east-1a).
Local Zones
A Local Zone is an extension of an AWS Region that is geographically close to your users. A
subnet in a Local Zone is an option when creating a DB instance. Local Zones support AWS
Direct Connect and have their own internet connections. As a result, resources developed in
a Local Zone can provide very low-latency connections to local consumers.
10
AWS Solutions Architect Professional Week-4
11
AWS Solutions Architect Professional Week-4
• Next in Engine options select MySQL and, in the Edition, Section select MySQL
Community and also select the engine version.
12
AWS Solutions Architect Professional Week-4
13
AWS Solutions Architect Professional Week-4
Templates
• DB instance identifier:
Type a name for your DB instance. The name must be unique across all DB
instances owned by your AWS account in the current AWS Region.
• For Master username, enter a name for the master user, or keep the default
name.
14
AWS Solutions Architect Professional Week-4
or
To enter your master password, make sure Auto generate a password is cleared,
and then enter the same password in Master password and Confirm password.
• Instance configuration
15
AWS Solutions Architect Professional Week-4
16
AWS Solutions Architect Professional Week-4
• Choose the DB subnet group. The DB subnet group defines which subnets and IP
ranges the DB instance can use in the VPC that you selected.
• Public access- Yes
• VPC security group (firewall):
Choose one or more VPC security groups to allow access to your database. Make
sure that the security group rules allow the appropriate incoming traffic.
• Database authentication
Database authentication options: Password authentication
17
AWS Solutions Architect Professional Week-4
• Now open the database and under security open security Groups
18
AWS Solutions Architect Professional Week-4
• Now in Security Group open inbound rules and click on edit Inbound rules
Add rule: SSH
Change source : Anywhere (for testing purpose)
Save the changes
19
AWS Solutions Architect Professional Week-4
Step2: Create EC2 instance to access the database you have created
• Now got to Instances, click on Launch Instance and create Linux EC2 instance. Select
AMI- Amazon Linux 2023 AMI
20
AWS Solutions Architect Professional Week-4
21
AWS Solutions Architect Professional Week-4
22
AWS Solutions Architect Professional Week-4
• Select the .pem file (KeyPair) which you have generated for the machine
• Select the file and click on Open
23
AWS Solutions Architect Professional Week-4
• Open PuTTY.exe file and in Hostname mention Public IP address of the Ec2 machine
• Now in Connection, go to Data and fill Auto login user name- ec2-user
• Then under SSH -> Auth -> Credentials -> here browse the .ppk file you have
generated using Puttygen.exe
• Click on Open now
24
AWS Solutions Architect Professional Week-4
25
AWS Solutions Architect Professional Week-4
• Now go back to AWS environment and open RDS database which you have
created
• click on the database and copy the Endpoint from details section
• Now open the terminal of Linux machine and use following command
• Mysql -h (endpoint of database) -u (username of database) -p (database
name)
• mysql -h database-1.cazlp2dlgfhx.us-east-1.rds.amazonaws.com -u admin -p
(databasename)
• Now database is ready.
26
AWS Solutions Architect Professional Week-4
• Go to EC2 instances
• select the machine and Terminate it
27