Dev Assoc - Test 2

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

What is the size limit for volumes in instances that are based on Amazon Instance Store backed AMI's. Choose an answer from the options below? A. 16 TiB B. 10 GiB C. 100 GiB D. 50 GiB

B. 10 GiB Answer - B As per the AWS documentation, the Size limit for Amazon Instance Store backed instances is 10 GiB. For more information on Instance type differences, please refer to the below link: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ComponentsAMIs.html

What is the maximum number of items that the BatchGetItem API retrieve from DynamoDB? Choose the correct answer from the options below. A. 10 B. 100 C. 1000 D. There is no limit

B. 100 Answer - B This is clearly given in the AWS documentation For more information on DynamoDB limits, please visit the link: http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html

What result would you expect from the Fn::Select function in the following line in a CloudFormation template? Choose an answer from the options below { "Fn::Select" : [ "1", [ "1", "2", "3", "4" ] ] } A. 1 B. 2 C. 3 D. 4

B. 2 Answer - B The intrinsic function Fn::Select returns a single object from a list of objects by index. In this case, Fn::Select returns 2 which is Answer B. For more information on intrinsic functions, Please check http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference.html Intrinsic function Fn::Select reference: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-select.html

What is the maximum size of an item in DynamoDB? Choose the correct answer from the options below. A. 1 MB B. 400 KB C. 1 GB D. 10 GB

B. 400 KB Answer - B This is clearly given in the AWS documentation For more information on DynamoDB limits, please visit the link: http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html

Which of the following is a valid S3 bucket name? Choose the correct answer from the options below A. .example.com B. example.com C. -example.com D. example.-com

B. example.com Answer - B Some of the naming restrictions for buckets are given below Bucket names must be at least 3 and no more than 63 characters long. Bucket names must be a series of one or more labels. Adjacent labels are separated by a single period (.). Bucket names can contain lowercase letters, numbers, and hyphens. Each label must start and end with a lowercase letter or a number. Bucket names must not be formatted as an IP address (e.g., 192.168.5.4). When using virtual hosted-style buckets with SSL, the SSL wildcard certificate only matches buckets that do not contain periods. To work around this, use HTTP or write your own certificate verification logic. We recommend that you do not use periods (".") in bucket names. For more information on S3 bucket naming conventions, please visit the link: http://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html

What is one of the common pattern scenario's when it comes to the combination of SNS and SQS? Choose the correct answer from the options below A. fanin B. fanout C. Neither option A and B D. Both option A and B

B. fanout Answer - B One common design pattern is called "fanout." In this pattern, a message published to an SNS topic is distributed to a number of SQS queues in parallel. By using this pattern, you can build applications that take advantage parallel, asynchronous processing For more information on SNS and SQS integration, please refer to the link: https://aws.amazon.com/blogs/aws/queues-and-notifications-now-best-friends/

What is the one write capacity unit size (When you create a table or index in Amazon DynamoDB, you must specify your capacity requirements for read and write activity)?. Choose an answer from the options below. A. 1 KB B. 4 KB C. 2 KB D. 8 KB

A. 1 KB Answer - A This is clearly given in the AWS documentation For more information on DynamoDB provisioned throughput please refer to the below link: http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ProvisionedThroughput.html

What is the maximum limit of data that can be retrieved by a scan operation in DynamoDB? Choose the correct answer from the options below. A. 1 MB B. 10 MB C. 400 KB D. There is no limit

A. 1 MB Answer - A This is clearly given in the AWS documentation For more information on DynamoDB limits, please visit the link: http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html

What result would you expect from the Fn::Join function in the following line in a CloudFormation template? Choose an answer from the options below "Fn::Join" : [ ".", [ "1","2","3"] ] A. 1.2.3 B. .1.2.3 C. .1.2.3. D. 1.2.3.

A. 1.2.3 Answer - A The intrinsic function Fn::Join appends a set of values into a single value, separated by the specified delimiter. If a delimiter is the empty string, the set of values are concatenated with no delimiter. For more information on Fn:: Join function please refer to the below link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-join.html

Company A is writing 5 items to the products table every second. Each item is 20Kb in size. What would be the required provisioned write throughput for best performance? Choose the correct answer from the options below. A. 100 B. 160 C. 155 D. 16

