exam questions

Exam AWS Certified Solutions Architect - Professional SAP-C02 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional SAP-C02 exam

Exam AWS Certified Solutions Architect - Professional SAP-C02 topic 1 question 410 discussion

A company is using AWS Control Tower to manage AWS accounts in an organization in AWS Organizations. The company has an OU that contains accounts. The company must prevent any new or existing Amazon EC2 instances in the OU's accounts from gaining a public IP address.

Which solution will meet these requirements?

  • A. Configure all instances in each account in the OU to use AWS Systems Manager. Use a Systems Manager Automation runbook to prevent public IP addresses from being attached to the instances.
  • B. Implement the AWS Control Tower proactive control to check whether instances in the OU's accounts have a public IP address. Set the AssociatePublicIpAddress property to False. Attach the proactive control to the OU.
  • C. Create an SCP that prevents the launch of instances that have a public IP address. Additionally, configure the SCP to prevent the attachment of a public IP address to existing instances. Attach the SCP to the OU.
  • D. Create an AWS Config custom rule that detects instances that have a public IP address. Configure a remediation action that uses an AWS Lambda function to detach the public IP addresses from the instances.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
TonytheTiger
Highly Voted 1 year, 1 month ago
Selected Answer: C
Option C - From AWS doc page "Don't use AWS Organizations to update service control policies (SCPs) attached to an OU that is registered with AWS Control Tower. Doing so could result in the controls entering an unknown state, which will require you to repair your landing zone or re-register your OU in AWS Control Tower. Instead, you can create new SCPs and attach those to the OUs rather than editing the SCPs that AWS Control Tower has created." https://docs.aws.amazon.com/controltower/latest/userguide/orgs-guidance.html
upvoted 12 times
...
chelbsik
Highly Voted 1 year, 2 months ago
Selected Answer: B
Voting for B: SCP will cause a state drift, since company already use Control Tower
upvoted 6 times
8693a49
9 months ago
Adding a new SCP will not cause drift. Modifying an existing SCP that was created by CT would, which is not the case here.
upvoted 3 times
...
...
874def1
Most Recent 2 weeks, 3 days ago
Selected Answer: C
Control Tower's Proactive Control Uses Cloud Formation. This means AWS CLI, AWS API, AWS console will be able to bypass Proactive controls. OPtion C of using new SCP will enforce Public IP restriction effectively.
upvoted 1 times
...
BelloMio
2 weeks, 3 days ago
Selected Answer: C
Answer is 100% C. It asks to prevent NEW or EXISTING. It doesn't talk about remediation. A proactive control is only applied if you deploy with cloudformation. If you deploy with the console or through API, the control does not apply. Answer is C
upvoted 1 times
...
sergza888
3 weeks, 4 days ago
Selected Answer: C
Unfortunately it is C even though i liked B better "Proactive controls check resources whenever those resources are created or updated by means of AWS CloudFormation stack operations. Specifically, these proactive controls are implemented as preCreate and preUpdate hook handlers. As a consequence, these controls may not affect requests that are made directly to services through the AWS console, through AWS APIs, or through other means such as AWS SDKs, or other Infrastructure-as-Code (IaC) tools."
upvoted 1 times
...
0b43291
5 months, 2 weeks ago
Selected Answer: C
Option C (SCP): Service Control Policies (SCPs) provide a proactive mechanism to prevent non-compliant actions from occurring in the first place. The SCP will block the launch of instances with public IP addresses or the attachment of public IP addresses to existing instances, ensuring that the requirement is met from the outset. Option B (Control Tower proactive control): Proactive controls in AWS Control Tower are designed to detect and remediate non-compliant resources after they have been created. While they can remediate instances with public IP addresses, they do not prevent the initial assignment of public IP addresses.
upvoted 2 times
...
AzureDP900
5 months, 2 weeks ago
Option C is actually a good solution for this scenario. C is right. By creating an SCP (Security Policy) that: Prevents the launch of instances with public IP addresses. Prevents the attachment of a public IP address to existing instances, you can effectively prevent new or existing Amazon EC2 instances in the OU's accounts from gaining a public IP address. This solution is suitable because it: Is proactive and automated, reducing the risk of human error Can detect existing instances with public IP addresses and prevent future assignments Is directly attached to the OU, ensuring that all accounts within it are subject to this policy.
upvoted 2 times
...
sashenka
6 months ago
Selected Answer: C
The company must prevent any new or existing Amazon EC2 instances in the OU's accounts from gaining a public IP address." The key phrase is "from gaining" a public IP address - this means: It's about preventing future actions of getting public IPs It's NOT about removing already attached public IPs It applies to both new and existing instances In this case, an SCP (Option C) is indeed the correct solution
upvoted 1 times
...
JoeTromundo
6 months, 2 weeks ago
Selected Answer: C
"The company MUST PREVENT..." Proactive controls do not directly prevent the action of attaching a public IP. They are applicable to resources that are specifically PROVISIONED THROUGH AWS SERVICE CATALOG. They do not have the ability to broadly prevent all EC2 instances in an organization from obtaining a public IP, especially those created outside of Service Catalog. Also, as user VerRi says here in the comments, how will AWS Control Tower proactive control "check whether instances IN the OU's accounts have a public IP address."? Option C is the best solution because it uses an SCP, which is a preventive control that directly stops the creation or modification of EC2 instances with public IP addresses in all accounts under the specified OU. This ensures compliance with the requirement of preventing public IP addresses on EC2 instances.
upvoted 3 times
...
liuliangzhou
7 months, 2 weeks ago
Selected Answer: C
B. AWS Control Tower's Active Controls primarily focus on security related best practices such as IAM policies, security group rules, etc., rather than directly controlling the public IP addresses of EC2 instances. Although custom proactive control can be created, setting the associatePublicIpAddress property to False is usually done through API calls or CLI/SDK when starting an EC2 instance, rather than through proactive control in AWS Control Tower. C. AWS Service Control Policies (SCPs) are a mechanism provided by AWS Organizations for implementing access control to AWS services at the OU level. SCP can restrict the ability to request public IP addresses when launching EC2 instances within OU accounts, as well as limit the permission to modify existing instances to attach public IP addresses. This fully meets the company's needs as it ensures the implementation of a unified strategy at the OU level without the need to manage each account or instance separately.
upvoted 2 times
...
michele_scar
10 months, 2 weeks ago
Selected Answer: B
SCP prevent but not remediate existing. So correct is B with CT
upvoted 1 times
...
teo2157
11 months, 2 weeks ago
Selected Answer: B
Going for B as Control Tower permissions have to be managed using Controls but not SCPs which causes drifts.
upvoted 2 times
...
VerRi
1 year, 1 month ago
Selected Answer: C
B is a bit weird because proactive control is used to check NEW resources. It is weird to say "Check whether instances IN the OU's accounts have a public IP address.".
upvoted 4 times
...
Dgix
1 year, 1 month ago
Selected Answer: C
C. B is not correct since Control Tower doesn't have this capability.
upvoted 2 times
...
career360guru
1 year, 1 month ago
Selected Answer: B
Option B is the right option.
upvoted 2 times
...
sat2008
1 year, 1 month ago
Selected Answer: C
NOT B -- These controls are referred to as proactive because they check your resources –**BEFORE** the resources are deployed – to determine whether the new resources will comply with the controls that are activated in your environment. This control applies only to a new network interface created by means of the NetworkInterfaces property, where a NetworkInterfaceId has not been specified. Best answer is C
upvoted 3 times
...
arberod
1 year, 2 months ago
Selected Answer: B
It is B
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago