0
0
Microservicessystem_design~20 mins

Popular gateways (Kong, AWS API Gateway, Nginx) in Microservices - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Gateway Guru
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
How does AWS API Gateway handle throttling by default?

AWS API Gateway limits the number of requests a client can make. What is the default behavior when the limit is exceeded?

AIt queues the requests until the limit resets, then processes them.
BIt silently drops the requests without any response.
CIt returns a 429 Too Many Requests error immediately.
DIt automatically scales the backend to handle the extra load.
Attempts:
2 left
💡 Hint

Think about how APIs usually inform clients about rate limits.

Architecture
intermediate
2:00remaining
Which gateway is best suited for on-premises microservices with high customization?

You have microservices running on your own servers and need a gateway that supports plugins and custom logic. Which gateway fits best?

AKong Gateway
BAWS API Gateway
CCloudflare Gateway
DAzure API Management
Attempts:
2 left
💡 Hint

Consider which gateway is open-source and supports plugins.

Configuration
advanced
2:30remaining
What Nginx configuration snippet correctly enables reverse proxy to a backend service on port 8080?

Choose the correct Nginx config to forward incoming requests to a backend service running on localhost port 8080.

Microservices
server {
    listen 80;
    location / {
        # Your config here
    }
}
Aproxy_forward http://localhost:8080/;
Bproxy_pass https://localhost:8080/;
Cproxy_redirect http://localhost:8080/;
Dproxy_pass http://localhost:8080/;
Attempts:
2 left
💡 Hint

Look for the directive that forwards requests to another server.

security
advanced
2:30remaining
Which feature does Kong Gateway provide to secure APIs with minimal configuration?

To protect your APIs from unauthorized access, which Kong feature can you enable quickly without coding?

ARate Limiting plugin
BOAuth 2.0 plugin
CLoad Balancer plugin
DCaching plugin
Attempts:
2 left
💡 Hint

Think about standard authorization protocols supported by API gateways.

Best Practice
expert
3:00remaining
What is the recommended approach to deploy AWS API Gateway for a multi-region microservices architecture?

You want low latency and high availability for your microservices across multiple AWS regions. How should you deploy AWS API Gateway?

ADeploy API Gateway in each region and use Route 53 latency-based routing.
BDeploy a single API Gateway in one region and route all traffic there.
CDeploy API Gateway only in the region with the most users and use CloudFront for others.
DUse a third-party gateway to handle multi-region routing and keep API Gateway in one region.
Attempts:
2 left
💡 Hint

Consider AWS services that help route users to the nearest region.