A company is migrating its development and production workloads to a new organization in
AWS Organizations. The company has created a separate member account for
development and a separate member account for production. Consolidated billing is linked
to the management account. In the management account, a solutions architect needs to
create an 1AM user that can stop or terminate resources in both member accounts.
Which solution will meet this requirement?
Show answerHide answer
Correct answer: DCreate an IAM user in the management account. In the member accounts, create crossaccount
roles that have least privilege access. Grant the IAM user access to the roles by
using a trust policy.
Explanation
Explanation: Cross account role should be created in destination(member) account. The
role has trust entity to master account.
Question 62Choose 1
A company is migrating a document processing workload to AWS. The company has
updated many applications to natively use the Amazon S3 API to store, retrieve, and
modify documents that a processing server generates at a rate of approximately 5
documents every second. After the document processing is finished, customers can
download the documents directly from Amazon S3.
During the migration, the company discovered that it could not immediately update the
processing server that generates many documents to support the S3 API. The server runs
on Linux and requires fast local access to the files that the server generates and modifies.
When the server finishes processing, the files must be available to the public for download
within 30 minutes.
Which solution will meet these requirements with the LEAST amount of effort?
Show answerHide answer
Correct answer: CConfigure Amazon FSx for Lustre with an import and export policy. Link the new file
system to an S3 bucket. Install the Lustre client and mount the document store to an
Amazon EC2 instance by using NFS.
Explanation
Explanation: Amazon FSx for Lustre is a fully managed service that provides costeffective,
high-performance, scalable storage for compute workloads. Powered by Lustre,
the world’s most popular high-performance file system, FSx for Lustre offers shared
storage with sub-ms latencies, up to terabytes per second of throughput, and millions of
IOPS. FSx for Lustre file systems can also be linked to Amazon Simple Storage Service
(S3) buckets, allowing you to access and process data concurrently from both a highperformance
file system and from the S3 API.
Question 63Choose 1
A manufacturing company is building an inspection solution for its factory. The company
has IP cameras at the end of each assembly line. The company has used Amazon
SageMaker to train a machine learning (ML) model to identify common defects from still
images.
The company wants to provide local feedback to factory workers when a defect is detected.
The company must be able to provide this feedback even if the factory’s internet
connectivity is down. The company has a local Linux server that hosts an API that provides
local feedback to the workers.
How should the company deploy the ML model to meet these requirements?
Show answerHide answer
Correct answer: BDeploy AWS IoT Greengrass on the local server. Deploy the ML model to the
Greengrass server. Create a Greengrass component to take still images from the cameras
and run inference. Configure the component to call the local API when a defect is detected.
Question 64Choose 1
A company has multiple business units that each have separate accounts on AWS. Each
business unit manages its own network with several VPCs that have CIDR ranges that
overlap. The company’s marketing team has created a new internal application and wants
to make the application accessible to all the other business units. The solution must use
private IP addresses only.
Which solution will meet these requirements with the LEAST operational overhead?
Show answerHide answer
Correct answer: CCreate an AWS PrivateLink endpoint service to share the marketing application. Grant
permission to specific AWS accounts to connect to the service. Create interface VPC
endpoints in other accounts to access the application by using private IP addresses.
Explanation
Explanation: With AWS PrivateLink, the marketing team can create an endpoint service to
share their internal application with other accounts securely using private IP addresses.
They can grant permission to specific AWS accounts to connect to the service and create
interface VPC endpoints in the other accounts to access the application by using private IP
addresses. This option does not require any changes to the network of the other business
units, and it does not require peering or NATing. This solution is both scalable and secure.
Question 65Choose 3
A solutions architect needs to define a reference architecture for a solution for three-tier
applications with web. application, and NoSQL data layers. The reference architecture
must meet the following requirements:
• High availability within an AWS Region
• Able to fail over in 1 minute to another AWS Region for disaster recovery
• Provide the most efficient solution while minimizing the impact on the user experience
Which combination of steps will meet these requirements? (Select THREE.)
Show answerHide answer
Correct answer: B, C, EUse an Amazon Route 53 failover routing policy for failover from the primary Region to
the disaster recovery Region. Set Time to Live (TTL) to 30 seconds.Use a global table within Amazon DynamoDB so data can be accessed in the two
selected Regions.Implement a hot standby model using Auto Scaling groups for the web and application
layers across multiple Availability Zones in the Regions. Use zonal Reserved Instances for
the minimum number of servers and On-Demand Instances for any additional resources.
Explanation
Explanation: The requirements can be achieved by using an Amazon DynamoDB
database with a global table. DynamoDB is a NoSQL database so it fits the requirements.
A global table also allows both reads and writes to occur in both Regions. For the web and
application tiers Auto Scaling groups should be configured. Due to the 1-minute RTO these
must be configured in an active/passive state. The best pricing model to lower price but
ensure resources are available when needed is to use a combination of zonal reserved
instances and on-demand instances. To failover between the Regions, a Route 53 failover
routing policy can be configured with a TTL configured on the record of 30 seconds. This
will mean clients must resolve against Route 53 every 30 seconds to get the latest record.
In a failover scenario the clients would be redirected to the secondary site if the primary site
is unhealthy.
Question 66Choose 1
A company plans to migrate a three-tiered web application from an on-premises data
center to AWS The company developed the Ui by using server-side JavaScript libraries
The business logic and API tier uses a Python-based web framework The data tier runs on
a MySQL database
The company custom built the application to meet business requirements The company
does not want to re-architect the application The company needs a solution to replatform
the application to AWS with the least possible amount of development The solution needs
to be highly available and must reduce operational overhead
Which solution will meet these requirements?
Show answerHide answer
Correct answer: ADeploy the UI to a static website on Amazon S3 Use Amazon CloudFront to deliver the
website Build the business logic in a Docker image Store the image in Amazon
Elastic Container Registry (Amazon ECR) Use Amazon Elastic Container Service (Amazon
ECS) with the Fargate launch type to host the website with an Application Load Balancer in
front Deploy the data layer to an Amazon Aurora MySQL DB cluster
Explanation
Explanation: This solution utilizes Amazon S3 and CloudFront to deploy the UI as a static
website, which can be done with minimal development effort. The business logic and API
tier can be containerized in a Docker image and stored in Amazon Elastic Container
Registry (ECR) and run on Amazon Elastic Container Service (ECS) with the Fargate
launch type, which allows the application to be highly available with minimal operational
overhead. The data layer can be deployed on an Amazon Aurora MySQL DB cluster which
is a fully managed relational database service.
Amazon Aurora provides high availability and performance for the data layer without the
need for managing the underlying infrastructure.
Question 67Choose 2
A company is updating an application that customers use to make online orders. The
number of attacks on the application by bad actors has increased recently.
The company will host the updated application on an Amazon Elastic Container Service
(Amazon ECS) cluster. The company will use Amazon DynamoDB to store application
data. A public Application Load Balancer (ALB) will provide end users with access to the
application. The company must prevent prevent attacks and ensure business continuity
with minimal service interruptions during an ongoing attack.
Which combination of steps will meet these requirements MOST cost-effectively? (Select
TWO.)
Show answerHide answer
Correct answer: A, ECreate an Amazon CloudFront distribution with the ALB as the origin. Add a custom
header and random value on the CloudFront domain. Configure the ALB to conditionally
forward traffic if the header and value match.Deploy an AWS WAF web ACL that includes an appropriate rule group. Associate the
web ACL with the Amazon CloudFront distribution.
Question 68Choose 1
A financial services company loaded millions of historical stock trades into an Amazon
DynamoDB table. The table uses on-demand capacity mode. Once each day at midnight, a
few million new records are loaded into the table. Application read activity against the table
happens in bursts throughout the day. and a limited set of keys are repeatedly looked up.
The company needs to reduce costs associated with DynamoDB.
Which strategy should a solutions architect recommend to meet this requirement?
Show answerHide answer
Correct answer: DDeploy DynamoDB Accelerator (DAX). Use provisioned capacity mode. Configure
DynamoDB auto scaling.
Question 69Choose 3
A company has many separate AWS accounts and uses no central billing or management.
Each AWS account hosts services for different departments in the company. The company
has a Microsoft Azure Active Directory that is deployed.
A solution architect needs to centralize billing and management of the company’s AWS
accounts. The company wants to start using identify federation instead of manual user
management. The company also wants to use temporary credentials instead of long-lived
access keys.
Which combination of steps will meet these requirements? (Select THREE)
Show answerHide answer
Correct answer: A, C, ECreate a new AWS account to serve as a management account. Deploy an organization
in AWS Organizations. Invite each existing AWS account to join the organization. Ensure that each account accepts the invitation.Deploy AWS IAM Identity Center (AWS Single Sign-On) in the management account.
Connect IAM Identity Center to the Azure Active Directory. Configure IAM Identity Center
for automatic synchronization of users and groups.Create AWS IAM Identity Center (AWS Single Sign-On) permission sets. Attach the
permission sets to the appropriate IAM Identity Center groups and AWS accounts.
Question 70Choose 1
A company wants to refactor its retail ordering web application that currently has a loadbalanced
Amazon EC2 instance fleet for web hosting, database API services, and business
logic. The company needs to create a decoupled, scalable architecture with a mechanism
for retaining failed orders while also minimizing operational costs.
Which solution will meet these requirements?
Show answerHide answer
Correct answer: CUse Amazon S3 for web hosting with AWS AppSync for database API services. Use
Amazon Simple Queue Service (Amazon SQS) for order queuing. Use AWS Lambda for
business logic with an Amazon SQS dead-letter queue for retaining failed orders.
Explanation
Explanation: •Use Amazon S3 for web hosting with AWS AppSync for database API
services. Use Amazon Simple Queue Service (Amazon SQS) for order queuing. Use AWS
Lambda for business logic with an Amazon SQS dead-letter queue for retaining failed
orders.
This solution will allow you to:
•Host a static website on Amazon S3 without provisioning or managing servers1.
•Use AWS AppSync to create a scalable GraphQL API that connects to your database and
other data sources1.
•Use Amazon SQS to decouple and scale your order processing microservices1.
•Use AWS Lambda to run code for your business logic without provisioning or managing
servers1.
•Use an Amazon SQS dead-letter queue to retain messages that can’t be processed by
your Lambda function1.
A company is creating a REST API to share information with six of its partners based in the
United States. The company has created an Amazon API Gateway Regional endpoint.
Each of the six partners will access the API once per day to post daily sales figures.
After initial deployment, the company observes 1.000 requests per second originating from
500 different IP addresses around the world. The company believes this traffic is originating
from a botnet and wants to secure its API while minimizing cost.
Which approach should the company take to secure its API?
A. Create an Amazon CloudFront distribution with the API as the origin. Create an AWS
WAF web ACL with a rule lo block clients thai submit more than five
requests per day. Associate the web ACL with the CloudFront distnbution. Configure
CloudFront with an origin access identity (OAI) and associate it with the distribution.
Configure API Gateway to ensure only the OAI can run the POST method.
B. Create an Amazon CloudFront distribution with the API as the origin. Create an AWS
WAF web ACL with a rule to block clients that submit more than five requests per day.
Associate the web ACL with the CloudFront distnbution. Add a custom header to the
CloudFront distribution populated with an API key. Configure the API to require an API key
on the POST method.
C. Create an AWS WAF web ACL with a rule to allow access to the IP addresses used by
the six partners. Associate the web ACL with the API. Create a resource policy with a
Question
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.