CloudAcademy: Knowledge Check: Storage (SAA-C03) 1 of 2 Flashcards

1
Q

Which of the following statements about Allow/Deny in Amazon S3 is false?

A. A Deny always takes precedence over an Allow.
B. If there is no Deny associated with the principal to a specific object, but there is an Allow, then access will be authorized.
C. If there is both a Deny and an Allow associated with the principal to a specific object, then access will be authorized.
D. By default, access is denied to an object, even without an explicit Deny within any policy.

A

B. If there is no Deny associated with the principal to a specific object, but there is an Allow, then access will be authorized.

Explanation:
Essentially, by default, AWS states that access is denied to an object, even without an explicit Deny within any policy. To gain access, there has to be an Allow within a policy that the principal is associated to or defined by within a bucket policy or ACL. If there was no Deny defined, but there is an Allow within a policy, then access will be authorized. However, if there is a single Deny associated with the principal to a specific object, then even if an Allow does exist, this explicit denial will always take precedence, overruling the Allow, and access will not be authorized. So as we know, a Deny always takes precedence over an Allow, meaning Stuart will have access to the s3deepdive bucket to perform all S3 actions apart from deleting the bucket or any of its objects.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which of the following steps should you take to host a static website on S3? (Choose 2 answers)

A. Create and upload an index document to your S3 bucket
B. Enable server-side scripting.
C. Create a host bucket with a unique web hostname.
D. Enable static website hosting on the S3 bucket.

A

A. Create and upload an index document to your S3 bucket
D. Enable static website hosting on the S3 bucket.

Explanation:
Configuring an S3 bucket for static website hosting requires creating a bucket with the same name as the desired website hostname. To host a static website you need to configure a bucket for website hosting and then upload the content of the static website to the bucket. You also need to add an index document. The index document will be the default or home page of your static website. The index documents must be located within your bucket.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

At what level can Amazon S3 Access Control Lists (ACLs) be applied?

A. the bucket, object and account level
B. the bucket level only
C. the object level only
D. the bucket and object level

A

A. the bucket, object and account level

Explanation:
S3 ACLs allow identities to access specific objects within buckets a different layered approach than bucket policies which are applied at the bucket level only. ACLs allow you to set certain permissions on each object within a specific Bucket.

These ACLs do not follow that same format as the policies defined by IAM and Bucket policies. Instead, they are far less granular, and different permissions can be applied depending if you are applying an ACL at the bucket or object level.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

In Amazon S3, a bucket owner has a version-enabled bucket containing a few objects. What will happen to the existing objects when he updates them?

A. The older objects will be overwritten with their respective version IDs.
B. The older objects will be stored with new key names and version ID s.
C. The older objects remain unchanged, while new version IDs are assigned to the new objects.
D. The older objects are moved to the Reduced Redundancy Storage (RRS) with the existing version IDs, when the new objects with new version IDs are created.

A

B. The older objects will be stored with new key names and version ID s.

Explanation:
When a bucket owner PUTs an object in a versioning-enabled bucket, the noncurrent version is not overwritten. Instead, Amazon S3 generates a new version ID and adds the newer version to the bucket.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

When server-access logging is configured, both the source and target buckets must be in the same __________.

A. Access Control List
B. Log Delivery group
C. Availability Zone
D. AWS Region

A

D. AWS Region

Explanation:
When configuring server-access logging, the source and target buckets must be in the same AWS Region. Availability Zones are found within AWS Regions. Log Delivery groups are pre-defined Amazon S3 groups used to deliver log files to your target buckets, and Access Control List refers to the Log Delivery group’s access to the ACL (Access Control List) of the target bucket.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which of the following must you do to enable object lock on an S3 bucket?

A. Select Governance Mode
B. Enable versioning
C. Select Compliance Mode
D. Disable versioning

A

B. Enable versioning

Explanation:
In order to enable object lock on an S3 bucket, versioning must first be enabled.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

If you enable versioning on an existing bucket in Amazon S3, how are the unmodified objects already in them labeled?

A. Unversioned
B. Null
C. Enabled
D. Deleted

A

B. Null

Explanation:
If you enable versioning on an existing bucket with objects already in them, then their Version ID will be displayed as null until they have been modified or deleted, at which point they will receive a new Version ID. Delete is an action you can take on an object in storage as well as a label that appears in brackets once an object is deleted, but delete is not a label an unmodified stored object. “Versioned” and “enabled” refer to bucket versioning labels and properties.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which of the following occurs when versioning is suspended on an S3 bucket?

