📝 Drill SAP-C02 — pagi 2026-10-14
Set #31 · fokus Domain 3 · 10 soal · pilih jawaban lalu tekan
Periksa
1
Domain 3
A payments company deploys new versions of a critical AWS Lambda function by updating the $LATEST code directly through a CI pipeline. Last month a bad release caused a 20-minute outage before an engineer manually reverted it. The company wants new versions to receive a small share of production traffic first and to roll back automatically if errors rise, with the LEAST operational overhead. Which solution meets these requirements?
A.
Create two Lambda functions (blue and green) behind an Application Load Balancer with weighted target groups, and use a scheduled Lambda function to shift weights and check error metrics.
B.
Publish versions behind a Lambda alias and use AWS CodeDeploy with a Canary10Percent5Minutes deployment configuration, attaching CloudWatch alarms on the function's Errors metric to trigger automatic rollback.
C.
Use AWS CodeDeploy with an AllAtOnce deployment configuration and add a pre-traffic hook that runs integration tests against the new version.
D.
Configure Lambda provisioned concurrency on the new version and use Amazon Route 53 weighted records to send 10% of traffic to a function URL for the new version.
2
Domain 3
A media company's Auto Scaling groups failed to launch instances during a live event because the account reached its Running On-Demand Standard instances vCPU quota. Operations wants to be warned well before any similar quota blocks growth and wants to track increase requests centrally. Which solution provides this with the LEAST operational overhead?
A.
Write a Lambda function that calls DescribeInstances every 5 minutes, sums vCPUs, compares the total to a hard-coded limit, and publishes to Amazon SNS.
B.
Enable AWS Config with a custom rule that evaluates the number of running instances against the quota and marks the account noncompliant above 80%.
C.
Use AWS Trusted Advisor service limit checks and review the dashboard manually each week before planned events.
D.
Create Amazon CloudWatch alarms on the AWS/Usage metrics for the relevant quotas from the Service Quotas console (for example at 80% of the applied quota), and request and track increases through Service Quotas.
3
Domain 3
A company runs Amazon GuardDuty in all accounts. When GuardDuty reports a finding such as an EC2 instance communicating with a known command-and-control server, the security team currently isolates the instance manually, which takes hours. The team wants the instance to be isolated automatically within minutes while preserving it for forensics. Which solution meets these requirements?
A.
Create an Amazon EventBridge rule that matches the relevant GuardDuty finding types and invokes a Systems Manager Automation runbook (or Lambda function) that replaces the instance's security groups with an isolation security group that has no inbound or outbound rules, and creates EBS snapshots.
B.
Enable AWS Security Hub and configure it to terminate any EC2 instance associated with a HIGH severity finding.
C.
Create an AWS Config managed rule that detects instances with open security groups and remediates by stopping the instance.
D.
Configure a VPC network ACL that denies all traffic and have the security team attach it to the subnet when an alert email arrives.
4
Domain 3
An audit found that many IAM roles across a company's AWS Organization have broad permissions, and some roles have not been used for months. The security team wants a continuous, organization-wide view of unused roles, unused access keys, and unused service permissions so that it can right-size policies toward least privilege, with minimal custom tooling. Which solution should the team use?
A.
Generate the IAM credential report in each account weekly and parse it with Amazon Athena.
B.
Enable AWS CloudTrail Lake and write SQL queries to compare each role's API calls against its attached policies.
C.
Create an IAM Access Analyzer unused access analyzer with the organization as the zone of trust from the delegated administrator account, and review the findings to remove unused roles and permissions.
D.
Enable Amazon Inspector in all accounts and review the IAM findings in Security Hub.
5
Domain 3
A company's Java application on EC2 behind an Application Load Balancer takes about 8 minutes to boot because it loads large reference data into memory. During sudden traffic spikes, scale-out is too slow and latency SLAs are breached. Keeping many extra instances running all day is considered too expensive. Which solution MOST cost-effectively reduces scale-out time?
A.
Configure an Auto Scaling warm pool with instances in the Stopped state that have already been initialized, so they can be started and placed in service quickly when the group scales out.
B.
Double the minimum capacity of the Auto Scaling group permanently.
C.
Switch the scaling policy from target tracking to a simple scaling policy with a shorter cooldown period.
D.
Move the instances to a cluster placement group to speed up instance launches.
6
Domain 3
Choose 2
A serverless order API uses AWS Lambda functions that connect to an Amazon RDS for MySQL Multi-AZ instance. During flash sales, Lambda scales to thousands of concurrent executions, the database runs out of connections, and requests fail. During a recent Multi-AZ failover, the application also took several minutes to recover. Which combination of actions will MOST improve reliability? (Choose TWO)
A.
Upgrade to a much larger DB instance class solely to raise the max_connections parameter.
B.
Place Amazon RDS Proxy between the Lambda functions and the database to pool and reuse connections and to reduce failover time.
C.
Add an Amazon ElastiCache for Redis cluster to cache all order writes before they reach the database.
D.
Set reserved concurrency on the Lambda functions to cap the maximum number of concurrent executions to a level the database can sustain.
E.
Create a cross-Region read replica and point the Lambda functions at it during flash sales.
7
Domain 1
A company has dozens of microservices owned by different teams in separate AWS accounts and VPCs, several with overlapping CIDR ranges. Services run on a mix of EC2, ECS, and Lambda. The platform team wants service-to-service HTTP connectivity across accounts with IAM-based authorization per service and centralized access logging, without managing VPC peering, transit gateway route tables, or load balancers for every service. Which solution meets these requirements with the LEAST operational overhead?
A.
Create a transit gateway shared through AWS RAM and use NAT gateways in each VPC to work around overlapping CIDRs.
B.
Create a VPC endpoint service (AWS PrivateLink) with a Network Load Balancer for each microservice and interface endpoints in every consumer VPC.
C.
Create an Amazon VPC Lattice service network shared through AWS RAM, register each microservice as a VPC Lattice service with auth policies, associate the VPCs, and enable access logs.
D.
Deploy AWS App Mesh with Envoy sidecars in every VPC and peer all VPCs together.
8
Domain 2
A research company stores 4 million small JSON files in an Amazon S3 bucket and needs to run a validation and enrichment step on every file each night. The current solution, a single EC2 instance running a script, takes 14 hours. The company wants a serverless solution that processes files in parallel at high concurrency, tracks per-item failures, and requires the LEAST custom orchestration code. Which solution meets these requirements?
A.
Configure S3 Event Notifications to send every object key to an Amazon SQS queue and process it with a Lambda function, then reconcile failures with a nightly script.
B.
Use an AWS Batch array job on Fargate with one child job per file.
C.
Use an AWS Glue Python shell job that lists the bucket and processes files sequentially.
D.
Use an AWS Step Functions state machine with a Distributed Map state that reads the S3 prefix (or an S3 inventory), invokes a Lambda function for batches of items with high concurrency, and writes results and failures to S3.
9
Domain 4
A retailer wants to migrate a 3 TB on-premises Oracle database to Amazon Aurora PostgreSQL to eliminate licensing costs. The database contains many PL/SQL stored procedures. The business allows a maximum of 30 minutes of downtime during cutover. Which approach meets these requirements?
A.
Use AWS Schema Conversion Tool (or DMS Schema Conversion) to convert the schema and stored procedures, then use AWS DMS with a full load plus change data capture (CDC) task to keep Aurora in sync until cutover.
B.
Use Oracle Data Pump to export the database, copy the dump file to Amazon S3, and import it directly into Aurora PostgreSQL.
C.
Use AWS DMS full-load-only task during a weekend maintenance window; DMS automatically converts PL/SQL procedures to PL/pgSQL.
D.
Rehost the Oracle database on EC2 with AWS Application Migration Service, then use native Oracle replication to Aurora PostgreSQL.
10
Domain 2
A healthcare analytics company stores customer records as JSON objects in a single Amazon S3 bucket. The internal analytics team must see full records, while an external partner application must receive the same objects with personal identifiers redacted. The company does not want to store and synchronize a second redacted copy of the data. Which solution meets these requirements with the LEAST operational overhead?
A.
Run a nightly AWS Glue job that writes a redacted copy of all objects to a second bucket shared with the partner.
B.
Create an S3 Object Lambda Access Point with a Lambda function that redacts personal identifiers on GET requests, and grant the partner access only through that Object Lambda Access Point.
C.
Use Amazon Macie to discover personal data and automatically mask it inside the original objects.
D.
Configure S3 Replication with a replication rule filter that removes sensitive fields during replication to a partner bucket.
0/10 terjawab
Periksa