Home / Linux / Amazon S3 Reference for the Cloud Practitioner – Linux Academy

Amazon S3 Reference for the Cloud Practitioner – Linux Academy

Amazon S3 Reference for the Cloud Practitioner – Linux Academy

If you’re learning for the AWS Cloud Practitioner examination, there are a couple of Amazon S3 (Simple Storage Service) info that it’s best to know and perceive. This put up will information you thru methods to make the most of S3 in AWS environments, for the right use instances.

First issues first:

What is Amazon S3?

Amazon S3 is an object storage service that’s constructed to be scalable, excessive accessible, safe, and performant. This signifies that prospects of all sizes and industries can use it to retailer and defend any quantity of knowledge for a variety of use instances, akin to web sites, cellular apps, backup and restore, archive, enterprise purposes, IoT units, and large knowledge analytics. 

These traits make Amazon S3 a wonderful knowledge retailer service, however in the event you’re wanting for a database service, you’ll need to have a look at companies like Amazon RDS, DynamoDB, and even customer-managed databases with EC2 situations.

What’s the distinction between knowledge shops and databases?

In normal phrases, knowledge shops can include a variety of knowledge recordsdata and codecs, whereas databases retailer bits of knowledge and provide Database Management Systems (DBMSs) that allow you to question, insert, and replace knowledge. For instance, you could possibly go to a database and inform it to drag all information for a sure buyer, and it will discover that knowledge for you. A knowledge retailer like Amazon S3, on the different hand, may very well be an incredible place to retailer your database backups as recordsdata, which might then be used to revive databases ought to something occur. It might additionally retailer photos, textual content recordsdata, logs, archives, and so on…

Amazon S3 can be utilized by different AWS sources of your selecting, so you possibly can construct purposes in several companies like EC2 and Lambda, and people purposes can get entry to knowledge from S3 (like photos and different recordsdata). Even in case your sources are in VPCs and S3 buckets don’t dwell in VPCs, you possibly can create VPC Endpoints which offers you quick access between the VPC and your S3 knowledge with out opening up your VPC to the exterior world. If you’re undecided what this implies otherwise you’d like to do this hands-on, check out our Hands-On Lab.
Now that we’ve got a greater understanding of Amazon S3, let’s dive into the way it’s structured and laid out. If you want extra of an understanding of what Amazon S3 is and the way it works, take our Hands-On Lab known as Introduction to Amazon S3.

How is Amazon S3 structured?

S3 has three most important “levels” of construction. The first and highest degree is the Bucket.

Buckets

Bucket names:

  • Must be distinctive throughout all of AWS – if I exploit the bucket identify Linux academy, you possibly can’t use that identify except I delete that bucket
  • Must be three to 63 characters in size
  • Can solely include decrease case letters, numbers, and hyphens
  • Must not be formatted as an IP deal with (ie: 192.168.1.1)
About Amazon S3 buckets

Folders

  • “Subfolders” of Buckets
  • Helps much more with group

Folders don’t do something functionally other than providing you with extra group and construction. For instance, if I’ve a bucket XYZ, I might create folders 2019 and 2018 to retailer photos from these years.

About Amazon S3 folder structure

Objects

  • Objects are what AWS calls the recordsdata saved in S3
  • Supports totally different codecs (jpg, mov, txt, gzip, and so on)

So as an alternative of calling one thing an “image” in S3, you possibly can name it an object.

About Amazon S3 objects

Using Amazon S3 Buckets in Regions

Buckets that you simply create in S3 need to be created in particular areas, akin to North Virginia. This signifies that your knowledge is bodily saved in the N. Virginia area, which may make a giant distinction if your entire prospects are in the Middle East as a result of knowledge may have a big distance to journey.

So choosing the area for your buckets may be essential. Think about the place your prospects are geographically positioned, and get as near them as potential. Of course, utilizing a CDN like CloudEntrance will help alleviate the distance points, particularly in case your prospects are throughout the globe.

AWS does have a characteristic that allows you to replicate knowledge to totally different areas (and extra not too long ago inside the identical area) so that is one other choice to get knowledge nearer to prospects and to create backups.
Amazon CDN and Network - Using S3 buckets in regions

