Cloud Storage and Database Concepts

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What type of storage organizes data as an array of unrelated blocks?

  • Shared File Systems
  • File Storage
  • Object Storage
  • Block Storage (correct)

Which storage option is characterized by using virtual containers that include data, attributes, and metadata?

  • Database Storage
  • Object Storage (correct)
  • Block Storage
  • File Storage

Which characteristic of storage measures expected downtime?

  • Security
  • Cost
  • Durability
  • Availability (correct)

What is an example of File Storage?

<p>Network Attached Storage (NAS) (D)</p> Signup and view all the answers

What type of database includes both relational and non-relational types?

<p>Database (C)</p> Signup and view all the answers

Which storage solution offers the highest durability percentage?

<p>Copies in three AZ (B)</p> Signup and view all the answers

What is the primary benefit of using Amazon EBS compared to instance storage?

<p>It handles point-in-time snapshotting (B)</p> Signup and view all the answers

Which feature is NOT typically associated with object storage?

<p>Block-level access (A)</p> Signup and view all the answers

In what scenario is Network Attached Storage (NAS) most appropriately used?

<p>For persisting unstructured data (C)</p> Signup and view all the answers

What distinguishes the storage pricing for Standard Storage in us-east-1?

<p>$0.023 per GB (D)</p> Signup and view all the answers

What is a characteristic of Google Filestore?

<p>It provides high IOPS at low latency (D)</p> Signup and view all the answers

Which option is a benefit of using Snapshots in Amazon EBS?

<p>They can expand the volume size (D)</p> Signup and view all the answers

Which type of storage is best suited for databases requiring low latency?

<p>Amazon EBS (B)</p> Signup and view all the answers

What are the two main components of a database?

<p>Storage pool and management system (D)</p> Signup and view all the answers

Which type of database is designed to support ACID transactions?

<p>Relational Database (C)</p> Signup and view all the answers

What does ACID stand for in database transactions?

<p>Atomicity, Consistency, Isolation, Durability (B)</p> Signup and view all the answers

Which database type is appropriate for storing document information?

<p>Document Database (A)</p> Signup and view all the answers

What type of consistency is NOT guaranteed by all databases?

<p>Dynamic consistency (C)</p> Signup and view all the answers

How do global transactional databases ensure their availability?

<p>By supporting horizontal scalability across regions (D)</p> Signup and view all the answers

What is a primary advantage of relational databases over other types of databases?

<p>Comprehensive query language for data manipulation (A)</p> Signup and view all the answers

What is a characteristic of cloud-managed SQL databases?

<p>They utilize pre-configured VMs (B)</p> Signup and view all the answers

Which statement about Cloud Storage bucket names is true?

<p>Bucket names need to be unique globally. (B)</p> Signup and view all the answers

What happens to noncurrent object versions in Cloud Storage?

<p>They do not appear in requests unless specified. (A)</p> Signup and view all the answers

Which of the following is NOT a typical use case for S3?

<p>High-frequency transactional database. (D)</p> Signup and view all the answers

What is a characteristic of Cloud Storage files?

<p>They are treated as atomic. (A)</p> Signup and view all the answers

Which statement about data lifecycle management is accurate?

<p>Data can be actively managed for different storage environments. (C)</p> Signup and view all the answers

Which of the following is an example of data retention policy?

<p>Purchase Order – 3 years. (A), Safety Record – permanent. (B)</p> Signup and view all the answers

What allows for cross-region replication of objects in Cloud Storage?

<p>Object versioning. (B)</p> Signup and view all the answers

Which statement is true regarding unlimited space in Cloud Storage?

<p>There are no global limits on the total amount of data. (D)</p> Signup and view all the answers

How does object lock apply to Cloud Storage?

<p>It can apply to a specific version of an object. (C)</p> Signup and view all the answers

In what context is 'unlimited space' applied in Cloud Storage?

<p>Available worldwide for all types of files. (C)</p> Signup and view all the answers

Flashcards

Block Storage

Raw storage where data is organized as blocks, not managed by a file system. Hosts manage data placement.

File Storage

Storage where data is organized into files managed by a file system. Files are grouped for use.

Object Storage

