AWS Certified Developer - Associate (DVA-C03) Practice Questions

AWS Certified Developer - Associate (DVA-C03) exam preparation

AWS Certified Developer - Associate (DVA-C03) practice questions in English: 180 questions with explanations. The mock exam has 65 questions and 130 minutes.

AWS Certified Developer - Associate (DVA-C03) free question 10 / 10 · Domain 4: Troubleshooting and Optimization

A team places an Amazon CloudFront distribution in front of a gRPC API and attaches a cache policy with a long TTL to the cache behavior that serves it. The cache hit ratio of that behavior stays at 0 percent. What explains this result?

  1. The cache policy puts too many values in the cache key, and the gRPC requests produce distinct keys
  2. The TTL of the cache policy applies to compressed objects, and gRPC messages are not compressed
  3. gRPC traffic is not cacheable, and the cache settings of the policy leave gRPC requests unaffected
  4. The cache policy has to be attached to the distribution itself instead of to a cache behavior
Show the answer and explanation

Answer: C

Why this is correct
A cache policy controls the cache key, the TTL settings and the caching of compressed objects, and it is attached to one or more cache behaviors of a distribution. The page adds a note that cache settings don't affect gRPC requests because gRPC traffic can't be cached. The policy of the team is attached correctly, but no cache key or TTL can produce a cache hit for gRPC traffic, so the hit ratio stays at 0 percent.

Why the other options are wrong
"The cache policy puts too many values in the cache key, and the gRPC requests produce distinct keys" … Including fewer values in the cache key raises the likelihood of a cache hit for cacheable traffic. The page states that cache settings don't affect gRPC requests because gRPC traffic can't be cached.
"The TTL of the cache policy applies to compressed objects, and gRPC messages are not compressed" … The page lists the TTL settings and the caching of compressed objects as separate things that a cache policy specifies. The reason for the 0 percent is that gRPC traffic can't be cached.
"The cache policy has to be attached to the distribution itself instead of to a cache behavior" … The page states that a cache policy is attached to one or more cache behaviors in a distribution, which the team did. The attachment is not the cause of the result.

Key points
gRPC traffic can't be cached, so cache policy settings (cache key, TTL, compression) do not affect gRPC requests.

Go to the AWS Certified Developer - Associate (DVA-C03) practice app (10 free questions; purchase unlocks all questions)

See the full practice set