📝 Drill SAP-C02 — sore 2026-11-18
Set #101 · fokus Domain 2 · 10 soal · pilih jawaban lalu tekan
Periksa
1
Domain 2
A company runs AWS Lambda functions that connect to an Amazon RDS for PostgreSQL database by using a username and password stored in plaintext Lambda environment variables. A new security policy requires the database credentials to be rotated every 30 days without application downtime, and every retrieval of the credentials must be auditable. Which solution meets these requirements with the LEAST operational overhead?
A.
Store the credentials as an AWS Systems Manager Parameter Store SecureString. Create an Amazon EventBridge scheduled rule that invokes a custom Lambda function every 30 days to change the database password and update the parameter.
B.
Store the credentials in AWS Secrets Manager and enable managed rotation every 30 days by using the alternating-users strategy. Grant the Lambda execution role permission to call GetSecretValue at runtime, and rely on AWS CloudTrail to log each retrieval.
C.
Encrypt the Lambda environment variables with a customer managed AWS KMS key and enable automatic key rotation for the key.
D.
Store the credentials in an Amazon S3 object encrypted with SSE-KMS. Use an AWS Config rule with a remediation action to replace the object every 30 days.
2
Domain 2
A SaaS provider hosts an analytics API on Amazon EC2 instances in its own VPC. Hundreds of customers, each in their own AWS accounts, must consume the API privately without traffic traversing the internet. Many customer VPCs use CIDR ranges that overlap with the provider's VPC and with each other. The provider wants to expose only the API, not its whole network. Which solution should a solutions architect recommend?
A.
Create a VPC peering connection with each customer VPC and update route tables on both sides to route traffic to the API subnets.
B.
Create a transit gateway, share it with customer accounts by using AWS RAM, and attach each customer VPC to the transit gateway.
C.
Place the API behind an internet-facing Application Load Balancer and use an AWS WAF IP set to allow only the customers' NAT gateway IP addresses.
D.
Place the API behind a Network Load Balancer, create a VPC endpoint service (AWS PrivateLink), and allow the customer account principals. Customers create interface VPC endpoints in their own VPCs.
3
Domain 2
An e-commerce company stores its product catalog in Amazon Aurora MySQL. During flash sales, read latency spikes. Performance Insights shows that 90% of reads are the same few thousand product-detail queries, and catalog data changes only a few times a day. The cluster already has two Aurora Replicas running at high CPU. Which solution is the MOST cost-effective way to reduce read latency to sub-millisecond levels?
A.
Deploy an Amazon ElastiCache cluster in front of Aurora and implement a lazy-loading cache with a TTL for product-detail queries.
B.
Add Aurora Replicas with Aurora Auto Scaling up to 15 replicas and send all reads to the reader endpoint.
C.
Scale the Aurora writer instance to a larger memory-optimized instance class to increase the buffer pool.
D.
Migrate the catalog to Amazon DynamoDB and add a DynamoDB Accelerator (DAX) cluster.
4
Domain 2
A company is migrating an on-premises Java application to AWS. The application uses Apache ActiveMQ through JMS and STOMP clients and relies on durable topic subscriptions. The company wants a managed, highly available message broker and must avoid any application code changes. Which solution meets these requirements?
A.
Replace ActiveMQ with Amazon SQS FIFO queues and use the Amazon SQS Java Messaging Library for JMS.
B.
Deploy an Amazon MSK cluster and configure the application to publish to Kafka topics.
C.
Deploy an Amazon MQ for ActiveMQ active/standby broker across two Availability Zones and update the application's broker connection endpoints.
D.
Use Amazon SNS topics with Amazon SQS queue subscriptions to replicate the publish/subscribe pattern.
5
Domain 2
A financial services company runs an Amazon Redshift provisioned cluster in us-east-1 for nightly regulatory reporting. The disaster recovery plan requires the data warehouse to survive the loss of the entire Region with an RPO of 24 hours and an RTO of 4 hours. The company wants the lowest-cost solution. Which solution meets these requirements?
A.
Run a second Redshift cluster in us-west-2 and modify the ETL pipeline to load data into both clusters every night.
B.
Configure cross-Region snapshot copy to us-west-2 for the cluster's automated snapshots (with a snapshot copy grant for the KMS-encrypted cluster). During a disaster, restore a cluster from the latest copied snapshot and update the DNS CNAME used by reporting tools.
C.
Enable Redshift cluster relocation so that the cluster automatically moves to another Region during an outage.
D.
Run a nightly UNLOAD of all tables to Amazon S3, enable S3 Cross-Region Replication to us-west-2, and rebuild the schema and reload with COPY during a disaster.
6
Domain 2
Choose 2
A retail company serves its login page through Amazon CloudFront with an Application Load Balancer origin. The login endpoint is under a credential stuffing attack from automated clients that use stolen username and password pairs. The security team wants to detect and block login attempts that use compromised credentials and throttle abusive clients, with minimal custom code. Which combination of steps should a solutions architect take? (Choose TWO)
A.
Associate an AWS WAF web ACL with the CloudFront distribution and add the AWS WAF Fraud Control account takeover prevention (ATP) managed rule group configured for the login path.
B.
Subscribe to AWS Shield Advanced so that the AWS Shield Response Team blocks credential stuffing requests.
C.
Enable Amazon GuardDuty so that it automatically blocks malicious IP addresses at the CloudFront edge.
D.
Add a rate-based rule to the same web ACL, scoped down to the login path, to limit the number of requests from each client.
E.
Add network ACL deny rules for the attacking IP addresses on the ALB subnets.
7
Domain 1
A company uses AWS Organizations with more than 80 member accounts. For data residency, all workloads must be deployed only in eu-central-1 and eu-west-1. Global services such as IAM, Amazon CloudFront, and Amazon Route 53 must continue to work. Administrators in member accounts have the AdministratorAccess policy. Which solution enforces this requirement preventively?
A.
Attach an IAM permissions boundary to every IAM role in each member account that allows actions only in the two approved Regions.
B.
Deploy an AWS Config rule in all Regions that detects resources outside the approved Regions and invokes a remediation action to delete them.
C.
Attach an SCP to the workload OUs that denies all actions when aws:RequestedRegion is not eu-central-1 or eu-west-1, using NotAction to exempt global services.
D.
Disable every Region except eu-central-1 and eu-west-1 from the Account settings page in each member account.
8
Domain 3
A company runs 400 Amazon EC2 instances across several accounts. AWS Compute Optimizer recommends downsizing many of them, but engineers distrust the recommendations because several applications are memory-bound and the recommendations do not reflect memory utilization. The company wants more accurate right-sizing recommendations with the LEAST effort. What should a solutions architect do?
A.
Move all instances to burstable T-family instance types with unlimited mode so that capacity adjusts automatically.
B.
Use the AWS Trusted Advisor Low Utilization Amazon EC2 Instances check instead of Compute Optimizer.
C.
Write a script that collects memory statistics from each instance into Amazon DynamoDB and build a custom right-sizing report in Amazon QuickSight.
D.
Use AWS Systems Manager to install and configure the Amazon CloudWatch agent on all instances to publish memory utilization metrics, so Compute Optimizer includes memory in its recommendations.
9
Domain 3
A media company stores 2 PB of user-uploaded videos in Amazon S3 Standard. Access patterns are unpredictable: most videos are rarely viewed after 30 days, but some old videos suddenly become popular again. Retrieval must remain at millisecond latency, and the company wants to avoid unexpected retrieval charges. Which solution is the MOST cost-effective with the LEAST operational overhead?
A.
Use an S3 Lifecycle rule to transition the objects to S3 Intelligent-Tiering, using only its automatic Frequent, Infrequent, and Archive Instant Access tiers.
B.
Use an S3 Lifecycle rule to transition objects to S3 Standard-IA after 30 days.
C.
Use an S3 Lifecycle rule to transition objects to S3 Glacier Flexible Retrieval after 30 days.
D.
Use an S3 Lifecycle rule to transition objects to S3 One Zone-IA after 30 days.
10
Domain 4
A logistics company runs an on-premises SFTP server where 300 external partners upload shipping manifests by using SSH key authentication. The company is migrating to AWS and wants to retire the server. Partners must not change their hostname or credentials, and uploaded files must land in Amazon S3 to trigger downstream processing. Which solution meets these requirements with the LEAST operational overhead?
A.
Deploy OpenSSH on Amazon EC2 instances in an Auto Scaling group behind a Network Load Balancer and mount the S3 bucket with a FUSE file system.
B.
Deploy an S3 File Gateway on AWS Storage Gateway and enable SFTP access for the partners.
C.
Create an AWS Transfer Family SFTP server with Amazon S3 storage, import the existing host key and partners' SSH public keys as service-managed users, point the existing hostname to the server endpoint in Amazon Route 53, and trigger processing from S3 events or Transfer Family managed workflows.
D.
Install an AWS DataSync agent on premises to continuously copy the SFTP upload directory to Amazon S3.
0/10 terjawab
Periksa