AWS - TEST05

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

10.2.181.56 is a valid S3 bucket name. Choose a correct answer from the options below A True B False

B

A DynamoDB table can contain ____ local secondary indexes on a table. Choose a correct answer from the options below A 3 B 5 C 10 D 2

B

AWSTemplateFormatVersion declaration is required for the template to work inside CloudFormation. Choose an answer from the options below A True B False

B

By default, what event occurs if your CloudFormation receives an error during creation? Choose a correct answer from the options below A DELETE_IN_PROGRESS B ROLLBACK_IN_PROGRESS C DELETE_COMPLETE D CREATION_IN_PROGRESS

B

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

B

S3 Bucket ownership is transferable. Choose a correct answer from the options below A True B False

B

S3 does not generally handle error codes with HTTP responses. Choose the correct answer from the options below A True B False

B

The only SNS notification event supported by S3 is S3:ReducedRedundancyLostObject. Choose the correct answer from the options below A True B False

B

What is the maximum size of an S3 object? Choose an answer from the options below A 5GB B 5TB C 1TB D 500MB

B

When using the Ref function in CloudFormation, what do we get back if we pass in the logical ID of an AWS::EC2::Instance object? Choose the correct answer from the options below A The object's creation status B The object's InstanceId C Nothing, the AWS::EC2::Instance is not a valid resource type D All of the attributes associated with that EC2 instance resource

B

Which DynamoDB API call does not consume capacity units? Choose the correct answer from the options below A DeleteItem B UpdateTable C GetItem D UpdateItem

B

Which of the following are subject to eventual consistency? Choose the correct answer from the options below A S3 objects in the US-East-1 region B Reads of a DynamoDB table, unless you specify otherwise C All reads of a DynamoDB table D S3 objects in the US-Standard region

B

Which statement about DynamoDB is true? Choose a correct answer from the options below A DynamoDB does not support conditional writes. B DynamoDB uses optimistic concurrency control. C DynamoDB is a relational database service. D None of the above

B

You attempt to create a new S3 bucket "Demo-Bucket-1234-US-East-2-Production-Environment-12.25.14" in the US-EAST-2 region and the bucket creation fails. Why? Choose the correct answer from the options below. A The bucket name uses the dash character ("-") B The bucket name uses capital letters. C The length of the bucket name is longer than the limit of 63 characters. D The bucket name uses the period character (".")

B

You define the following S3 bucket policy to grant users access to your bucket, but the S3 bucket policy editor will not allow you to submit it. Why is this policy not working? Choose the correct answer from the options below { "Id": "Policy1441839160967", "Version": "2012-10-17", "Statement": [ { "Sid": "Stmt1441839157568", "Action": [ "s3:ListBucket" ], "Effect": "Allow", "Resource": "arn:AWS:s3:::demo.testbucket.2 " } ] } A This is a NACL B S3 bucket policies require a Principal be defined C The Resource name is incorrect - S3 bucket names cannot contain periods D This is an IAM policy

B

You have created a mobile application that relies on reading data from DynamoDB. How could you give each mobile device permissions to read from DynamoDB? Choose an answer from the options below A Connect to an EC2 instance which will pull the data from DynamoDB securely B Create an IAM role that can be assumed by an app that allows federated users C Add the username and password into the app code D Create an IAM user

B

You're creating a forum DynamoDB database for hosting web forums. Your "thread" table contains the forum name and each "forum name" can have one or more "subjects". What primary key type would you give the thread table in order to allow more than one subject to be tied to the forum primary key name? Choose an answer from the options below A Primary and range B Hash and Range C Hash D Range and Hash

B

Your app is using SQS to create distributed applications. Your messages need to contain more information than the 256KB SQS limit size allowed. How could you solve this problem? Choose a correct answer from the options below A Contact Amazon and request an increase to the message size for your account B Store the information in S3 and attach retrieval information to the message for the application to process C Compress the information inside of SQS messages D Use DynamoDB instead of SQS

B

Which of the following is an incorrect S3 bucket name? Choose 2 correct answer from the options below A 1-demo.com B 10.2.181.2 C 1Demo.com D 1demo.com

