saa-c02-part-14 Flashcards
A company is designing a website that uses an Amazon S3 bucket to store static images. The company wants all future requests to have faster response times while reducing both latency and cost.
Which service configuration should a solutions architect recommend?
1. Deploy a NAT server in front of Amazon S3.
2. Deploy Amazon CloudFront in front of Amazon S3.
3. Deploy a Network Load Balancer in front of Amazon S3.
4. Configure Auto Scaling to automatically adjust the capacity of the website.
- Deploy Amazon CloudFront in front of Amazon S3.
faster response times = CloudFront
A company has an on-premises MySQL database used by the global sales team with infrequent access patterns. The sales team requires the database to have minimal downtime. A database administrator wants to migrate this database to AWS without selecting a particular instance type in anticipation of more users in the future.
Which service should a solutions architect recommend?
- Amazon Aurora MySQL
- Amazon Aurora Serverless for MySQL
- Amazon Redshift Spectrum
- Amazon RDS for MySQL
- Amazon Aurora Serverless for MySQL
without selecting a particular instance type = serverless
https://searchcloudcomputing.techtarget.com/answer/When-should-I-use-Amazon-RDS-vs-Aurora-Serverless
A company needs to comply with a regulatory requirement that states all emails must be stored and archived externally for 7 years. An administrator has created compressed email files on premises and wants a managed service to transfer the files to AWS storage.
Which managed service should a solutions architect recommend?
- Amazon Elastic File System (Amazon EFS)
- Amazon S3 Glacier
- AWS Backup
- AWS Storage Gateway
- AWS Storage Gateway
on premises + to transfer the files to AWS = AWS Storage Gateway
A company has hired a new cloud engineer who should not have access to an Amazon S3 bucket named CompanyConfidential. The cloud engineer must be able to read from and write to an S3 bucket called AdminTools.
Which IAM policy will meet these requirements?
Make sure S3 bucket resource names end with /*
You need a deny and a allow effect
least privilege
A company that hosts its web application on AWS wants to ensure all Amazon EC2 instances, Amazon RDS DB instances, and Amazon Redshift clusters are configured with tags. The company wants to minimize the effort of configuring and operating this check.
What should a solutions architect do to accomplish this?
- Use AWS Config rules to define and detect resources that are not properly tagged.
- Use Cost Explorer to display resources that are not properly tagged. Tag those resources manually.
- Write API calls to check all resources for proper tag allocation. Periodically run the code on an EC2 instance.
- Write API calls to check all resources for proper tag allocation. Schedule an AWS Lambda function through Amazon CloudWatch to periodically run the code.
- Use AWS Config rules to define and detect resources that are not properly tagged.
configured with tags = AWS Config to check
A company has a live chat application running on its on-premises servers that use WebSockets. The company wants to migrate the application to AWS. Application traffic is inconsistent, and the company expects there to be more traffic with sharp spikes in the future.
The company wants a highly scalable solution with no server maintenance nor advanced capacity planning.
Which solution meets these requirements?
- Use Amazon API Gateway and AWS Lambda with an Amazon DynamoDB table as the data store. Configure the DynamoDB table for provisioned capacity.
- Use Amazon API Gateway and AWS Lambda with an Amazon DynamoDB table as the data store. Configure the DynamoDB table for on-demand capacity.
- Run Amazon EC2 instances behind an Application Load Balancer in an Auto Scaling group with an Amazon DynamoDB table as the data store. Configure the DynamoDB table for on-demand capacity.
- Run Amazon EC2 instances behind a Network Load Balancer in an Auto Scaling group with an Amazon DynamoDB table as the data store. Configure the DynamoDB table for provisioned capacity.
- Use Amazon API Gateway and AWS Lambda with an Amazon DynamoDB table as the data store. Configure the DynamoDB table for on-demand capacity.
no server maintenance = Lambda = 1,2
sharp spikes in the future = scaling needed = on-demand capacity.
nor advanced capacity planning = not provisioned capacity = not 1
A company hosts its static website content from an Amazon S3 bucket in the us-east-1 Region. Content is made available through an Amazon CloudFront origin pointing to that bucket. Cross-Region replication is set to create a second copy of the bucket in the ap-southeast-1 Region. Management wants a solution that provides greater availability for the website.
Which combination of actions should a solutions architect take to increase availability? (Choose two.)
- Add both buckets to the CloudFront origin.
- Configure failover routing in Amazon Route 53.
- Create a record in Amazon Route 53 pointing to the replica bucket.
- Create an additional CloudFront origin pointing to the ap-southeast-1 bucket.
- Set up a CloudFront origin group with the us-east-1 bucket as the primary and the ap-southeast-1 bucket as the secondary.
- Create an additional CloudFront origin pointing to the ap-southeast-1 bucket.
- Set up a CloudFront origin group with the us-east-1 bucket as the primary and the ap-southeast-1 bucket as the secondary.
greater availability = CloudFront origin already exists = need CloudFront origin group
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/images/origingroups-overview.png
A company hosts a training site on a fleet of Amazon EC2 instances. The company anticipates that its new course, which consists of dozens of training videos on the site, will be extremely popular when it is released in 1 week.
What should a solutions architect do to minimize the anticipated server load?
- Store the videos in Amazon ElastiCache for Redis. Update the web servers to serve the videos using the ElastiCache API.
- Store the videos in Amazon Elastic File System (Amazon EFS). Create a user data script for the web servers to mount the EFS volume.
- Store the videos in an Amazon S3 bucket. Create an Amazon CloudFront distribution with an origin access identity (OAI) of that S3 bucket. Restrict Amazon S3 access to the OAI.
- Store the videos in an Amazon S3 bucket. Create an AWS Storage Gateway file gateway to access the S3 bucket. Create a user data script for the web servers to mount the file gateway.
- Store the videos in an Amazon S3 bucket. Create an Amazon CloudFront distribution with an origin access identity (OAI) of that S3 bucket. Restrict Amazon S3 access to the OAI.
minimize the anticipated server load = use CloudFront for caching
A company runs a production application on a fleet of Amazon EC2 instances. The application reads the data from an Amazon SQS queue and processes the messages in parallel. The message volume is unpredictable and often has intermittent traffic. This application should continually process messages without any downtime.
Which solution meets these requirements MOST cost-effectively?
- Use Spot Instances exclusively to handle the maximum capacity required.
- Use Reserved Instances exclusively to handle the maximum capacity required.
- Use Reserved Instances for the baseline capacity and use Spot Instances to handle additional capacity.
- Use Reserved Instances for the baseline capacity and use On-Demand Instances to handle additional capacity.
- Use Reserved Instances for the baseline capacity and use Spot Instances to handle additional capacity.
A company has a hybrid application hosted on multiple on-premises servers with static IP addresses. There is already a VPN that provides connectivity between the VPC and the on-premises network. The company wants to distribute TCP traffic across the on-premises servers for internet users.
What should a solutions architect recommend to provide a highly available and scalable solution?
- Launch an internet-facing Network Load Balancer (NLB) and register on-premises IP addresses with the NLB.
- Launch an internet-facing Application Load Balancer (ALB) and register on-premises IP addresses with the ALB.
- Launch an Amazon EC2 instance, attach an Elastic IP address, and distribute traffic to the on-premises servers.
- Launch an Amazon EC2 instance with public IP addresses in an Auto Scaling group and distribute traffic to the on-premises servers.
- Launch an internet-facing Network Load Balancer (NLB) and register on-premises IP addresses with the NLB.
an Amazon EC2 instance = 1 = not HA so not 3,4
static IP addresses = NLB = 1
Management has decided to deploy all AWS VPCs with IPv6 enabled. After some time, a solutions architect tries to launch a new instance and receives an error stating that there is not enough IP address space available in the subnet.
What should the solutions architect do to fix this?
- Check to make sure that only IPv6 was used during the VPC creation.
- Create a new IPv4 subnet with a larger range, and then launch the instance.
- Create a new IPv6-only subnet with a large range, and then launch the instance.
- Disable the IPv4 subnet and migrate all instances to IPv6 only. Once that is complete, launch the instance.
- Create a new IPv4 subnet with a larger range, and then launch the instance.
not enough IP address space = didn’t say not enough IPv6, error is referring to IPv4
IPv4 cannot be disabled so 1,3,4 = wrong
https://docs.aws.amazon.com/vpc/latest/userguide/vpc-migrate-ipv6.html
A company has a build server that is in an Auto Scaling group and often has multiple Linux instances running. The build server requires consistent and mountable shared NFS storage for jobs and configurations.
Which storage option should a solutions architect recommend?
- Amazon S3
- Amazon FSx
- Amazon Elastic Block Store (Amazon EBS)
- Amazon Elastic File System (Amazon EFS)
- Amazon Elastic File System (Amazon EFS)
Linux + consistent and mountable shared NFS = Amazon Elastic File System (Amazon EFS)
A company has an image processing workload running on Amazon Elastic Container Service (Amazon ECS) in two private subnets. Each private subnet uses a NAT instance for internet access. All images are stored in Amazon S3 buckets. The company is concerned about the data transfer costs between Amazon ECS and Amazon S3.
What should a solutions architect do to reduce costs?
- Configure a NAT gateway to replace the NAT instances.
- Configure a gateway endpoint for traffic destined to Amazon S3.
- Configure an interface endpoint for traffic destined to Amazon S3.
- Configure Amazon CloudFront for the S3 bucket storing the images.
- Configure a gateway endpoint for traffic destined to Amazon S3.
data transfer to S3 = endpoint needed
gateway = more than 1 instance access
The financial application at a company stores monthly reports in an Amazon S3 bucket. The vice president of finance has mandated that all access to these reports be logged and that any modifications to the log files be detected.
Which actions can a solutions architect take to meet these requirements?
- Use S3 server access logging on the bucket that houses the reports with the read and write data events and log file validation options enabled.
- Use S3 server access logging on the bucket that houses the reports with the read and write management events and log file validation options enabled.
- Use AWS CloudTrail to create a new trail. Configure the trail to log read and write data events on the S3 bucket that houses the reports. Log these events to a new bucket, and enable log file validation.
- Use AWS CloudTrail to create a new trail. Configure the trail to log read and write management events on the S3 bucket that houses the reports. Log these events to a new bucket, and enable log file validation.
- Use AWS CloudTrail to create a new trail. Configure the trail to log read and write data events on the S3 bucket that houses the reports. Log these events to a new bucket, and enable log file validation.
access to these reports be logged = CloudTrail = 3,4
Access, modifications to the log and deletions = DATA EVENTS = 3
A company has an on-premises volume backup solution that has reached its end of life. The company wants to use AWS as part of a new backup solution and wants to maintain local access to all the data while it is backed up on AWS. The company wants to ensure that the data backed up on AWS is automatically and securely transferred.
Which solution meets these requirements?
- Use AWS Snowball to migrate data out of the on-premises solution to Amazon S3. Configure on-premises systems to mount the Snowball S3 endpoint to provide local access to the data.
- Use AWS Snowball Edge to migrate data out of the on-premises solution to Amazon S3. Use the Snowball Edge file interface to provide on-premises systems with local access to the data.
- Use AWS Storage Gateway and configure a cached volume gateway. Run the Storage Gateway software appliance on premises and configure a percentage of data to cache locally. Mount the gateway storage volumes to provide local access to the data.
- Use AWS Storage Gateway and configure a stored volume gateway. Run the Storage Gateway software appliance on premises and map the gateway storage volumes to on-premises storage. Mount the gateway storage volumes to provide local access to the data.
- Use AWS Storage Gateway and configure a stored volume gateway. Run the Storage Gateway software appliance on premises and map the gateway storage volumes to on-premises storage. Mount the gateway storage volumes to provide local access to the data.
automatically transferred = not snowball = Storage Gateway = 3,4
local access to all the data = not cached (frequently accessed data ) = 4
stored volume gateway = entire dataset is available for low-latency access