A. 100 Answer - A For write capacity, the rule is to divide the item size by 1KB. Hence we need to divide 20 by 1 which gives us 20 to the nearest 1KB. Since we are writing 5 items per second , we need to multiply 20*5 = 100. For more information on working with tables in dynamoDB , please visit the link: http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html

An administrator is getting an error while trying to create a new bucket in S3? You feel that bucket limit has been crossed. What is the bucket limit per account in AWS?Choose the correct answer from the options below A. 100 B. 50 C. 1000 D. 150

A. 100 Answer - A This is clearly mentioned in the AWS documentation. For more information on AWS service limitations, please visit the link: http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html

What is the minimum value that can be configured for Amazon SQS MaximumMessageSize attribute? A. 1KB B. 128KB C. 16 KB D. 256KB

A. 1KB Answer - A This is clearly specified in the AWS documentation. For more information on AWS SQS, please refer to the link: https://aws.amazon.com/sqs/faqs/

As per the IAM decision logic what is the first step of access permissions for any resource in AWS. Choose the correct answer from the options below A. A default deny B. An explicit deny C. An allow D. An explicit allow

A. A default deny Answer - A For more information on the IAM policy evaluation logic, please refer to the link: http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_evaluation-logic.html

Which service provided by AWS allows one to have a dedicated private connection from a remote network to your VPC? Choose the correct answer from the options below A. AWS Direct Connect B. Server C. Elastic IP Address D. None of the above

A. AWS Direct Connect Answer - A AWS Direct Connect - AWS Direct Connect provides a dedicated private connection from a remote network to your VPC. You can combine this connection with an AWS hardware VPN connection to create an IPsec-encrypted connection. For more information on AWS direct connect, please refer to the below link: https://aws.amazon.com/directconnect/

What is used in S3 to enable client web applications that are loaded in one domain to interact with resources in a different domain? Choose the correct answer from the options below A. CORS Configuration B. Public Object Permissions C. Public ACL Permissions D. None of the above

A. CORS Configuration Answer - A Cross-origin resource sharing (CORS) defines a way for client web applications that are loaded in one domain to interact with resources in a different domain. With CORS support in Amazon S3, you can build rich client-side web applications with Amazon S3 and selectively allow cross-origin access to your Amazon S3 resources. For more information on S3 CORS configuration, please visit the link: http://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html

Which of the below configuration softwares can Cloudformation be used with? Choose 2 answers from the options below A. Chef B. Ansible C. Powershell D. Puppet

A. Chef D. Puppet Answer - A and D This is clearly mentioned in the AWS documentation For more information on cloudformation, please refer to the below link: https://aws.amazon.com/cloudformation/faqs/

What is used in DynamoDB to help a write operation only succeed if the item attributes meet one or more expected conditions? Choose answer from the options below. A. Conditional Writes B. Eventual Consistency C. Extra API read calls to determine if the data was updated before the update call is made D. Atomic Counters

A. Conditional Writes Answer - A To help clients coordinate writes to data items, DynamoDB supports conditional writes for PutItem, DeleteItem, and UpdateItem operations. With a conditional write, an operation succeeds only if the item attributes meet one or more expected conditions; otherwise it returns an error For more information on working with items , please visit the link: http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithItems.html

What can be used in DynamoDB as part of the Query API call to filter results based on the values of primary keys? Choose an answer from the options below A. Expressions B. Conditions C. Query API D. Scan API

A. Expressions Answer - A This is clearly provided in the AWS documentation For more information on DynamoDB please refer to the below link: https://aws.amazon.com/dynamodb/faqs/

What are some of the benefits of using AWS SWF? Choose 2 correct answer from the options below. A. Integrating a range of programs and components. B. Automate workflows that include human tasks C. Load balancing between applications D. Routing between applications

