saa-c02-part-03 Flashcards
A financial services company has a web application that serves users in the United States and Europe. The application consists of a database tier and a web server tier. The database tier consists of a MySQL database hosted in us-east-1. Amazon Route 53 geoproximity routing is used to direct traffic to instances in the closest Region. A performance review of the system reveals that European users are not receiving the same level of query performance as those in the United States.
Which changes should be made to the database tier to improve performance?
- Migrate the database to Amazon RDS for MySQL. Configure Multi-AZ in one of the European Regions.
- Migrate the database to Amazon DynamoDB. Use DynamoDB global tables to enable replication to additional Regions.
- Deploy MySQL instances in each Region. Deploy an Application Load Balancer in front of MySQL to reduce the load on the primary instance.
- Migrate the database to an Amazon Aurora global database in MySQL compatibility mode. Configure read replicas in one of the European Regions.
- Migrate the database to an Amazon Aurora global database in MySQL compatibility mode. Configure read replicas in one of the European Regions.
performance / query performance = read replicas
A company hosts a static website on-premises and wants to migrate the website to AWS. The website should load as quickly as possible for users around the world. The company also wants the most cost-effective solution.
What should a solutions architect do to accomplish this?
- Copy the website content to an Amazon S3 bucket. Configure the bucket to serve static webpage content. Replicate the S3 bucket to multiple AWS Regions.
- Copy the website content to an Amazon S3 bucket. Configure the bucket to serve static webpage content. Configure Amazon CloudFront with the S3 bucket as the origin.
- Copy the website content to an Amazon EBS-backed Amazon EC2 instance running Apache HTTP Server. Configure Amazon Route 53 geolocation routing policies to select the closest origin.
- Copy the website content to multiple Amazon EBS-backed Amazon EC2 instances running Apache HTTP Server in multiple AWS Regions. Configure Amazon CloudFront geolocation routing policies to select the closest origin.
- Copy the website content to an Amazon S3 bucket. Configure the bucket to serve static webpage content. Configure Amazon CloudFront with the S3 bucket as the origin.
static website = S3
users around the world = CloudFront + origin
A solutions architect is designing storage for a high performance computing (HPC) environment based on Amazon Linux. The workload stores and processes a large amount of engineering drawings that require shared storage and heavy computing.
Which storage option would be the optimal solution?
- Amazon Elastic File System (Amazon EFS)
- Amazon FSx for Lustre
- Amazon EC2 instance store
- Amazon Elastic Block Store (Amazon EBS) Provisioned IOPS SSD (io1)
- Amazon FSx for Lustre
HPC + Linux = FSx for Lustre
Lustre = Linux and cluster
FSx supports 4 file systems, but Windows File Server and Lustre are most common
A company is performing an AWS Well-Architected Framework review of an existing workload deployed on AWS. The review identified a public-facing website running on the same Amazon EC2 instance as a Microsoft Active Directory domain controller that was install recently to support other AWS services. A solutions architect needs to recommend a new design that would improve the security of the architecture and minimize the administrative demand on IT staff.
What should the solutions architect recommend?
- Use AWS Directory Service to create a managed Active Directory. Uninstall Active Directory on the current EC2 instance.
- Create another EC2 instance in the same subnet and reinstall Active Directory on it. Uninstall Active Directory.
- Use AWS Directory Service to create an Active Directory connector. Proxy Active Directory requests to the Active domain controller running on the current EC2 instance.
- Enable AWS Single Sign-On (AWS SSO) with Security Assertion Markup Language (SAML) 2.0 federation with the current Active Directory controller. Modify the EC2 instance’s security group to deny public access to Active Directory.
- Use AWS Directory Service to create a managed Active Directory. Uninstall Active Directory on the current EC2 instance.
Look for duplicate answer keywords: AWS Directory Service shows up twice.
Answer 1 is more secure than keeping AD running on same instance.
A company hosts a static website within an Amazon S3 bucket. A solutions architect needs to ensure that data can be recovered in case of accidental deletion.
Which action will accomplish this?
- Enable Amazon S3 versioning.
- Enable Amazon S3 Intelligent-Tiering.
- Enable an Amazon S3 lifecycle policy.
- Enable Amazon S3 cross-Region replication.
- Enable Amazon S3 versioning.
S3 data recovery = S3 versioning
A company’s production application runs online transaction processing (OLTP) transactions on an Amazon RDS MySQL DB instance. The company is launching a new reporting tool that will access the same data. The reporting tool must be highly available and not impact the performance of the production application.
How can this be achieved?
- Create hourly snapshots of the production RDS DB instance.
- Create a Multi-AZ RDS Read Replica of the production RDS DB instance.
- Create multiple RDS Read Replicas of the production RDS DB instance. Place the Read Replicas in an Auto Scaling group.
- Create a Single-AZ RDS Read Replica of the production RDS DB instance. Create a second Single-AZ RDS Read Replica from the replica.
- Create a Multi-AZ RDS Read Replica of the production RDS DB instance.
reporting = queries = read replicas
highly available = multi AZ
A company runs an application in a branch office within a small data closet with no virtualized compute resources. The application data is stored on an NFS volume. Compliance standards require a daily offsite backup of the NFS volume.
Which solution meets these requirements?
- Install an AWS Storage Gateway file gateway on premises to replicate the data to Amazon S3.
- Install an AWS Storage Gateway file gateway hardware appliance on premises to replicate the data to Amazon S3.
- Install an AWS Storage Gateway volume gateway with stored volumes on premises to replicate the data to Amazon S3.
- Install an AWS Storage Gateway volume gateway with cached volumes on premises to replicate the data to Amazon S3.
- Install an AWS Storage Gateway file gateway hardware appliance on premises to replicate the data to Amazon S3.
no virtualized compute resources = storage gateway hardware appliance
https://aws.amazon.com/blogs/aws/new-aws-storage-gateway-hardware-appliance/ https://aws.amazon.com/storagegateway/file/
A company’s web application is using multiple Linux Amazon EC2 instances and storing data on Amazon Elastic Block Store (Amazon EBS) volumes. The company is looking for a solution to increase the resiliency of the application in case of a failure and to provide storage that complies with atomicity, consistency, isolation, and durability (ACID).
What should a solutions architect do to meet these requirements?
- Launch the application on EC2 instances in each Availability Zone. Attach EBS volumes to each EC2 instance.
- Create an Application Load Balancer with Auto Scaling groups across multiple Availability Zones. Mount an instance store on each EC2 instance.
- Create an Application Load Balancer with Auto Scaling groups across multiple Availability Zones. Store data on Amazon Elastic File System (Amazon EFS) and mount a target on each instance.
- Create an Application Load Balancer with Auto Scaling groups across multiple Availability Zones. Store data using Amazon S3 One Zone-Infrequent Access (S3 One Zone-IA).
- Create an Application Load Balancer with Auto Scaling groups across multiple Availability Zones. Store data on Amazon Elastic File System (Amazon EFS) and mount a target on each instance.
Look for multiple answers: ALB with ASG in multiple AZ is common.
EBS = 1 AZ (what we start with is not HA)
EFS = HA + DR + multi AZ
A security team to limit access to specific services or actions in all of the team’s AWS accounts. All accounts belong to a large organization in AWS Organizations. The solution must be scalable and there must be a single point where permissions can be maintained.
What should a solutions architect do to accomplish this?
- Create an ACL to provide access to the services or actions.
- Create a security group to allow accounts and attach it to user groups.
- Create cross-account roles in each account to deny access to the services or actions.
- Create a service control policy in the root organizational unit to deny access to the services or actions.
- Create a service control policy in the root organizational unit to deny access to the services or actions.
Organizations + single point = root parent applies policies to all children
AWS Organizations automatically creates a root
A data science team requires storage for nightly log processing. The size and number of logs is unknown and will persist for 24 hours only.
What is the MOST cost-effective solution?
- Amazon S3 Glacier
- Amazon S3 Standard
- Amazon S3 Intelligent-Tiering
- Amazon S3 One Zone-Infrequent Access (S3 One Zone-IA)
- Amazon S3 Intelligent-Tiering
unknown = Intelligent-Tiering
24 hours = looking for services that have no min duration of 30 days = Intelligent-Tiering or Standard
cost-effective = Intelligent-Tiering
S3 Intelligent-Tiering is the only cloud storage class that delivers automatic storage cost savings when data access patterns change, without performance impact or operational overhead.
https://aws.amazon.com/about-aws/whats-new/2021/09/amazon-s3-intelligent-tiering-automates-storage-savings/
A company is hosting a web application on AWS using a single Amazon EC2 instance that stores user-uploaded documents in an Amazon Elastic Block Store (Amazon EBS) volume. For better scalability and availability, the company duplicated the architecture and created a second EC2 instance and EBS volume in another Availability Zone, placing both behind an Application Load Balancer. After completing this change, users reported that each time they refreshed the website, they could see one subset of their documents or the other, but never all of the documents at the same time.
What should a solutions architect propose to ensure users see all of their documents at once?
- Copy the data so both EBS volumes contain all the documents.
- Configure the Application Load Balancer to direct a user to the server with the documents.
- Copy the data from both EBS volumes to Amazon Elastic File System (Amazon EFS). Modify the application to save new documents to Amazon Elastic File System (Amazon EFS).
- Configure the Application Load Balancer to send the request to both servers. Return each document from the correct server.
- Copy the data from both EBS volumes to Amazon Elastic File System (Amazon EFS). Modify the application to save new documents to Amazon Elastic File System (Amazon EFS).
EBS = 1 AZ (started with no multi AZ support)
another Availability Zone = EFS = HA multi AZ (only 3 has EFS)
A company is planning to use Amazon S3 to store images uploaded by its users. The images must be encrypted at rest in Amazon S3. The company does not want to spend time managing and rotating the keys, but it does want to control who can access those keys.
What should a solutions architect use to accomplish this?
- Server-Side Encryption with keys stored in an S3 bucket
- Server-Side Encryption with Customer-Provided Keys (SSE-C)
- Server-Side Encryption with Amazon S3-Managed Keys (SSE-S3)
- Server-Side Encryption with AWS KMS-Managed Keys (SSE-KMS)
- Server-Side Encryption with AWS KMS-Managed Keys (SSE-KMS)
not want to spend time managing and rotating the keys = managed data key = SSE
does want to control who can access those keys = KMS
SSE-S3: AWS manages both data key and master key
SSE-KMS: AWS manages data key and you manage master key
SSE-C: You manage both data key and master key
A company is running an ecommerce application on Amazon EC2. The application consists of a stateless web tier that requires a minimum of 10 instances, and a peak of 250 instances to support the application’s usage. The application requires 50 instances 80% of the time.
Which solution should be used to minimize costs?
- Purchase Reserved Instances to cover 250 instances.
- Purchase Reserved Instances to cover 80 instances. Use Spot Instances to cover the remaining instances.
- Purchase On-Demand Instances to cover 40 instances. Use Spot Instances to cover the remaining instances.
- Purchase Reserved Instances to cover 50 instances. Use On-Demand and Spot Instances to cover the remaining instances.
- Purchase Reserved Instances to cover 50 instances. Use On-Demand and Spot Instances to cover the remaining instances.
Reserved Instances to cover 50 instances = discounted hourly rate = minimize costs
A company has deployed an API in a VPC behind an internet-facing Application Load Balancer (ALB). An application that consumes the API as a client is deployed in a second account in private subnets behind a NAT gateway. When requests to the client application increase, the NAT gateway costs are higher than expected. A solutions architect has configured the ALB to be internal.
Which combination of architectural changes will reduce the NAT gateway costs? (Choose two.)
- Configure a VPC peering connection between the two VPCs. Access the API using the private address.
- Configure an AWS Direct Connect connection between the two VPCs. Access the API using the private address.
- Configure a ClassicLink connection for the API into the client VPC. Access the API using the ClassicLink address.
- Configure a PrivateLink connection for the API into the client VPC. Access the API using the PrivateLink address.
- Configure an AWS Resource Access Manager connection between the two accounts. Access the API using the private address.
- Configure a VPC peering connection between the two VPCs. Access the API using the private address.
- Configure a PrivateLink connection for the API into the client VPC. Access the API using the PrivateLink address.
shared API = not RAM
API in a VPC = VPC peering or PrivateLink
https://docs.aws.amazon.com/vpc/latest/userguide/vpc-peer-region-example.html
https://aws.amazon.com/about-aws/whats-new/2018/10/aws-privatelink-now-supports-access-over-inter-region-vpc-peering/
A solutions architect is tasked with transferring 750 TB of data from an on-premises network-attached file system located at a branch office Amazon S3 Glacier. The migration must not saturate the on-premises 1 Mbps internet connection.
Which solution will meet these requirements?
- Create an AWS site-to-site VPN tunnel to an Amazon S3 bucket and transfer the files directly. Transfer the files directly by using the AWS CLI.
- Order 10 AWS Snowball Edge Storage Optimized devices, and select an S3 Glacier vault as the destination.
- Mount the network-attached file system to an S3 bucket, and copy the files directly. Create a lifecycle policy to transition the S3 objects to Amazon S3 Glacier.
- Order 10 AWS Snowball Edge Storage Optimized devices, and select an Amazon S3 bucket as the destination. Create a lifecycle policy to transition the S3 objects to Amazon S3 Glacier.
- Order 10 AWS Snowball Edge Storage Optimized devices, and select an S3 Glacier vault as the destination.
80TB per snowball + cheaper than snowmobile