X-Practice Exams Flashcards

1
Q

In the context of S3, what can Error 409 be a result of?

A

Bucket already exists or attempting to remove a bucket without first deleting the items

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

How is long-polling actually used?

A

By setting the RecieveMessageWaitTimeSeconds parameter of the API call

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

What error is displayed if a CloudFormation stack fails during deployment?

A

ROLLBACK_IN_PROGRESS

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

Can bucket names include uppercase characters?

A

No

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

How can X-Ray results be filtered to those that fail and are for a particular domain?

A

“ok=false AND http.url CONTAINS …”

Note that ‘http.result’ is not valid

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

Does CodeDeploy support in-place Lambda deplyments?

A

No

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

What push notifications services does SNS plug into?

A

GCM - Google Cloud Messager

APNS - Apple Push Notification Service

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

How are CodeDeploy build environments configured?

A

Either use a pre-defined environment or give it a container image. It does not support AMIs

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

What is the best option for managing state in applications behind a load balancer?

A

ElasticCache

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

How can conflicts be avoided where multiple users write to the same DynamoDB item at the same time?

A

With conditional writes

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

What encryption algorithm does S3 use?

A

AES256

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

How can the URLs used to access S3 content be restricted?

A

With an AWS: referer condition in the bucket policy

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

Where is API Gateway caching set?

A

At the staging level

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

How do workers signify that they are completed an SQS task?

A

With the DeleteMessage API call - otherwise it goes back into the queue after the visibility timeout

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

What Step Function state is used to delay execution?

A

A wait state

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

What tasks can humans perform in SWF?

A

They can perform work tasks but not decision tasks

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

What do SNS messages consist of?

A

Message, signature, subjects and type

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

What is the default DynamoDB table limit?

A

256 per region

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

Do MultiAZ RDS deployments improve performance?

A

No - it’s a hot standby that doesn’t support reads or writes

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

How do read replicas import the availability of RDS?

A

They can still be read from if the main instance goes down

Depending on the DB engine, they can be promoted to a master instance

21
Q

Can RDS deployments span regions?

A

MultiAZ instances can but read replicas can be in a different region

22
Q

Is throughput provisioned per table or per index?

A

It is for the table/LSI and any GSIs

23
Q

What secret storage solutions support automatic rotation?

A

System Parameter Store doesn’t support rotation but Secrets Manager does

24
Q

What logs does RDS provide?

A

Slow query, error and general

25
Q

How can you implement blue/green deployments for an existing Elastic Beanstalk application?

A

Create a new environment and then do a DNS swap when you are ready

26
Q

What does X-Ray use to monitor HTTP requests?

A

Interceptors

27
Q

What command do you use to add data to Redshift?

A

COPY

28
Q

How do you restrict access to API Gateway endpoints?

A

Besides IAM and Lambda authorisers, you can use Resource Policies. For example, these can restrict to particular IPs

29
Q

How do you integrate SOAP with API Gateway?

A

Use a mapping template

30
Q

How do you encrypt data directly with KMS?

A

If it’s less than 4KB, you can use GenerateDataKey

Otherwise, you need to use GenerateDataKeyWithoutPlaintext and do the encryption locally

31
Q

How can you off-load long-running tasks in Elastic Beanstalk?

A

With Worker Environments - use cron.yml at the top level of the code

32
Q

How is the schema of responses defined for APIs?

A

With Method Response, which is per stage

33
Q

How do you configure custom caching for CloudFront?

A
  • Configure the origin to add an ‘Expires’ header

- Set a minimum TTL in the CloudWatch cache behaviours

34
Q

What is the key different between Elastic Beanstalk and CodeDeploy?

A

Elastic Beanstalk provides full control while CodeDeploy only provides hooks

35
Q

Where are configuration files for Elastic Beanstalk stored?

A

There are stored as .ebextensions/.config

36
Q

How do you do location-based routing in CloudFront?

A

Use geoproximity - geolocation is a Route53 feature

37
Q

How can you handle SQS messages that have unpredictable processing times?

A

Use the ChangeMessageVisibility API for per-message changes to request timeout

38
Q

What port is SSH on?

A

22/TCP

39
Q

What is the largest single PUT that S3 supports?

A

5 GB but AWS recommend using multi-part uploads for anything bigger than 100 MB

40
Q

What is the difference between blue/green and immutable deployments using Elastic Beanstalk?

A

Blue/green uses separate environments and a DNS swap

Immutable sets up a temporary ELB in the same environment

41
Q

Can SQS be a target of SNS?

A

No

42
Q

What do ASGs do with instances that fail their health checks?

A

Terminate them

43
Q

How do you define CodeDeploy deployments?

A

With a .appspec in the root directory

44
Q

What frameworks does Opsworks support?

A

Chef and Puppet

45
Q

What does Error 400 indicate?

A

There is a problem with your request i.e. you are missing parameters or exceeding the provisioned throughput of a table

46
Q

How you ensure frequent custom metrics?

A

Enable high-resolution metrics; detailed monitoring is for EC2

47
Q

How can you tell how much capacity a query has taken?

A

By setting the ReturnConsumedCapacity parameter to TOTAL

48
Q

How can you configure CloudFront to force HTTPS?

A

By using a Viewer Protocol Policy

49
Q

What services support deployment to Lambda?

A

CodeDeploy and CloudFormation but NOT Elastic Beanstalk