A company is running a critical application that uses an Amazon RDS for MySQL database
to store data. The RDS DB instance is deployed in Multi-AZ mode.
A recent RDS database failover test caused a 40-second outage to the application A
solutions architect needs to design a solution to reduce the outage time to less than 20
seconds.
Which combination of steps should the solutions architect take to meet these
requirements? (Select THREE.)
Show answerHide answer
Correct answer: C, D, EUse RDS Proxy in front of the databaseMigrate the database to Amazon Aurora MySQLCreate an Amazon Aurora Replica
Explanation
Explanation: Migrate the database to Amazon Aurora MySQL. - Create an Amazon Aurora
Replica. - Use RDS Proxy in front of the database. - These options are correct because
they address the requirement of reducing the failover time to less than 20 seconds.
Migrating to Amazon Aurora MySQL and creating an Aurora replica can reduce the failover
time to less than 20 seconds. Aurora has a built-in, fault-tolerant storage system that can
automatically detect and repair failures. Additionally, Aurora has a feature called "Aurora
Global Database" which allows you to create read-only replicas across multiple AWS
regions which can further help to reduce the failover time. Creating an Aurora replica can
also help to reduce the failover time as it can take over as the primary DB instance in case
of a failure. Using RDS proxy can also help to reduce the failover time as it can route the
queries to the healthy DB instance, it also helps to balance the load across multiple DB
instances.
Question 32Choose 1
A solutions architect needs to advise a company on how to migrate its on-premises data
processing application to the AWS Cloud. Currently, users upload input files through a web
portal. The web server then stores the uploaded files on NAS and messages the
processing server over a message queue. Each media file can take up to 1 hour to
process. The company has determined that the number of media files awaiting processing
is significantly higher during business hours, with the number of files rapidly declining after
business hours.
What is the MOST cost-effective migration recommendation?
Show answerHide answer
Correct answer: DCreate a queue using Amazon SOS. Configure the existing web server to publish to the
new queue. Use Amazon EC2 instances in an EC2 Auto Scaling group to pull requests
from the queue and process the files. Scale the EC2 instances based on the SOS queue
length. Store the processed files in an Amazon S3 bucket.
Question 33Choose 2
A company has migrated an application from on premises to AWS. The application
frontend is a static website that runs on two Amazon EC2 instances behind an Application
Load Balancer (ALB). The application backend is a Python application that runs on three
EC2 instances behind another ALB. The EC2 instances are large, general purpose On-
Demand Instances that were sized to meet the on-premises specifications for peak usage
of the application.
The application averages hundreds of thousands of requests each month. However, the
application is used mainly during lunchtime and receives minimal traffic during the rest of
the day.
A solutions architect needs to optimize the infrastructure cost of the application without
negatively affecting the application availability.
Which combination of steps will meet these requirements? (Choose two.)
Show answerHide answer
Correct answer: B, DMove the application frontend to a static website that is hosted on Amazon S3.Change all the backend EC2 instances to Spot Instances.
Explanation
Explanation: Moving the application frontend to a static website that is hosted on Amazon
S3 will save cost as S3 is cheaper than running EC2 instances.
Using Spot instances for the backend EC2 instances will also save cost, as they are
significantly cheaper than On-Demand instances. This will be suitable for the application,
as it has minimal traffic during the rest of the day, and the availability of spot instances will
not negatively affect the application's availability.
Question 34Choose 1
A company uses Amazon S3 to store files and images in a variety of storage classes. The
company's S3 costs have increased substantially during the past year.
A solutions architect needs to review data trends for the past 12 months and identity the
appropriate storage class for the objects.
Which solution will meet these requirements?
Show answerHide answer
Correct answer: BUse S3 storage class analysis. Import data trends into an Amazon QuickSight
dashboard to analyze storage trends.
Question 35Choose 1
A company is using an on-premises Active Directory service for user authentication. The
company wants to use the same authentication service to sign in to the company's AWS
accounts, which are using AWS Organizations. AWS Site-to-Site VPN connectivity already
exists between the on-premises environment and all the company's AWS accounts.
The company's security policy requires conditional access to the accounts based on user
groups and roles. User identities must be managed in a single location.
Which solution will meet these requirements?
Show answerHide answer
Correct answer: DIn one of the company's AWS accounts, configure AWS Identity and Access
Management (IAM) to use an OpenID Connect (OIDC) identity provider. Provision IAM
roles that grant access to the AWS account for the federated users that correspond to
appropriate groups in Active Directory. Grant access to the required AWS accounts by
using cross-account IAM roles.
Question 36Choose 1
A company is refactoring its on-premises order-processing platform in the AWS Cloud. The
platform includes a web front end that is hosted on a fleet of VMs RabbitMQ to connect the
front end to the backend, and a Kubernetes cluster to run a containerized backend system
to process the orders. The company does not want to make any major changes to the
application
Which solution will meet these requirements with the LEAST operational overhead?
Show answerHide answer
Correct answer: ACreate an AMI of the web server VM Create an Amazon EC2 Auto Scaling group that
uses the AMI and an Application Load Balancer Set up Amazon MQ to replace the onpremises
messaging queue Configure Amazon Elastic Kubernetes Service (Amazon EKS)
to host the order-processing backend
Question 37Choose 1
A retail company has an on-premises data center in Europe. The company also has a
multi-Region AWS presence that includes the eu-west-1 and us-east-1 Regions. The
company wants to be able to route network traffic from its on-premises infrastructure into
VPCs in either of those Regions. The company also needs to support traffic that is routed
directly between VPCs in those Regions. No single points of failure can exist on the
network.
The company already has created two 1 Gbps AWS Direct Connect connections from its
on-premises data center. Each connection goes into a separate Direct Connect location in Europe for high availability. These two locations are named DX-A and DX-B, respectively.
Each Region has a single AWS Transit Gateway that is configured to route all inter-VPC
traffic within that Region.
Which solution will meet these requirements?
Show answerHide answer
Correct answer: DCreate a transit VIF from the DX-A connection into a Direct Connect gateway. Create a
transit VIF from the DX-B connection into the same Direct Connect gateway for high
availability. Associate both the eu-west-1 and us-east-1 transit gateways with this Direct
Connect gateway. Peer the transit gateways with each other to support cross-Region
routing.
Explanation
Explanation: in this solution, two transit VIFs are created - one from the DX-A connection
and one from the DX-B connection - into the same Direct Connect gateway for high
availability. Both the eu-west-1 and us-east-1 transit gateways are then associated with this
Direct Connect gateway. The transit gateways are then peered with each other to support
cross-Region routing. This solution meets the requirements of the company by creating a
highly available connection between the on-premises data center and the VPCs in both the
eu-west-1 and us-east-1 regions, and by enabling direct traffic routing between VPCs in
those regions.
Question 38Choose 2
A company has an application that runs on Amazon EC2 instances. A solutions architect is designing VPC infrastructure in an AWS Region where the application needs to access an
Amazon Aurora DB cluster. The EC2 instances are all associated with the same security
group. The DB cluster is associated with its own security group.
The solutions architect needs to add rules to the security groups to provide the application
with least privilege access to the DB cluster.
Which combination of steps will meet these requirements? (Select TWO.)
Show answerHide answer
Correct answer: A, BAdd an inbound rule to the EC2 instances' security group. Specify the DB cluster's
security group as the source over the default Aurora port.Add an outbound rule to the EC2 instances' security group. Specify the DB cluster's
security group as the destination over the default Aurora port.
Explanation
Explanation: B. Add an outbound rule to the EC2 instances' security group. Specify the
DB cluster's security group as the destination over the default Aurora port. This allows the
instances to make outbound connections to the DB cluster on the default Aurora port. C.
Add an inbound rule to the DB cluster's security group. Specify the EC2 instances' security
group as the source over the default Aurora port. This allows connections to the DB cluster
from the EC2 instances on the default Aurora port.
Question 39Choose 1
A company runs a content management application on a single Windows Amazon EC2
instance in a development environment. The application reads and writes static content to
a 2 TB Amazon Elastic Block Store (Amazon EBS) volume that is attached to the instance
as the root device. The company plans to deploy this application in production as a highly
available and fault-tolerant solution that runs on at least three EC2 instances across
multiple Availability Zones.
A solutions architect must design a solution that joins all the instances that run the
application to an Active Directory domain. The solution also must implement Windows
ACLs to control access to file contents. The application always must maintain exactly the
same content on all running instances at any given point in time.
Which solution will meet these requirements with the LEAST management overhead?
Show answerHide answer
Correct answer: CCreate an Amazon FSx for Windows File Server file system. Create an Auto Scaling
group that extends across three Availability Zones and maintains a minimum size of three
instances. Implement a user data script to install the application and mount the FSx for
Windows File Server file system. Perform a seamless domain join to join the instance to the
AD domain.
Question 40Choose 1
A company is planning to host a web application on AWS and works to load balance the
traffic across a group of Amazon EC2 instances. One of the security requirements is to
enable end-to-end encryption in transit between the client and the web server.
Which solution will meet this requirement?
Show answerHide answer
Correct answer: APlace the EC2 instances behind an Application Load Balancer (ALB) Provision an SSL
certificate using AWS Certificate Manager (ACM), and associate the SSL certificate with
the ALB. Export the SSL certificate and install it on each EC2 instance. Configure the ALB
to listen on port 443 and to forward traffic to port 443 on the instances.
Explanation
Explanation:
Option A is correct because placing the EC2 instances behind an Application Load
Balancer (ALB) and associating an SSL certificate from AWS Certificate Manager
(ACM) with the ALB enables encryption in transit between the client and the ALB.
Exporting the SSL certificate and installing it on each EC2 instance enables
encryption in transit between the ALB and the web server. Configuring the ALB to
listen on port 443 and to forward traffic to port 443 on the instances ensures that
HTTPS is used for both connections. This solution achieves end-to-end encryption
in transit for the web application12
Full mock exam
Sit the SAP-C02 exam before exam day
Full-length mocks with the same number of questions and the same time limit as the real SAP-C02 exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.