Chapter 2: Amazon Simple Storage Service (Amazon S3) and Amazon Glacier Storage

Chapter 2: Amazon Simple Storage Service (Amazon S3) and
Amazon Glacier Storage

  1. D, E. Objects are stored in buckets, and objects contain both data and metadata.
  • 對(duì)象被存儲(chǔ)在bucket中
  • 對(duì)象包括數(shù)據(jù)和元數(shù)據(jù)
  1. B, D. Amazon S3 cannot be mounted to an Amazon EC2 instance like a file system and should not serve as primary database storage.
  • S3 支持web內(nèi)容存儲(chǔ)
  • S3支持?jǐn)?shù)據(jù)庫(kù)備份
  • S3支持日志存儲(chǔ)分析
  1. A, B, D. C and E are incorrect—objects are private by default, and storage in a bucket does not need to be pre-allocated.
  • S3的特性如下:所有的對(duì)象都有一個(gè)URL,S3能存儲(chǔ)不限數(shù)量的數(shù)據(jù),S3提供一個(gè)restful API残家。
  1. B, C, E. Static website hosting does not restrict data access, and neither does an Amazon S3 lifecycle policy.
  • PRE-SIGNED URL for an object 被用來(lái)作為限制訪(fǎng)問(wèn)的方式;
  • AWS支持ACL 控制訪(fǎng)問(wèn)bucket和object
  • AWS支持S3 bucket訪(fǎng)問(wèn)策略
  • Amazon S3 提供了四種不同的訪(fǎng)問(wèn)控制機(jī)制:AWS Identity and Access Management (IAM) 策略暂殖、訪(fǎng)問(wèn)控制列表 (ACL)、存儲(chǔ)桶策略以及查詢(xún)字符串身份驗(yàn)證当纱。IAM 讓組織能夠在一個(gè) AWS 賬戶(hù)下創(chuàng)建和管理多個(gè)用戶(hù)呛每。通過(guò) IAM 策略,您可以細(xì)化IAM 用戶(hù)對(duì) Amazon S3 桶或?qū)ο蟮目刂茩?quán)坡氯。您可以使用 ACL 選擇性地添加 (授予) 對(duì)個(gè)別對(duì)象的特定權(quán)限晨横。Amazon S3 存儲(chǔ)桶策略可用來(lái)添加或拒絕對(duì)單一桶內(nèi)的部分或所有對(duì)象的權(quán)限。使用查詢(xún)字符串身份驗(yàn)證箫柳,您能夠通過(guò)僅在規(guī)定時(shí)間段內(nèi)有效的 URL 共享 Amazon S3 對(duì)象
  1. C, E. Versioning protects data against inadvertent or intentional deletion by storing all versions of the object, and MFA Delete requires a one-time code from a Multi-Factor Authentication (MFA) device to delete objects. Cross-region replication and migration to the Amazon Glacier storage class do not protect against deletion. Vault locks are a feature of Amazon Glacier, not a feature of Amazon S3.
  • 啟動(dòng)數(shù)據(jù)版本管理支持?jǐn)?shù)據(jù)找回
  • MFA 支持多種方式的操作認(rèn)證
  1. C. Migrating the data to Amazon S3 Standard-IA after 30 days using a lifecycle policy is correct. Amazon S3 RRS should only be used for easily replicated data, not critical data. Migration to Amazon Glacier might minimize storage costs if retrievals are infrequent, but documents would not be available in minutes when needed.
  • S3支持標(biāo)準(zhǔn)的存儲(chǔ)訪(fǎng)問(wèn)和S3 IA存儲(chǔ)訪(fǎng)問(wèn)手形。這樣就能支持在幾分鐘內(nèi)獲取到數(shù)據(jù)。IA 存儲(chǔ)的可用性是99.9%悯恍。IA的存儲(chǔ)費(fèi)用較低库糠。
  1. B. Data is automatically replicated within a region. Replication to other regions and versioning are optional. Amazon S3 data is not backed up to tape.
  • S3是在region內(nèi)自動(dòng)復(fù)制的;
  • S3的數(shù)據(jù)是不會(huì)備份到tape的涮毫,可以使用lifecycle進(jìn)行數(shù)據(jù)的歸檔轉(zhuǎn)存處理瞬欧;
  1. C. In a URL, the bucket name precedes the string “s3.amazonaws.com/,” and the object
    key is everything after that. There is no folder structure in Amazon S3.
  • S3是沒(méi)有folder的特性的,這些都是可以作為文件的key存儲(chǔ)罢防;
  • bucket的名字是s3表示前邊的內(nèi)容是bucket name
  1. C. Amazon S3 server access logs store a record of what requestor accessed the objects in your bucket, including the requesting IP address.
  • S3 支持 sever access log訪(fǎng)問(wèn)記錄
  1. B, C. Cross-region replication can help lower latency and satisfy compliance requirements on distance. Amazon S3 is designed for eleven nines durability for objects in a single region, so a second region does not significantly increase durability. Crossregion replication does not protect against accidental deletion.
  • 跨區(qū)復(fù)制主要是為了遵循安全合規(guī)
  • 減少不同區(qū)域的訪(fǎng)問(wèn)延遲
  • 不同區(qū)域分析同一組計(jì)算對(duì)象
  • 不同所有權(quán)下維護(hù)操作副本
  1. C. If data must be encrypted before being sent to Amazon S3, client-side encryption must be used.
  • 如果是傳輸?shù)絊3前就需要加密艘虎,只能使用CLIENT-SIDE E
  • 共計(jì)四種加密方法:sse-kms、sse-c咒吐、sse-s3野建、客戶(hù)端加密
  1. B. Amazon S3 scales automatically, but for request rates over 100 GETS per second, it helps to make sure there is some randomness in the key space. Replication and logging will not affect performance or scalability. Using sequential key names could have a negative effect on performance or scalability.
  • 技術(shù)上提升性能的方式可以通過(guò)給key增加隨機(jī)的前綴
  1. A, D. You must enable versioning before you can enable cross-region replication, and Amazon S3 must have IAM permissions to perform the replication. Lifecycle rules migrate data from one storage class to another, not from one bucket to another. Static website hosting is not a prerequisite for replication.
  • 跨區(qū)復(fù)制必須先啟動(dòng)版本管理;
  • 跨區(qū)復(fù)制必須IAM權(quán)限去執(zhí)行這個(gè)復(fù)制恬叹;
  1. B. Amazon S3 is the most cost effective storage on AWS, and lifecycle policies are a simple and effective feature to address the business requirements.
  • Amazon的生命周期管理候生,可以先歸檔成Glacier,然后定個(gè)時(shí)間刪除
  1. B, C, E. Amazon S3 bucket policies cannot specify a company name or a country or origin, but they can specify request IP range, AWS account, and a prefix for objects that can be accessed.
  • S3的bucket策略可以指定 IP范圍妄呕、AWS賬戶(hù)陶舞、對(duì)象前綴
  1. B, C. Amazon S3 provides read-after-write consistency for PUTs to new objects (new key), but eventual consistency for GETs and DELETEs of existing objects (existing key).
  • 最終一致性,在 get和delete的現(xiàn)有的key的時(shí)候會(huì)涉及绪励;
  1. A, B, D. A, B, and D are required, and normally you also set a friendly CNAME to the bucket URL. Amazon S3 does not support FTP transfers, and HTTP does not need to be enabled.
  • 需要指定一個(gè)cname到bucket url
  • 需要 指定index和error頁(yè)面
  • 需要 創(chuàng)建一個(gè)bucket name和靜態(tài)網(wǎng)站一樣
  • 需要支持網(wǎng)站全世界可訪(fǎng)問(wèn)
  1. B. Pre-signed URLs allow you to grant time-limited permission to download objects from an Amazon Simple Storage Service (Amazon S3) bucket. Static web hosting generally requires world-read access to all content. AWS IAM policies do not know who the authenticated users of the web app are. Logging can help track content loss, but not
    prevent it.
  • Pre-signed url支持你去獲取一個(gè)基于時(shí)間的訪(fǎng)問(wèn)限制肿孵;
  1. A, C. Amazon Glacier is optimized for long-term archival storage and is not suited to data that needs immediate access or short-lived data that is erased within 90 days.
  • Glacier需要較長(zhǎng)的恢復(fù)時(shí)間;
  • Glacier一般存儲(chǔ)的都是很少訪(fǎng)問(wèn)以及不訪(fǎng)問(wèn)的歸檔數(shù)據(jù)疏魏;
  1. C, D, E. Amazon Glacier stores data in archives, which are contained in vaults. Archives are identified by system-created archive IDs, not key names.
  • Gracier需要3-5小時(shí)恢復(fù)停做,標(biāo)準(zhǔn)還是批量檢索。對(duì)于除了最大型檔案 (250 MB+) 之外的所有其他檔案大莫,使用加速檢索訪(fǎng)問(wèn)的數(shù)據(jù)通常在 1 到 5 分鐘內(nèi)可用蛉腌。使用標(biāo)準(zhǔn)檢索的檔案檢索通常在 3 到 5 小時(shí)內(nèi)完成。批量檢索通常在 5 到 12 小時(shí)內(nèi)完成只厘。有關(guān)檢索選項(xiàng)的更多信息烙丛,請(qǐng)參閱 Amazon Glacier 常見(jiàn)問(wèn)題。有關(guān)數(shù)據(jù)檢索費(fèi)用的信息羔味。
  • Glacier 可以進(jìn)行庫(kù)鎖定來(lái)滿(mǎn)足合規(guī)性要求
  • Glacier可以作為一個(gè)獨(dú)立的服務(wù)以及成為S3的標(biāo)準(zhǔn)class
  • amazon Glacier 中可存儲(chǔ)的數(shù)據(jù)總量沒(méi)有上限河咽。每個(gè)檔案的上限為 40 TB
  • Amazon Glacier 中存儲(chǔ)數(shù)據(jù)沒(méi)有下限,單個(gè)檔案大小范圍為 1 個(gè)字節(jié)到 40TB赋元。