A. Integrating a range of programs and components. B. Automate workflows that include human tasks Answer - A and B Amazon SWF can be used to address many challenges that arise while building applications with distributed components. For example, you can use Amazon SWF and the accompanying AWS Flow Framework for: Writing your applications as asynchronous programs using simple programming constructs that abstract details such as initiating tasks to run remotely and tracking the program's runtime state. Maintaining your application's execution state (e.g. which steps have completed, which ones are running, etc.). You do not have to use databases, custom systems, or ad hoc solutions to keep execution state. Communicating and managing the flow of work between your application components. With Amazon SWF, you do not need to design a messaging protocol or worry about lost and duplicated tasks. Centralizing the coordination of steps in your application. Your coordination logic does not have to be scattered across different components, but can be encapsulated in a single program. Integrating a range of programs and components, including legacy systems and 3rd party cloud services, into your applications. By allowing your application flexibility in where and in what combination the application components are deployed, Amazon SWF helps you gradually migrate application components from private data centers to public cloud infrastructure without disrupting the application availability or performance. Automating workflows that include long-running human tasks (e.g. approvals, reviews, investigations, etc.) Amazon SWF reliably tracks the status of processing steps that run up to several days or months. For more information on SWF , please visit the link: https://aws.amazon.com/swf/faqs/

Which of the below API calls can be used to get information about stacks based on a specific filter. Choose an answer from the options below A. ListStacks B. GetStacks C. GetAllStacks D. ListFilterStacks

A. ListStacks Answer - A This is clearly given in the AWS documentation For more information on the API, please visit the below URL: http://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ListStacks.html

What is required for a subnet to control the flow of traffic in a subnet? Choose one answer from the options below? A. Route table B. Subnet table C. VPC table D. Route53

A. Route table Answer - A This is clearly mentioned in the AWS documentation that Route tables are used to control the flow of traffic in a subnet. For more information on Route tables, please refer to the below link: http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html

Is it possible for duplicate messages to be received within SQS? Choose the correct answer from the options below. A. True B. False

A. True Answer - A Amazon SWF keeps track of all tasks and events in an application. Amazon SQS requires you to implement your own application-level tracking, especially if your application uses multiple queues. For more information on SQS, please visit the link: https://aws.amazon.com/sqs/faqs/

When a failure occurs in a stack creation in Cloudformation, does a rollback occur? A. True B. False

A. True Answer - A By default, the "automatic rollback on error" feature is enabled. This will cause all AWS resources that AWS CloudFormation created successfully for a stack up to the point where an error occurred to be deleted. This is useful when, for example, you accidentally exceed your default limit of Elastic IP addresses, or you don't have access to an EC2 AMI you're trying to run. This feature enables you to rely on the fact that stacks are either fully created, or not at all, which simplifies system administration and layered solutions built on top of AWS CloudFormation. For more information on cloudformation, please refer to the below link: https://aws.amazon.com/cloudformation/faqs/

True or False. A local secondary index has the same partition key as the primary key? A. True B. False

A. True Answer - A Global secondary index — an index with a partition key and a sort key that can be different from those on the base table. A global secondary index is considered "global" because queries on the index can span all of the data in the base table, across all partitions. Local secondary index — an index that has the same partition key as the base table, but a different sort key. A local secondary index is "local" in the sense that every partition of a local secondary index is scoped to a base table partition that has the same partition key value. For more information on DynamoDB Indexes, please visit the link: http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/SecondaryIndexes.html

Is a public IP address required for an instance to be accessed from the internet in a VPC? Choose the correct answer from the options below A. True B. False

A. True Answer - A The below example shows a VPC which has an EC2 instance in a subnet which has an internet gateway. You can see that in order to get to the internet, it needs to have a public IP address. For more information on the default VPC, please refer to the below link: http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/default-vpc.html

Is a best practice to allow code to run on an EC2 instance via a role rather than access keys? Choose the correct answer from the options below A. True B. False

A. True Answer - A The best practise for IAM is to create roles which has specific access to an AWS service and then give the user permission to the AWS service via the role. To get the role in place , follow the below steps Step 1) Create a role which has the required ELB access Step 2) You need to provide permissions to the underlying EC2 instances in the Elastic Load Balancer For the best practises on IAM policies, please visit the link: http://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html

True or False. Can a global secondary index created at the same time as the table creation. A. True B. False

A. True Answer - A This is clearly given in the AWS documentation For more information on DynamoDB Indexes, please visit the link: http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/SecondaryIndexes.html

One DynamoDB consistent read capacity unit is equal to two eventual consistent read per second. Choose the correct answer from the options below A. True B. False

A. True Answer - A This is clearly mentioned in the AWS documentation. For more information on DynamoDB read consistency please visit the below link: http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ProvisionedThroughput.html

A user named john has an AWS account. He has created an AMI in the us-east1 region. Is it possible for him to share the AMI with another user account in AWS? Choose the correct answer from the options below A. True B. False

