Premium

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



Question : Company Acmeshell is using Amazon SQS to decouple their systems for scaleability. However, they need to send messages up to Kb in size.
What might Company Acmeshell do in order to send more than 256KB of data?
 : Company Acmeshell is using Amazon SQS to decouple their systems for scaleability. However, they need to send messages up to Kb in size.
1. Request an increase of the message limit by contacting Amazon
2. Set the MaximumMessageSize attribute to 456KB
3. Access Mostly Uused Products by 50000+ Subscribers
4. Any of the above

Correct Answer : Get Lastest Questions and Answer :

Exp: There is no AWS mechanism to automatically publish SQS messages to DynamoDB. You will have to create a service that pulls SQS messages and writes these to DynamoDB or SES.
DynamoDB is great, doing for scalable databases what EC2 does for hardware. One of the biggest complaints I hear though is that the pricing model doesnt work well for everybody.

DynamoDB requires you to specify up front how much capacity you think youre going to need and this is what you pay for. If I say I want to be able to handle 500 writes a second then this is what I pay for no matter if I do 1 write per second or 500.

This is all well and good if you have consistent needs throughout the day and can provision accordingly, but most companies dont. Here at Shazam we see our traffic ebb and flow throughout the day as different countries are using our application. With DynamoDB we have to provision our throughput to handle the worst case scenario, which is typically when the US is active meaning that were paying for the capacity required for the US even when we dont need it.

In order to reduce DynamoDB costs we make use of the AWS queuing service SQS to handle any DynamoDB overflow. This is a fairly straightforward process whereby we will attempt to write to DynamoDB once and once only and if this fails, dump the data onto SQS for background threads to pick up and write.

Code sends data to the SQS Fallback Writer
SQS Fallback Writer attempts to write to DynamoDB
Failure to write to DynamoDB triggers writing the data to SQS
Draining threads poll SQS to see if there is new data to process
Draining threads write to DynamoDB
One of the other major benefits of using DynamoDB is the ability to alter your throughput capacity, mostly at will. Utilising the above flow allows us to shift seamlessly between costs and responsiveness by moving the DynamoDB throughput slider.

Finally, if your traffic is subject to spikes that you cant anticipate, using this technique will ensure you dont lose data and your systems remain responsive, albeit with some delay in writing.





Question :

Which of the following is true if long polling is enabled?


 :
1. The reader will listen to the queue until a message is available or until timeout
2. If long polling is enabled, then each poll only polls a subset of SQS servers; in order for all messages to be received, polling must continuously occur
3. Access Mostly Uused Products by 50000+ Subscribers
4. Increases costs because each request lasts longer

Correct Answer : Get Lastest Questions and Answer :
Exp: One benefit of long polling with Amazon SQS is the reduction of the number of empty responses, when there are no messages available to return, in reply to a ReceiveMessage request sent to an Amazon SQS queue. Long polling allows the Amazon SQS service to wait until a message is available in the queue before sending a response. So unless the connection times out, the response to the ReceiveMessage request will contain at least one of the available messages (if any) and up to the maximum number requested in the ReceiveMessage call.

Another benefit is helping to eliminate false empty responses, where messages are available in the queue but are not included in the response. This happens when Amazon SQS uses short (standard) polling, the default behavior, where only a subset of the servers (based on a weighted random distribution) are queried to see if any messages are available to include in the response. On the other hand, when long polling in enabled, Amazon SQS queries all of the servers.

Reducing the number of empty responses and false empty responses also helps reduce your cost of using Amazon SQS.

Short polling occurs when the WaitTimeSeconds parameter of a ReceiveMessage call is set to 0. This happens in one of two ways either the ReceiveMessage call sets WaitTimeSeconds to 0, or the ReceiveMessage call doesnt set WaitTimeSeconds and the queue attribute ReceiveMessageWaitTimeSeconds is 0.

Note
A value set between 1 to 20 for the WaitTimeSeconds parameter for ReceiveMessage has priority over any value set for the queue attribute ReceiveMessageWaitTimeSeconds.
There are three different API action calls you can use to enable long polling in Amazon SQS, ReceiveMessage, CreateQueue, and SetQueueAttributes. For ReceiveMessage, you configure the WaitTimeSeconds parameter, and for CreateQueue and SetQueueAttributes, you configure the ReceiveMessageWaitTimeSeconds attribute.

Important
If you decide to implement long polling with multiple queues then it is recommended that you use one thread for each queue, instead of trying to use one single thread for polling all of the queues. When using one thread for each queue your application is able to process the messages in each of the queues as they become available, as opposed to one single thread for multiple queues where your application could be blocked from processing available messages in the other queues while waiting (up to 20 seconds) on a queue that does not have any available messages.

