New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Amazon SAA-C03 Exam - 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:

0/2000 characters
Callie
3 months ago
I thought TTL caching was for expiring data, not syncing it?
upvoted 0 times
...
Shawn
3 months ago
No way, lazy loading won't keep the cache updated like B does.
upvoted 0 times
...
Lashandra
3 months ago
Wait, isn't lazy loading also a valid option?
upvoted 0 times
...
Gilma
4 months ago
Totally agree, write-through caching is the way to go!
upvoted 0 times
...
Mary
4 months ago
B is the best choice for keeping cache in sync with the database.
upvoted 0 times
...
Nikita
4 months ago
I vaguely recall something about TTL caching, but I don't think it guarantees that the cache always matches the database.
upvoted 0 times
...
Susana
4 months ago
I practiced a similar question, and I think the write-through caching strategy is the best option here since it updates the cache on write operations.
upvoted 0 times
...
Lore
4 months ago
I'm not entirely sure, but I feel like lazy loading might not update the cache immediately when data changes.
upvoted 0 times
...
Zana
5 months ago
I remember studying caching strategies, and I think the write-through strategy keeps the cache in sync with the database.
upvoted 0 times
...
Gracia
5 months ago
I'm feeling pretty confident about this one. The write-through caching strategy is the obvious choice here, as it ensures that the cache and database are always in sync.
upvoted 0 times
...
Marisha
5 months ago
Okay, I think I've got this. The key requirement is that the data in the cache must always match the data in the database. That means we need a write-through caching strategy, where updates to the database are immediately reflected in the cache.
upvoted 0 times
...
Brianne
5 months ago
Hmm, I'm a bit confused by the options. I'll need to review my notes on the different caching strategies to understand the differences between them and figure out which one is the best fit.
upvoted 0 times
...
Delsie
5 months ago
This looks like a tricky question. I'll need to think through the different caching strategies carefully to determine which one best meets the requirements.
upvoted 0 times
...
Sage
5 months ago
Hmm, I'm a bit unsure about this one. The requirements mention natural language search, so Power Virtual Agents seems like a good option. But I'm not sure about the other part - does Business Process Flow really fit the customer service agent contact need? I might need to double-check the details on that one.
upvoted 0 times
...
Selma
5 months ago
Based on my understanding, I believe statement III. is the correct one. Audits typically result in observations, recommendations, and a pass/fail assessment, which aligns with the description provided.
upvoted 0 times
...
Yuonne
5 months ago
I think "generate short-term wins" could be one of the answers too, since R didn't keep the motivation going after the initial successes.
upvoted 0 times
...
Cecil
9 months 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
Olive
8 months ago
Write-through caching will ensure that the cache is always up-to-date with the database, maintaining data integrity.
upvoted 0 times
...
Viva
8 months ago
It's like having a real-time sync between the database and cache, ensuring data accuracy.
upvoted 0 times
...
Tuyet
8 months ago
Yeah, with write-through caching, the data is always consistent between the database and cache.
upvoted 0 times
...
Frank
9 months ago
Write-through caching is definitely the way to go for this scenario.
upvoted 0 times
...
...
Myra
9 months 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
Shaunna
8 months ago
Lazy loading is not the best option in this case. It would indeed make the first customer wait for data to be loaded from the database.
upvoted 0 times
...
Nilsa
8 months ago
Write-behind caching could also work. It allows data to be written to the cache first and then asynchronously written to the database.
upvoted 0 times
...
Luke
9 months ago
Use write-through caching. This strategy ensures that data is written to both the cache and the database at the same time.
upvoted 0 times
...
...
Gwen
10 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
Shonda
9 months ago
You're right, AWS AppConfig is not the right tool for this. ElastiCache with write-through caching is the way to go.
upvoted 0 times
...
Milly
9 months ago
Set up ElastiCache to use write-through caching to automatically update the cache when data is added or updated in the database.
upvoted 0 times
...
German
9 months ago
Use Amazon ElastiCache with the Memcached engine to store and retrieve data from the cache layer.
upvoted 0 times
...
...
Troy
10 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
Shaniqua
8 months ago
User 3: Write-through caching ensures that the data in the cache always matches the data in the database.
upvoted 0 times
...
Amina
8 months ago
User 2: That's a good idea. With write-through caching, data is written to the cache and the database at the same time.
upvoted 0 times
...
Kirk
9 months ago
It's a more reliable option compared to TTL caching strategy.
upvoted 0 times
...
Lelia
9 months ago
This ensures that the data in the cache always matches the data in the database.
upvoted 0 times
...
Elfrieda
9 months ago
That way, data is written to the cache whenever it is written to the database.
upvoted 0 times
...
Josefa
10 months ago
User 1: Have you considered using Amazon ElastiCache with write-through caching strategy?
upvoted 0 times
...
Tammara
10 months ago
Use Amazon ElastiCache with write-through caching strategy.
upvoted 0 times
...
...
Alethea
10 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
10 months ago
Agreed, it will make sure the cache and database are always in sync.
upvoted 0 times
...
Lisandra
10 months ago
We should definitely go with the write-through caching strategy.
upvoted 0 times
...
...
Catherin
11 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
11 months ago
I agree with Jackie. With write-through caching, data is always synchronized between the cache and the database.
upvoted 0 times
...
Jackie
11 months ago
I think the answer is B) Implement the write-through caching strategy.
upvoted 0 times
...

Save Cancel