BC

You have created an Elastic Load Balancer with Duration-Based sticky sessions enabled in front of your six EC2 web application instances in US-West-2. For High Availability, there are three web application instances in Availability Zone 1 and three web application instances in Availability Zone 2. To load test, you set up a software-based load tester in Availability Zone 2 to send traffic to the Elastic Load Balancer, as well as letting several hundred users browse to the ELB's hostname. After a while, you notice that the users' sessions are spread evenly across the EC2 instances in both AZ's, but the software-based load tester's traffic is hitting only the instances in Availability Zone 2. What steps can you take to resolve this problem? Choose the 2 correct answer from the options below A Create a software-based load tester in US-East-1 and test from there B Force the software-based load tester to re-resolve DNS before every request C Use a third party load-testing service to send requests from globally distributed clients D Switch to Application-Controlled sticky sessions

BC

Your supervisor calls you wanting to know why she has not been receiving email notifications for AWS billing alerts. What do you suspect the problem might be and how can you find out? Choose 3 correct answer from the options below A The SNS queue is not AutoScaling properly. Verify by viewing Performance Statistics in SNS. B The SNS Subscription is not configured for Email notifications. Verify by viewing Subscriptions for the appropriate Topic in SNS C Your supervisor has not responded to the confirmation email sent from SNS when you added a subscription for her email address. Verify by viewing Subscriptions for the appropriate Topic in SNS D Billing alerts are not configured. Verify by viewing Billing Alerts in Account Preferences

BCD

A DynamoDB item is a collection of name and value attributes. Choose a correct answer from the options below A True B False

A

A global secondary index is an index with a hash and range key that can be different from those on the table. Choose a correct answer from the options below A True B False

A

AWS CloudFormation provides a set of Python helper scripts that you can use to install software and start services on an Amazon EC2 instance in your stack. You can call the helper scripts directly from your template. Choose an answer from the options below. A True B False

A

Any local secondary index in a DynamoDB table can be updated once it is created. A False B True

A

Can Cloudformation be used with Chef and Puppet? Choose the correct answer from the options below A True B False

A

Can data be saved when a stack is deleted in Cloudformation? Choose the correct answer from the options below A True B False

A

Can expressions be used as part of the Query API call in DynamoDB? Choose an answer from the options below A True B False

A

Can software's be installed at stack creation process in Cloudformation? Choose the correct answers from the options below A True B False

A

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. A user_id where there are many users to few products B product_id where there are few products to many users C category_id where there are few categories to many products D None of the above

A

Company B has many users updating the same table. At times it is not uncommon for multiple users to update the same item and attribute of an item at the same time. If user A calls an item in a table to update an attribute at the same time as user B and user B updates the table first, what can we deploy in DynamoDB to ensure User A is not updating an item that was updated since User A's table read? Choose the correct 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

Multi-part upload API allows you to stop and resume uploads. Choose a correct answer from the options below A True B False

A

One DynamoDB read capacity unit represents one strongly consistent read per second, for an item up to 4 KB in size. Choose the correct answer from the options below. A True B False.

A

What is the default limit for CloudFormation templates per region? Choose the correct answer from the options below A There are no limits to the number of templates B 200 C 20 D 40

A

What is the default timeout for visibility queue in SQS in seconds? Choose the correct answer from the options below A 30 B 14 C 10 D 60

A

Which of the following cannot be used inside a CloudFormation template? Choose a correct answer from the options below A Ruby statements B Parameters C Intrinsic function D Regular expression

A

Which of the following statements is true about DynamoDB? Choose the correct answer from the options below A Read requests are eventually consistent unless otherwise specified. B Read requests are strongly consistent. C Tables do not contain primary keys. D None of the above

A

Which of the following will not make a CloudFormation stack deployment to 'rollback'? Choose a correct answer from the options below. A The template contains invalid JSON syntax B A subnet specified in the template does not exist C An AMI specified in the template exists in a different region than the one in which the stack is being deployed. D The template specifies an instance-store backed AMI and an incompatible EC2 instance type.