A. Objects created during the suspension will receive a temporary version ID.
B. Further versioning of objects will be prevented.
C. All versions of the bucket’s objects are deleted from the console.
D. Previous object version IDs will be lost.

A

B. Further versioning of objects will be prevented.

Explanation:
When versioning is suspended on a bucket further versioning of objects is prevented.

When versioning is suspended you can still see previous object versions in the console, previous object IDs are not lost when versioning is suspended because suspending versioning only affects subsequent objects. Objects created when versioning is suspended on a bucket do not receive a temporary version ID.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

When configuring a bucket to monitor for specific events, which parameter allows you to capture events related to objects based on the objects file name extension such as ‘.jpg’, ‘.mp4’ or ‘.txt’?

A. The prefix element
B. The suffix element
C. The event name
D. The ‘Send to’ component

A

B. The suffix element

Explanation:
You can configure notifications to be filtered by the prefix and suffix of the key name of objects. For example, you can set up a configuration so that you are sent a notification only when image files with a “.jpg” file name extension are added to a bucket. Or, you can have a configuration that delivers a notification to an Amazon SNS topic when an object with the prefix “images/” is added to the bucket, while having notifications for objects with a “logs/” prefix in the same bucket delivered to an Amazon Lambda function.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

You are helping a client design a static website thatwill potentially grow exponentially in the first few years of existence. You outline the benefits of using Amazon S3 to host this website. What characteristics of S3 elasticity and scalability can you feature? (Choose 2 answers)

A. S3 asynchronously replicates objectsto all availability zones within a region.
B. S3 bucket names can be replicated in multiple regions.
C. S3 supports an unlimited number of files in a bucket.
D. S3 synchronously replicates objectsto all availability zones in multiple regions.

A

A. S3 asynchronously replicates objectsto all availability zones within a region.
C. S3 supports an unlimited number of files in a bucket.

Explanation:
With Amazon S3, you can store as much data as you want and access it when needed. S3 supports and unlimited number of files in a bucket so it is not necessary to know your storage needs up front or try to estimate. S3 can be scaled quickly and appropriately to meet the storage demands of your environment. S3 asynchronously replicates information to all availability zones within a region. Amazon S3 scales to support very high request rates. If your request rate grows steadily, Amazon S3 automatically partitions your buckets as needed to support higher request rates.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which of these occurs when Requester Pays is enabled on an S3 bucket?

A. Anonymous users requesting access to the bucket will be charged for their requests.
B. The requester pays for the storage costs associated with the objects stored in the bucket.
C. All users requesting access to a bucket will be charged for their requests.
D. Any costs associated with requests and data transfer become the responsibility of the requester

A

D. Any costs associated with requests and data transfer become the responsibility of the requester

Explanation:
When Requester Pays is enabled on an S3 bucket, any costs associated with requests and data transfer become the responsibility of the requester. Anonymous access requests will be denied unless all access is authenticated to your bucket. The bucket owner is still charged for costs associated with the objects stored in the bucket.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Which of the following statements about Amazon S3 replication is false?

A. You may not replicate encrypted objects.
B. Destination buckets cannot be configured as requester pays buckets.
C. Once a bucket has been configured for S3 replication, only the objects added to the bucket from that point forward will be replicated.
D. If the source bucket has the S3 object lock feature enabled, then the destination must also have it enabled, too.

A

A. You may not replicate encrypted objects.

Explanation:
If the source bucket has the S3 object lock feature enabled, then the destination must also have it enabled, too. Destination buckets cannot be configured as requester pays buckets. If you want to replicate objects that are encrypted, then you can do so. Once a bucket has been configured for S3 replication, only the objects added to the bucket from that point will be replicated.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Amazon S3 versioning allows buckets to be in the form of any one of these 3 states:

Unversioned
Versioning-enabled
Versioning-suspended

Which of these bucket states would be the best choice for cost savings?

A. All of the bucket states are equal in cost.
B. Versioning-enabled
C. Versioning-suspended
D. Unversioned

A

D. Unversioned

