📝 Drill SAP-C02 — pagi 2026-11-14
Set #92 · fokus Domain 2 · 10 soal · pilih jawaban lalu tekan
Periksa
1
Domain 2
A company runs a Java application on Amazon ECS with AWS Fargate that connects to an Amazon RDS for PostgreSQL database. The database username and password are stored as plaintext environment variables in the task definition and have never been rotated. A new security policy requires the database credentials to be rotated automatically every 30 days without application downtime. Which solution meets these requirements with the LEAST operational overhead?
A.
Store the credentials as an AWS Systems Manager Parameter Store SecureString parameter. Create an Amazon EventBridge scheduled rule that invokes a custom AWS Lambda function every 30 days to change the database password and update the parameter.
B.
Store the credentials in AWS Secrets Manager, enable managed rotation every 30 days using the alternating-users rotation strategy, and update the application to retrieve the secret through the Secrets Manager caching client.
C.
Keep the credentials in the task definition but encrypt the environment variables with a customer managed AWS KMS key that has automatic key rotation enabled.
D.
Store the credentials in an Amazon S3 object encrypted with SSE-KMS. Use a scheduled Lambda function to generate a new password, update the database, and overwrite the object every 30 days.
2
Domain 2
A data analytics team runs Amazon EC2 instances in private subnets that read and write terabytes of data to an Amazon S3 bucket in the same AWS Region. Traffic currently flows through a NAT gateway, and NAT gateway data processing charges have become significant. The security team also requires that the bucket be accessible only from this VPC. Which solution is the MOST cost-effective way to meet these requirements?
A.
Create an interface VPC endpoint for Amazon S3 with private DNS enabled. Add a bucket policy that denies requests unless aws:SourceIp matches the VPC CIDR range.
B.
Replace the NAT gateway with a NAT instance on a large EC2 instance type. Add a bucket policy that allows access only from the NAT instance Elastic IP address.
C.
Enable S3 Transfer Acceleration on the bucket. Add a bucket policy that allows access only from the NAT gateway Elastic IP address.
D.
Create a gateway VPC endpoint for Amazon S3 and associate it with the private subnet route tables. Add a bucket policy that denies all requests where aws:SourceVpce does not equal the endpoint ID.
3
Domain 2
A company uses AWS Organizations with separate OUs for production and development accounts. Production EC2 instances must be launched only from approved golden AMIs, while developers can use any AMI in development accounts. The security team needs continuous evaluation, a historical record of noncompliant instances, and automatic stopping of noncompliant production instances. Which solution meets these requirements with the LEAST operational overhead?
A.
Use AWS CloudFormation StackSets targeting the production OU to deploy the AWS Config managed rule approved-amis-by-tag with an automatic remediation that runs the AWS-StopEC2Instance Systems Manager Automation runbook.
B.
Attach an SCP to the production OU that denies ec2:RunInstances unless the ec2:ImageId condition key matches a list of approved AMI IDs, and update the SCP each time a new AMI is approved.
C.
Enable Amazon GuardDuty in all production accounts and create an EventBridge rule that stops any instance that GuardDuty flags with a finding.
D.
Enable Amazon Inspector in the production accounts to scan AMIs, and have an operations engineer stop instances based on a weekly Inspector report.
4
Domain 2
An e-commerce company stores its product catalog in Amazon Aurora MySQL. During flash sales, about 90% of database reads are identical product-detail queries, and catalog data changes only a few times per day. The Aurora writer CPU reaches 95% and page load times increase. The company needs sub-millisecond read latency for these queries during peak events. Which solution meets this requirement?
A.
Add Aurora Replicas with Aurora Auto Scaling and direct product-detail reads to the reader endpoint.
B.
Scale the Aurora writer instance up to the largest available memory-optimized instance class before each sale.
C.
Deploy Amazon ElastiCache (Redis OSS or Valkey) in front of Aurora using a lazy-loading pattern with a TTL, and invalidate cached items when the catalog is updated.
D.
Convert the cluster to an Aurora Global Database and route product-detail reads to the secondary Region.
5
Domain 2
A company is migrating an on-premises order-processing system to AWS. Dozens of producer and consumer applications communicate through an Apache ActiveMQ broker using JMS over the OpenWire and STOMP protocols. The company wants a managed, highly available message broker and wants to avoid rewriting the messaging code in the applications. Which solution meets these requirements?
A.
Replace the broker with Amazon SQS FIFO queues and refactor the producers and consumers to use the AWS SDK.
B.
Deploy an Amazon MQ for ActiveMQ broker in an active/standby configuration across two Availability Zones and update the applications' broker connection endpoints.
C.
Deploy an Amazon MSK cluster and replace the JMS clients with Apache Kafka producer and consumer libraries.
D.
Install ActiveMQ on Amazon EC2 instances in an Auto Scaling group across two Availability Zones with shared storage on Amazon EFS.
6
Domain 2
Choose 2
A media company runs two workloads on AWS. The first is an Amazon Redshift provisioned cluster that runs 24/7 with a steady size that is expected to remain unchanged for the next 3 years. The second is a nightly image-rendering job on Amazon EC2 that is fault-tolerant, checkpoints its progress, and can run at any time within an 8-hour window. The company wants to minimize the cost of both workloads. Which combination of actions should a solutions architect take? (Choose TWO)
A.
Purchase 3-year Amazon Redshift reserved nodes for the cluster.
B.
Purchase a 3-year Compute Savings Plan sized to cover the Redshift cluster's hourly spend.
C.
Create On-Demand Capacity Reservations for the rendering instances during the nightly window.
D.
Run the rendering job on EC2 Spot Instances using an EC2 Fleet or Auto Scaling group with multiple instance types and the price-capacity-optimized allocation strategy.
E.
Purchase a 3-year EC2 Instance Savings Plan to cover the rendering instances.
7
Domain 1
A company has 60 AWS accounts in AWS Organizations. Finance relies on a CostCenter tag for chargeback, but teams use inconsistent keys such as costcenter and Cost-Center and invalid values, which breaks cost reports. The company needs to standardize the tag key capitalization and allowed values across all accounts and prevent noncompliant tagging operations on supported resource types. Which solution meets these requirements with the LEAST operational overhead?
A.
Create IAM policies in every account with aws:RequestTag conditions that require the CostCenter tag with approved values, and attach them to all IAM roles.
B.
Deploy the AWS Config required-tags managed rule in every account and send noncompliance notifications to each account owner.
C.
Create an Organizations tag policy that defines the CostCenter key capitalization and allowed values with enforcement enabled for the required resource types, attach it to the organization root, and activate CostCenter as a cost allocation tag in the management account.
D.
Have the finance team use Resource Groups Tag Editor each month to find and correct incorrectly tagged resources across accounts.
8
Domain 3
A company has 400 Amazon EBS gp2 volumes of 1 TiB each attached to production EC2 instances. AWS Compute Optimizer shows that each volume consistently needs no more than 3,000 IOPS and 125 MiB/s of throughput. The company wants to reduce EBS costs without any downtime and with minimal effort. What should a solutions architect recommend?
A.
Use Elastic Volumes to modify each volume in place from gp2 to gp3 with the default 3,000 IOPS and 125 MiB/s baseline.
B.
Take snapshots of each volume, create new gp3 volumes from the snapshots, stop the instances, and swap the volumes.
C.
Modify each volume in place to st1 Throughput Optimized HDD to take advantage of the lower per-GiB price.
D.
Modify each volume in place to io2 with 3,000 provisioned IOPS to guarantee consistent performance.
9
Domain 4
A company is migrating 40 TB of data from on-premises Windows file servers to AWS. The shares are accessed over SMB, use NTFS ACLs for permissions, are published through DFS Namespaces, and are joined to the company's Active Directory. The Windows applications that use the shares are also moving to AWS. The company wants a fully managed, Multi-AZ file service that preserves existing permissions with the LEAST operational overhead. Which solution meets these requirements?
A.
Create an Amazon EFS file system with Multi-AZ storage, mount it on the Windows instances, and copy the data with robocopy.
B.
Deploy AWS Storage Gateway Volume Gateway in cached mode and present iSCSI volumes to a Windows file server that shares the data over SMB.
C.
Launch Windows Server EC2 instances with large EBS volumes in two Availability Zones, configure DFS Replication between them, and copy the data with robocopy.
D.
Deploy Amazon FSx for Windows File Server in a Multi-AZ configuration joined to Active Directory, migrate the data with AWS DataSync to preserve NTFS ACLs, and update the DFS namespace targets to the FSx shares.
10
Domain 3
A company manages Linux EC2 instances in private subnets across 30 VPCs through bastion hosts that use SSH keys shared among administrators. Auditors require the company to remove all inbound SSH access, grant access per user through IAM, and keep a log of every session. Which solution meets these requirements with the LEAST operational overhead?
A.
Restrict the bastion host security groups to the corporate IP range, store individual SSH keys in AWS Secrets Manager with rotation, and forward bastion shell history to Amazon CloudWatch Logs.
B.
Use AWS Systems Manager Session Manager with an instance profile that includes AmazonSSMManagedInstanceCore, create interface VPC endpoints for ssm, ssmmessages, and ec2messages, enable session logging to Amazon S3 or CloudWatch Logs, and remove port 22 from the security groups.
C.
Assign public IP addresses to the instances and use EC2 Instance Connect so administrators push temporary SSH keys with IAM permissions.
D.
Deploy AWS Client VPN into each VPC so administrators connect directly to instances over SSH with their existing keys.
0/10 terjawab
Periksa