📝 Drill SAP-C02 — pagi 2026-11-06
Set #77 · fokus Domain 1 · 10 soal · pilih jawaban lalu tekan
Periksa
1
Domain 1
A company runs 40 VPCs across 12 AWS accounts in a single Region. All VPCs are attached to a shared AWS Transit Gateway, which connects to the on-premises data center over AWS Direct Connect. Workloads in every VPC must resolve names in the on-premises zone corp.example.internal, and on-premises servers must resolve records in Route 53 private hosted zones. The networking team wants the solution with the LEAST operational overhead. Which solution meets these requirements?
A.
Deploy a pair of EC2 instances running BIND as DNS forwarders in each VPC and configure DHCP option sets in every VPC to point to the forwarders.
B.
Create Route 53 Resolver inbound and outbound endpoints in a central shared-services VPC. Create a forwarding rule for corp.example.internal that targets the on-premises DNS servers, share the rule with all accounts by using AWS RAM, and associate it with every VPC. Associate the private hosted zones with the shared-services VPC and configure on-premises DNS to conditionally forward AWS domains to the inbound endpoint IP addresses.
C.
Create Route 53 Resolver outbound endpoints and forwarding rules in every VPC. Configure the on-premises DNS servers to forward AWS domains to the VPC+2 Amazon-provided resolver address of each VPC over Direct Connect.
D.
Create a Route 53 private hosted zone for corp.example.internal, associate it with all VPCs, and use a scheduled Lambda function to copy records from the on-premises DNS servers into the zone.
2
Domain 1
A company has 30 VPCs split between us-east-1 and eu-west-1, and the number of VPCs is expected to double within a year. The company has a single 10 Gbps AWS Direct Connect connection at a US location. On-premises users need private connectivity to every VPC in both Regions, and some VPCs in different Regions must communicate with each other. The solution must scale without creating a new virtual interface for each VPC. Which solution meets these requirements?
A.
Create a private virtual interface for each VPC on the Direct Connect connection and attach each one to the virtual private gateway of that VPC.
B.
Create a public virtual interface and establish an AWS Site-to-Site VPN connection over it to the virtual private gateway of every VPC.
C.
Create one private virtual interface to a Direct Connect gateway and associate the Direct Connect gateway with the virtual private gateway of every VPC in both Regions.
D.
Create a transit virtual interface to a Direct Connect gateway. Associate the Direct Connect gateway with a transit gateway in each Region, attach the VPCs to their Regional transit gateway, and peer the two transit gateways.
3
Domain 1
A central security team wants developers in workload accounts to create their own IAM roles for AWS Lambda functions without opening tickets. Any role a developer creates must never exceed a defined set of permissions, and developers must not be able to escalate privileges by weakening that guardrail. Which solution meets these requirements?
A.
Create a managed policy to act as a permissions boundary. Allow developers to call iam:CreateRole, iam:PutRolePolicy, and iam:AttachRolePolicy only when the iam:PermissionsBoundary condition key equals that policy ARN, and explicitly deny developers the ability to modify the boundary policy or remove permissions boundaries from roles.
B.
Attach an SCP to the workload OU that denies iam:CreateRole for all principals except the security team's role.
C.
Attach the AWS managed PowerUserAccess policy to the developers so they can create roles but cannot manage users or groups.
D.
Allow developers full IAM access and use IAM Access Analyzer to review every newly created role weekly and generate tightened policies from CloudTrail activity.
4
Domain 1
Choose 2
A company uses Okta as its workforce identity provider and has 60 accounts in AWS Organizations. Employees must sign in with Okta to any account they are assigned. Users and groups must stay in sync automatically when people join or leave. Access to resources must be scoped by each employee's cost center, which is stored as an attribute in Okta, while keeping the number of permission sets to a minimum. Which combination of steps meets these requirements? (Choose TWO)
A.
Create an IAM SAML identity provider and a set of federated IAM roles in each of the 60 accounts.
B.
Create an Amazon Cognito user pool federated with Okta and use an identity pool to issue AWS credentials for console access.
C.
Configure Okta as the external identity source for AWS IAM Identity Center and enable SCIM automatic provisioning.
D.
Create a separate permission set for each cost center in each account and assign groups accordingly.
E.
Enable attributes for access control in IAM Identity Center, map the Okta costCenter attribute, and write permission set policies that compare aws:PrincipalTag/costCenter with aws:ResourceTag/costCenter.
5
Domain 1
A company gives every development team its own sandbox account in a Sandbox OU. Finance requires a monthly cap of $2,000 per sandbox account. When actual spend reaches 100% of the cap, the account must automatically be prevented from launching new resources, but existing resources must be preserved for review. The solution must require minimal custom code. Which solution meets these requirements?
A.
Create a CloudWatch billing alarm in each account that invokes a Lambda function to terminate all EC2 instances and delete unattached EBS volumes.
B.
Create an AWS Cost Anomaly Detection monitor for each sandbox account that sends an SNS email to the team lead when spend is unusual.
C.
From the management account, create an AWS Budgets cost budget for each sandbox account with a budget action that automatically applies a restrictive SCP denying provisioning actions to the account when actual cost reaches 100%.
D.
Use Service Quotas to lower the EC2, RDS, and Lambda quotas in each sandbox account to values that keep spending under $2,000.
6
Domain 1
A SaaS provider hosts an API on EC2 instances in its own VPC. Hundreds of customers, each in their own AWS account, need private access to the API. Many customer VPC CIDR ranges overlap with one another and with the provider's VPC. Traffic must not traverse the internet, and customers must be able to reach only the API, not any other resources in the provider's VPC. Which solution meets these requirements?
A.
Create a VPC peering connection with each customer VPC and restrict access with security groups.
B.
Place the API behind a Network Load Balancer, create a VPC endpoint service (AWS PrivateLink), allow the customer account principals, and have customers create interface VPC endpoints in their VPCs.
C.
Share a transit gateway with each customer account by using AWS RAM and use transit gateway route tables to isolate customers.
D.
Expose the API through a public Amazon API Gateway endpoint with a resource policy that allows only customer NAT gateway IP addresses.
7
Domain 2
A payment platform processes account events. Events for the same customer account must be processed strictly in order and exactly once, but events for different customers should be processed in parallel. Peak load is about 2,000 messages per second. The company wants a serverless solution with the LEAST operational overhead. Which solution meets these requirements?
A.
Use an Amazon SQS FIFO queue with high throughput mode enabled. Set MessageGroupId to the customer account ID and MessageDeduplicationId to the transaction ID, and consume the queue with AWS Lambda.
B.
Use an Amazon SQS standard queue consumed by AWS Lambda and have the function sort messages by timestamp before processing.
C.
Publish events to an Amazon SNS standard topic that fans out to a separate SQS standard queue for each customer.
D.
Write events to an Amazon Kinesis data stream with a single shard so that all records stay in order, and process them with one Lambda consumer.
8
Domain 2
A mobile app lets users upload videos of up to 2 GB. Uploads currently go through an Auto Scaling group of EC2 instances behind an ALB, which forwards files to Amazon S3. During peaks the instances are saturated on network and CPU, and uploads time out. The company wants the MOST scalable solution with the LEAST operational overhead. Which solution meets these requirements?
A.
Move the upload instances to larger network-optimized instance types and increase the ALB idle timeout.
B.
Mount an Amazon EFS file system on the upload instances and move files to S3 asynchronously with a cron job.
C.
Replace the EC2 fleet with an Amazon API Gateway REST API that invokes a Lambda function to write each uploaded file to S3.
D.
Have an authenticated backend API issue S3 presigned URLs (using multipart upload for large files) so the app uploads directly to S3, and use S3 event notifications to trigger downstream processing.
9
Domain 3
A company runs an Amazon DynamoDB table in on-demand capacity mode. CloudWatch metrics show consistently high read and write traffic around the clock with a gentle, predictable daily curve. Throughput charges make up more than 90% of the table's cost; storage is small. The company wants to reduce cost significantly without changing application code. Which solution meets these requirements?
A.
Add a DynamoDB Accelerator (DAX) cluster in front of the table.
B.
Change the table class to DynamoDB Standard-Infrequent Access.
C.
Switch the table to provisioned capacity mode with auto scaling and purchase DynamoDB reserved capacity for the steady baseline.
D.
Export the table to Amazon S3 on a schedule and query the export with Amazon Athena.
10
Domain 4
A company runs 50 Java applications on Apache Tomcat and 20 ASP.NET applications on IIS, all on on-premises VMs. The company wants to move them to containers on Amazon ECS or Amazon EKS without modifying source code. It wants to generate container images, deployment artifacts, and CI/CD pipelines with the LEAST manual effort. Which solution meets these requirements?
A.
Use AWS App2Container to analyze the running applications, build container images, and generate ECS task definitions or EKS manifests and AWS CodePipeline pipelines.
B.
Use AWS Application Migration Service to rehost the VMs on EC2, then have developers write Dockerfiles and Kubernetes manifests for each application.
C.
Refactor each application into AWS Lambda functions behind Amazon API Gateway.
D.
Deploy each application to AWS Elastic Beanstalk with the Docker platform after developers write a Dockerfile for every application.
0/10 terjawab
Periksa