Which of the following is a valid S3 bucket name? 1. .mybucket.com 2. -mybucket.com
3. mybucket--com
4. mybucket.com
Correct Answer : 4
Explanation: Bucket names cannot start with a . or - characters. S3 bucket names can contain both the . and - characters. There can only be one . or one - between labels. E.G mybucket-com mybucket.com are valid names but mybucket--com and mybucket..com are not valid bucket names.
Question :
Which of the following request headers, when specified in an API call, will cause an object to be SSE? 1. server-side-encryption 2. AES256 3. amz-server-side-encryption 4. x-amz-server-side-encryption
Correct Answer : 4
Explanation: Amazon S3 - How to use S3 Server-Side Encryption? Set or Specify Server-Side Encryption using REST API
When an object is created, uploaded or being copied, you can set server-side encryption on the data or object. To do that, you need to add x-amz-server-side-encryption header to the request. You also need to set the value of the header to the encryption algorithm AES256.
When using Multipart upload API to upload large number of objects, you have to add x-amz-server-side-encryption header to the Initiate Multipart Upload request so as to set or specify server-side encryption.
Below are the REST upload APIs that accept the x-amz-server-side-encryption request header: PUT Object Put Object - Copy POST Object Initiate Multipart Upload
When an object is stored using server-side encryption, the following REST APIs response headers will return the x-amz-server-side-encryption header: PUT Object Put Object - Copy POST Object Initiate Multipart Upload Upload Part Upload Part - Copy Complete Multipart Upload Get Object Head Object
Question : While hosting a static website with Amazon S, your static JavaScript code attempts to include resources from another S3 bucket but permission is denied. How might you solve the problem? 1. Enable CORS Configuration 2. Disable Public Object Permissions 3. Move the object to the main bucket 4. None of the above
Correct Answer : 1
Explanation: CORS configuration allows JavaScript resources to community across bucket domains
1. A template for the root volume for the instance (for example, an operating system, an application server, and applications) 2. Launch permissions that control which AWS accounts can use the AMI to launch instances 3. A block device mapping that specifies the volumes to attach to the instance when it's launched 4. 1 and 2 only 5. All 1,2 and 3
1. user_id where there are many users to few products 2. product_id where there are many products to few users category_id 3. where there are few categories to many products 4. None of the above
1. Previously-created resources are kept but the stack creation terminates. 2. Previously-created resources are deleted and the stack creation terminates. 3. The stack creation continues, and the final results indicate which steps failed. 4. CloudFormation templates are parsed in advance so stack creation is guaranteed to succeed.