A data analytics company has an Amazon Redshift cluster that consists of several reserved
nodes. The cluster is experiencing unexpected bursts of usage because a team of
employees is compiling a deep audit analysis report. The queries to generate the report are
complex read queries and are CPU intensive.
Business requirements dictate that the cluster must be able to service read and write
queries at all times. A solutions architect must devise a solution that accommodates the
bursts of usage.
Which solution meets these requirements MOST cost-effectively?
Show answerHide answer
Correct answer: CDeploy an AWS Lambda function to add capacity to the Amazon Redshift cluster by
using an elastic resize operation when the cluster's CPU metrics in Amazon CloudWatch
reach 80%.
Explanation
Explanation:
The best solution is to deploy an AWS Lambda function to add capacity to the Amazon
Redshift cluster by using an elastic resize operation when the cluster’s CPU metrics in
Amazon CloudWatch reach 80%. This solution will enable the cluster to scale up or down
quickly by adding or removing nodes within minutes. This will improve the performance of
the complex read queries and also reduce the cost by scaling down when the demand
decreases. This solution is more cost-effective than using a classic resize operation, which
takes longer and requires more downtime. It is also more suitable than using Amazon
EMR, which is designed for big data processing rather than data
warehousing.
Question 42Choose 1
A company's CISO has asked a Solutions Architect to re-engineer the company's current
CI/CD practices to make sure patch deployments to its applications can happen as quickly
as possible with minimal downtime if vulnerabilities are discovered. The company must
also be able to quickly roll back a change in case of errors.
The web application is deployed in a fleet of Amazon EC2 instances behind an Application
Load Balancer. The company is currently using GitHub to host the application source code,
and has configured an AWS CodeBuild project to build the application. The company also
intends to use AWS CodePipeline to trigger builds from GitHub commits using the existing
CodeBuild project.
What CI/CD configuration meets all of the requirements?
Show answerHide answer
Correct answer: BConfigure CodePipeline with a deploy stage using AWS CodeDeploy configured for
blue/green deployments. Monitor the newly deployed code, and, if there are any issues,
trigger a manual rollback using CodeDeploy.
Question 43Choose 2
An online magazine will launch its latest edition this month. This edition will be the first to
be distributed globally. The magazine's dynamic website currently uses an Application
Load Balancer in front of the web tier, a fleet of Amazon EC2 instances for web and
application servers, and Amazon Aurora MySQL. Portions of the website include static
content and almost all traffic is read-only.
The magazine is expecting a significant spike in internet traffic when the new edition is
launched. Optimal performance is a top priority for the week following the launch.
Which combination of steps should a solutions architect take to reduce system response
times for a global audience? (Choose two.)
Show answerHide answer
Correct answer: D, EUse an Aurora global database for physical cross-Region replication. Use Amazon S3
with cross-Region replication for static content and resources. Deploy the web and
application tiers in Regions across the world.Introduce Amazon Route 53 with latency-based routing and Amazon CloudFront
distributions. Ensure the web and application tiers are each in Auto Scaling groups.
Question 44Choose 1
A company has a solution that analyzes weather data from thousands of weather stations.
The weather stations send the data over an Amazon API Gateway REST API that has an
AWS Lambda function integration. The Lambda function calls a third-party service for data
pre-processing. The third-party service gets overloaded and fails the pre-processing,
causing a loss of data.
A solutions architect must improve the resiliency of the solution. The solutions architect
must ensure that no data is lost and that data can be processed later if failures occur.
What should the solutions architect do to meet these requirements?
Show answerHide answer
Correct answer: CCreate two Amazon EventBridge event buses: a primary event bus and a secondary
event bus. Update the API to use a new integration to the primary event bus. Configure an
EventBridge rule to react to all events on the primary event bus. Specify the Lambda
function as the target of the rule. Configure the secondary event bus as the failure
destination for the Lambda function.
Explanation
Explanation:
Explanation: This option allows the solution to decouple the API from the Lambda function
and use EventBridge as an event-driven service that can handle failures gracefully1. By
using two event buses, one for normal events and one for failed events, the solution can
ensure that no data is lost and that data can be processed later if failures occur2. The
primary event bus receives the data from the weather stations through the API integration
and triggers the Lambda function through a rule. The Lambda function can then call the
third-party service for data pre-processing. If the third-party service fails, the Lambda
function can send an error response to EventBridge, which will route it to the secondary
event bus as a failure destination3. The secondary event bus can then store the failed
events in another service, such as Amazon S3 or Amazon SQS, for troubleshooting or
reprocessing.
Question 45Choose 1
A company is using AWS CodePipeline for the CI/CD of an application to an Amazon EC2
Auto Scaling group. All AWS resources are defined in AWS
CloudFormation templates. The application artifacts are stored in an Amazon S3 bucket
and deployed to the Auto Scaling group using instance user data scripts.
As the application has become more complex, recent resource changes in the
CloudFormation templates have caused unplanned downtime.
How should a solutions architect improve the CI/CD pipeline to reduce the likelihood that
changes in the templates will cause downtime?
Show answerHide answer
Correct answer: BImplement automated testing using AWS CodeBuild in a test environment. Use
CloudFormation change sets to evaluate changes before deployment. Use AWS
CodeDeploy to leverage blue/green deployment patterns to allow evaluations and the
ability to revert changes, if needed.
Question 46Choose 1
A company hosts an application that uses several Amazon EC2 instances in an Auto
Scaling group behind an Application Load Balancer (ALB). During the initial startup of the EC2 instances, the EC2 instances run user data scripts to download critical content for the
application from an Amazon S3 bucket.
The EC2 instances are launching correctly. However, after a period of time, the EC2
instances are terminated with the following error message: "An instance was taken out of
service in response to an ELB system health check failure." EC2 instances continue to
launch and be terminated because of Auto Scaling events in an endless loop.
The only recent change to the deployment is that the company added a large amount of
critical content to the S3 bucket. The company does not want to alter the user data scripts
in production.
What should a solutions architect do so that the production environment can deploy
successfully?
Show answerHide answer
Correct answer: DIncrease the health check grace period for the Auto Scaling group.
Question 47Choose 3
A company is planning to migrate an Amazon RDS for Oracle database to an RDS for
PostgreSQL DB instance in another AWS account. A solutions architect needs to design a
migration strategy that will require no downtime and that will minimize the amount of time
necessary to complete the migration. The migration strategy must replicate all existing data
and any new data that is created during the migration The target database must be
identical to the source database at completion of the migration process
All applications currently use an Amazon Route 53 CNAME record as their endpoint for
communication with the RDS for Oracle DB instance The RDS for Oracle DB instance is in
a private subnet.
Which combination of steps should the solutions architect take to meet these
requirements? (Select THREE)
Show answerHide answer
Correct answer: A, C, ECreate a new RDS for PostgreSQL DB instance in the target account Use the AWS
Schema Conversion Tool (AWS SCT) to migrate the database schema from the source
database to the target databaseConfigure VPC peering between the VPCs in the two AWS accounts to provide connectivity to both DB instances from the target account. Configure the security groups
that are attached to each DB instance to allow traffic on the database port from the VPC in
the target account.Use AWS Database Migration Service (AWS DMS) in the target account to perform a full
load plus change data capture (CDC) migration from the source database to the target
database When the migration is complete, change the CNAME record to point to the target
DB instance endpoint
Question 48Choose 2
An events company runs a ticketing platform on AWS. The company's customers configure
and schedule their events on the platform The events result in large increases of traffic to
the platform The company knows the date and time of each customer's events
The company runs the platform on an Amazon Elastic Container Service (Amazon ECS)
cluster The ECS cluster consists of Amazon EC2 On-Demand Instances that are in an Auto
Scaling group. The Auto Scaling group uses a predictive scaling policy
The ECS cluster makes frequent requests to an Amazon S3 bucket to download ticket
assets The ECS cluster and the S3 bucket are in the same AWS Region and the same
AWS account Traffic between the ECS cluster and the S3 bucket flows across a NAT
gateway
The company needs to optimize the cost of the platform without decreasing the platform's
availability
Which combination of steps will meet these requirements? (Select TWO)
Show answerHide answer
Correct answer: A, BCreate a gateway VPC endpoint for the S3 bucketAdd another ECS capacity provider that uses an Auto Scaling group of Spot Instances
Configure the new capacity provider strategy to have the same weight as the existing
capacity provider strategy
Question 49Choose 1
A company has separate AWS accounts for each of its departments. The accounts are in
OUs that are in an organization in AWS Organizations. The IT department manages a
private certificate authority (CA) by using AWS Private Certificate Authority in its account.
The company needs a solution to allow developer teams in the other departmental
accounts to access the private CA to issue certificates for their applications. The solution
must maintain appropriate security boundaries between accounts.
Which solution will meet these requirements?
Show answerHide answer
Correct answer: CIn the organization's management account, create an AWS CloudFormation stack to set
up a resource-based delegation policy. Update the policy to allow the organizations:
EnableAWSServiceAccess action. Add the ARN of the private CA from the IT account as
the principal in the policy statement.
Question 50Choose 1
To abide by industry regulations, a solutions architect must design a solution that will store
a company's critical data in multiple public AWS Regions, including in the United States,
where the company's headquarters is located The solutions architect is required to provide
access to the data stored in AWS to the company's global WAN network The security team
mandates that no traffic accessing this data should traverse the public internet
How should the solutions architect design a highly available solution that meets the
requirements and is cost-effective'?
Show answerHide answer
Correct answer: DEstablish two AWS Direct Connect connections from the company headquarters to an
AWS Region Use the company WAN to send traffic over a DX connection Use Direct
Connect Gateway to access data in other AWS Regions.
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.