Premium

AWS Certified Developer - Associate Questions and Answers (Dumps and Practice Questions)



Question :

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?
  : While hosting a static website with Amazon S, your static JavaScript code attempts to
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



Related Questions


Question : You have following ClopudTrail log entry, which exist for
{ "Records": [ { "eventVersion": "1.01",
"userIdentity": {
"type": "IAMUser",
"principalId": "EX_PRINCIPAL_ID",
"arn": "arn:aws:iam::123456789012:user/Alice",
"accountId": "123456789012",
"accessKeyId": "EXAMPLE_KEY_ID",
"userName": "Alice"
}, "eventTime": "2014-07-16T00:44:19Z",
"eventSource": "sqs.amazonaws.com",
"eventName": "AddPermission",
"awsRegion": "us-east-1",
"sourceIPAddress": "192.0.2.0",
"userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0",
"requestParameters": {
"actions": [
"SendMessage"
], "aWSAccountIds": [
"123456789012"
], "label": "label",
"queueUrl": "http://test-sqs.amazon.com/123456789012/hello1"
}, "responseElements": null,
"requestID": "334ccccd-b9bb-50fa-abdb-80f274981d60",
"eventID": "0552b000-09a3-47d6-a810-c5f9fd2534fe"
} ] }
 :  You have following ClopudTrail log entry, which exist for
1. AddPermission
2. CreateQueue
3. DeleteQueue
4. RemovePermission
5. SetQueueAttributes


Question : Which of the following information can be included in an AMI?


 :  Which of the following information can be included in an AMI?
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


Question :

If your requirement is to have fast re-boot and need more than 500GB storage, which type of AMI you will prefer
 :
1. Amazon EBS-Backed
2. Amazon Instance Store-Backed
3. Any of the 1 and 2
4. None of the above


Question :

Company B has created an e-commerce site using DynamoDB and is designing a products table
that includes items purchased and the users who purchased the item. When creating a primary
key on a table which of the following would be the best attribute for the primary key?
Select the BEST possible answer.


 :
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




Question : What happens, by default, when one of the resources in a CloudFormation stack cannot be created?

  : What happens, by default, when one of the resources in a CloudFormation stack cannot be created?
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.


Question :

For best performance when retrieving data from a table, what "type" of API call should you perform?

 :
1. scan
2. query
3. query then scan
4. filtered