📝 Drill SAP-C02 — sore 2026-11-17
Set #99 · fokus Domain 4 · 10 soal · pilih jawaban lalu tekan
Periksa
1
Domain 4
A retailer is breaking its monolithic order system into microservices for payment, inventory, and shipping. Each order must call these services in sequence, retry transient failures with backoff, and run compensating actions (refund payment, release inventory) if a later step fails. The team wants visual tracking of each order's progress and the LEAST custom code. Which solution meets these requirements?
A.
Publish each order to an Amazon SNS topic that all three services subscribe to, and have each service publish a failure message that the others use to roll back.
B.
Chain the services with Amazon SQS queues between each step and write retry and rollback logic in each consumer.
C.
Model the order as an AWS Step Functions Standard workflow with Retry and Catch blocks that invoke compensating tasks on failure.
D.
Create Amazon EventBridge rules that route events between services and use EventBridge archive and replay to recover failed orders.
2
Domain 4
A company runs a large Java monolith on Amazon EC2 behind an Application Load Balancer. It wants to modernize incrementally by extracting the /search and /reviews features into new containerized services on Amazon ECS with AWS Fargate, while all other requests continue to reach the monolith. Clients must keep using the same hostname, and the cutover of each feature must be reversible. Which approach meets these requirements with the LEAST operational overhead?
A.
Add path-based listener rules on the existing ALB that forward /search* and /reviews* to new target groups for the ECS services, leaving the default rule pointed at the monolith.
B.
Create a new hostname for each microservice in Amazon Route 53 and update all clients to call the new hostnames.
C.
Rewrite the entire monolith into microservices first, then switch DNS to a new ALB in a single cutover.
D.
Deploy an NGINX reverse proxy fleet on EC2 in front of the ALB to route requests to the monolith or the ECS services.
3
Domain 4
A web application was rehosted to Amazon EC2 and stores user session data in each server's local memory, so the team relies on ALB sticky sessions. When instances scale in or fail, users are logged out. The company wants the fleet to be stateless so the Auto Scaling group can scale freely, and session reads must complete in under a millisecond. Which solution meets these requirements?
A.
Store session data on an Amazon EBS Multi-Attach volume shared by all instances.
B.
Increase the ALB stickiness duration and enable connection draining on the target group.
C.
Store session data in an Amazon RDS for MySQL Multi-AZ table keyed by session ID.
D.
Move session data to an Amazon ElastiCache (Redis OSS or Valkey) cluster with replication and Multi-AZ enabled.
4
Domain 4
A company wants to move an image-classification job from an EC2 cron server to AWS Lambda. Each invocation takes about 2 minutes, and the code depends on Python libraries and a model file that together total 4 GB. The team wants to keep its existing Docker-based CI pipeline and minimize code changes. Which solution meets these requirements?
A.
Split the dependencies across five Lambda layers and attach them all to the function.
B.
Package the function as a container image of up to 10 GB, push it to Amazon ECR, and create the Lambda function from the image.
C.
Upload the dependencies as a .zip deployment package to Amazon S3 and reference it from the function configuration.
D.
Store the dependencies in /tmp by downloading them from Amazon S3 at the start of every invocation.
5
Domain 4
Choose 2
A company runs a nightly 45-minute data export script on a dedicated EC2 instance that sits idle the rest of the day. The script is already containerized. The company wants to eliminate server management and idle cost, and it wants the job to run at 01:00 in the company's local time zone, including correct handling of daylight saving time. Which combination of steps meets these requirements? (Choose TWO)
A.
Run the container as an Amazon ECS task on AWS Fargate.
B.
Rewrite the script as an AWS Lambda function triggered by a scheduled rule.
C.
Create an Amazon EventBridge Scheduler schedule with a cron expression and the company's time zone that starts the ECS task.
D.
Keep the EC2 instance and use an instance scheduler to stop and start it around the job.
E.
Use an Amazon CloudWatch Events rule in UTC and update the cron expression manually twice a year.
6
Domain 4
A company runs a self-managed MongoDB replica set on EC2 for its product catalog. The application uses MongoDB drivers and queries nested documents with secondary indexes. The operations team spends significant time on patching, backups, and replica management. The company wants a managed service with MINIMAL application code changes. Which target should the company choose?
A.
Amazon DynamoDB with the documents stored as items and the queries rewritten as Query and Scan calls.
B.
Amazon Aurora PostgreSQL using JSONB columns for the documents.
C.
Amazon Keyspaces (for Apache Cassandra) with tables designed around the catalog queries.
D.
Amazon DocumentDB (with MongoDB compatibility), migrated with AWS DMS.
7
Domain 1
A company with 80 AWS accounts in AWS Organizations must retain API activity logs from every current and future account for 7 years. Auditors require that no one, including administrators in member accounts, can delete or modify the logs during the retention period. Which solution meets these requirements with the LEAST operational overhead?
A.
Create a CloudTrail trail in each account with StackSets and deliver logs to a bucket in each account protected by a bucket policy.
B.
Create an organization trail in the management account (or delegated admin) that delivers to an S3 bucket in a dedicated log archive account with S3 Object Lock in compliance mode and a 7-year retention.
C.
Enable CloudTrail Event history in all accounts and export the events to Amazon S3 once a year.
D.
Create an organization trail delivering to a CloudWatch Logs log group with a 7-year retention setting.
8
Domain 2
A company's customer-facing API runs on AWS Lambda functions written in Java 21. During traffic spikes, p99 latency rises because cold starts take 6–8 seconds while the Spring framework initializes. Traffic is unpredictable, and the company wants to reduce cold-start latency in the MOST cost-effective way without rewriting the code. Which solution meets these requirements?
A.
Enable Lambda SnapStart on published function versions and invoke the function through an alias.
B.
Configure provisioned concurrency equal to the peak concurrency observed last month.
C.
Increase the function memory to 10,240 MB to get more CPU during initialization.
D.
Schedule an EventBridge rule to invoke each function every minute to keep it warm.
9
Domain 3
A company has 600 Amazon EC2 instances running Amazon Linux and Windows Server across several accounts. Security requires critical OS patches to be applied within 7 days of release, patching must happen only during approved weekend windows, and the team needs a compliance report showing unpatched instances. Which solution meets these requirements with the LEAST operational overhead?
A.
Write a cron job on each instance that runs the OS package manager every Saturday and emails the output to the security team.
B.
Rebuild AMIs weekly with EC2 Image Builder and replace all instances every weekend.
C.
Use AWS Systems Manager Patch Manager with patch baselines that auto-approve critical patches, run patching through Systems Manager maintenance windows, and review Patch Manager compliance data.
D.
Use Amazon Inspector to scan instances and manually patch any findings it reports.
10
Domain 3
A cost review shows that most of a company's NAT gateway data processing charges come from EC2 instances in private subnets that read and write several terabytes per day to Amazon S3 buckets in the same Region. The company wants to reduce this cost with the LEAST effort and without exposing the instances to the internet. What should a solutions architect do?
A.
Replace the NAT gateways with NAT instances on smaller EC2 instance types.
B.
Create an S3 gateway VPC endpoint and associate it with the private subnets' route tables.
C.
Move the instances to public subnets with Elastic IP addresses and restrict access with security groups.
D.
Enable S3 Transfer Acceleration on the buckets.
0/10 terjawab
Periksa