X-Practice Exams Flashcards

(49 cards)

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
How can you implement blue/green deployments for an existing Elastic Beanstalk application?
Create a new environment and then do a DNS swap when you are ready
26
What does X-Ray use to monitor HTTP requests?
Interceptors
27
What command do you use to add data to Redshift?
COPY
28
How do you restrict access to API Gateway endpoints?
Besides IAM and Lambda authorisers, you can use Resource Policies. For example, these can restrict to particular IPs
29
How do you integrate SOAP with API Gateway?
Use a mapping template
30
How do you encrypt data directly with KMS?
If it's less than 4KB, you can use GenerateDataKey Otherwise, you need to use GenerateDataKeyWithoutPlaintext and do the encryption locally
31
How can you off-load long-running tasks in Elastic Beanstalk?
With Worker Environments - use cron.yml at the top level of the code
32
How is the schema of responses defined for APIs?
With Method Response, which is per stage
33
How do you configure custom caching for CloudFront?
- Configure the origin to add an 'Expires' header | - Set a minimum TTL in the CloudWatch cache behaviours
34
What is the key different between Elastic Beanstalk and CodeDeploy?
Elastic Beanstalk provides full control while CodeDeploy only provides hooks
35
Where are configuration files for Elastic Beanstalk stored?
There are stored as .ebextensions/.config
36
How do you do location-based routing in CloudFront?
Use geoproximity - geolocation is a Route53 feature
37
How can you handle SQS messages that have unpredictable processing times?
Use the ChangeMessageVisibility API for per-message changes to request timeout
38
What port is SSH on?
22/TCP
39
What is the largest single PUT that S3 supports?
5 GB but AWS recommend using multi-part uploads for anything bigger than 100 MB
40
What is the difference between blue/green and immutable deployments using Elastic Beanstalk?
Blue/green uses separate environments and a DNS swap Immutable sets up a temporary ELB in the same environment
41
Can SQS be a target of SNS?
No
42
What do ASGs do with instances that fail their health checks?
Terminate them
43
How do you define CodeDeploy deployments?
With a .appspec in the root directory
44
What frameworks does Opsworks support?
Chef and Puppet
45
What does Error 400 indicate?
There is a problem with your request i.e. you are missing parameters or exceeding the provisioned throughput of a table
46
How you ensure frequent custom metrics?
Enable high-resolution metrics; detailed monitoring is for EC2
47
How can you tell how much capacity a query has taken?
By setting the ReturnConsumedCapacity parameter to TOTAL
48
How can you configure CloudFront to force HTTPS?
By using a Viewer Protocol Policy
49
What services support deployment to Lambda?
CodeDeploy and CloudFormation but NOT Elastic Beanstalk