Objective 1.5: Design a caching strategy Flashcards

1
Q

What is the purpose of using Caching?

A

Caching is a basic application development strategy to help improve performance.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is the VaryByParam parameter for?

A

VaryByParam stores a different version of the output based on a different parameter collection that was sent in for the action call.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what is the Location parameter for?

A

The Location qualifier gives direction to where caching takes place.
The default value is Any, but Client, Downstream, Server, and ServerAndClient are other options available when setting the cache location.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what is the NoStore parameter for?

A

NoStore is used when caching should be switched off

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what is the OutputCache attribute for?

A

The OutputCache attribute works well for caching an entire page.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what is Donut Caching?

A

Donut caching is a server-side technology that caches an entire page other than the pieces of dynamic content—the donut holes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Does MVC support donut caching?

A

Although ASP.NET Web Forms supports donut caching through the Substitution control, the Razor Engine does not offer support for donut caching.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How can you use donut caching in MVC?

A

Because ASP.NET MVC 4 is built on top of ASP.NET, you can still use the Substitution APIs through the HttpResponse.WriteSubstitution method by creating an MVC helper. This enables you to cache an entire page on the server except for a particular reference.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what is Donut Hole Caching?

A

Where donut caching caches the entire page other than a few sections, donut hole caching takes the other approach and caches only select portions of the page while keeping the rest of the page dynamic.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

what is the effect of using the OutputCache attribute at the controller level?

A

You can also assign the caching attribute to a controller. Setting OutputCache at a controller level automatically configures all actions that accept a GET request to use the same caching settings as if the attribute were put on the individual actions. The caching at a controller level does not affect any actions that accept POST, PUT, or DELETE request types

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

what is distributed caching?

A

the ability to create data on one application server and share it with the other servers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What solution does Microsoft offer for distributed caching?

A

Windows Server AppFabric

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Qué es Azure Cache for Redis ?

A

Azure Cache for Redis proporciona un almacén de datos en memoria basado en el software de código abierto Redis.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is Redis?

A

Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is Azure CDN?

A

It lets you reduce load times, save bandwidth, and speed responsiveness—whether you’re developing or managing websites or mobile apps, or encoding and distributing streaming media, gaming software, firmware updates, or IoT endpoints.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is Azure Redis Cache?

A

It perfectly complements Azure database services such as Cosmos DB. It provides a cost-effective solution to scale read and write throughput of your data tier. Store and share database query results, session states, static contents, and more using a common cache-aside pattern.