A. True Answer - A This is clearly mentioned in the AWS documentation. For more information on how to share AMI's, please refer to the below link: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sharingamis-explicit.html

What is the maximum number of SWF workflows/activity types allowed in each SWF domain? Choose the correct answer from the options below. A. 1000 B. 100 C. 10,000 D. 100,000

C. 10,000 Answer - C You can have a maximum of 10,000 workflow and activity types (in total) that are either registered or deprecated in each domain. You can have a maximum of 100 Amazon SWF domains (including registered and deprecated domains) in your AWS account. For more information on SWF , please visit the link: https://aws.amazon.com/swf/faqs/

Company B has a DynamoDB table where the average item size is 20KB. Company B anticipates the application will read 10 items from the table per second using eventually consistent reads. How much read capacity throughput should they provision? Choose the correct answer from the options below. A. 50 B. 100 C. 25 D. 20

C. 25 Answer - C For read capacity, the rule is to divide the item size by 4KB. Hence we need to divide 20 by 4 which gives us 5 to the nearest 4KB. Since we are writing 10 items per second, we need to multiply 10*5 =50. Since it is eventual consistency, we need to divide by 2 which gives us 25. For more information on working with tables in dynamoDB , please visit the link: http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html

Which of the below features in DynamoDB can be used to increment or decrement the value of an existing attribute without interfering with other write requests? Choose the correct answer from the options below. A. Increment write B. Increment read C. Atomic counters D. Number counters

C. Atomic counters Answer - C DynamoDB supports atomic counters, where you use the UpdateItem operation to increment or decrement the value of an existing attribute without interfering with other write requests. (All write requests are applied in the order in which they were received.) For example, a web application might want to maintain a counter per visitor to their site. In this case, the application would need to increment this counter regardless of its current value. For more information on working with items in dynamoDB , please visit the link: http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithItems.html

While working with the AWS API you receive the following error message: 409 Conflict. What might be the cause of this error? A. BadDigest B. User does not have proper permissions to make the API call C. Bucket is not empty D. Bucket name does not exist

C. Bucket is not empty Answer - C This is clearly provided as part of the S3 error codes in the S3 documentation. For more information on S3 Error codes, please visit the link: http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ErrorCodeList

Which API call is used to Bundle an Amazon instance store-backed Windows instance? Choose the correct answer from the options below A. AllocateInstance B. CreateImage C. BundleInstance D. ami-register-image

C. BundleInstance Answer - C This is given in the AWS documentation For more information on BundleInstance, please refer to the below link: http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_BundleInstance.html

What result would you expect from the Fn::split function in the following line in a CloudFormation template? Choose an answer from the options below { "Fn::Split" : [ "|" , "a|b|c" ] } A. ["a", "b", "c"] B. ["a|", "b|", "c|"] C. "abc" D. ["a"]

A. ["a", "b", "c"] Answer - A To split a string into a list of string values so that you can select an element from the resulting string list, use the Fn::Split intrinsic function. Specify the location of splits with a delimiter, such as , (a comma). After you split a string, use the Fn::Select function to pick a specific element. For more information on intrinsic functions , please visit the below URL: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-join.html

Which of the following is the best option for creating a primary key in DynamoDB? Select the BEST possible answer. A. student_id where there are many students. B. course_name where there are few courses. C. department_id where there are only several departments. D. None of the above

A. student_id where there are many students. Answer - A When defining primary keys , you should always use a many to few principle and only Option A follows that principle. For more information on dynamoDB , please visit the link: https://aws.amazon.com/dynamodb/faqs/

Which of the below functions is used in Cloudformation to return the value corresponding to keys in a two-level map that is declared in the Mappings section? Choose an answer from the options below A. Fn::GetAtt B. Fn::GetMap C. Fn::FindInMap D. Fn::ReadMap

C. Fn::FindInMap Answer - C This is clearly given in the AWS documentation For more information on the function please refer to the below link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-findinmap.html

Which of the below functions is used in Cloudformation to append a set of values into a single value? Choose an answer from the options below A. Fn::GetAtt B. Fn::Combine C. Fn::Join D. Fn::Select

C. Fn::Join Answer - C This is clearly given in the AWS documentation For more information on the function please refer to the below link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-join.html

What is the hourly rate to run an Autoscaling service? Choose the correct answer from the options below A. .002/hour B. .01/hour C. Free D. .05/hour

