📝 Drill SAP-C02 — pagi 2026-11-08
Set #81 · fokus Domain 2 · 10 soal · pilih jawaban lalu tekan
Periksa
1
Domain 2
A fintech company runs a containerized payments API on Amazon ECS with AWS Fargate behind an Application Load Balancer. Every new release must first receive 10% of production traffic for 15 minutes before all traffic is shifted. If a CloudWatch alarm on HTTP 5XX errors fires during the deployment, traffic must automatically return to the previous version. Which solution meets these requirements with the LEAST operational overhead?
A.
Use the ECS rolling update deployment type with minimumHealthyPercent set to 100, maximumPercent set to 200, and the deployment circuit breaker enabled.
B.
Run two separate ECS services behind two ALBs, create Route 53 weighted records at 10/90, and use a Lambda function triggered by the alarm to change the record weights.
C.
Configure an AWS CodeDeploy blue/green deployment for the ECS service with the CodeDeployDefault.ECSCanary10Percent15Minutes configuration and attach the 5XX CloudWatch alarm to the deployment group with automatic rollback enabled.
D.
Create a second target group for the new task set and run a scheduled script that updates the ALB listener's weighted target group values, reverting them manually if errors appear.
2
Domain 2
A project team provisions a short-lived environment with AWS CloudFormation, including an Amazon RDS for PostgreSQL DB instance. When the project ends, the team deletes the stack. Compliance requires a final copy of the database to be kept indefinitely after deletion, while all other resources and ongoing compute costs are removed. Which solution meets these requirements MOST cost-effectively?
A.
Set the DeletionPolicy attribute of the AWS::RDS::DBInstance resource to Snapshot.
B.
Set the DeletionPolicy attribute of the AWS::RDS::DBInstance resource to Retain.
C.
Enable termination protection on the CloudFormation stack.
D.
Set the BackupRetentionPeriod property of the DB instance to 35 days.
3
Domain 2
An ecommerce company runs Amazon RDS for MySQL as a Multi-AZ DB instance deployment. Heavy reporting queries are overloading the primary instance during business hours. The company wants to offload these read queries and also achieve faster failover than the current deployment provides, without managing separate read replicas. Which solution meets these requirements?
A.
Point the reporting application at the standby instance of the existing Multi-AZ DB instance deployment.
B.
Create a cross-Region read replica and direct reporting queries to it.
C.
Place Amazon RDS Proxy in front of the DB instance and configure it to route read-only queries to the standby.
D.
Migrate to a Multi-AZ DB cluster deployment with two readable standby instances and direct the reporting queries to the cluster's reader endpoint.
4
Domain 2
A genomics research company runs nightly batch jobs that last 2–5 hours. The jobs checkpoint their progress to Amazon S3 and can resume after interruption, and the start time is flexible. The workload size varies widely from night to night. The company wants the MOST cost-effective compute option while keeping interruptions to a minimum. Which solution meets these requirements?
A.
Use an Auto Scaling group with Spot Instances of a single instance type in one Availability Zone and the lowest-price allocation strategy.
B.
Use an Auto Scaling group with a mixed instances policy that requests Spot Instances across many instance types and all Availability Zones, using the price-capacity-optimized allocation strategy.
C.
Purchase a 3-year Compute Savings Plan sized to the largest nightly run and use On-Demand Instances.
D.
Create On-Demand Capacity Reservations for the peak instance count in each Availability Zone.
5
Domain 2
A media company's web tier sends image-processing jobs to an Amazon SQS standard queue. Worker EC2 instances in an Auto Scaling group poll the queue; each worker processes about 10 messages per minute, and jobs must finish within 5 minutes of submission. Scaling on CPU utilization reacts too slowly during upload spikes, so the queue backs up. Which scaling approach BEST keeps processing latency within the requirement?
A.
Publish a custom CloudWatch metric for backlog per instance (ApproximateNumberOfMessagesVisible divided by the number of InService instances) and use a target tracking policy with a target value of the acceptable backlog per instance.
B.
Create a step scaling policy based only on the ApproximateNumberOfMessagesVisible metric with fixed step sizes.
C.
Configure scheduled scaling actions based on last month's upload patterns.
D.
Replace the SQS queue with an Amazon SNS topic that pushes jobs directly to the worker instances through an ALB.
6
Domain 2
A company's custom scripts create daily Amazon EBS snapshots for hundreds of tagged volumes but never delete them, and snapshot storage costs keep rising. Policy requires daily snapshots to be kept for 7 days and one monthly snapshot to be kept for 1 year; monthly snapshots are rarely restored. Which solution meets these requirements with the LEAST operational overhead and lowest cost?
A.
Write a Lambda function on an EventBridge schedule that deletes snapshots older than 7 days and copies the monthly snapshot to an S3 Glacier Deep Archive bucket.
B.
Apply an S3 Lifecycle configuration to the bucket that stores EBS snapshots to transition and expire them.
C.
Create Amazon Data Lifecycle Manager snapshot policies targeting the volume tags: a daily schedule retaining 7 snapshots and a monthly schedule retaining 12 snapshots that are moved to the EBS Snapshots Archive tier.
D.
Create a Recycle Bin retention rule that keeps deleted snapshots for 1 year, and delete daily snapshots after 7 days.
7
Domain 1
A company with 60 AWS accounts in AWS Organizations must back up all Amazon RDS, DynamoDB, and EBS resources tagged backup=gold every day. Copies must be stored in a central backup account in a different Region, and administrators in member accounts must not be able to alter the backup schedule or delete the central copies. Which solution meets these requirements with the LEAST operational overhead?
A.
Deploy an AWS Config rule in each account that detects tagged resources and invokes a Lambda function to create snapshots and share them with the backup account.
B.
Use CloudFormation StackSets to deploy Amazon Data Lifecycle Manager policies to every account and copy the snapshots to the backup account.
C.
Use CloudFormation StackSets to deploy an AWS Backup plan to each member account and have each account copy recovery points to the central account.
D.
Enable AWS Backup cross-account management from the management account, attach AWS Backup policies to the OUs that select resources by the backup=gold tag and copy to a vault in the central account's Region, and apply AWS Backup Vault Lock to the central vault.
8
Domain 3
A company's Java 21 Spring Boot functions on AWS Lambda sit behind Amazon API Gateway. Cold starts take up to 6 seconds because of framework initialization, causing p99 latency violations. Traffic is spiky and unpredictable throughout the day. The company wants to reduce cold-start latency in the MOST cost-effective way without rewriting the application. What should a solutions architect recommend?
A.
Configure provisioned concurrency on the functions sized to the observed peak concurrency.
B.
Enable Lambda SnapStart on the functions, publish versions, and invoke the functions through an alias that points to the published version.
C.
Increase the memory of each function to 10,240 MB to obtain more CPU during initialization.
D.
Create an EventBridge rule that invokes each function every 5 minutes to keep it warm.
9
Domain 4
A company plans to migrate 400 Windows and Linux servers, a mix of VMware virtual machines and physical servers, to AWS. Before planning migration waves, the company needs an inventory that includes running processes and inbound and outbound network connections for each server so that interdependent servers can be grouped into applications. Which solution meets these requirements?
A.
Install the AWS Application Discovery Service Discovery Agent on all servers and use AWS Migration Hub to visualize server network dependencies and group servers into applications.
B.
Deploy the Application Discovery Service Agentless Collector in VMware vCenter to collect data from all servers.
C.
Run Migration Evaluator to produce a total cost of ownership business case for the servers.
D.
Install the AWS Application Migration Service replication agent on all servers and use its console to map dependencies.
10
Domain 3
Choose 2
A company administers EC2 instances in private subnets that have no internet gateway or NAT path, which security requires to remain unchanged. Administrators currently connect through SSH bastion hosts with shared keys. The security team wants to remove all inbound ports, control access with IAM, and log every session to Amazon S3. Which combination of steps meets these requirements? (Choose TWO)
A.
Assign public IP addresses to the instances and use EC2 Instance Connect from the console.
B.
Attach an instance profile with the AmazonSSMManagedInstanceCore policy and use Session Manager with session logging to S3 enabled, granting access through IAM policies.
C.
Add a NAT gateway so the SSM Agent can reach the public Systems Manager endpoints.
D.
Allow inbound TCP port 22 from the VPC CIDR in the instances' security groups and rotate SSH keys with Secrets Manager.
E.
Create interface VPC endpoints for ssm, ssmmessages, and ec2messages, plus an S3 gateway endpoint for session log delivery.
0/10 terjawab
Periksa