A

Which of these CloudFormation snippets of code will return an address that can be used to access our application from our browser if we're using a resource type of AWS::ElasticLoadBalancing::LoadBalancer with Logical ID "ElasticLoadBalancer"? Choose an answer from the options below A "Fn::Join" : [ "", [ "http://", { "Fn::GetAtt" : [ "ElasticLoadBalancer", "DNSName" ]}]] B "Fn::Join" : [ "", [ "http://", { "Ref" : ["ElasticLoadBalancer" }]] C "Fn::Join" : [ "http://", [ ".", { "Fn::GetAtt" : [ "ElasticLoadBalancer", "DNSName" ]}]] D "Fn::Join" : [ "", [ "http://", { "Fn::GetAtt" : [ "ElasticLoadBalancer", "URL" ]}]]

A

You have an EC2 instance deployed with an IAM role with write access permissions to an SQS queue. The instance is attempting to write a 512 KB message to an SQS queue. What will the result of this attempt be? Choose the correct answer from the options below A It will fail because it is greater than the 256 KB limit for SQS messages. B It will fail because SQS requires the EC2 instance to use API keys with permissions to write to the queue. C It will succeed as a single message request. D It will succeed but be considered as 8 message requests because SQS measures message requests in 64 KB chunks.

A

You're using CloudFormation templates to build out staging environments. What section of the CloudFormation would you edit in order to allow the user to specify the PEM key-name at start time? Choose a correct answer from the options below A Parameters Section B Declaration Section C Mappings Section D Resources Section

A

You've enabled website hosting on a bucket named "demo.com" in the US-East-1 (US standard region). Select the URL you'll receive from AWS as the URL for the bucket. Choose a correct answer from the options below A demo.com.s3-website-us-east-1.amazonaws.com B demo-com.s3-website-us-east-1.amazonaws.com C demo.com.s3-website.amazonaws.com D demo.com.us-east-1-s3-website.amazonaws.com

A

Company B is using strongly consistent reads to request 50 items per second from their customer table. Each item is 20KB in size. What throughout would be required to efficiently handle the read throughput of the table ? A 150 B 50 C 250 D 125

C

Since S3 object are stored lexicographically, by introducing "randomness" to your S3 names it helps S3 storage distribute the I/O load across more than one partition. Given the following examples, how could you add a hashed prefix to the naming convention to increase I/O performance? Choose the correct answer from the options below A bucket/8761-2010-26-05-15-00-00/8761/myfolder234234/photo1.jpg B 8761bucket/2010-26-05-15-00-00/myfolder234234/photo1.jpg C bucket/8761-2010-26-05-15-00-00/myfolder234234/photo1.jpg D bucket/2010-26-05-15-00-00/bucket/myfolder234234/photo1.jpg

C

Which API call would you use to query an item by it's primary hash key? Choose the correct answer from the options below A PutItem B Scan C GetItem D query

C

Which of the following is a default limit in S3? Choose the correct answer from the options below A Objects have no size limitation B Objects can have a maximum size of 5 GB C Accounts can have a maximum of 100 buckets D Buckets can have a maximum size of 5 TB

C

Which of the following is not true about SWF? Choose the correct answer from the options below A Decision tasks occur when the state of the workflow changes. B EC2 instances can perform a worker task. C Humans can perform a decision task. D A server residing outside of an AWS datacenter can perform a worker task.

C

You created three S3 buckets - "mydomain.com", "downloads.mydomain.com", and "www.mydomain.com". You uploaded your files, enabled static website hosting, specified both of the default documents under the "enable static website hosting" header, and set the "Make Public" permission for the objects in each of the three buckets. All that's left for you to do is to create the Route 53 Aliases for the three buckets. You are going to have your end users test your websites by browsing to http://mydomain.com/error.html, http://downloads.mydomain.com/index.html, and http://www.mydomain.com. What problems will your testers encounter? Choose an answer from the options below A http://mydomain.com/error.html will not work because you did not set a value for the error.html file B http://www.mydomain.com will not work because the URL does not include a file name at the end of it. C There will be no problems, all three sites should work. D http://downloads.mydomain.com/index.html will not work because the "downloads" prefix is not a supported prefix for S3 websites using Route 53 aliases

