deployment Flashcards

1
Q

How long can a message be retained in an SQS Queue?

  • 7 days
  • 1 day
  • 14 days
  • 30 days
A

14 days

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which of the following statements is correct?
• In DynamoDB, a primary key can be a range of values.
• In DynamoDB, a primary key must be a single-attribute
• In DynamoDB, a primary key can be composite partition/sort key
• In DynamoDB, a primary key can be a single-attribute partition key

A
  • In DynamoDB, a primary key can be composite partition/sort key.
  • In DynamoDB, a primary key can be a single-attribute partition key
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
Which of the following are considered to be Serverless?
• Elastic Beanstalk
• API Gateway
• RDS
• SNS
• DynamoDB
A
  • API Gateway
  • SNS
  • DynamoDB
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the maximum size of an S3 object?

500 GB
50 GB
50 TB
5 TB

A

5 TB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which of the following statements relating are correct in relation to DynamoDB?

  • A Local Secondary Index is an index that has the a different partition key and a different sort key to the table.
  • You can add a Global Secondary Index to an existing table
  • A Local Secondary Index is an index that has the same partition key as the table, but a different sort key to the table.
  • You can add a Local Secondary Index to an existing table
A
  • You can add a Global Secondary Index to an existing table
  • A Local Secondary Index is an index that has the same partition key as the table, but a different sort key to the table.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

AWS recommends that you use Multipart Upload for files larger than _____.

1GB
5GB
5TB
100MB

A

100MB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

You are creating a DynamoDB table to manage your customer orders, which of the following attributes would make a good Sort Key?

OrderDate
CustomerID
OrderNumber
ProductID

A

OrderDate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Your application needs to process large numbers of job requests and you need to ensure that they are processed in order, and that each request is processed only once. How would you deploy SQS to achieve this end?

  • Use the SetOrder attribute ensure sequential job processing.
  • Convert your standard queue to a FIFO queue by renaming your standard queue with the .fifo suffix.
  • Use an SQS FIFO queue to process the jobs.
  • Configure FIFO delivery in a standard SQS queue.
A

• Use an SQS FIFO queue to process the jobs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

You have deployed a new version of your Lambda function, however during testing, you notice that your application is not behaving as expected. How can you roll back to the previous version of your code?

  • Make a new version of your function using the original Lambda code
  • Redeploy your original code to $LATEST
  • Update the $LATEST alias to point to the previous version of your function
  • Remap the PROD alias to point to the previous version of your function
A

Remap the PROD alias to point to the previous version of your function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Your application needs 100 strongly consistent reads on items that are 9KB in size every second. How many units of read capacity units should you provision?

350
150
200
300

A

300

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which of the following statements is correct?

  • If you want to use auto-scaling, you must use an EBS-backed instance.
  • Instance-store backed instances can be stopped and restarted.
  • An EBS backed instance can be stopped and restarted.
  • An Amazon VPC requires that instances be backed with EBS.
A

An EBS backed instance can be stopped and restarted.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

You are creating a DynamoDB table to store customer order data, which of the following attributes would make a good Partition Key?

  • OrderDate
  • ProductType
  • Size
  • CustomerID
A

•CustomerID

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

You have deployed a new version of your Lambda function, however the Application Support team have reported a number of issues with the new code. What is the easiest way to fix this?

  • Roll back by restoring the original function from an EBS snapshot
  • Delete the CloudFormation stack and redeploy using the previous version
  • Roll back to a previous version by updating your PROD alias to point to the previous version of the function
  • Troubleshoot the issue using X-Ray, then redeploy an updated version of the function
A

Roll back to a previous version by updating your PROD alias to point to the previous version of the function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Which of the following statements about a standard SQS queue is true:

  • Messages will be delivered exactly once, but message delivery order is indeterminate.
  • Messages will be delivered exactly once in first-in, first-out order.
  • Messages will be delivered one or more times and message delivery order is indeterminate.SELECTED
  • Messages will be delivered one or more times in first-in, first-out order.
A

Messages will be delivered one or more times and message delivery order is indeterminate.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q
What is the largest size file you can transfer to S3 using a PUT operation?
•  5GB
•  1GB
•  5TB
•  100MB
A

• 5GB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Your ‘forums’ table has a primary key of ‘comment_id’. Using DynamoDB, you’re able to query the data based on the ‘comment_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?

  • A new table ordered by userId
  • A secondary index
  • None of these
  • A partition/sort primary key
A

• A secondary index

17
Q

Your application stores files in an S3 bucket located in us-east-1, however many of your users are located in ap-south-1. The files are less than 50MB in size, however users are frequently experiencing delays when attempting to upload files. Which of the following options will maximize the upload speed?

  • Implement a third party CDN solution.
  • Utilize S3 Transfer Acceleration.
  • Design the application to use multipart upload, so that the file is split in to multiple parts which are then uploaded simultaneously.
  • Require the users to use Direct Connect in order to use to application so as to maximize the upload bandwidth.
A

Utilize S3 Transfer Acceleration.