aws Flashcards
(123 cards)
Whats the most efficient way to setup a DB that is repeatedly cloned?
Setup an Aurora Cluster with multi AZ replicas. Then use aurora cloning.
How do you encrypt inflight data coming from/to a DB?
Import the RDS root CA cert. Import the Cert to your servers. Then setup your app to use SSL to encrypt connections to DB. Then force all connections to use SSL.
Whats the most efficient way to implement disaster recovery for an on-premises DB?
use elastic disaster recovery service (DRS) to replicate the changes of the on-premises app to AWS.
What service would you use to create an SMS service that is interactive?
Pinpoint journey
How do you reduce the number of IP addresses a client needs to whitelist?
Global accelerator allows you to create 2 endpoint groups as an entry point into you applications. Then you can use load balancers to distribute traffic.
Which is multithreaded memcached or redis?
memcached
what is memcached auto discovery?
allows you app to connect to one node which then retrieves the rest of the nodes which then allows the application to connect to the most appropriate node.
What is Redis global datastore
Allows writing to 1 cluster and reading from two cross-region replica clusters.
How would you allow company division but allow 1 entity to enforce IT governance and cost oversight of those divisions?
Use consolidated billing by creating an AWS org and link the accounts to a parent acount. then enable IAM cross-account access for all corperate IT admins in each child account.
How do you allow and IAM user to make API calls?
create a set of access keys for the user and attach the necessary permissions.
Why would you get an insufficient capacity error when attempting to add instances to an already running cluster placement group? How could you still add instances?
There is no more room on the hardware to fit more instances. Stop and start the cluster placement group.
How would you create a conversational bot?
Amazon Lex
Whats the easiest way to allow a lambda function to be called by a third party?
generate a lambda function URL and use it as a webhook for third parties.
how can you allow yourself to be notified when your certificates are going to expire?
create an eventbridge rule to check if certificates are set to expire. then send a notification though SNS.
When does amazon certificate manager (ACM) start sending expiration events?
45 days prior to expiration.
how can you know if a certificate is about to expire?
ACM sends events that can be listed for. You can also check the daystoexpiry metric on the cert.
how would you migrate a 3 tier containerized application into AWS so that it has high availability?
Move static assets and web pages to S3. host the app on ECS with auto scaling. The migrate the DB to RDS with multi-AZ deployment.
How do you allow cross region replication of an S3 bucket?
- enable versioning on source and destination bucket.
- Source bucket must have the permissions to create objects in the destination bucket.
how do you allow an instance to establish connections to the internet using IPv4 but disallow connections to the instance?
NAT gateway/ instance
If you suspect servers are slow due to not being able to handle traffic how would you verify?
use Computer Optimizer to see recommendations for the optimal size of computer-related resources.
whats cheaper storing images along keys in a DB or storing locations of images in a DB then storing images in S3?
storing images in S3.
How do you manager and monitor your containers in AWS.
Create a workspace on AWS manage Service for prometheous to collect container metrics. Set this workspace as the data source in AWS managed grafana for monitoring and data visualization.
Whats the most cost efficient way to to run a critical work load along with non critical work on a EMR cluster?
implement a transient EMR cluster with the primary and core nodes on on-demand instances and task nodes on spot instances.
what order are instances terminated during auto-scaling?
in the availability zone with most instances. Then instances with the oldest launch template. then instances that are closest to the next billing hour.