saa-c02-part-02 Flashcards
A company’s web application uses an Amazon RDS PostgreSQL DB instance to store its application data. During the financial closing period at the start of every month, Accountants run large queries that impact the database’s performance due to high usage. The company wants to minimize the impact that the reporting activity has on the web application.
What should a solutions architect do to reduce the impact on the database with the LEAST amount of effort?
- Create a read replica and direct reporting traffic to the replica.
- Create a Multi-AZ database and direct reporting traffic to the standby.
- Create a cross-Region read replica and direct reporting traffic to the replica.
- Create an Amazon Redshift database and direct reporting traffic to the Amazon Redshift database.
- Create a read replica and direct reporting traffic to the replica.
queries = performance = read replicas
LEAST amount of effort = read replica
A company wants to migrate a high performance computing (HPC) application and data from on-premises to the AWS Cloud. The company uses tiered storage on premises with hot high-performance parallel storage to support the application during periodic runs of the application, and more economical cold storage to hold the data when the application is not actively running.
Which combination of solutions should a solutions architect recommend to support the storage needs of the application? (Choose two.)
- Amazon S3 for cold data storage
- Amazon Elastic File System (Amazon EFS) for cold data storage
- Amazon S3 for high-performance parallel storage
- Amazon FSx for Lustre for high-performance parallel storage
- Amazon FSx for Windows for high-performance parallel storage
1 Amazon S3 for cold data storage
- Amazon FSx for Lustre for high-performance parallel storage
economical cold storage = S3
high-performance parallel storage = FSx for Lustre
high performance computing (HPC) = FSx for Lustre
A company’s application is running on Amazon EC2 instances in a single Region. In the event of a disaster, a solutions architect needs to ensure that the resources can also be deployed to a second Region.
Which combination of actions should the solutions architect take to accomplish this? (Choose two.)
- Detach a volume on an EC2 instance and copy it to Amazon S3.
- Launch a new EC2 instance from an Amazon Machine Image (AMI) in a new Region.
- Launch a new EC2 instance in a new Region and copy a volume from Amazon S3 to the new instance.
- Copy an Amazon Machine Image (AMI) of an EC2 instance and specify a different Region for the destination.
- Copy an Amazon Elastic Block Store (Amazon EBS) volume from Amazon S3 and launch an EC2 instance in the destination Region using that EBS volume.
- Launch a new EC2 instance from an Amazon Machine Image (AMI) in a new Region.
- Copy an Amazon Machine Image (AMI) of an EC2 instance and specify a different Region for the destination.
Launch a new EC2 instance from an Amazon Machine Image (AMI) in a new Region.
second region = AMI Copy
Copy an Amazon Elastic Block Store = not synchronized = not answer
A solutions architect needs to ensure that API calls to Amazon DynamoDB from Amazon EC2 instances in a VPC do not traverse the internet.
What should the solutions architect do to accomplish this? (Choose two.)
- Create a route table entry for the endpoint.
- Create a gateway endpoint for DynamoDB.
- Create a new DynamoDB table that uses the endpoint.
- Create an ENI for the endpoint in each of the subnets of the VPC.
- Create a security group entry in the default security group to provide access.
- Create a route table entry for the endpoint.
- Create a gateway endpoint for DynamoDB.
API calls to Amazon DynamoDB = endpoint + DynamoDB = Gateway endpoint
Gateway endpoint = target for a route in your route table
A company’s legacy application is currently relying on a single-instance Amazon RDS MySQL database without encryption. Due to new compliance requirements, all existing and new data in this database must be encrypted.
How should this be accomplished?
- Create an Amazon S3 bucket with server-side encryption enabled. Move all the data to Amazon S3. Delete the RDS instance.
- Enable RDS Multi-AZ mode with encryption at rest enabled. Perform a failover to the standby instance to delete the original instance.
- Take a Snapshot of the RDS instance. Create an encrypted copy of the snapshot. Restore the RDS instance from the encrypted snapshot.
- Create an RDS read replica with encryption at rest enabled. Promote the read replica to master and switch the application over to the new master. Delete the old RDS instance.
- Take a Snapshot of the RDS instance. Create an encrypted copy of the snapshot. Restore the RDS instance from the encrypted snapshot.
unencryptred to encrypted = start with snapshot
A manufacturing company wants to implement predictive maintenance on its machinery equipment. The company will install thousands of IoT sensors that will send data to AWS in real time. A solutions architect is tasked with implementing a solution that will receive events in an ordered manner for each machinery asset and ensure that data is saved for further processing at a later time.
Which solution would be MOST efficient?
- Use Amazon Kinesis Data Streams for real-time events with a partition for each equipment asset. Use Amazon Kinesis Data Firehose to save data to Amazon S3.
- Use Amazon Kinesis Data Streams for real-time events with a shard for each equipment asset. Use Amazon Kinesis Data Firehose to save data to Amazon Elastic Block Store (Amazon EBS).
- Use an Amazon SQS FIFO queue for real-time events with one queue for each equipment asset. Trigger an AWS Lambda function for the SQS queue to save data to Amazon Elastic File System (Amazon EFS).
- Use an Amazon SQS standard queue for real-time events with one queue for each equipment asset. Trigger an AWS Lambda function from the SQS queue to save data to Amazon S3.
1 Use Amazon Kinesis Data Streams for real-time events with a partition for each equipment asset. Use Amazon Kinesis Data Firehose to save data to Amazon S3.
real time = Kinesis
data is saved for further processing at a later time = S3
SQS = not real time
shard for each equipment asset = not efficient
https://docs.aws.amazon.com/iot/latest/developerguide/aws-iot-how-it-works.html
A company’s website runs on Amazon EC2 instances behind an Application Load Balancer (ALB). The website has a mix of dynamic and static content. Users around the globe are reporting that the website is slow.
Which set of actions will improve website performance for users worldwide?
- Create an Amazon CloudFront distribution and configure the ALB as an origin. Then update the Amazon Route 53 record to point to the CloudFront distribution.
- Create a latency-based Amazon Route 53 record for the ALB. Then launch new EC2 instances with larger instance sizes and register the instances with the ALB.
- Launch new EC2 instances hosting the same web application in different Regions closer to the users. Then register instances with the same ALB using cross-Region VPC peering.
- Host the website in an Amazon S3 bucket in the Regions closest to the users and delete the ALB and EC2 instances. Then update an Amazon Route 53 record to point to the S3 buckets.
- Create an Amazon CloudFront distribution and configure the ALB as an origin. Then update the Amazon Route 53 record to point to the CloudFront distribution.
around the globe + website slow = caching needed = CloudFront
A company has been storing analytics data in an Amazon RDS instance for the past few years. The company asked a solutions architect to find a solution that allows users to access this data using an API. The expectation is that the application will experience periods of inactivity but could receive bursts of traffic within seconds.
Which solution should the solutions architect suggest?
- Set up an Amazon API Gateway and use Amazon ECS.
- Set up an Amazon API Gateway and use AWS Elastic Beanstalk.
- Set up an Amazon API Gateway and use AWS Lambda functions.
- Set up an Amazon API Gateway and use Amazon EC2 with Auto Scaling.
- Set up an Amazon API Gateway and use AWS Lambda functions.
experience periods of inactivity but could receive bursts of traffic within seconds = unpredictable = lambda
RDS instance = any type of application or backend service = Lambda
access this data using an API = API Gateway
A company must generate sales reports at the beginning of every month. The reporting process launches 20 Amazon EC2 instances on the first of the month. The process runs for 7 days and cannot be interrupted. The company wants to minimize costs.
Which pricing model should the company choose?
- Reserved Instances
- Spot Block Instances
- On-Demand Instances
- Scheduled Reserved Instances
- On-Demand Instances
beginning of every month = reserve capacity = On-Demand Capacity Reservations
Scheduled Reserved Instances = dont exist anymore
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-scheduled-instances.html
A gaming company has multiple Amazon EC2 instances in a single Availability Zone for its multiplayer game that communicates with users on Layer 4. The chief technology officer (CTO) wants to make the architecture highly available and cost-effective.
What should a solutions architect do to meet these requirements? (Choose two.)
- Increase the number of EC2 instances.
- Decrease the number of EC2 instances.
- Configure a Network Load Balancer in front of the EC2 instances.
- Configure an Application Load Balancer in front of the EC2 instances.
- Configure an Auto Scaling group to add or remove instances in multiple Availability Zones automatically.
- Configure a Network Load Balancer in front of the EC2 instances.
- Configure an Auto Scaling group to add or remove instances in multiple Availability Zones automatically.
multiplayer game = high throughput needed = NLB
Layer 4 = NLB
highly available = Auto Scaling group + multiple Availability Zones
A company currently operates a web application backed by an Amazon RDS MySQL database. It has automated backups that are run daily and are not encrypted. A security audit requires future backups to be encrypted and the unencrypted backups to be destroyed. The company will make at least one encrypted backup before destroying the old backups.
What should be done to enable encryption for future backups?
- Enable default encryption for the Amazon S3 bucket where backups are stored.
- Modify the backup section of the database configuration to toggle the Enable encryption check box.
- Create a snapshot of the database. Copy it to an encrypted snapshot. Restore the database from the encrypted snapshot.
- Enable an encrypted read replica on RDS for MySQL. Promote the encrypted read replica to primary. Remove the original database instance.
- Create a snapshot of the database. Copy it to an encrypted snapshot. Restore the database from the encrypted snapshot.
unencrypted db to encrypted = snapshot first
A company is hosting a website behind multiple Application Load Balancers. The company has different distribution rights for its content around the world. A solutions architect needs to ensure that users are served the correct content without violating distribution rights.
Which configuration should the solutions architect choose to meet these requirements?
- Configure Amazon CloudFront with AWS WAF.
- Configure Application Load Balancers with AWS WAF.
- Configure Amazon Route 53 with a geolocation policy.
- Configure Amazon Route 53 with a geoproximity routing policy.
- Configure Amazon Route 53 with a geolocation policy
users are served the correct content by location = Route 53 with a geolocation policy
no performance or port restrictions mentioned so its not CloudFront
A solutions architect has created a new AWS account and must secure AWS account root user access.
Which combination of actions will accomplish this? (Choose two.)
- Ensure the root user uses a strong password.
- Enable multi-factor authentication to the root user.
- Store root user access keys in an encrypted Amazon S3 bucket.
- Add the root user to a group containing administrative permissions.
- Apply the required permissions to the root user with an inline policy document.
- Ensure the root user uses a strong password.
- Enable multi-factor authentication to the root user.
secure AWS account root user access = multi-factor authentication
https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html
A solutions architect at an ecommerce company wants to back up application log data to Amazon S3. The solutions architect is unsure how frequently the logs will be accessed or which logs will be accessed the most. The company wants to keep costs as low as possible by using the appropriate S3 storage class.
Which S3 storage class should be implemented to meet these requirements?
- S3 Glacier
- S3 Intelligent-Tiering
- S3 Standard-Infrequent Access (S3 Standard-IA)
- S3 One Zone-Infrequent Access (S3 One Zone-IA)
- S3 Intelligent-Tiering
unsure = unpredictable = intelligent-tiering
A company’s website is used to sell products to the public. The site runs on Amazon EC2 instances in an Auto Scaling group behind an Application Load Balancer (ALB). There is also an Amazon CloudFront distribution, and AWS WAF is being used to protect against SQL injection attacks. The ALB is the origin for the CloudFront distribution. A recent review of security logs revealed an external malicious IP that needs to be blocked from accessing the website.
What should a solutions architect do to protect the application?
- Modify the network ACL on the CloudFront distribution to add a deny rule for the malicious IP address.
- Modify the configuration of AWS WAF to add an IP match condition to block the malicious IP address.
- Modify the network ACL for the EC2 instances in the target groups behind the ALB to deny the malicious IP address.
- Modify the security groups for the EC2 instances in the target groups behind the ALB to deny the malicious IP address.
- Modify the configuration of AWS WAF to add an IP match condition to block the malicious IP address.
IP that needs to be blocked = WAF IP match condition