C. Free Answer - C This is clearly mentioned in the AWS documentation that there are no charges for using the Autoscaling service as it is. For more information on Autoscaling, please refer to the below link: https://aws.amazon.com/autoscaling/

What in AWS can be used to restrict access to SWF? A. ACL B. SWF Roles C. IAM D. None of the above

C. IAM Answer - C This is clearly mentioned in the AWS documentation For more information on SWF, please visit the link: https://aws.amazon.com/swf/faqs/

In SQS when the ReceiveMessageWaitTimeSeconds is set to a value of 20 seconds, what is the functionality being served in SQS? Choose the correct answer from the options below A. Short polling B. SQS retention C. Long polling D. None of the above

C. Long polling Answer - C Amazon SQS long polling is a way to retrieve messages from your Amazon SQS queues. While the regular short polling returns immediately, even if the message queue being polled is empty, long polling doesn't return a response until a message arrives in the message queue, or the long poll times out. Long polling makes it inexpensive to retrieve messages from your Amazon SQS queue as soon as the messages are available. Using long polling might reduce the cost of using SQS, because you can reduce the number of empty receives To enable long polling u need to set the value of ReceiveMessageWaitTimeSeconds to greater than 0 and less than or equal to 20 seconds. For more information on Long polling, please refer to the link: http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-long-polling.html

In DynamoDB you get the following error "ItemCollectionSizeLimitExceededException". What could be the possible cause for this error. Choose an answer from the options below A. Number of tables have exceeded in DynamoDB B. Number of Indexes have increased C. Size of a group of items with the same partition key value has exceeded 10GB. D. None of the above

C. Size of a group of items with the same partition key value has exceeded 10GB. Answer - C This is clearly given in the AWS documentation For more information on DynamoDB errors, please refer to the below link: http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html

For S3 server side encryption what needs to be included in the API header call? Choose the correct answer from the options below A. AES256 B. amz-server-side-encryption C. x-amz-server-side-encryption D. server-side-encryption

C. x-amz-server-side-encryption Answer - C When using server-side encryption with customer-provided encryption keys (SSE-C), you must provide encryption key information using the following request headers. The object creation REST APIs provide a request header, x-amz-server-side-encryption that you can use to request server-side encryption. For more information on server side encryption , please refer to the below URL: http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html

Your items are 15KB in size and you want to have 100 strongly consistent reads per second. How many read capacity units do you need to provision? Choose the correct answer from the options below A. 100 B. 200 C. 300 D. 400

D. 400 Answer - D Since each item is 15KB and if we near it to the nearest 4KB , we get 4. Since we need 100 strongly consistent , it becomes (100*4) = 400. For more information on DynamoDB provisioned throughput please visit the below link: http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ProvisionedThroughput.html

What are the different S3 Encryption techniques? A. Use Server-Side Encryption with Amazon S3-Managed Keys B. Server-Side Encryption with AWS KMS-Managed Keys C. Server-Side Encryption with Customer-Provided Keys D. All of the above

