Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Amazon Exam SAA-C03 Topic 2 Question 42 Discussion

Actual exam question for Amazon's SAA-C03 exam
Question #: 42
Topic #: 2
[All SAA-C03 Questions]

A company hosts a three-tier web application in the AWS Cloud. A Multi-AZ Amazon RDS for MySQL server forms the database layer. Amazon ElastiCache forms the cache layer. The company wants a caching strategy that adds or updates data in the cache when a customer adds an item to the database. The data in the cache must always match the data in the database.

Which solution will meet these requirements?

Show Suggested Answer Hide Answer
Suggested Answer: C

A public NAT gateway enables instances in a private subnet to send outbound traffic to the internet, while preventing the internet from initiating connections with the instances. A public NAT gateway requires an elastic IP address and a route to the internet gateway for the VPC. A private NAT gateway enables instances in a private subnet to connect to other VPCs or on-premises networks through a transit gateway or a virtual private gateway. A private NAT gateway does not require an elastic IP address or an internet gateway. Both private and public NAT gateways map the source private IPv4 address of the instances to the private IPv4 address of the NAT gateway, but in the case of a public NAT gateway, the internet gateway then maps the private IPv4 address of the public NAT gateway to the elastic IP address associated with the NAT gateway. When sending response traffic to the instances, whether it's a public or private NAT gateway, the NAT gateway translates the address back to the original source IP address.

Creating public NAT gateways in the same private subnets as the EC2 instances (option A) is not a valid solution, as the NAT gateways would not have a route to the internet gateway. Creating private NAT gateways in the same private subnets as the EC2 instances (option B) is also not a valid solution, as the instances would not be able to access the internet through the private NAT gateways. Creating private NAT gateways in public subnets in the same VPCs as the EC2 instances (option D) is not a valid solution either, as the internet gateway would drop the traffic from the private NAT gateways.

Therefore, the only valid solution is to create public NAT gateways in public subnets in the same VPCs as the EC2 instances (option C), as this would allow the instances to access the internet through the public NAT gateways and the internet gateway.Reference:

NAT gateways - Amazon Virtual Private Cloud

NAT gateway use cases - Amazon Virtual Private Cloud

Amazon Web Services -- Introduction to NAT Gateways

What is AWS NAT Gateway? - KnowledgeHut


Contribute your Thoughts:

Cecil
14 days ago
Hmm, write-through sounds like the way to go. It's like having a personal assistant who updates your calendar as soon as you make a change. Keeps everything in sync!
upvoted 0 times
Frank
3 days ago
Write-through caching is definitely the way to go for this scenario.
upvoted 0 times
...
...
Myra
19 days ago
Lazy loading? That sounds like it might work, but wouldn't it mean the first cusMyraer to request the data would have to wait for it to be loaded from the database? Not very efficient.
upvoted 0 times
...
Gwen
1 months ago
AWS AppConfig? I don't think that's the right tool for the job. This is more of a caching problem than a configuration management issue.
upvoted 0 times
German
4 days ago
Use Amazon ElastiCache with the Memcached engine to store and retrieve data from the cache layer.
upvoted 0 times
...
...
Troy
1 months ago
I'm not sure about the adding TTL caching strategy. Wouldn't that just cause the cache to expire after a certain time, regardless of database changes?
upvoted 0 times
Lelia
14 hours ago
This ensures that the data in the cache always matches the data in the database.
upvoted 0 times
...
Elfrieda
3 days ago
That way, data is written to the cache whenever it is written to the database.
upvoted 0 times
...
Josefa
24 days ago
User 1: Have you considered using Amazon ElastiCache with write-through caching strategy?
upvoted 0 times
...
Tammara
28 days ago
Use Amazon ElastiCache with write-through caching strategy.
upvoted 0 times
...
...
Alethea
2 months ago
The write-through caching strategy seems like the obvious choice here. It ensures that the cache and database stay in sync, which is exactly what the company wants.
upvoted 0 times
Sabina
29 days ago
Agreed, it will make sure the cache and database are always in sync.
upvoted 0 times
...
Lisandra
1 months ago
We should definitely go with the write-through caching strategy.
upvoted 0 times
...
...
Catherin
2 months ago
I'm not sure about that. Maybe we should consider the other options as well before making a decision.
upvoted 0 times
...
Kenneth
2 months ago
I agree with Jackie. With write-through caching, data is always synchronized between the cache and the database.
upvoted 0 times
...
Jackie
2 months ago
I think the answer is B) Implement the write-through caching strategy.
upvoted 0 times
...

Save Cancel