C

You have items in your table that are 12KB in size and you want to have 10 strongly consistent reads per second. How many read capacity units would you need to provision? Choose a correct answer from the options below A 300 B 10 C 30 D 1

C

You want to find out what AMIs are available for you to use in a given region. Which API call is most appropriate? Choose an answer from the options below A ListInstances B ListAMIs C DescribeImages D DescribeAMIs

C

Your "forums" table has a primary key of "id". Using DynamoDB, you're able to query the data based on the id primary key. You need to be able to query the forums table by userId. What would you add to the table during table creation time? Choose a correct answer from the options below A Create a second table that contains all the information by userId. B Create a hash and range primary key. C Create a secondary index. D None of the above

C

Which of the following can be increased by contacting AWS? Choose 2 correct answer from the options below A DynamoDB tables per account B DynamoDB secondary indexes per table C S3 buckets per account D S3 buckets per region

AC

Your supervisor is upset about the fact that SNS topics that he subscribed to are now cluttering up his email inbox. How can he stop receiving email from SNS without disrupting other users' ability to receive email from SNS? Choose 2 answers from the options below A You can delete the subscription from the SNS topic responsible for the emails B You can delete the endpoint from the SNS subscription responsible for the emails C You can delete the SNS topic responsible for the emails D He can use the unsubscribe information provided in the emails

AD

A taxi company uses a mobile GPS application to track the location of each of their 60 cabs. The application records the taxi's location to a DynamoDB table every 6 seconds. Each transmission is just under 1 KB, and throughput is spread evenly within that minute. How many units of write capacity should you specify for this table? Choose a correct answer from the options below A 6 B 60 C 600 D 10

D

Answer - D AWS CloudFormation provides several built-in functions that help you manage your stacks. Use intrinsic functions in your templates to assign values to properties that are not available until runtime. The website is then available at the region-specific website endpoint of the bucket: .s3-website-.amazonaws.com Hence Option A and B are wrong. Also you need to use the Ref function and not the GetAtt function hence Option C is wrong. For more information CloudFormation intrinsic functions on the please visit the below link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference.html Question 37: Incorrect You are creating several DynamoDB tables for a new project. While doing so, you receive the error message, "LimitExceededException." You are well below the maximum number of tables per account and there is no read or write activity on the tables yet. Why have you received this error? Choose a correct answer from the options below A You attempted to create GSI at the time of table creation. B You attempted to create local indexes at the same time you created the tables C You failed to pre-warm the tables D You attempted to create more than one table with a secondary index at a time

D

As you retrieve information from DynamoDB, you receive this error: "ProvisionedThroughputExceededException", but upon investigation you notice that you're not exceeding your table read capacity throughput. What is causing this error? Choose the correct answer from the options below A DynamoDB needs a short amount of time to pre-warm before being able to handle a spike in demand, even if a table has enough throughput capacity configured B Metrics reported by AWS are not always real-time and could take a minute or so to appear C This happens when using sort keys because they consume an extra read capacity for each call which doubles throughput D You exceeded your maximum allowed provisioned throughput for a table or for one or more global secondary indexes.

D

One unit of read capacity is ____ in size? Choose the correct answer from the options below A 5 KB B 3 KB C 2 KB D 4 KB

D

What would you set in your CloudFormation template to fire up different instance sizes based off of environment type? i.e. (If this is for prod, use m1.large instead of t1.micro) Choose a correct answer from the options below A Outputs B Resources C Mappings D Conditions

D

Which API call would you use to attach an EBS volume to an EC2 instance? Choose a correct answer from the options below A AttachInstanceVolume B AttachVolumeInstance C AttachEBSVolume D AttachVolume

D