Using S3 Object Versioning

A neat characteristic provided by Amazon S3 known as Object Versioning, and it lets you maintain a number of variations of objects.

This may be useful for a number of use instances akin to:

  • Reverting – you uploaded a foul model and must revert again
  • Recovery – you by chance deleted a more moderen model of the object, however you continue to have entry to the prior model
  • Temporary model – you possibly can check a brand new model and in the event you don’t prefer it, you possibly can at all times revert again

What to find out about Amazon S3 Storage Classes

One of the key benefits of Amazon S3 is its sturdiness and availability. But in some instances, you might not want the degree of sturdiness or availability that comes by default, and as an alternative, you’d fairly get monetary savings.

S3 makes it potential to try this due to storage courses. While you don’t need to memorize these phrase for phrase for the examination, it’s essential to perceive the key variations between these storage courses in order that you realize which one is finest to make use of relying on particular situations.

  • Standard (default)

    • Most costly storage class
    • Designed for normal, all-purpose storage
    • 99.999999999% (“11 nines”) object sturdiness
    • 99.99% object availability
    • Supports SSL for knowledge in transit and encryption of knowledge at relaxation
  • Standard-IA (IA = Infrequent Access)

    • Designed for objects that you don’t entry incessantly however have to be instantly accessible when accessed (makes use of a number of Availability Zones)
    • 99.999999999% object sturdiness
    • 99.90% object availability
    • Less costly than the commonplace storage class
    • Great for catastrophe restoration, backups
  • One Zone-IA (IA = Infrequent Access)

    • Designed for objects that you don’t entry incessantly however have to be instantly accessible when accessed (makes use of just one Availability Zone)
    • 99.99% object sturdiness
    • 99.50% object availability
    • ~20% cheaper than the Standard-IA storage class
  • Intelligent-Tiering

    • Designed to optimize prices by robotically transferring knowledge to the most cost-effective tier based mostly in your utilization
    • Monitors file for utilization and transfer them after 30 days of inactivity
    • 99.999999999% (“11 nines”) object sturdiness
    • 99.90% object availability
    • Pricing is determined by the assigned storage class
    • An incredible choice in the event you don’t know which storage class might be finest for sure objects
  • Glacier & Deep Archive

    • Designed for long-term archival storage
    • May take a number of hours to retrieve objects
    • 99.999999999% object sturdiness
    • Cheapest storage class in AWS
    • Deep Archive has an extended storage minimal and longer retrieval time

Amazon S3 Object Lifecycles

What in the event you want objects to start out in a sure storage class, however then switch to a unique one after a while has passed by?

Enter Object Lifecycles:

  • They can transition objects to totally different storage courses 
  • They can delete objects after a sure interval

Some nice use instances for object lifecycles are:

  • Delete log recordsdata that aren’t wanted after x interval of days
  • Move recordsdata you may need wanted extra incessantly at first, however don’t want as incessantly anymore – but it’s a must to maintain them for compliance and wish them in cheaper storage

What Next?

Continue referencing this put up to refresh your reminiscence, particularly as you get nearer to your examination date. Make certain you’re taking the labs to be able to expertise first-hand how this all works. Even in the event you don’t have to finish any hands-on situations in the examination (it’s Q&A based mostly), you continue to must develop expertise to finish duties on the job, in order that’s an essential step.

Finally, in the event you haven’t but, join for a 7 days free trial so you can begin our AWS Cloud Practitioner certification prep course. This course will educate you from begin to end every little thing it’s essential to know to cross the examination. It additionally contains quizzes and a follow examination at the finish that mimic the actual examination so you possibly can simulate what it will likely be like.

Good luck, and go get licensed!

About Agent

Check Also

First-Ever Photo Proof of Powerful Jet Emerging From Colliding Galaxies

First-Ever Photo Proof of Powerful Jet Emerging From Colliding Galaxies A crew of Clemson University …

Leave a Reply

Your email address will not be published. Required fields are marked *