知識(shí)點(diǎn)總結(jié)

  • Know what amazon s3 is and what it is commonly used for. Amazon S3 is secure, durable, and highly scalable cloud storage that can be used to store an unlimited amount of data in almost any format using a simple web services interface. Common use cases include backup and archive, content storage and distribution, big data analytics, static website hosting, cloud-native application hosting, and disaster recovery.

  • 了解S3的通用場(chǎng)景:S3是安全忘蟹、持久、高擴(kuò)展性的存儲(chǔ)搁凸,可以用來(lái)存儲(chǔ)不限數(shù)量的數(shù)據(jù)媚值,支持任意格式的存儲(chǔ)服務(wù)。通用場(chǎng)景包括:備份护糖、歸檔褥芒、內(nèi)容存儲(chǔ)、分布式存儲(chǔ)嫡良、大數(shù)據(jù)分析锰扶、靜態(tài)網(wǎng)站hosting、云原生應(yīng)用hosting皆刺,容災(zāi)恢復(fù)少辣;

  • Understand how object storage differs from block and file storage. Amazon S3 cloud object storage manages data at the application level as objects using a REST API built on HTTP. Block storage manages data at the operating system level as numbered addressable blocks using protocols such as SCSI or Fibre Channel. File storage manages data as shared files at the operating system level using a protocol such as CIFS or NFS.

  • 了解對(duì)象存儲(chǔ)與塊存儲(chǔ)、文件存儲(chǔ)的區(qū)別:S3對(duì)象存儲(chǔ)管理數(shù)據(jù)是通過(guò)一個(gè)rest API羡蛾。塊存儲(chǔ)管理數(shù)據(jù)在操作系統(tǒng)層級(jí)漓帅,使用SCSI 或者Fibre Channel。 文件存儲(chǔ)管理數(shù)據(jù)在操作系統(tǒng)層次痴怨,使用NFS協(xié)議或者CIFS協(xié)議忙干。

  • Understand the basics of Amazon S3. Amazon S3 stores data in objects that contain data and metadata. Objects are identified by a user-defined key and are stored in a simple flat folder called a bucket. Interfaces include a native REST interface, SDKs for many languages, an AWS CLI, and the AWS Management Console.

  • 了解S3的基本信息。S3將數(shù)據(jù)存儲(chǔ)在對(duì)象中浪藻,包括了數(shù)據(jù)和元數(shù)據(jù)捐迫。對(duì)象被用戶(hù)定義的key以類(lèi)似扁平的folder(命名為bucket)訪(fǎng)問(wèn);支持的接口包括rest爱葵、多語(yǔ)言的sdk施戴,CLI和aws的控制臺(tái)反浓。

  • Know how to create a bucket; how to upload, download, and delete objects; how to make objects public; and how to open an object URL.

  • 了解如何創(chuàng)建一個(gè)bucket;上傳赞哗、下載和刪除object雷则。如何設(shè)置object被公開(kāi)訪(fǎng)問(wèn),如何打開(kāi)一個(gè)object的URL

  • Understand the durability, availability, and data consistency model of Amazon S3. Amazon S3 standard storage is designed for 11 nines durability and four nines availability of objects over a year. Other storage classes differ. Amazon S3 is eventually consistent, but offers read-after-write consistency for PUTs to new objects.

  • 理解持久性肪笋、可用性和數(shù)據(jù)一致性月劈。S3標(biāo)準(zhǔn)存儲(chǔ)是11個(gè)9的持久性,4個(gè)9的可用性藤乙。S3是最終一致性的存儲(chǔ)猜揪,但是在使用put方法創(chuàng)建object時(shí)提供寫(xiě)后讀的一致性;

  • Know how to enable static website hosting on Amazon S3. To create a static website on Amazon S3, you must create a bucket with the website hostname, upload your static content and make it public, enable static website hosting on the bucket, and indicate the
    index and error page objects.

  • 了解如何打開(kāi)靜態(tài)website的hosting在S3上坛梁。在S3創(chuàng)建一個(gè)靜態(tài)的網(wǎng)站而姐,你必須創(chuàng)建一個(gè)bucket,同時(shí)以網(wǎng)站的hostname命名罚勾,上傳網(wǎng)站內(nèi)容毅人,設(shè)置public屬性。指定index頁(yè)面和error page尖殃。

  • Know how to protect your data on Amazon S3. Encrypt data in flight using HTTPS and at rest using SSE or client-side encryption. Enable versioning to keep multiple versions of an object in a bucket. Enable MFA Delete to protect against accidental deletion. Use ACLs Amazon S3 bucket policies and AWS IAM policies for access control. Use pre-signed URLs for time-limited download access. Use cross-region replication to automatically replicate data to another region.

  • 了解在S3上如何進(jìn)行數(shù)據(jù)保護(hù)丈莺。通過(guò)HTTPS傳輸加密,使用sse和CSE進(jìn)行數(shù)據(jù)加密送丰。啟動(dòng)bucket的多版本選項(xiàng)缔俄。啟動(dòng)MFA規(guī)避事故性刪除。使用S3 buckets 的ACLs policies和AWS的IAM策略進(jìn)行訪(fǎng)問(wèn)控制器躏。使用pre-signed URLs 做基于時(shí)間的下載訪(fǎng)問(wèn)俐载。使用跨區(qū)自動(dòng)化復(fù)制的方法將數(shù)據(jù)拷貝到其他region

  • Know the use case for each of the Amazon S3 storage classes. Standard is for general purpose data that needs high durability, high performance, and low latency access. Standard-IA is for data that is less frequently accessed, but that needs the same performance and availability when accessed. RRS offers lower durability at lower cost for easily replicated data. Amazon Glacier is for storing rarely accessed archival data at lowest cost, when three- to five hour retrieval time is acceptable.

  • 了解S3標(biāo)準(zhǔn)存儲(chǔ)的使用場(chǎng)景是為了高持久性,高性能登失、低延遲的訪(fǎng)問(wèn)遏佣。S3的Standard-IA是一個(gè)訪(fǎng)問(wèn)較少的服務(wù),但是當(dāng)被訪(fǎng)問(wèn)時(shí)提供同樣的性能和可用性揽浙。RRS提供了低持久性的低成本數(shù)據(jù)復(fù)制状婶。Glacier是用來(lái)存儲(chǔ)幾乎沒(méi)有訪(fǎng)問(wèn)的歸檔數(shù)據(jù),提供了低成本訪(fǎng)問(wèn)方案馅巷,提供了3-5小時(shí)獲取所需數(shù)據(jù)的能力膛虫;

  • Know how to use lifecycle configuration rules. Lifecycle rules can be configured in the AWS Management Console or the APIs. Lifecycle configuration rules define actions to transition objects from one storage class to another based on time.

  • 了解如何利用生命周期配置規(guī)則。生命周期規(guī)則可以被配置在AWS的控制臺(tái)上或者通過(guò)API設(shè)置钓猬。生命周期配置規(guī)則定義了對(duì)象從一個(gè)存儲(chǔ)class到另外一個(gè)存儲(chǔ)class的時(shí)間稍刀;

  • Know how to use Amazon S3 event notifications. Event notifications are set at the bucket level and can trigger a message in Amazon SNS or Amazon SQS or an action in AWS Lambda in response to an upload or a delete of an object.

  • 知道如何利用S3的事件通知。事件通知可以基于bucket level設(shè)置敞曹,可以出發(fā)一個(gè)消息以SNS或者SQS的方式傳遞账月,通過(guò)lambda響應(yīng)一個(gè)上傳或者刪除對(duì)象的動(dòng)作综膀;

  • Know the basics of amazon glacier as a standalone service. Data is stored in encrypted archives that can be as large as 40TB. Archives typically contain TAR or ZIP files. Vaults are containers for archives, and vaults can be locked for compliance.

  • 了解Glacier是一個(gè)獨(dú)立的服務(wù)。數(shù)據(jù)被以加密歸檔的方式訪(fǎng)問(wèn)捶障,可以達(dá)到40T僧须。歸檔方式典型的包括TAR或者ZIP文件纲刀∠盍叮可以設(shè)定文件庫(kù)鎖的策略;

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末示绊,一起剝皮案震驚了整個(gè)濱河市锭部,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌面褐,老刑警劉巖拌禾,帶你破解...
    沈念sama閱讀 212,884評(píng)論 6 492
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場(chǎng)離奇詭異展哭,居然都是意外死亡湃窍,警方通過(guò)查閱死者的電腦和手機(jī),發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 90,755評(píng)論 3 385
  • 文/潘曉璐 我一進(jìn)店門(mén)匪傍,熙熙樓的掌柜王于貴愁眉苦臉地迎上來(lái)您市,“玉大人,你說(shuō)我怎么就攤上這事役衡∫鹦荩” “怎么了?”我有些...
    開(kāi)封第一講書(shū)人閱讀 158,369評(píng)論 0 348
  • 文/不壞的土叔 我叫張陵手蝎,是天一觀的道長(zhǎng)榕莺。 經(jīng)常有香客問(wèn)我,道長(zhǎng)棵介,這世上最難降的妖魔是什么钉鸯? 我笑而不...
    開(kāi)封第一講書(shū)人閱讀 56,799評(píng)論 1 285
  • 正文 為了忘掉前任,我火速辦了婚禮邮辽,結(jié)果婚禮上唠雕,老公的妹妹穿的比我還像新娘。我一直安慰自己逆巍,他們只是感情好及塘,可當(dāng)我...
    茶點(diǎn)故事閱讀 65,910評(píng)論 6 386
  • 文/花漫 我一把揭開(kāi)白布。 她就那樣靜靜地躺著锐极,像睡著了一般笙僚。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上灵再,一...
    開(kāi)封第一講書(shū)人閱讀 50,096評(píng)論 1 291
  • 那天肋层,我揣著相機(jī)與錄音亿笤,去河邊找鬼。 笑死栋猖,一個(gè)胖子當(dāng)著我的面吹牛净薛,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播蒲拉,決...
    沈念sama閱讀 39,159評(píng)論 3 411
  • 文/蒼蘭香墨 我猛地睜開(kāi)眼肃拜,長(zhǎng)吁一口氣:“原來(lái)是場(chǎng)噩夢(mèng)啊……” “哼!你這毒婦竟也來(lái)了雌团?” 一聲冷哼從身側(cè)響起燃领,我...
    開(kāi)封第一講書(shū)人閱讀 37,917評(píng)論 0 268
  • 序言:老撾萬(wàn)榮一對(duì)情侶失蹤,失蹤者是張志新(化名)和其女友劉穎锦援,沒(méi)想到半個(gè)月后猛蔽,有當(dāng)?shù)厝嗽跇?shù)林里發(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 44,360評(píng)論 1 303
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡灵寺,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 36,673評(píng)論 2 327
  • 正文 我和宋清朗相戀三年曼库,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片略板。...
    茶點(diǎn)故事閱讀 38,814評(píng)論 1 341
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡毁枯,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出蚯根,到底是詐尸還是另有隱情后众,我是刑警寧澤,帶...
    沈念sama閱讀 34,509評(píng)論 4 334
  • 正文 年R本政府宣布颅拦,位于F島的核電站蒂誉,受9級(jí)特大地震影響,放射性物質(zhì)發(fā)生泄漏距帅。R本人自食惡果不足惜右锨,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 40,156評(píng)論 3 317
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望碌秸。 院中可真熱鬧绍移,春花似錦、人聲如沸讥电。這莊子的主人今日做“春日...
    開(kāi)封第一講書(shū)人閱讀 30,882評(píng)論 0 21
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽(yáng)恩敌。三九已至瞬测,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背月趟。 一陣腳步聲響...
    開(kāi)封第一講書(shū)人閱讀 32,123評(píng)論 1 267
  • 我被黑心中介騙來(lái)泰國(guó)打工灯蝴, 沒(méi)想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留,地道東北人孝宗。 一個(gè)月前我還...
    沈念sama閱讀 46,641評(píng)論 2 362
  • 正文 我出身青樓穷躁,卻偏偏與公主長(zhǎng)得像,于是被迫代替她去往敵國(guó)和親因妇。 傳聞我的和親對(duì)象是個(gè)殘疾皇子问潭,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 43,728評(píng)論 2 351

推薦閱讀更多精彩內(nèi)容