Virtual containers that store data plus its metadata (information about the data). Data is accessed through APIs.

Data Durability in Storage

A measure of the expected data loss.

Signup and view all the flashcards

Data Scalability in Storage

Upward flexibility of storage capacity.

Signup and view all the flashcards

Storage Sizes

Different sizes for storing data (e.g., GB).

Signup and view all the flashcards

Amazon EBS

High-performance block storage service for EC2.

Signup and view all the flashcards

Snapshots

Backup copies of EBS volumes, for recovery or resizing.

Signup and view all the flashcards

Data Durability

The reliability and trustworthiness of data storage.

Signup and view all the flashcards

File System (AWS/Google)

Networked storage accessed by compute engines.

Signup and view all the flashcards

Object Storage Tiers

Different levels of storage to suit varying needs.

Signup and view all the flashcards

Database Structure

A database is made of two main parts: a storage pool and a management system.

Signup and view all the flashcards

Database Charges

Databases have two tiers of charges: one for storing data and another for querying the data.

Signup and view all the flashcards

Relational Database

A database designed for structured data with relationships, offering comprehensive query language with ACID guarantees.

Signup and view all the flashcards

Key-value Database

A database storing data as key-value pairs, often used for simple and fast lookups.

Signup and view all the flashcards

Document Database

A database designed for storing and querying unstructured or semi-structured data like JSON documents.

Signup and view all the flashcards

Wide Column Database

A database where data is organized in rows and columns, but columns can vary across rows, enabling efficient access to specific data.

Signup and view all the flashcards

ACID Properties

ACID stands for Atomicity, Consistency, Isolation, Durability – a set of properties ensuring reliable transactions in a database.

Signup and view all the flashcards

Global Transactional Database

A fully managed relational database with horizontal scalability across regions, offering high availability and strong consistency.

Signup and view all the flashcards

Atomic File Treatment

Files in Cloud Storage are treated as single units, meaning you can't read specific parts of a file. You have to access the whole file at once.

Signup and view all the flashcards

Global Namespace

Cloud Storage uses a single naming system for all buckets, meaning a bucket name is unique across all accounts.

Signup and view all the flashcards

Bucket Renaming?

Once a bucket is created, its name is permanent; renaming is not allowed.

Signup and view all the flashcards

Object Access Controls

Individual data objects within a bucket can have their own specific access controls.

Signup and view all the flashcards

Object Versioning

Cloud Storage maintains past versions of objects, keeping a record even if you modify or delete the current version.

Signup and view all the flashcards

Noncurrent Versions

Previous object versions are marked as 'noncurrent' and are identified by a generation number. They retain the same name but are distinguished by their generation.

Signup and view all the flashcards

Object Lifecycle Stages

Data goes through stages: creation, active use, infrequent access, archiving, and finally deletion. You can manage storage based on these stages.

Signup and view all the flashcards

Data Retention Policies

Policies determine how long data must be stored in various storage types based on business needs.

Signup and view all the flashcards

S3 Use Cases: Static Websites

Store website files in S3, and configure it to deliver them. Use CloudFront for faster access and caching.

Signup and view all the flashcards

Data Analytics with Athena

Use S3 for storing large datasets and Athena for querying them. Efficient for infrequent data analysis.

Signup and view all the flashcards

Study Notes

Cloud Storage and Database

  • Cloud storage offers various types, including block storage, file storage, and object storage.
  • Block storage organizes data as blocks, and file storage manages data through files.
  • Object storage stores data in virtual containers (objects) with metadata.

Storage Characteristics

  • Durability: Measured by expected data loss. Options include single-site, two-site, and multi-site copies, offering 99.99% to 99.9999% durability.
  • Availability: Measured by expected downtime. Includes site redundancy and recovery measures.
  • Security: Security measures for data at rest and in transit.
  • Cost: Storage cost varies per unit (e.g., $/GB).
  • Scalability: Upward storage capacity and user base growth.
  • Performance: Performance metrics like flexibility, storage size, and bandwidth per unit (e.g., $/GB).
  • Integration: Ability to interact via API or with other services.

