Udemy Flashcards

1
Q

CloudDeploy can only deploy to:

A

EC2 instances and Lambda

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

To deploy an API, you create an API deployment and associate it with a ___. This is a snapshot of the API and is made available for the client to call.

A

stage

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

Kinesis stores data in ____-

A

shards

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

Commands to push docker to ECR?

A
  1. $(aws ecr get-login –no-include-email)

2. docker push [123213.dkr.ecr.eu….]

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

API gateway URL scheme

A

https://.execute-api..amazonaws.com/dev/resource

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

Kinesis streams scales ____ whereas firehose scales ____

A
  1. manually

2. automatically

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

You have an application that requires reading 10 items of 6.6KB per second using eventual consistency. What value should you set for the read throughput?

A

10

6.6 KB gets rounded to 8 KB, one RCU for eventually consistent is two reads per second of 4 KB, so we have (10 * (8/2))/2 = 10

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

Your application processes message from an SQS queue. You will write the algorithm that requests more time when the visibility timeout is not enough. Which API should you call ?

A

ChangeMessageVisibility

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

In SQS, what is the default visibility timeout for a message?

A

30 seconds

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

ALBs support what protocols?

A

Websockets and HTTP/2

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

A message published to an SNS topic is distributed to a number of SQS queues in parallel. What is this design pattern called?

A

Fan out

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

Identity pools are the containers that Cognito Identity uses to keep your apps’ federated identities organized.

A

True

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

To have AWS S3 encrypt an object after it is uploaded, you need to add a header to the HTTP request called

A

x-amz-server-side-encryption

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

max size of SQS message?

A

256KB

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

In SQS, what does long polling mean ?

A

Worker will wait to receive a message until a message is available or until timeout

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

Step functions are specified in _____

A

JSON

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

Your organization becomes a huge enterprise. You deployed a customer care website to gather feedback from your customers. You expect that you will receive 180 feedbacks each minute and each feedback will be a text of 9KB in size. All the feedback will be persisted in a DynamoDB table. What should be the required provisioned write throughput ?

A

27

180 per minute = 3 per seconds, 1 WCU = 1 KB, so 3 * 9 = 27 WCU

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

Your BI application reads 1200 items from the game table every minute using strong consistency. Each item is 6KB in size. Calculate the required provisioned read throughput for the game table

A

40

1200 per minute = 20 per second, 6kb round up to 8

20 * (8/4) = 40

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

Using which AWS API can you return one or more items from one or more DynamoDB tables?

A

BatchGetItem

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

Step Functions Standard vs Express

A

Standard : duration of 1 year (longer workflows, longer duration)

Express: duration of 5 minute (cheaper smaller duration)

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

Basic idea of AWS Appsync

A

It is AWS managed GraphQL, and it also can serves as real time data retrieval service using web sockets or MQTT

Could be used for mobile data offline syncing

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

T/F: ALB, API Gateway, AppSync allow Websockets

A

TRUE

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

Your API is getting hit with the same GET request over and over. Your lambda function is overloaded and your bill starts to substantially increase. The GET response returns the same payload and changes only daily. What should you do?

A

Enable stage cache

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

EC2 charge granularity

A

charged by the second

25
Q

Do load balancers scale instantaneously?

A

No, contact AWS for a ‘warm up’

26
Q

RDS transaction logs backed up every 1. ____ and are retained for 2. _____

A
  1. five minutes

2. seven days

27
Q

To update an ASG, you must provide a new ____

A

launch configuration / launch template

28
Q

OpsWorks is basically just

A

Chef and Puppet (VM configuration)

29
Q

You are making API calls to a third-party API from your backend instances in a private subnet. You were asked to provide a list of IP addresses to whitelist. Which IP address do you provide?

A

The public IP addresses of any NAT instances in your Amazon VPC

30
Q

Does S3 have folders?

A

No, in the test don’t be tricked into folder semantics

31
Q

For cross region replication of s3 buckets, what is necessary?

A

Both source and destination buckets must be versioned

32
Q

T/F: DynamoDB has encryption at rest as default

A

TRUE

33
Q

AWS Key Management Service (AWS KMS) is a managed encryption service. Who manages the customer keys in AWS KMS?

A

customer

34
Q

If you are using AWS CodeDeploy to deploy a set of 10 AWS Lambda functions and would like to ensure that two functions are updated every 3 minutes, which deployment configuration would be most suitable?

A

linear

35
Q

A tag group is applied to each

A

tag

36
Q

How to get around default size limit of CF?

A

Upload template to S3 and refer to its location

37
Q

Which intrinsic function is used to get the value of a parameter in an AWS CloudFormation template?

A

Ref

38
Q

How would you track which resources an AWS CloudFormation stack updated/modified by using AWS CloudTrail?

A

Search CloudTrail for events where the ClientRequestToken corresponds to the token for this stack action.

39
Q

Which tool can automatically assign Amazon Route 53 DNS entries for tasks launched by a service?

A

Amazon Elastic Container Service (Amazon ECS) Service Discovery

40
Q

You would like to configure Amazon Elastic Container Service (Amazon ECS) Auto Scaling so that when incoming network traffic for a cluster exceeds 20 Mbps, an additional task is launched and again when traffic exceeds 40 Mbps. Which policy type is recommended?

A

Step Scaling policies

41
Q

When do control plane and data plane use the same communication protocols?

A

When using a managed service.

BTW control plane calls APIs

42
Q

Your company is building a system to send out monthly account status emails to customers using Simple Queue Service (Amazon SQS) with the Standard Queue. How can you prevent a customer from receiving the same email multiple times?

A

Use the Amazon SQS Standard Queue to track each email that is sent out with Amazon DynamoDB to dedupe the messages.

Also, use SQS FIFO

43
Q

What does it mean when a message appears in the Amazon Simple Queue Service (Amazon SQS) dead-letter queue?

A

The message was received by several consumers but never deleted.

A message appears in the dead-letter queue if it is received more than the MaxReceiveCount number of times and never deleted. This indicates that the message causes the consumers to fail.

44
Q

You use AWS Step Functions to launch front-end servers. Each server launch can take up to 10 minutes. What is the best way to manage this in Step Functions?

A

Use a Task step with an Activity task.

Not WAIT b/c wait pauses state machine.

45
Q

Kinesis stream WRITE shard throughput

A

1 MB / second

46
Q

Kinesis stream READ shard throughput

A

2 MB / second

47
Q

default visibility timeout for SQS

A

30 seconds

48
Q

How to prevent unnecessary cpu cycles when polling SQS? In other words, how to reduce the number of empty responses?

A

adjust ReceiveMessageWaitTimeSeconds

49
Q

What is the minimum amount of memory that you can allocate to an AWS Lambda function?

A

128 MB

50
Q

Max size of Lambda package?

A

50 MB

51
Q

Max size of code and dependencies of Lambda beofre compression?

A

250 MB

52
Q

Max limit of concurrent Lambda functions?

A

1000, but this is soft limit that can be changed by contacting AWS

53
Q

Can AWS X-Ray be used to track all requests to a system?

A

No. X-Ray tracks only a statistically meaningful number of requests to a system.

54
Q

ppropriate cost management tool that provides you with real-time guidance for provisioning your resources according to AWS best practices?

A

Trusted Advisor

55
Q

Before you terminate beanstalk resources, terminate ___ for cost savings

A

the environment

56
Q

Before you terminate you ec2 instances, terminate ___ for cost savings

A

the load balancer

57
Q

Before you terminate instance , terminate ____ for max cost savings

A

EBS volums

58
Q

Rmember to use SQL syntax in S3 Select!

A

OK