Explanation:
Unversioned buckets offer the most cost savings because one of the costing metrics of S3 is how much data storage you use and using an unversioned bucket means there are not multiple versions of the same file being stored in the bucket. Versioning enabled is the most costly because it automatically versions objects unless a command is executed to permanently delete the object version(s) from the bucket. Versioning suspended offers some cost savings because it allows you to suspend further versioning of objects in a bucket; however, it does not initially limit versioning of objects. Finally, the types of versioning do not represent equal costs because a versioned bucket and a suspended versioning bucket still contain objects with versions that represent a cost of storage.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

_____ in Amazon S3 allows specific resources on a webpage to be requested from a different domain than its own, which allows you to build client-side web applications.

A. The canned access control list
B. Cross-Origin Resource Sharing
C. ExposeHeader
D. The Access Analyzer

A

B. Cross-Origin Resource Sharing

Explanation:
At a high level, CORS allows specific resources on a webpage to be requested from a different domain than its own. And this allows you to build client-side web applications.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

You have noticed that your S3 bucket contains no CloudTrail logs. Which of the following represent reasons why there are no log files in your bucket? (Choose 2 answers)

A. Logging has not been configured in the CloudTrail console.
B. There have been no API requests initiated for the objects in the bucket.
C. The bucket has been configured to automatically overwrite old object log files.
D. A request for the timestamps of API requests has not be configured in the CloudTrail console.

A

A. Logging has not been configured in the CloudTrail console.
B. There have been no API requests initiated for the objects in the bucket.

Explanation:
The log files may be missing from the bucket because object logging has not been enabled by using CloudTrail console, or there may not have been any API requests made to the objects in the bucket. Timestamps are automatically provided when object level logging is enabled through the CloudTrail console, and any API requests for objects are recorded as new requests and would automatically appear in a bucket once logging is enabled.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Which of the following operations will Amazon S3 access points not allow you to perform?
A. S3 DeleteBucket
B. S3 DeleteObject
C. S3 PutObject
D. S3 GetObject

A

A. S3 DeleteBucket

Explanation:
Access points only allow you to perform object operations, for example, S3 GetObject and S3 PutObject. But it’s not possible to use bucket operations, such as S3 DeleteBucket.

17
Q

Which Amazon S3 storage class is for re-creatable, infrequently accessed data that needs millisecond access?

A. S3 One Zone - Infrequent Access
B. S3 Standard
C. S3 Glacier
D. S3 Intelligent - Tiering

A

A. S3 One Zone - Infrequent Access

Explanation:
S3 One Zone - Infrequent Access is for re-creatable, infrequently accessed data that needs millisecond access.

18
Q

When configuring an Amazon S3 bucket to monitor for specific events, you can select one of multiple services to send event information. To which services can you send recorded event information? (Choose 3 answers)

A. Amazon Simple Notification Service (SNS)
B. AWS Lambda
C. Amazon Simple Queue Service (SQS)
D. Amazon EC2

A

A. Amazon Simple Notification Service (SNS)
B. AWS Lambda
C. Amazon Simple Queue Service (SQS)

Explanation:
Any events which are recorded can then be sent to either an SNS Topic, an SQS Queue or a Lambda Function. Selecting the Events tile from bucket properties screen enables you to configure which events are to be monitored.

19
Q

Which Amazon S3 storage class offers cost savings for data with unknown or changing access patterns?

A. S3 Intelligent - Tiering
B. S3 One Zone - Infrequent Access
C. S3 Standard
D. S3 Glacier

A

A. S3 Intelligent - Tiering

Explanation:
S3 Intelligent - Tiering provides automatic cost savings for data with unknown or changing access patterns.

20
Q

Which of the following statements about access control methods in Amazon S3 is false?

A. It is not possible to implement conditional elements using ACLs.
B. It is not possible to implicitly deny access using ACLs.
C. ACLs use the same JSON format as IAM policies and S3 bucket policies.
D. You can use both IAM policies and bucket policies to control access.

A

C. ACLs use the same JSON format as IAM policies and S3 bucket policies.

Explanation:
You can of course use both IAM policies and bucket policies to control access. ACLs do not follow the same JSON format as policies defined by IAM and bucket policies. Instead, they are far less granular, and different permissions can be applied depending on whether you are applying an ACL at the bucket level or the object level. Due to the basic structure of an ACL, it is not possible to implicitly deny access using ACLs. Neither are you able to implement conditional elements, like we saw earlier when I mentioned identity-based access.