Practice Exam 2 Flashcards
What does the IntegrationLatency corresponds to in API Gateway?
The time between when API Gateway relays a request to the backend and when it receives a response from the backend
How do EB worker environments simplify the process of offloading long-running tasks from a web server?
It manages the SQS queue and run a daemon process on each instance that reads from que queue for you
What are the three things you need to specify when you create CloudWatch Alarms?
Period
Evaluation Period
Datapoints to Alarm
What does the Period represents when you create a CloudWatch alarm?
Length of time to evaluate the metric or expression to create each individual data point for an alarm
What does the Evaluation Period represents when you create a CloudWatch alarm?
Number of the most recent periods, or data points, to evaluate when determining alarm state
What does the Datapoints to Alarm represents when you create a CloudWatch alarm?
Number of data points within the evaluation period that must be breaching to cause the alarm to go to the ALARM state
Do the breaching datapoints have to be consecutive in the evalution period in order to cause the ALARM state?
No
What does the _X_AMZN_TRACE_ID environment variable contains?
The tracing header, which includes the sampling decision, trace ID, and parent segment ID
When should you choose Memcached over Redis for your caching solution?
You need the simplest model possible
You need to run large nodes with MULTIPLE CORES OR THREADS
You need to cache objects
Why does the put-bucket-policy does not help with limiting access to a certain object to only admins?
Because the put-bucket-policy command can only be used to apply policy at the bucket level, not on objects directly
What logs can you enable directly in an RDS DB?
Audit Log
Error Log
General Log
Slow Query Log
How to establish an end-to-end SSL connection between your origin and your end users when working with CloudFront?
Configure the Origin Protocol Policy
Configure the Viewer Protocol Policy
What must you do in order to allow only certain clients to invalidate the cache of an API on API Gateway on every request?
What must the client provide with its request?
Tick the โRequire Authorizationโ checkbox in the Cache Settings of your API via the console
The โCache-Control: max-age: 0โ header
What are the three task placement strategies in ECS?
binpack (place tasks based on the least available amount of CPU or memory)
random (place tasks randomly)
spread (place tasks evenly based on the specified value)
What are ad hoc requests?
They are requests that are created or done for a particular purpose as necessary
What are the two response types associated with HTTP 504 error in API Gateway?
INTEGRATION_FAILURE
INTEGRATION_TIMEOUT
What is the response type associated with requests that return HTTP 504 error from time to time (not always)
INTEGRATION_TIMEOUT
What are the two deployment types which allow you to shift traffic GRADUALLY to the new version of your application/function?
Canary
Linear
Are S3 buckets part of your VPC?
NO!!!
What can you do if you have an INTERNAL application running only in private subnet(s) and you need access to an S3 bucket?
Create a VPC endpoint for your S3 bucket
What will happen if you specify that you want your data to be SSE using kms (by passing the โx-amz-server-side-encryptionโ header) and you do NOT pass the โx-amz-server-side-encryption-aws-kms-key-idโ header containing the AWS KMS CMK?
The default managed AWS KMS CMK will be used
What is CloudWatch metric math used for?
Query multiple CloudWatch metrics or if you want to use math expressions to create new time series based on selected metrics
What is the Russian doll caching strategy?
This strategy configures your cache to have nested records which are managed with their own cache keys, and then the top-level resource is a collection of those cache keys
What are VPC flow logs?
A feature that enables you to capture information about the IP traffic going to and from network interfaces in your VPC
What is the Service scheduler in ECS?
A feature of ECS which provides you the ability to run tasks manually (for batch jobs or single run tasks)
What is the Container Agent included into?
Into the Amazon ECS-optimized AMIs
What are Container Instances?
Amazon EC2 instances that are running the Amazon ECS container agent and have been registered into a cluster
Why use Redis over Memcached for storing user session data?
Redis is more highly available