A company is running multiple workloads in the AWS Cloud. The company has separate
units for software development. The company uses AWS Organizations and federation with
SAML to give permissions to developers to manage resources in their AWS accounts. The
development units each deploy their production workloads into a common production
account.
Recently, an incident occurred in the production account in which members of a
development unit terminated an EC2 instance that belonged to a different development
unit. A solutions architect must create a solution that prevents a similar incident from
happening in the future. The solution also must allow developers the possibility to manage
the instances used for their workloads.
Which strategy will meet these requirements?
Show answerHide answer
Correct answer: BPass an attribute for DevelopmentUnit as an AWS Security Token Service (AWS STS)
session tag during SAML federation. Update the IAM policy for the developers' assumed
IAM role with a deny action and a StringNotEquals condition for the DevelopmentUnit
resource tag and aws:PrincipalTag/ DevelopmentUnit.
Question 112Choose 1
A company is planning to migrate an on-premises data center to AWS. The company
currently hosts the data center on Linux-based VMware VMs. A solutions architect must
collect information about network dependencies between the VMs. The information must
be in the form of a diagram that details host IP addresses, hostnames, and network
connection information.
Which solution will meet these requirements?
Show answerHide answer
Correct answer: BUse the AWS Application Discovery Service Agentless Collector for server data
collection. Export the network diagrams from the AWS Migration Hub in .png format.
Explanation
Explanation: To effectively gather information about network dependencies between VMs
in an on-premises data center for migration to AWS, it's crucial to use tools that can
capture detailed application and server dependencies. The AWS Application Discovery
Service is designed for this purpose, particularly when migrating from environments like
Linux-based VMware VMs. By installing the AWS Application Discovery Agent on the onpremises
servers, the service can collect necessary data such as host IP addresses,
hostnames, and network connection information. This data is crucial for creating a
comprehensive network diagram that outlines the interactions and dependencies between
various components of the on-premises infrastructure. The integration with AWS Migration
Hub enhances this process by allowing the visualization of these dependencies in a
network diagram format, aiding in the planning and execution of the migration process. This
approach ensures a thorough understanding of the on-premises environment, which is
essential for a successful migration to AWS.
References:
AWS Documentation on Application Discovery Service: This provides detailed guidance on
how to use the Application Discovery Service, including the installation and configuration of
the Discovery Agent.
AWS Migration Hub User Guide: Offers insights on how to integrate Application Discovery
Service data with Migration Hub for comprehensive migration planning and tracking.
AWS Solutions Architect Professional Learning Path: Contains advanced topics and best
practices for migrating complex on-premises environments to AWS, emphasizing the use of
AWS services and tools for effective migration planning and execution.
Question 113Choose 1
A scientific company needs to process text and image data from an Amazon S3 bucket.
The data is collected from several radar stations during a live, time-critical phase of a deep
space mission. The radar stations upload the data to the source S3 bucket. The data is
prefixed by radar station identification number.
The company created a destination S3 bucket in a second account. Data must be copied
from the source S3 bucket to the destination S3 bucket to meet a compliance objective.
The replication occurs through the use of an S3 replication rule to cover all objects in the
source S3 bucket.
One specific radar station is identified as having the most accurate data. Data replication at
this radar station must be monitored for completion within 30 minutes after the radar station uploads the objects to the source S3 bucket.
What should a solutions architect do to meet these requirements?
Show answerHide answer
Correct answer: DCreate a new S3 replication rule on the source S3 bucket that filters for the keys that
use the prefix of the radar station with the most accurate data. Enable S3 Replication Time
Control (S3 RTC). Monitor the maximum replication time to the destination. Create an
Amazon EventBridge (Amazon CloudWatch Events) rule to trigger an alert when the time
exceeds the desired threshold.
Question 114Choose 1
A company plans to deploy a new private intranet service on Amazon EC2 instances inside
a VPC. An AWS Site-to-Site VPN connects the VPC to the company's on-premises
network. The new service must communicate with existing on-premises services The onpremises
services are accessible through the use of hostnames that reside in the company
example DNS zone This DNS zone is wholly hosted on premises and is available only on
the company's private network.
A solutions architect must ensure that the new service can resolve hostnames on the company example domain to integrate with existing services.
Which solution meets these requirements?
Show answerHide answer
Correct answer: BTurn on DNS hostnames for the VPC Configure a new outbound endpoint with Amazon
Route 53 Resolver. Create a Resolver rule to forward requests for company example to the
on-premises name servers
Question 115Choose 1
A company is deploying AWS Lambda functions that access an Amazon RDS for
PostgreSQL database. The company needs to launch the Lambda functions in a QA
environment and in a production environment.
The company must not expose credentials within application code and must rotate
passwords automatically.
Which solution will meet these requirements?
Show answerHide answer
Correct answer: BStore the database credentials for both environments in AWS Secrets Manager with
distinct key entry for the QA environment and the production environment. Turn on rotation.
Provide a reference to the Secrets Manager key as an environment variable for the
Lambda functions.
Explanation
Explanation: The best solution is to store the database credentials for both environments
in AWS Secrets Manager with distinct key entry for the QA environment and the production
environment. AWS Secrets Manager is a web service that can securely store, manage, and
retrieve secrets, such as database credentials. AWS Secrets Manager also supports
automatic rotation of secrets by using Lambda functions or built-in rotation templates. By
storing the database credentials for both environments in AWS Secrets Manager, the
company can avoid exposing credentials within application code and rotate passwords
automatically. By providing a reference to the Secrets Manager key as an environment
variable for the Lambda functions, the company can easily access the credentials from the
code by using the AWS SDK. This solution meets all the requirements of the company.
Question 116Choose 1
A company is preparing to deploy an Amazon Elastic Kubernetes Service (Amazon EKS)
cluster for a workload. The company expects the cluster to support an
unpredictable number of stateless pods. Many of the pods will be created during a short
time period as the workload automatically scales the number of replicas that the workload
uses.
Which solution will MAXIMIZE node resilience?
Show answerHide answer
Correct answer: DConfigure the workload to use topology spread constraints that are based on Availability
Zone.
Explanation
Explanation:
Configuring the workload to use topology spread constraints that are based on Availability
Zone will maximize the node resilience of the workload node groups. This will ensure that
the pods are evenly distributed across different Availability Zones, reducing the impact of
failures or disruptions in one Availability Zone2. This will also improve the availability and
scalability of the workload node groups, as they can leverage the low-latency, highthroughput,
and highly redundant networking between Availability Zones1.
Question 117Choose 1
A company is using an organization in AWS organization to manage AWS accounts. For
each new project the company creates a new linked account. After the creation of a new
account, the root user signs in to the new account and creates a service request to
increase the service quota for Amazon EC2 instances. A solutions architect needs to
automate this process.
Which solution will meet these requirements with tie LEAST operational overhead?
Show answerHide answer
Correct answer: ACreate an Amazon EventBridge rule to detect creation of a new account Send the event
to an Amazon Simple Notification Service (Amazon SNS) topic that invokes an AWS
Lambda function. Configure the Lambda function to run the request-service-quota-increase
command to request a service quota increase for EC2 instances.
Explanation
Explanation:
Automating the process of increasing service quotas for Amazon EC2 instances in new
AWS accounts with minimal operational overhead can be effectively achieved by using
Amazon EventBridge, Amazon SNS, and AWS Lambda. An EventBridge rule can detect
the creation of a new account and trigger an SNS topic, which in turn invokes a Lambda
function. This function can then programmatically request a service quota increase for EC2
instances using the AWS Service Quotas API. This approach streamlines the process,
reduces manual intervention, and ensures that new accounts are automatically configured
with the desired service quotas.
Question 118Choose 1
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 119Choose 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 120Choose 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.
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.