📝 Drill SAP-C02 — sore 2026-10-02
Set #8 · fokus Domain 2 · 10 soal · pilih jawaban lalu tekan
Periksa
1
Domain 2
A company runs a customer-facing API on Amazon ECS with AWS Fargate behind an Application Load Balancer. Each release must first receive 10% of production traffic for 5 minutes, then all traffic, and must roll back automatically if the API's 5XX error-rate CloudWatch alarm fires during the deployment. The team wants the LEAST operational overhead. Which solution meets these requirements?
A.
Use the ECS rolling update deployment type with minimumHealthyPercent set to 90 and enable the ECS deployment circuit breaker with rollback.
B.
Use the ECS blue/green deployment type managed by AWS CodeDeploy with the CodeDeployDefault.ECSCanary10Percent5Minutes configuration and attach the CloudWatch alarm to the deployment group for automatic rollback.
C.
Create two ECS services in separate target groups and use Route 53 weighted records set to 10/90, then use a Lambda function to change weights after 5 minutes and revert them if the alarm fires.
D.
Update the ECS task definition through an AWS CloudFormation stack update and configure CloudFormation rollback triggers that reference the CloudWatch alarm.
2
Domain 2
A financial services company processes reports on EC2 instances in private subnets that have no internet access. Security requires that the reports bucket in Amazon S3 can be accessed ONLY from this specific VPC, and that traffic never traverses the public internet. The solution must be the MOST cost-effective. What should a solutions architect do?
A.
Deploy a NAT gateway with an Elastic IP address and add a bucket policy that denies requests unless aws:SourceIp equals the Elastic IP address.
B.
Create an S3 interface endpoint and add a bucket policy that denies requests unless aws:SourceIp matches the private CIDR range of the VPC.
C.
Create an S3 gateway endpoint and attach an endpoint policy that allows access to the bucket; no bucket policy changes are required.
D.
Create an S3 gateway endpoint, add it to the private subnets' route tables, and add a bucket policy that denies all requests unless aws:SourceVpce equals the endpoint ID.
3
Domain 2
A healthcare company must encrypt data in Amazon S3 and Amazon EBS. Compliance requires that the key material be generated and stored in single-tenant FIPS 140-2 Level 3 validated HSMs under the company's exclusive control, and that keys can be disconnected immediately if needed. The company wants to keep using native AWS service integrations such as SSE-KMS. Which solution meets these requirements?
A.
Create an AWS CloudHSM cluster and an AWS KMS custom key store backed by that cluster, then create KMS keys in the custom key store and use them for SSE-KMS and EBS encryption.
B.
Create AWS KMS customer managed keys with imported key material (EXTERNAL origin) generated on an on-premises HSM, and set an expiration date on the key material.
C.
Create an AWS CloudHSM cluster and perform client-side encryption in every application before writing data to S3 and EBS.
D.
Create AWS KMS multi-Region customer managed keys with automatic key rotation enabled.
4
Domain 2
An e-commerce company's product catalog runs on Amazon RDS for MySQL. CloudWatch shows CPU at 90% during sales events, and Performance Insights reveals that a small set of identical SELECT queries account for 85% of load. Catalog data is updated only a few times per day. The company wants to improve read latency in the MOST cost-effective way. What should a solutions architect recommend?
A.
Add five RDS read replicas behind a Route 53 multivalue answer record and route all catalog reads to the replicas.
B.
Scale the DB instance vertically to the largest memory-optimized instance class and enable Multi-AZ.
C.
Deploy Amazon ElastiCache for Redis (Valkey) and implement a lazy-loading cache in the application with a TTL aligned to the catalog update frequency.
D.
Migrate the database to Amazon Aurora MySQL and enable Aurora Auto Scaling for replicas with a target CPU of 50%.
5
Domain 2
A logistics company is moving several on-premises applications to AWS. The applications exchange messages through a self-managed RabbitMQ cluster using AMQP 0-9-1, exchanges, and routing keys. The company wants to stop managing broker servers while making the FEWEST possible changes to application code. Which solution should the solutions architect choose?
A.
Replace RabbitMQ with Amazon SQS standard queues and rewrite producers and consumers to use the AWS SDK.
B.
Migrate to Amazon MQ for RabbitMQ in a cluster deployment and update the applications' broker connection endpoints.
C.
Replace RabbitMQ with Amazon SNS topics with SQS subscriptions and use message filtering to replicate routing keys.
D.
Deploy RabbitMQ on Amazon EC2 instances in an Auto Scaling group across three Availability Zones.
6
Domain 2
A company uses AWS Organizations with more than 200 accounts, and new accounts are created every week in the Workloads OU. Every account in that OU must receive a standard IAM audit role and a set of CloudWatch alarms defined in an AWS CloudFormation template, including accounts created in the future. The company wants the LEAST operational overhead. What should a solutions architect do?
A.
Create an EventBridge rule on CreateAccount events that invokes a Lambda function to assume OrganizationAccountAccessRole and create a CloudFormation stack in each new account.
B.
Use self-managed permissions with CloudFormation StackSets and add each new account ID to the stack set after the administration and execution roles are created in the account.
C.
Create a CloudFormation StackSet with service-managed permissions targeting the Workloads OU and enable automatic deployment.
D.
Share the template through AWS Service Catalog and ask each account owner to launch the product after account creation.
7
Domain 1
A company stores shared machine-learning datasets in a single S3 bucket in a central account. All current and future accounts in the company's AWS Organizations organization must be able to read the datasets, and accounts outside the organization must be denied. Accounts are added and removed frequently. Which solution requires the LEAST ongoing maintenance?
A.
Maintain a bucket policy that lists every account ID in the organization as a principal, updated by a Lambda function on account creation events.
B.
Create an IAM role in the central account that every account must assume to read the bucket, and update the role's trust policy when accounts change.
C.
Replicate the bucket to every account using S3 Cross-Region Replication with replica ownership override.
D.
Add a bucket policy statement that allows s3:GetObject and s3:ListBucket to all principals with a condition that aws:PrincipalOrgID equals the organization ID.
8
Domain 3
Choose 2
A security audit finds that a production Amazon RDS for PostgreSQL DB instance was created without encryption at rest. The company must encrypt the database with a customer managed AWS KMS key and can accept a short maintenance window. Which combination of steps should a solutions architect take? (Choose TWO)
A.
Modify the DB instance to enable encryption at rest and apply the change immediately.
B.
Take a snapshot of the DB instance and copy the snapshot, specifying the customer managed KMS key to encrypt the copy.
C.
Create an encrypted read replica of the unencrypted DB instance and promote it to a standalone instance.
D.
Restore a new DB instance from the encrypted snapshot and point the application to the new instance endpoint.
E.
Enable EBS encryption by default in the account so that the existing DB instance storage is encrypted.
9
Domain 4
A media company is migrating 60 TB of files from an on-premises NFS server to Amazon EFS over an existing 10 Gbps AWS Direct Connect link. Files continue to change during the 3-week migration, so the company needs scheduled incremental transfers, data integrity verification, and a final cutover sync, with the LEAST operational overhead. Which solution meets these requirements?
A.
Deploy an AWS DataSync agent on premises, create a task from the NFS location to the EFS location, schedule incremental runs, and run a final task during cutover.
B.
Deploy an Amazon S3 File Gateway on premises, copy files to it, and then use S3 Batch Operations to move the objects into EFS.
C.
Mount EFS on an EC2 instance over Direct Connect and run cron-scheduled rsync jobs from an on-premises server, with custom checksum scripts.
D.
Order multiple AWS Snowball Edge Storage Optimized devices to copy the data and import it directly into Amazon EFS.
10
Domain 3
A company has a steady baseline of compute spend split across Amazon EC2 instances of several families in two Regions, Amazon ECS on AWS Fargate, and AWS Lambda. The engineering team frequently changes instance families and is gradually moving EC2 workloads to Fargate. The company wants to reduce compute cost with a 1-year commitment while keeping maximum flexibility. What should the solutions architect recommend?
A.
Purchase Compute Savings Plans sized to the steady baseline hourly spend.
B.
Purchase EC2 Instance Savings Plans for the most-used instance family in each Region.
C.
Purchase Standard Reserved Instances for the current EC2 instances and use On-Demand for Fargate and Lambda.
D.
Purchase Convertible Reserved Instances and exchange them as instance families change.
0/10 terjawab
Periksa