saa-c02-part-07 Flashcards
A company running an on-premises application is migrating the application to AWS to increase its elasticity and availability. The current architecture uses a Microsoft SQL Server database with heavy read activity. The company wants to explore alternate database options and migrate database engines, if needed. Every 4 hours, the development team does a full copy of the production database to populate a test database. During this period, users experience latency.
What should a solutions architect recommend as replacement database?
- Use Amazon Aurora with Multi-AZ Aurora Replicas and restore from mysqldump for the test database.
- Use Amazon Aurora with Multi-AZ Aurora Replicas and restore snapshots from Amazon RDS for the test database.
- Use Amazon RDS for MySQL with a Multi-AZ deployment and read replicas, and use the standby instance for the test database.
- Use Amazon RDS for SQL Server with a Multi-AZ deployment and read replicas, and restore snapshots from RDS for the test database.
- Use Amazon RDS for SQL Server with a Multi-AZ deployment and read replicas, and restore snapshots from RDS for the test database.
SQL Server only migrates to SQL Server, too much work otherwise
Aurora supports only MySQL and PostgreSQL
A company has enabled AWS CloudTrail logs to deliver log files to an Amazon S3 bucket for each of its developer accounts. The company has created a central AWS account for streamlining management and audit reviews. An internal auditor needs to access the CloudTrail logs, yet access needs to be restricted for all developer account users. The solution must be secure and optimized.
How should a solutions architect meet these requirements?
- Configure an AWS Lambda function in each developer account to copy the log files to the central account. Create an IAM role in the central account for the auditor. Attach an IAM policy providing read-only permissions to the bucket.
- Configure CloudTrail from each developer account to deliver the log files to an S3 bucket in the central account. Create an IAM user in the central account for the auditor. Attach an IAM policy providing full permissions to the bucket.
- Configure CloudTrail from each developer account to deliver the log files to an S3 bucket in the central account. Create an IAM role in the central account for the auditor. Attach an IAM policy providing read-only permissions to the bucket.
- Configure an AWS Lambda function in the central account to copy the log files from the S3 bucket in each developer account. Create an IAM user in the central account for the auditor. Attach an IAM policy providing full permissions to the bucket.
- Configure CloudTrail from each developer account to deliver the log files to an S3 bucket in the central account. Create an IAM role in the central account for the auditor. Attach an IAM policy providing read-only permissions to the bucket.
Anything with permissions look for answer with “role”
optimized = dont create duplicate logs = 1 S3 bucket = 3
2 = full permissions = wrong
A company has several business systems that require access to data stored in a file share. The business systems will access the file share using the Server Message Block (SMB) protocol. The file share solution should be accessible from both of the company’s legacy on-premises environments and with AWS.
Which services meet the business requirements? (Choose two.)
- Amazon Elastic Block Store (Amazon EBS)
- Amazon Elastic File System (Amazon EFS)
- Amazon FSx for Windows
- Amazon S3
- AWS Storage Gateway file gateway
- Amazon FSx for WindowsAmazon S3
- AWS Storage Gateway file gateway
SMB = FSx for Windows
on-premises = Storage Gateway
A company is using Amazon EC2 to run its big data analytics workloads. These variable workloads run each night, and it is critical they finish by the start of business the following day. A solutions architect has been tasked with designing the MOST cost-effective solution.
Which solution will accomplish this?
- Spot Fleet
- Spot Instances
- Reserved Instances
- On-Demand Instances
- Spot Fleet
Spot Fleet = Spot Fleet is a collection, or fleet, of Spot Instances that will recover if terminated
Spot Fleet = target capacity
Spot Fleet = cost-effective
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet.html
A company has a Microsoft Windows-based application that must be migrated to AWS. This application requires the use of a shared Windows file system attached to multiple Amazon EC2 Windows instances.
What should a solutions architect do to accomplish this?
- Configure a volume using Amazon Elastic File System (Amazon EFS). Mount the EFS volume to each Windows instance.
- Configure AWS Storage Gateway in Volume Gateway mode. Mount the volume to each Windows instance.
- Configure Amazon FSx for Windows File Server. Mount the Amazon FSx volume to each Windows instance.
- Configure an Amazon Elastic Block Store (Amazon EBS) volume with the required size. Attach each EC2 instance to the volume. Mount the file system within the volume to each Windows instance.
- Configure Amazon FSx for Windows File Server. Mount the Amazon FSx volume to each Windows instance.
Windows file system = FSx
A company has created an isolated backup of its environment in another Region. The application is running in warm standby mode and is fronted by an Application Load Balancer (ALB). The current failover process is manual and requires updating a DNS alias record to point to the secondary ALB in another Region.
What should a solutions architect do to automate the failover process?
- Enable an ALB health check
- Enable an Amazon Route 53 health check.
- Crate an CNAME record on Amazon Route 53 pointing to the ALB endpoint.
- Create conditional forwarding rules on Amazon Route 53 pointing to an internal BIND DNS server.
- Enable an Amazon Route 53 health check.
automate the failover process = health check
another Region = Route 53 needed
A company has a mobile chat application with a data store based in Amazon DynamoDB. Users would like new messages to be read with as little latency as possible. A solutions architect needs to design an optimal solution that requires minimal application changes.
Which method should the solutions architect select?
- Configure Amazon DynamoDB Accelerator (DAX) for the new messages table. Update the code to use the DAX endpoint.
- Add DynamoDB read replicas to handle the increased read load. Update the application to point to the read endpoint for the read replicas.
- Double the number of read capacity units for the new messages table in DynamoDB. Continue to use the existing DynamoDB endpoint.
- Add an Amazon ElastiCache for Redis cache to the application stack. Update the application to point to the Redis cache endpoint instead of DynamoDB.
- Configure Amazon DynamoDB Accelerator (DAX) for the new messages table. Update the code to use the DAX endpoint.
Reduce latency + DynamoDB = DAX
A company is creating an architecture for a mobile app that requires minimal latency for its users. The company’s architecture consists of Amazon EC2 instances behind an Application Load Balancer running in an Auto Scaling group. The EC2 instances connect to Amazon RDS. Application beta testing showed there was a slowdown when reading the data. However, the metrics indicate that the EC2 instances do not cross any CPU utilization thresholds.
How can this issue be addressed?
- Reduce the threshold for CPU utilization in the Auto Scaling group.
- Replace the Application Load Balancer with a Network Load Balancer.
- Add read replicas for the RDS instances and direct read traffic to the replica.
- Add Multi-AZ support to the RDS instances and direct read traffic to the new EC2 instance.
- Add read replicas for the RDS instances and direct read traffic to the replica.
reading the data = read replicas
A company has implemented one of its microservices on AWS Lambda that accesses an Amazon DynamoDB table named Books. A solutions architect is designing an IAM policy to be attached to the Lambda function’s IAM role, giving it access to put, update, and delete items in the Books table. The IAM policy must prevent function from performing any other actions on the Books table or any other
Which IAM policy would fulfill these needs and provide the LEAST privileged access?
table named Books = answer with table/Books in policy
put, update, and delete = answer with put+update+delete in policy
A company hosts its website on Amazon S3. The website serves petabytes of outbound traffic monthly, which accounts for most of the company’s AWS costs.
What should a solutions architect do to reduce costs?
- Configure Amazon CloudFront with the existing website as the origin.
- Move the website to Amazon EC2 with Amazon Elastic Block Store (Amazon EBS) volumes for storage.
- Use AWS Global Accelerator and specify the existing website as the endpoint.
- Rearchitect the website to run on a combination of Amazon API Gateway and AWS Lambda.
- Configure Amazon CloudFront with the existing website as the origin.
reduce costs + S3 = edge caching = CloudFront
A company runs a website on Amazon EC2 instances behind an ELB Application Load Balancer. Amazon Route 53 is used for the DNS. The company wants to set up a backup website with a message including a phone number and email address that users can reach if the primary website is down.
How should the company deploy this solution?
- Use Amazon S3 website hosting for the backup website and Route 53 failover routing policy.
- Use Amazon S3 website hosting for the backup website and Route 53 latency routing policy.
- Deploy the application in another AWS Region and use ELB health checks for failover routing.
- Deploy the application in another AWS Region and use server-side redirection on the primary website.
- Use Amazon S3 website hosting for the backup website and Route 53 failover routing policy.
backup + primary website is down = failover routing policy
message including a phone number and email address = static information = S3
A media company is evaluating the possibility of moving its systems to the AWS Cloud. The company needs at least 10 TB of storage with the maximum possible I/O performance for video processing, 300 TB of very durable storage for storing media content, and 900 TB of storage to meet requirements for archival media that is not in use anymore.
Which set of services should a solutions architect recommend to meet these requirements?
- Amazon Elastic Block Store (Amazon EBS) for maximum performance, Amazon S3 for durable data storage, and Amazon S3 Glacier for archival storage
- Amazon Elastic Block Store (Amazon EBS) for maximum performance, Amazon Elastic File System (Amazon EFS) for durable data storage, and Amazon S3 Glacier for archival storage
- Amazon EC2 instance store for maximum performance, Amazon Elastic File System (Amazon EFS) for durable data storage, and Amazon S3 for archival storage
- Amazon EC2 instance store for maximum performance, Amazon S3 for durable data storage, and Amazon S3 Glacier for archival storage
- Amazon EC2 instance store for maximum performance, Amazon Elastic File System (Amazon EFS) for durable data storage, and Amazon S3 for archival storage
instance store =maximum performance
archival media = S3 Glacier
durable = Amazon EFS is designed to provide 99.999999999% (11 9’s) of durability over a given year
https://aws.amazon.com/efs/faq/
A company uses Amazon S3 as its object storage solution. The company has thousands of S3 buckets it uses to store data. Some of the S3 buckets have data that is accessed less frequently than others. A solutions architect found that lifecycle policies are not consistently implemented or are implemented partially, resulting in data being stored in high-cost storage.
Which solution will lower costs without compromising the availability of objects?
- Use S3 ACLs.
- Use Amazon Elastic Block Store (Amazon EBS) automated snapshots.
- Use S3 Intelligent-Tiering storage.
- Use S3 One Zone-Infrequent Access (S3 One Zone-IA).
- Use S3 Intelligent-Tiering storage.
not consistently = Intelligent-Tiering
An application is running on Amazon EC2 instances. Sensitive information required for the application is stored in an Amazon S3 bucket. The bucket needs to be protected from internet access while only allowing services within the VPC access to the bucket.
Which combination of actions should solutions archived take to accomplish this? (Choose two.)
- Create a VPC endpoint for Amazon S3.
- Enable server access logging on the bucket.
- Apply a bucket policy to restrict access to the S3 endpoint.
- Add an S3 ACL to the bucket that has sensitive information.
- Restrict users using the IAM policy to use the specific bucket.
- Create a VPC endpoint for Amazon S3.
- Apply a bucket policy to restrict access to the S3 endpoint.
S3 + allowing services within the VPC = endpoint
A web application runs on Amazon EC2 instances behind an Application Load Balancer. The application allows users to create custom reports of historical weather data. Generating a report can take up to 5 minutes. These long-running requests use many of the available incoming connections, making the system unresponsive to other users.
How can a solutions architect make the system more responsive?
- Use Amazon SQS with AWS Lambda to generate reports.
- Increase the idle timeout on the Application Load Balancer to 5 minutes.
- Update the client-side application code to increase its request timeout to 5 minutes.
- Publish the reports to Amazon S3 and use Amazon CloudFront for downloading to the user.
- Use Amazon SQS with AWS Lambda to generate reports.
long-running requests = decoupling needed = SQS