Which of the following types of servers would this CloudFormation template be most appropriate for? Choose a correct answer from the options below { "AWSTemplateFormatVersion" : "2010-09-09", "Description" : "My CloudFormation Template", "Resources" : { "MyInstance" : { "Type" : "AWS::EC2::Instance", "Properties" : { "InstanceType" : "t2.micro", "ImageId" : "ami-030f4133", "NetworkInterfaces" : [{ "AssociatePublicIpAddress" : "true", "DeviceIndex" : "0", "DeleteOnTermination" : "true", "SubnetId" : "subnet-0c2c0855", "GroupSet" : ["sg-53a4e434"] } ] } } } } A Domain Controller B Log collection server C Database server D Bastion host

D

Which one of the following S3 error code does not have a corresponding HTTP 404 Status code? Choose a correct answer from the options below A NoSuchBucket B NoSuchUpload C NoSuchVersion D MissingSecurityHeader

D

While working with the S3 API you receive the error message: 404 Not Found. What is the most likely cause for this error? Choose a correct answer from the options below A AccessDenied B BucketAlreadyExists C NoSuchService D NoSuchBucket

D

You are creating a CloudFormation template in the Singapore region which will create an S3 website bucket. You have created a parameter "demo" which is used to store the name of your S3 bucket, and you are hoping to create output from your template which will list the URL of the S3 website. Which of the following Join statements will provide the URL of your S3 website? Choose a correct answer from the options below A "Fn::Join" : ["", ["http://",{"Ref":"demo"},".s3",".amazonaws.com"]] B "Fn::Join" : ["", ["http://",{"GetAtt":"demo"},".s3-bucket-","Singapore-1",".amazon.com"]] C "Fn::Join" : ["", ["http://",{"GetAtt":"demo"},".s3-website-","ap-southeast-1",".amazonaws.com"]] D "Fn::Join" : ["", ["http://",{"Ref":"demo"},".s3-website-",{"Ref":"AWS::Region"},".amazonaws.com"]]

D

You need to announce an emergency downtime for a production AWS web application. This downtime notification will require different sets of instructions for different devices. All of the application users signed up to receive SNS notifications from the "mywebapp" topic when they began using the application and they are currently subscribed to this topic. What are appropriate ways for you to provide timely, device-specific instructions to end users when announcing this downtime? Choose an answer from the options below A Create a different topic for each subscription type and send a message to SMS endpoints to one topic and a message to email endpoints to another topic B Send multiple messages to the topic and ask users to ignore the messages that do not pertain to their device C SNS is for automated notifications and you cannot send messages manually via SNS. The best option is to export the endpoints to a csv and send notifications to customers via your email client or SMS device. D Send a single message, but customize the text in the SNS message field so that each device gets only the information that is appropriate for them

D

You receive a call from a potential client who explains that one of the many services they offer is a website running on a t2.micro EC2 instance where users can submit requests for customized e-cards to be sent to their friends and family. The e-card website administrator was on a cruise and was shocked when he returned to the office in mid-January to find hundreds of angry emails complaining that customers' loved ones had not received their Christmas cards. He also had several emails from CloudWatch alerting him that the SQS queue for the e-card application had grown to over 500 messages on December 25th. You investigate and find that the problem was caused by a crashed EC2 instance which serves as an application server. What do you advise your client to do first? Choose the correct answer from the options below A Use an autoscaling group to create as many application servers as needed to process all of the Christmas card SQS messages. B Reboot the application server immediately so that it begins processing the Christmas card SQS messages. C Redeploy the application server as a larger instance type so that it can process the Christmas card SQS messages faster. D Send an apology to the customers notifying them that their cards will not be delivered.

D


Kaugnay na mga set ng pag-aaral

Chapter 3 - Taxable Entities, Tax Formula, Intro to Property Transactions

View Set

Chapter 05: Anti-infective Drugs: Antibacterial, Antitubercular, and Antifungal Agents Visovsky: Introduction to Clinical Pharmacology, 9th Edition

View Set

(History Final) Chapter 9 - Section 4

View Set

Module 5: Intracranial Regulation

View Set

Writing Point-Slope Form Equations from Two Points

View Set

Anthropology 250 Practice Final - UVic 2017 Fall

View Set

Revature Panel Interview Questions

View Set