SAP-C02 practice question 21 of 35

A company wants to optimize AWS data-transfer costs and compute costs across developer accounts within the company's organization in AWS…

Full set: 689 questions

Domain Accelerate Workload Migration and Modernization

A company wants to optimize AWS data-transfer costs and compute costs across developer accounts within the company's organization in AWS Organizations Developers can configure VPCs and launch Amazon EC2 instances in a single AWS Region The EC2 instances retrieve approximately 1 TB of data each day from Amazon S3 The developer activity leads to excessive monthly data-transfer charges and NAT gateway processing charges between EC2 instances and S3 buckets, along with high compute costs The company wants to proactively enforce approved architectural patterns for any EC2 instance and VPC infrastructure that developers deploy within the AWS accounts The company does not wantthis enforcement to negatively affect the speed at which the developers can perform their tasks Which solution will meet these requirements MOST cost-effectively?
Answer options
A: Create SCPs to prevent developers from launching unapproved EC2 instance types Provide the developers with an AWS CloudFormation template to deploy an approved VPC configuration with S3 interface endpoints Scope the developers* IAM permissions so that the developers can launch VPC resources only with CloudFormation
B: Create a daily forecasted budget with AWS Budgets to monitor EC2 compute costs and S3 data- transfer costs across the developer accounts When the forecasted cost is 75% of the actual budget cost, send an alert to the developer teams If the actual budget cost is 100%. create a budget action to terminate the developers' EC2 instances and VPC infrastructure
C: Create an AWS Service Catalog portfolio that users can use to create an approved VPC configuration with S3 gateway endpoints and approved EC2 instances Share the portfolio with the developer accounts Configure an AWS Service Catalog launch constraint to use an approved IAM role Scope the developers' IAM permissions to allow access only to AWS Service Catalog Correct answer
D: Create and deploy AWS Config rules to monitor the compliance of EC2 and VPC resources in the developer AWS accounts If developers launch unapproved EC2 instances or if developers create VPCs without S3 gateway endpoints perform a remediation action to terminate the unapproved resources
Correct Answer:
C. Create an AWS Service Catalog portfolio that users can use to create an approved VPC configuration with S3 gateway endpoints and approved EC2 instances Share the portfolio with the developer accounts Configure an AWS Service Catalog launch constraint to use an approved IAM role Scope the developers' IAM permissions to allow access only to AWS Service Catalog
Explanation

AWS Service Catalog allows organizations to create and manage a catalog of approved IT services. This solution proactively enforces architectural best practices by providing developers with pre-configured, approved products (a VPC with S3 gateway endpoints and specific EC2 instances). This prevents non-compliant resources from being created. Using S3 gateway endpoints is the most cost-effective method, as it provides a private connection to S3 from a VPC and eliminates data transfer charges through a NAT gateway. The self-service portal model allows developers to deploy resources quickly, meeting the requirement not to negatively affect their speed. Scoping IAM permissions to only allow access to AWS Service Catalog ensures strong governance.

Why Incorrect

A. Service Control Policies (SCPs) can deny unapproved instance types but cannot enforce the presence of a VPC endpoint. S3 interface endpoints incur hourly and data processing costs, making them less cost-effective than gateway endpoints.
B. This is a reactive, not proactive, solution. It alerts and terminates resources only after costs are incurred, which is disruptive to developers and does not enforce the correct architecture from the start.
D. This is also a reactive approach. AWS Config detects and remediates non-compliance after a resource has already been created, which is inefficient and disruptive to developer workflows, failing the speed requirement. ---

References

1. AWS Service Catalog Documentation: "AWS Service Catalog allows organizations to create and manage catalogs of IT services that are approved for use on AWS... You can control which IT services and versions are available

what is configured in each of the available services

and who can access them by individual

group

department

or cost center."

Source: AWS Service Catalog Developer Guide

"What Is AWS Service Catalog?".

2. AWS VPC Endpoints Documentation (Gateway vs. Interface): "Gateway endpoints provide reliable connectivity to Amazon S3 and DynamoDB without requiring an internet gateway or a NAT device for your VPC... There is no additional charge for using gateway endpoints." This confirms gateway endpoints are the most cost-effective choice over NAT gateways or interface endpoints for this use case.

Source: AWS PrivateLink Guide

"VPC endpoints"

"Gateway endpoints" section.

3. AWS Service Catalog Launch Constraints: "Constraints control the way that users can deploy a product. With launch constraints

you can specify an IAM role that AWS Service Catalog assumes when a user launches a product. This enables you to give a user access to launch a product

without giving them permissions to the underlying services."

Source: AWS Service Catalog Developer Guide

"Constraints".

4. AWS Organizations SCPs Documentation: "SCPs are a type of organization policy that you can use to manage permissions in your organization... SCPs don't affect users or roles in the management account. They affect only the member accounts in your organization." SCPs are for permission guardrails (denying actions)

not for enforcing complex resource configurations.

Source: AWS Organizations User Guide

"Service control policies (SCPs)".

Scroll to Top