가이드 연계 퀴즈 · 중간 레벨

프롬프트 캐싱 퀴즈

공급자 관리 프롬프트 접두사 재사용, 캐시 적격성, 안정적인 컨텍스트 배치, 정책 변경 및 데이터 보존 확인을 검토합니다.

관련 가이드 경로프롬프트 캐싱
질문 1 의 8

What can a provider-managed prompt cache let a later request avoid?

모든 질문 미리보기8 질문

퀴즈를 풀면 정답과 설명이 나타납니다.

  1. What can a provider-managed prompt cache let a later request avoid?
    • Recomputing some work for an eligible repeated prompt prefix
    • Running the model on any new user content
    • Checking provider-specific cache eligibility
    • Applying attention to the uncached part of a request
  2. Why can a small prompt-prefix change affect cache eligibility?
    • Every provider guarantees cache reuse regardless of prompt changes
    • Provider-specific matching rules or breakpoints may make the changed prefix ineligible for reuse
    • Causal attention prevents any prefix from being reused
    • Changing later content always invalidates every earlier prefix
  3. 프롬프트 캐싱으로 인해 가장 큰 이점을 얻는 시나리오는 무엇입니까?
    • 짧은 프롬프트가 포함된 일회성 질문
    • 매번 모든 단어가 바뀌는 프롬프트
    • 모두 길고 동일한 시스템 프롬프트 또는 문서를 공유하는 많은 요청
    • 입력 없이 난수 생성하기
  4. How should a team estimate the price effect of a prompt-cache hit?
    • Assume every provider discounts cached tokens by 90%
    • Assume cache hits are always free
    • Use the number of prompt characters alone
    • Use the current provider and model pricing for cached versus uncached tokens
  5. How long does a prompt cache remain available?
    • It depends on the provider, model, and cache-retention settings
    • Exactly one hour for every provider
    • Forever unless a user deletes it
    • Exactly five minutes in every API
  6. How can an OpenAI API client identify how many input tokens were served from cache?
    • The number of characters in the system message
    • The response usage field input_tokens_details.cached_tokens
    • The cache key length
    • 모델 매개변수의 수
  7. In OpenAI implicit prompt-caching mode, where is a breakpoint placed by default?
    • It caches every prompt regardless of length
    • It disables prefix matching
    • It places a breakpoint at the end of the latest eligible message
    • It stores all user prompts permanently
  8. What should a team check before caching sensitive prompt content?
    • Only the color of the API dashboard
    • Whether the prompt contains an odd number of tokens
    • Whether another provider offers the same discount
    • The provider’s retention, data-use, and cache-control terms for the selected model