exam questions

Exam AWS Certified Solutions Architect - Associate SAA-C02 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Associate SAA-C02 exam

Exam AWS Certified Solutions Architect - Associate SAA-C02 topic 1 question 472 discussion

An ecommerce company is creating an application that requires a connection to a third-party payment service to process payments. The payment service needs to explicitly allow the public IP address of the server that is making the payment request. However, the company's security policies do not allow any server to be exposed directly to the public internet.
Which solution will meet these requirements?

  • A. Provision an Elastic IP address. Host the application servers on Amazon EC2 instances in a private subnet. Assign the public IP address to the application servers.
  • B. Create a NAT gateway in a public subnet. Host the application servers on Amazon EC2 instances in a private subnet. Route payment requests through the NAT gateway.
  • C. Deploy an Application Load Balancer (ALB). Host the application servers on Amazon EC2 instances in a private subnet. Route the payment requests through the ALB.
  • D. Set up an AWS Client VPN connection to the payment service. Host the application servers on Amazon EC2 instances in a private subnet. Route the payment requests through the VPN.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
10minute
Highly Voted 3 years, 8 months ago
B) CORRECT NAT gateways are solution when you want EC2 instances to gain outbound internet access from the private subnets
upvoted 33 times
bora4motion
2 years, 10 months ago
and what would the ip address where you send the request to ? hmm ? I suggest D
upvoted 1 times
...
...
muhsin
Highly Voted 3 years, 5 months ago
Ans: D because there should not be any access to EC2 from internet even it has public IP address.
upvoted 9 times
...
robbrown2
Most Recent 2 years, 10 months ago
Selected Answer: D
"payment provider must expressly permit access to the public IP address of the server making the payment request" That makes me think that the server needs to directly talk to the payment provider, but maybe NAT gateway is what they are looking for if you just need connectivity to the payment provider without directly accessing the internet.
upvoted 1 times
...
bora4motion
2 years, 10 months ago
Selected Answer: D
B is wrong! the remote server will still have to route back over the internet to give a reply to the payment requester!! That means it needs access to internet. The only way to make it private is by using a VPN and route the traffic using private IP addresses. D is the correct answer!!
upvoted 2 times
...
naveenagurjara
2 years, 11 months ago
Selected Answer: B
Not C why? Cos ALB even though it is in the public subnet CANNOT source traffic on behalf of ec2 towards the Internet. It is a receive only end point for connection into the ALB. Client VPN is also not valid as it requires the far end system to have a VPN/SSL server.
upvoted 2 times
...
Arshadul
2 years, 12 months ago
Selected Answer: B
Key: ec2 instances in pvt subnet while 3rd party needs access to the ip which is sending the request Expectations: ec2 instances should not be exposed Distractors: A/C/D A is wrong as it talks about public ip of an instnace launched in pvt subnet C is a distractor, as there is no need for ALB, quesiton doens't ask for HA also pvt subnet ec2 instances cannot talk directly to alb D is wrong for smae reasons. B is the only way pvt subnets can send requests to outer world
upvoted 2 times
...
SmartDude
3 years, 3 months ago
Selected Answer: C
https://aws.amazon.com/premiumsupport/knowledge-center/public-load-balancer-private-ec2/
upvoted 1 times
...
SmartDude
3 years, 3 months ago
Selected Answer: C
The dependent batch jobs will wait for its dependency to complete before beginning its execution. These dependencies can be direct (from the same Sequence of jobs) or indirect (from the same workflow but a different sequence of jobs), please see Figure 4:- Job Execution HLD version 2.0. The outcome of the execution result of the dependency job will have the following impact on the dependent job
upvoted 2 times
SmartDude
3 years, 3 months ago
Pasted incorrect content. Please ignore.
upvoted 1 times
...
...
osel
3 years, 4 months ago
Selected Answer: B
1) Not A bcos having EIP on any PrivateSubnet EC2 server will not allow any outbound initiated traffic to the internet due to the route table of any PrivateSubnet will have no default target route to the IGW. To solve that, the EC2 must be in the PublicSubnet instead. 2) Not C bcos ALB is to expose an App Endpoint to the 3rd party payment provider to initiate inbound traffic flow into the VPC, not the other way round. 3) Not D bcos Question never ask for secure link encryption and never state the 3rd party payment provider is providing the VPN GW for the ecommerce firm to VPN in. Moreover, the company's security regulations will block such VPN client request from any internal server EC2 to the public internet.
upvoted 5 times
bora4motion
2 years, 10 months ago
you have no clue how routing works over a vpn and you don't understand NAT. here you use static routes/dynamic routing and private subnets. the vpn endpoint/public ip on the payment company side has nothing to do with the servers on the private side. D is the correct answer.
upvoted 1 times
...
...
AndyKandy
3 years, 6 months ago
Answer is C https://aws.amazon.com/premiumsupport/knowledge-center/public-load-balancer-private-ec2/ Why not B: When you create a NAT gateway, you specify one of the following connectivity types: Public – (Default) Instances in private subnets can connect to the internet through a public NAT gateway, but cannot receive unsolicited inbound connections from the internet. Reference: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html
upvoted 3 times
...
Kenisworld666
3 years, 7 months ago
B "You create a public NAT gateway in a public subnet and must associate an elastic IP address with the NAT gateway at creation. You route traffic from the NAT gateway to the internet gateway for the VPC. " We can provide this elastic IP to the payment service.
upvoted 4 times
...
The_Theo
3 years, 7 months ago
B. NAT GW in the public subnet.
upvoted 5 times
...
SV23
3 years, 7 months ago
Answer C. The NAT gateways are only used to get inbound connection from the Internet like software updates to the Windows / Linux machines In that case C is supposed to be the answer
upvoted 2 times
SV23
3 years, 7 months ago
Refer Q.No 477
upvoted 1 times
...
ismai1
3 years, 7 months ago
the connection is initiated by the company application and not the payement service, so a nat gateway with dedicated IP is the best solution
upvoted 1 times
...
...
vizzdoom
3 years, 7 months ago
B) NAT Gateway
upvoted 5 times
...
suhas16c
3 years, 8 months ago
B) is the way to go
upvoted 5 times
...
mailsakshi
3 years, 8 months ago
Thinking its C
upvoted 3 times
Hizumi
3 years, 8 months ago
Answer is (B), you cannot use an ALB alone to reach the public internet, an ALB is for the purpose of load balancing. We require a NAT gateway deployed in the public subnet, it will allows us to connect to services outside our VPC, but not for external services to initiate a connection with instances in the private subnet. https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html
upvoted 10 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 ...