Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

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

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

Exam AWS Certified Solutions Architect - Associate SAA-C03 topic 1 question 360 discussion

A company uses Amazon API Gateway to run a private gateway with two REST APIs in the same VPC. The BuyStock RESTful web service calls the CheckFunds RESTful web service to ensure that enough funds are available before a stock can be purchased. The company has noticed in the VPC flow logs that the BuyStock RESTful web service calls the CheckFunds RESTful web service over the internet instead of through the VPC. A solutions architect must implement a solution so that the APIs communicate through the VPC.

Which solution will meet these requirements with the FEWEST changes to the code?

  • A. Add an X-API-Key header in the HTTP header for authorization.
  • B. Use an interface endpoint.
  • C. Use a gateway endpoint.
  • D. Add an Amazon Simple Queue Service (Amazon SQS) queue between the two REST APIs.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
everfly
Highly Voted 1 year, 9 months ago
Selected Answer: B
an interface endpoint is a horizontally scaled, redundant VPC endpoint that provides private connectivity to a service. It is an elastic network interface with a private IP address that serves as an entry point for traffic destined to the AWS service. Interface endpoints are used to connect VPCs with AWS services
upvoted 22 times
...
lucdt4
Highly Voted 1 year, 6 months ago
Selected Answer: B
C. Use a gateway endpoint is wrong because gateway endpoints only support for S3 and dynamoDB, so B is correct
upvoted 11 times
...
meowruki
Most Recent 11 months, 3 weeks ago
Selected Answer: B
B. Use an interface endpoint. Here's the reasoning: Interface Endpoint (Option B): An interface endpoint (also known as VPC endpoint) allows communication between resources in your VPC and services without traversing the public internet. In this case, you can create an interface endpoint for API Gateway in your VPC. This enables the communication between the BuyStock and CheckFunds RESTful web services within the VPC, and it doesn't require significant changes to the code. X-API-Key header (Option A): Adding an X-API-Key header for authorization doesn't address the issue of ensuring that the APIs communicate through the VPC. It's more related to authentication and authorization mechanisms.
upvoted 5 times
...
liux99
1 year ago
The question here is that the BuyStock RESTful web service calls the CheckFunds RESTful web service through API gateway (internet), not directly. How does API gateway connect the services BuyStock and CheckFunds? It connects the Interface Endpoint of the services through Privatelink. The interface endpoints provide direct connection between services within the same private subnet. Answer B is correct.
upvoted 3 times
...
youdelin
1 year, 1 month ago
how is it even possible, I mean if it's private and both are in the same VPC then we shouldn't even have such an issue right?
upvoted 2 times
...
Guru4Cloud
1 year, 2 months ago
Selected Answer: B
B. Use an interface endpoint.
upvoted 2 times
...
envest
1 year, 5 months ago
Answer B (from abylead) With API GW, you can create multiple prv REST APIs, only accessible with an interface VPC endpt. To allow/ deny simple or cross acc access to your API from selected VPCs & its endpts, you use resource plcys. In addition, you can also use DX for a connection between onprem network to VPC or your prv API. API GW to VPC: https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-private-apis.html Less correct & incorrect (infeasible & inadequate) answers: A)X-API-Key in HTTP header for authorization needs auto-process fcts & changes: inadequate. C)VPC GW endpts for S3 or DynamDB aren’t for RESTful svcs: infeasible. D)SQS que between 2 REST APIs needs endpts & some changes: inadequate.
upvoted 2 times
...
aqmdla2002
1 year, 6 months ago
Selected Answer: C
I select C because it's the solution with the " FEWEST changes to the code"
upvoted 1 times
awsgeek75
10 months, 1 week ago
Fewest changes to the code doesn't mean break the code by doing something irrelevant. Gateway endpoint is for S3 and DynamoDB
upvoted 2 times
...
pentium75
10 months, 3 weeks ago
Gateway Endpoint can provide access to S3 or DynamoDB, not to API Gateway
upvoted 2 times
...
...
TariqKipkemei
1 year, 6 months ago
Selected Answer: B
An interface endpoint is powered by PrivateLink, and uses an elastic network interface (ENI) as an entry point for traffic destined to the service
upvoted 3 times
...
kprakashbehera
1 year, 8 months ago
Selected Answer: B
BBBBBB
upvoted 2 times
...
siyam008
1 year, 8 months ago
Selected Answer: C
https://www.linkedin.com/pulse/aws-interface-endpoint-vs-gateway-alex-chang
upvoted 1 times
siyam008
1 year, 8 months ago
Correct answer is B. Incorrectly selected C
upvoted 3 times
...
...
DASBOL
1 year, 8 months ago
Selected Answer: B
https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-private-apis.html
upvoted 5 times
...
Sherif_Abbas
1 year, 9 months ago
Selected Answer: C
The only time where an Interface Endpoint may be preferable (for S3 or DynamoDB) over a Gateway Endpoint is if you require access from on-premises, for example you want private access from your on-premise data center
upvoted 2 times
Steve_4542636
1 year, 8 months ago
The RESTful services is neither an S3 or DynamDB service, so a VPC Gateway endpoint isn't available here.
upvoted 5 times
...
...
bdp123
1 year, 9 months ago
Selected Answer: B
fewest changes to code and below link: https://gkzz.medium.com/what-is-the-differences-between-vpc-endpoint-gateway-endpoint-ae97bfab97d8
upvoted 3 times
PoisonBlack
1 year, 6 months ago
This really helped me understand the difference between the two. Thx
upvoted 2 times
...
...
KAUS2
1 year, 9 months ago
Agreed B
upvoted 3 times
...
AlmeroSenior
1 year, 9 months ago
Selected Answer: B
https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-private-apis.html - Interface EP
upvoted 4 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 ...