D. All of the above Answer - D There are various ways to encrypt objects is S3. Use Server-Side Encryption with Amazon S3-Managed Keys (SSE-S3) - Each object is encrypted with a unique key employing strong multi-factor encryption. As an additional safeguard, it encrypts the key itself with a master key that it regularly rotates. Amazon S3 server-side encryption uses one of the strongest block ciphers available, 256-bit Advanced Encryption Standard (AES-256), to encrypt your data. Use Server-Side Encryption with AWS KMS-Managed Keys (SSE-KMS) - Similar to SSE-S3, but with some additional benefits along with some additional charges for using this service. There are separate permissions for the use of an envelope key (that is, a key that protects your data's encryption key) that provides added protection against unauthorized access of your objects in S3. SSE-KMS also provides you with an audit trail of when your key was used and by whom. Additionally, you have the option to create and manage encryption keys yourself, or use a default key that is unique to you, the service you're using, and the region you're working in. Use Server-Side Encryption with Customer-Provided Keys (SSE-C) - You manage the encryption keys and Amazon S3 manages the encryption, as it writes to disks, and decryption, when you access your objects. For more information on S3 encryption, please visit the link: http://docs.aws.amazon.com/AmazonS3/latest/dev/serv-side-encryption.html

What are the different ways to access SWF? A. AWS SDK for Java B. AWS Management console C. AWS SWF API's D. All of the above E. Both A and B F. Both B and C

D. All of the above Answer - D This is clearly mentioned in the AWS documentation For more information on SWF , please visit the link: https://aws.amazon.com/swf/faqs/

What can be used to deploy workers and deciders in Amazon SWF? Choose the correct answer from the options below. A. Amazon EC2 instances B. Amazon Lambda C. On-premise machines D. All of the above

D. All of the above Answer - D This is clearly mentioned in the AWS documentation For more information on SWF , please visit the link: https://aws.amazon.com/swf/faqs/

Which of the below functions is used in Cloudformation to retrieve an object from a set of objects? Choose an answer from the options below A. Fn::GetAtt B. Fn::Combine C. Fn::Join D. Fn::Select

D. Fn::Select Answer - D This is clearly given in the AWS documentation For more information on the function please refer to the below link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-select.html

Which of the descriptions below best describes what the following bucket policy does?{ "Version":"2012-10-17", "Id":"Statement1", "Statement":[ { "Sid":" Statement2", "Effect":"Allow", "Principal":"*", "Action":[ "s3:GetObject", "s3:PutObject" ], "Resource":"arn:aws:s3:::mybucket/*", "Condition":{ "StringLike":{ "aws:Referer":[ "http://www.example.com/*", "http://www.demo.com/*" ] } } } ]}Choose the correct answer from the options below A. It allows read or write actions on the bucket 'mybucket' B. It allows read access to the bucket 'mybucket' but only if it is accessed from example.com or demo.com C. It allows unlimited access to the bucket 'mybucket' D. It allows read or write access to the bucket 'mybucket' but only if it is accessed from example.com or demo.com

D. It allows read or write access to the bucket 'mybucket' but only if it is accessed from example.com or demo.com Answer - D The PutObject allows one to put objects in an S3 bucket. For more information on S3 bucket policy examples, please visit the link: http://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html

You are explaining SQS message attributes to an IT admin. What specifically do you need to tell the IT admin about the message attributes of SQS? Choose the correct answer from the options below A. Name, type, and value can be empty or null but the message body cannot be empty or null. B. Name, type, and value must not be empty or null but the message body can be empty or null. C. Name, type, and value can be empty or null and the message body can be empty or null. D. Name, type, and value must not be empty or null and the message body shouldn't be empty or null either.

D. Name, type, and value must not be empty or null and the message body shouldn't be empty or null either. Answer - D Amazon Simple Notification Service (Amazon SNS) provides support for delivery of message attributes to Amazon SQS endpoints. Message attributes allow you to provide structured metadata items (such as timestamps, geospatial data, signatures, and identifiers) about the message Also the requirement for each attribute to be not NULL in addition to the message body is given in the AWS documentation. For more information on SNS message attributes, please refer to the link: http://docs.aws.amazon.com/sns/latest/dg/SNSMessageAttributes.html

Which of the following would you not expect to see in an SNS message body? Choose the correct answer from the options below A. Signature B. MessageId C. SigningCertURL D. SNSID

D. SNSID Answer - D An example of the notification is shown below, There is no SNSID For more information on SNS notification format, please refer to the link: http://docs.aws.amazon.com/sns/latest/dg/json-formats.html

An IT admin has enabled long polling in their SQS queue. What must be done for long polling to be enabled in SQS? Choose the correct answer from the options below A. Create a dead letter queue. B. Set the message size to 256KB C. Set the ReceiveMessageWaitTimeSeconds property of the queue to 0 seconds D. Set the ReceiveMessageWaitTimeSeconds property of the queue to 20 seconds

D. Set the ReceiveMessageWaitTimeSeconds property of the queue to 20 seconds Answer - D Amazon SQS long polling is a way to retrieve messages from your Amazon SQS queues. While the regular short polling returns immediately, even if the message queue being polled is empty, long polling doesn't return a response until a message arrives in the message queue, or the long poll times out. Long polling makes it inexpensive to retrieve messages from your Amazon SQS queue as soon as the messages are available. Using long polling might reduce the cost of using SQS, because you can reduce the number of empty receives For more information on Long polling, please refer to the link: http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-long-polling.html

What is one difference between an Amazon EBS-backed and an instance-store backed instance? Choose the correct answer from the options below A. Instance-store backed instances can be stopped and restarted B. The size limit for Instance store volumes is 16 TiB C. Virtual Private Cloud requires EBS backed instances D. The instance type and kernel for an EBS backed AMI can easily be changed as compared to an Instance store-backed AMI.

D. The instance type and kernel for an EBS backed AMI can easily be changed as compared to an Instance store-backed AMI. Answer - D This is clearly mentioned in the AWS documentation For more information on Instance type differences, please refer to the below link: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ComponentsAMIs.html

You decide to create a bucket on AWS S3 called 'newbucket' and then perform the following actions in the order that they are listed here. - You upload a file to the bucket called 'file1' - You upload a file called 'file2' - You enable versioning on the bucket Which of the following is true for your bucket 'newbucket'? Choose the correct answer from the options below A. There will be 1 version ID for file1 and file2. B. There will be 1 version ID for file1 and null version ID for file2. C. There will be 1 version ID for file2 and null version ID for file1. D. The version ID will be null for both file1 and file2

D. The version ID will be null for both file1 and file2 Answer - D Any objects uploaded prior to versioning will have the version ID as NULL. This is clearly mentioned in the AWS documentation. For more information on S3 versioning, please visit the below link: http://docs.aws.amazon.com/AmazonS3/latest/dev/Versioning.html

An IT admin is worried about the number of message queues being created in the SQS in their AWS account? Is there a limit, if yes, what is the correct limit? Choose the correct answer from the options below A. 50 B. 100 C. 200 D. There is no limit

D. There is no limit Answer - D As per the AWS documentation, there is no limit on the number of queues. For more information on AWS SQS, please refer to the link: https://aws.amazon.com/sqs/faqs/

What is one of the major use cases for using SWF? A. Storing files In S3. B. Migrating components from the datacenter to the cloud C. Storing files In database. D. Provisioning servers.

B. Migrating components from the datacenter to the cloud Answer - B This is clearly mentioned in the AWS documentation For more information on SWF , please visit the link: https://aws.amazon.com/swf/faqs/

Is Example.com a valid S3 bucket name? A. True B. False

B. False Answer - B Below are the naming conventions for S3 buckets The bucket name can be between 3 and 63 characters long, and can contain only lower-case characters, numbers, periods, and dashes. Each label in the bucket name must start with a lowercase letter or number. The bucket name cannot contain underscores, end with a dash, have consecutive periods, or use dashes adjacent to periods. The bucket name cannot be formatted as an IP address (198.51.100.24). For more information on the S3 naming conventions please visit the below link: http://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-s3-bucket-naming-requirements.html

Is the default visibility timeout for an SQS queue 1 minute? A. True B. False

B. False Answer - B Each queue starts with a default setting of 30 seconds for the visibility timeout. You can change that setting for the entire queue. Typically, you'll set the visibility timeout to the average time it takes to process and delete a message from the queue. When receiving messages, you can also set a special visibility timeout for the returned messages without changing the overall queue timeout. For more information on SQS please visit the below link: https://aws.amazon.com/sqs/faqs/

True or False. A global secondary index has the same partition key as the primary key? A. True B. False

B. False Answer - B Global secondary index — an index with a partition key and a sort key that can be different from those on the base table. A global secondary index is considered "global" because queries on the index can span all of the data in the base table, across all partitions. Local secondary index — an index that has the same partition key as the base table, but a different sort key. A local secondary index is "local" in the sense that every partition of a local secondary index is scoped to a base table partition that has the same partition key value. For more information on DynamoDB Indexes, please visit the link: http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/SecondaryIndexes.html

When designing Cloudformation templates, is the Resources section optional? A. True B. False

B. False Answer - B If you refer to the documentation, you will see that Resources is the only mandatory field Specifies the stack resources and their properties, such as an Amazon Elastic Compute Cloud instance or an Amazon Simple Storage Service bucket. For more information on cloudformation templates, please refer to the below link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html


संबंधित स्टडी सेट्स

Biol 2170 Chapt 8 LS and Pre Assignment

View Set

Chapter 13: The Nervous System I: Nervous Tissue

View Set

Stats 1430 Quizzes: Midterm Review

View Set

OBI, CHAPTER 1 (THE PAST, PRESENT & FUTURE)

View Set

Chapters 9 & 10- Gleim Questions

View Set

The Catcher in the Rye Study Guide questions and Answers

View Set