TD Exam 1 Flashcards
What are the four reasons to use CLoudHsm
- Have keys that are explicitly required to be protected in single-tenant HSM
- Keys that need to be stored in an HSM that is compliant with FIPS 140-2 Level 3
- Need ability to immediately remove key material from aws KMW and prove you have done so by independent means
- Requirement to be able to audit all use of keys independently of KMS and CloudTrail
What should you use if you need to comply to FIPS 140-2 Level3?
Use CloudHSM
What should you use if you need the ability to remove immediately key material from KMS
CloudHSM
What should you use if you need to be able to audit key usage independently from KMS and CloudTrail
CloudHSM
What should you do if you have an Amazon Aurora db for which the read replica struggles to keep up with increasing read traffic
Use Aurora Auto Scaling
What is the difference between Canary deployment and Blue/Green?
Canary starts with a small subset of nodes/servers while Blue/Green is half/half of env
Which is more complex with API Gateway: Canary deployment or Blue/Green
Blue/Green is more complex since you need to configure a new Environment. Canary is very simple to do with API Gateway
What are some services with which AWS WAF is tightly integrated?
Cloudfront, ALB, API Gateway, AWS AppSync
Where do AWS WAF rules run if you configured them for CloudFront
Edge location
What should you do if you have a large number of illegitimate requests from constantly changing IPs
Rate-based rule in AWS WAF
What should you use if you need a POSIX-compliant filesystem
EFS
Why would using many instances acccessing EBS be slow
Does not allow parallel access (or do up to provisioned capacity for aggregate)
What is a limitation of attaching an EBS volume to multiple EC2 instances
They have to be in the same AZ
What is best for file storage: EFS or S3
EFS, S3 is object storage
What are advantages of EFS
POSIX-Compliant
HA
Scalable
What should be a first choice when Schema Change is mentioned
DynamoDB
What is Amazon Redshift used for mostly
Online Analytical Processing (OLAP)
What is Amazon Redshift
A Cloud-based data warehouse service
What should you do to prevent accidental deletion of S3 objects
Enable versioning\Enable MFA Delete
When is Web Identity Federation used
To let users sign in using a well-known external idp
What can be used to allow devs to log into AWS with onprem AD
SAML 2.0 Federation by using Microsoft AD Federation Service
What is the default termination policy algorithm for an auto-scaling group
1) Pick AZ with most instances and at least one instance not protected from scaling. If multiple, pick the one with instances that use the oldest template
2) Pick unprotected instance with the oldest launch template
3) If many based on above criteria, pick the one closest to the next billing hour
4) If many based on above criteria, pick one at random
How can you protect Lambda/API Gateway based system from traffic surges
Enable throttling limits and result caching in API Gateway
What are the 2 levels you can set API Gateway throttling
Global and by service call
What are the 2 types of throttling you can set for API Gateway
Standard rates and burst
What is the response given by API Gateway if you go over the throttling limit
429
Can you set a cache for API Gateway
Yes
Which AWS DB service can fulfill a requirement of Recovery Point Objective of 1 second and a Recovery Time Objective of less than 1 minute in case of multi-region failure?
Aurora Global Databse
What is Recovery Point Objective
Maximum of data (in terms of time) loss that is acceptable in case of failure (so time since last backup)
What is Recovery Time Objective
The amount of time the system can be down
What is Amazon Aurora Global Database
It allows a single Aurora DB to span multiple AWS regions
What are some advantages of Aurora Global Database
- It replicates data with no impact of performance
- It enables fast local reads with low latency in each region
- It provides disaster recovery from region-wide outages
What is the latency of the storage-based replication in Aurora Global Database?
Less than one second
How long does it take to promote a read replica to read/write in Amazon Aurora Global Database?
Less than one minute
What is Amazon Quantum Ledger Database
A ledger database (not relational), fully-managed, transparent, immutable and cryptographically verifiable.
What is a difference between Multi-AZ RDS database with cross-region read replicas and Aurora Global Database
Multi-AZ is only applicable inside a single region
Also, no RPO of 1s and RTO of 1 min
Also cross-region RDS replication is less fast than Aurora
What is Amazon Timestream
A Serverless time series database service
What should you do to migrate Microsoft SharePoint server to have something HA and that can be integrated with AD for acess control and auth
Create file system using Amazon FSx for Windows File Server and join it to an AD domain in AWS
What protocol is used to access files from Amazon FSx for Windows File Server
Service Message Block (SMB)
What OS instances can access Amazon FSx
Windows, Linux and MaxOS
Can multiple devices access FSx concurrently
Yes, thousands
What are some characteristics of Amazon FSx Windows File Server
Fully managed
Highly reliable
Scalable
How can you change the config of AD for a FSx file system
You can’t, you have to create a new file system from a backup and change the AD config there.
What OS is supported by EFS
Linux only , not windows
What is NFS (Network File System) mostly used with
Linux systems
How do you secure an ElastiCache cluster with Redis to require other devs to enter a password before being able to enter Redis commands
Authenticate the users using Redis AUTH by creating a new Redis Cluster with both the –transit-encryption-enabled and –auth-token parameters enabled
How do you do synchronous data replication for RDS
RDS DB instance running as a Multi-AZ deployment
What is the difference between RDS Multi-AZ Deployment and Read Replicas in terms of replication
Multi-AZ: Synchronous - highly durable
Read Replica: Asynchronous replication - highly scalable
What is the difference between RDS Multi-AZ Deployment and Read Replicas in terms of which instance can be accessed
Multi-AZ: Only db engine on primary instance is active
Read Replica: All read replicas are accessible and can be used for read scaling
What is the difference between RDS Multi-AZ Deployment and Read Replicas in terms of backups
Multi-AZ: Automated backups are taken from standby
Read Replica: No backups configured by default
What is the difference between RDS Multi-AZ Deployment and Read Replicas in terms of AZ
Multi-AZ: Always spans 2 AZs within a single region
Read Replica: Can be within an AZ, cross-AZ or cross-region
What is the difference between RDS Multi-AZ Deployment and Read Replicas in terms of db upgrades
Multi-AZ: Db engine version upgrade happens on primary
Read Replica: Db engine version upgrade is independent from source instance
What is the difference between RDS Multi-AZ Deployment and Read Replicas in terms of failover
Multi-AZ: Automatic failover to standby when a problem is detectedy
Read Replica: Can be manually promoted to a standalone database instance
What is a NAT Gateway
HA, managed NAT service
What is a NAT Gateway used for
Is is created in a public subnet to enable instances in a private subnet to connect to the internet, but prevent the internet from initiating connections to them
What does Elastic Beanstalk provide
You upload it and then it automatically handles capacity provisioning, load balancing, scaling and application health monitoring
How can you use SFTP to upload files to S3
Use AWS Transfer for SFTP endpoint
What are the 2 types of actions you can define in S3 Lifecycle
Transition actions
Expiration actions
What can you do with EFS Lifecycle management
Transition files in and out of Infrequent Access tier
What is a characteristic of an API Gateway-generated SDK
If it gets 429 because of throttling, it will retry the call automatically
What can you do to get all compliance-related documents
Use AWS Artifact
Do you need special permissions to use AWS Artifact
Yes
What is Amazon Inspector used for
To detect vulnerabilities in AWS workloads.
What is AWS Security Hub
It provides you a comprehensive view of your high-priority security alerts and security posture across your AWS accounts
How do you secure access to RDS from an app running on EC2
Enable IAM DB Authentication
With what does IAM DB Authentication work in RDS
MySQL and PostgreSQL
What is the lifetime of an auth token for RDS
15 minutes
What are some benefits of IAM DB auth
Traffic encrypted with SSL
Can use IAM to centrally manage access
Can use profile credentials of EC2 instance instead of password
What are the metrics from EC2 not available by default to cloudWatch
Memory utilization
Disk swap utilisation
Disk space utilization
Page file utilization
Log collection
What metrics are available for EC2 by default in CLoudWatch
CPU Utilization
Network utilization
Disk performance
Disk Read/Write
What do you do to gain access to unavailable EC2 metrics in cloudwatch
Install a CloudWatch Agemt
Can you use a CloudWatch agent elsewhere than EC2
Yes, onprem servers
What OS are supported by CloudWatch agent
Windows and Linux
What is Enhanced Monitoring for
RDS