AWS Dev Practice Flashcards
What are the beanstalk deployment types?
All at once Rolling Rolling with additional batch immutable (blue/green) traffic splitting
EC2 instances in an ASG have only basic monitoring enabled. Why?
The console was used to create the launch configuration
Kinesis data streams give a ‘ProvisionedThroughputException’ error. How do we fix it?
Configure data producer to retry w/ exponential backoff
Increase shards
Which db engines can use IAM db authentication?
RDS MySQL
RDS PostGreSQL
How do you retrieve only some DynamoDB items and not all?
use ProjectionExpression
What AWS service uses the appspec.yaml file?
Code Deploy
What does the ‘Transform’ section indicate in a CloudFormation template?
It is a SAM template
What type of RI can you use in addition to a savings plan?
Zonal RI’s
What service can NOT be used to authenticate w/ API gateway?
AWS STS
What DynamoDB write option should you use to ensure you don’t overwrite primary key values?
Conditional writes
What service gives temporary, limited-privilege credentials to AWS services using 3rd party idP’s?
Cognito Identity pools
What are Kinesis Firehose destinations?
S3 Redshift Elasticsearch Splunk Custom HTTP Endpoint
How do you make ‘all or nothing’ updates to DynamoDB?
use transactional read/write API’s
Can you move an EBS volume between AZ’s?
No
What is the limit of stored messages in SQS?
no limit - only ‘in flight’ messages have a limit (120K)
What credential type is NOT supported by IAM for CodeCommit?
IAM username and password
What are 2 services that can be used to deploy SSL certs?
IAM
Certificate Manager
What RI type allows you to change the instance family?
Convertible RI
JWT authorizer is used by what?
HTTP API
Can ECS or Lambda use in-place deployments with CodeBuild?
No, Blue-green only
What are DynamoDB streams?
Info about changes to items in a DynamoDB table
They can be used by other services to perform actions
Websocket API’s allow what?
Bi-directional communications
What service helps identify unused IAM roles & remove them without disrupting service?
Access Advisor
What are 2 ways to authenticate with Cognito User Pools?
To the user pool directly
Federated authentication using social identities to the user pool
What is the max message size for SQS?
256KB
What is the max data size of KMS?
4KB
What is application discovery service?
collects usage and config data about on-prem servers
What API types can use Cognito?
REST
Websocket
DynamoDB tables have high latency, how do you fix it?
Use Global tables
Use eventually consistent reads
What API call will extend the length of time an SQS job will process?
ChangeMessageVisibility
If you have a web app on EC2 with a DynamoDB table, how can you make an API call from instances if no SDK exists?
Sign requests with access keys and Sig V4
Make HTTP POST request to DynamoDB API
Include the JSON document in the request body
What is SWF?
Task oriented API’s
Ensures task assigned only once
What is SQS?
Message based API’s
Messages can be delivered more than once
EC2 auto scaling works with what kind of load balancer?
ALB
NLB
What is required for code to be executed in a Lambda function?
Lambda function handler
Your ALB is down or misconfigured, what error code doe you get?
503 error
What key requires the root user?
CloudFront key pair
How do you limit access to an API to users in a Cognito User Pool?
Assign an authorizer.
Assign the authorizer to the API
What feature of a load balancer will let you analyze incoming requests for latency & client IP patterns?
ALB access logs
How do you reduce load on web servers with high CPU?
Put the certificate on the ALB
Put a listener on the ALB with SSL termination
What are the SAM references?
API Application Function HTTPAPI LayerVersion SimpleTable StateMachine
If multiple apps write to the same DynamoDB table and you want to send changes to an API what do you do?
Send changes to Kinesis data streams
Use Lambda to process changes and call an HTTP API
What policy types limit permissions but don’t grant them?
Permissions boundary
AWS Organization SCP
What can you change with standard RI’s?
Instance size
Network types
AZ
How do you minimize impact of a full DynamoDB table scan?
parallel scans
limit parameter
What is an immutable deployment for Beanstalk?
Like blue-green. New servers spun up in a new ASG
What are 3 options allow users to have secure access to private files in S3?
CloudFront signed URL’s
CloudFront Signed cookies
CloudFront OAI
What do you do with a Lambda function who uses libraries that aren’t available at runtime?
zip up code and dependencies
To implement Lambda with Step Functions what do you setup?
define step function tasks
state machine
How do you migrate a Beanstalk environment from one account to another?
Save configuration Export configuration Make environment updates Upload to S3 Create new app from saved config
How do you define an OS, programming language and tools needed when using CodeBuild?
specify a docker image in the buildspec.yml file
What does DynamoDB rate limit do?
Limits the throughput so you don’t use it all
What is the only resource based policy that IAM supports?
trust policy
How would you design an app that uses Lambda to process HTTP requests?
create an API
Configure proxy integration with Lambda
To encrypt data at rest in S3 while managing the keys, what do you do?
Upload the key when uploading to the object to S3
What are API mapping templates?
They map data in API’s so you can have multiple versions
What is Kinesis data streams?
data streaming service
not auto scaling
can replay data
needs to be configured
What is API call used to obtain temp credentials when using Web Identity Federation?
AssumeRoelWithWebIdentity