For most use cases when using long polling, you should set the timeout value to the maximum of 20 seconds. If the 20 second maximum does not work for your application, you can choose a shorter long poll timeout, down to as low as 1 second. If you are not using an AWS SDK to access Amazon SQS, or if youve specially configured your AWS SDK to have a shorter timeout, you may need to modify your Amazon SQS client to allow for longer requests or use a shorter long poll timeout.






Question :

The unique ID for an IAM entity is not available in the IAM console. To get the unique ID, you can use the CLI or API calls.
Which of the following API call will help to get unique ID as per their resources.


 :
1. ListInstanceProfiles
2. ListInstanceProfilesForRole
3. Access Mostly Uused Products by 50000+ Subscribers
4. ListRoles
5. All of the above

Correct Answer : Get Lastest Questions and Answer :
Exp: ListInstanceProfiles : Lists the instance profiles that have the specified path prefix. If there are none, the action returns an empty list.
ListInstanceProfilesForRole: Lists the instance profiles that have the specified associated role. If there are none, the action returns an empty list.
ListGroups: Lists the groups that have the specified path prefix
ListRoles: Lists the roles that have the specified path prefix. If there are none, the action returns an empty list
ListServerCertificates: Lists the server certificates that have the specified path prefix. If none exist, the action returns an empty list.
ListSigningCertificates: Returns information about the signing certificates associated with the specified user. If there are none, the action returns an empty list.




Related Questions


Question : Which code snippet below returns the URL of a load balanced web site created in
CloudFormation with an AWS::ElasticLoadBalancing::LoadBalancer resource name
"ElasticLoad Balancer"?
  : Which code snippet below returns the URL of a load balanced web site created in
1. "Fn::Join" : ["". [ "http://", {"Fn::GetAtt" : [ "ElasticLoadBalancer","DNSName"]}]]
2. "Fn::Join" : ["". [ "http://", {"Fn::GetAtt" : [ "ElasticLoadBalancer","Url"]}]]
3. Access Mostly Uused Products by 50000+ Subscribers
4. "Fn::Join" : [".", [ "http://", {"Ref" : "ElasticLoadBalancerDNSName"}]]
Ans : 1
Exp : Fn::GetAtt

The intrinsic function Fn::GetAtt returns the value of an attribute from a resource in the template.

Declaration

"Fn::GetAtt" : [ "logicalNameOfResource", "attributeName" ]

Parameters

logicalNameOfResource
The logical name of the resource that contains the attribute you want.

attributeName
The name of the resource-specific attribute whose value you want. See the resource's reference page for details about the attributes available for that resource type.

Return Value

The attribute value.

Example

This example returns a string containing the DNS name of the LoadBalancer with the logical name MyLB.

"Fn::GetAtt" : [ "MyLB" , "DNSName" ]
Supported Functions

For the Fn::GetAtt logical resource name, you cannot use any functions. You must specify a string that is a resource logical ID.

For the Fn::GetAtt attribute name, you can use the Ref function.





Question : Multipart upload API allows you to stop and resume uploads.

  : Which code snippet below returns the URL of a load balanced web site created in
1. True
2. False


Question : A benefit of multipart upload is that you can upload a file as it is being created.
 : A benefit of multipart upload is that you can upload a file as it is being created.
1. True
2. False




Question : Parts of a multipart upload will not be completed until the "complete" request has been called which puts all the parts of the file together.
 : Parts of a multipart upload will not be completed until the
1. True
2. False


Question : Which of the following bucket names is an invalid name?

 : Which of the following bucket names is an invalid name?
1. hadoopexam.com
2. hadoopexam-com
3. Access Mostly Uused Products by 50000+ Subscribers
4. HadoopExam.com




Question : S bucket names can only contain lowercase/uppercase letters, periods, and dashes but do not have to contain them all.
 : S bucket names can only contain lowercase/uppercase letters, periods, and dashes but do not have to contain them all.
1. True
2. False


Question : Which EC API call would you use to retrieve a list of Amazon Machine Images (AMIs)?
  : Which EC API call would you use to retrieve a list of Amazon Machine Images (AMIs)?
1. DescnbeInstances
2. DescribeAMls
3. Access Mostly Uused Products by 50000+ Subscribers
4. GetAMls
5. You cannot retrieve a list of AMIs as there are over 10,000 AMIs
Ans : 3
Exp : DescribeImages

Describes one or more of the images (AMIs, AKIs, and ARIs) available to you. Images available to you include public images, private images that you own, and private images owned by other AWS accounts but for which you have explicit launch permissions.

Note
Deregistered images are included in the returned results for an unspecified interval after deregistration.




Question : Which of the following is an incorrect S bucket name?
  : Which EC API call would you use to retrieve a list of Amazon Machine Images (AMIs)?
1. 111.222.333.444
2. 9hadoopexam.com
3. Access Mostly Uused Products by 50000+ Subscribers
4. 9hadoopexam.com