Block Storage

  • Instance storage is temporary and attached to host hardware, ideal for storing information subject to change or replication across instances.
  • SSDs and HDDs, various types with specific characteristics (e.g., general purpose SSD).
  • Includes snapshots for incremental point-in-time copies.

File Storage

  • Network Attached Storage (NAS) and File Systems (like AWS Elastic File System or Google Filestore) provide file storage.
  • Suitable for scenarios needing high I/O operations and low latency access.
  • Offers high performance suitable for databases and other performance-sensitive services.

Object Storage

  • Offers web accessibility through APIs or HTTPS.
  • Highly durable (e.g., 99.9999999% design) and limitlessly scalable.
  • Multiple data tiers to match workload and data lifecycle rules.
  • Suitable for static website hosting, security, compliance, and audit capabilities.
  • Standard storage pricing varies based on region (e.g., $0.023/GB).

Database Concepts

  • A database is a structured collection of information for easy access, management, and updates.
  • Databases consist of a storage pool and a management system.
  • Different types of databases include Relational, Key-Value, Document, Wide Column and Graph Databases.

ACID Properties in DBMS

  • Atomicity: Transactions either complete entirely or not at all.
  • Consistency: Databases maintain consistency before and after transactions, strong and eventual.
  • Isolation: Multiple transactions execute independently without interference.
  • Durability: Successful transactions persist even if the system crashes.

DB Services

  • Database services like Amazon RDS (Relational Database Service) manage databases on EC2.
  • Managed services simplify tasks like scaling, backups, and patches, allowing you to focus on application optimization.

Relational Database

  • Highly structured data stores, designed to prevent anomalies while offering query languages to manipulate data.
  • Support ACID transactions and typically use SQL.
  • Cloud-managed relational databases exist (e.g., AWS Aurora, PostgreSQL).
  • Use pre-configured VMs, auto backups, REST APIs, high scalability with CPU and memory.

Global Transactional Database

  • Fully managed Relational database services used in distributed systems needing high availability (e.g., financial trading).
  • Support strong consistency, horizontal scalability, and high availability (e.g., 99.999%).
  • GCP Cloud Spanner is a relevant and applicable service.

DataWarehouse

  • Relational databases optimized for storing and querying large datasets.
  • Supports fast queries for large volumes of data, with batch and streaming job support.
  • Tools like BigQuery and Redshift are common choices.

Non-Relational Database

  • Databases that don't rely on the tabular schema of rows and columns, optimizing for particular data types.
  • These include document, graph, key-value, and wide-column models.

Key-Value Database

  • Stores data as key-value pairs, suitable for session stores and shopping carts. Offers horizontal scalability compared to traditional models.
  • DynamoDB is a common example of this type.

Document Database

  • Flexible and semi-structured, storing documents with unique keys and supporting content-based retrieval and modification.
  • Used in content management systems, e-commerce platforms, and similar applications.
  • Suitable for handling semi-structured data.

Wide-Column Database

  • Tables where columns can vary within rows, and treated as key-value stores.
  • Ideal for applications requiring flexibility and handling large quantities of data, like financial data, IoT data, and reporting systems.
  • AWS Keyspaces and Bigtable are common examples.

Memory/Cache databases

  • In-memory data stores designed for ultra-fast access to copies of data, improving performance by eliminating data retrieval from slower storage mediums like hard drives.
  • They help in decreasing network cost and improving responsiveness in applications.
  • AWS ElastiCache and Google Cloud Memorystore are services focused on caching and memory-based data stores.

Redis vs Memcached

  • Redis provides persistence and supports complex data structures (Hashes, lists, sets etc).
  • Memcached is designed purely as a caching solution.

Database Summary

  • Various database services are available spanning from Relational Databases to NoSQL databases.
  • Key factors when choosing the right database are the consistency needs, scalability requirements, type of data, and the architecture of the application.

Database Services in AWS and GCP

  • Both AWS and GCP offer various database and storage services categorized as, Relational, Key-Value, Document, Graph, Wide-Column, and special in-memory storage mediums like Caches.

Assignment

  • Choose a non-relational database, create an instance, and test simple operations.
  • List 3 interesting technical points about the chosen database.
  • Design a storage and database structure for 4 projects.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

More Like This

Use Quizgecko on...
Browser
Browser