TDTech Digest

114. 가드레일 사용 사례 (Guardrails use cases)

  • 원문: English
  • 위치: Security, Guardrails, and Observability › Bedrock Guardrails › Guardrails use cases

한 줄 요약

만든 가드레일은 모델 추론, Agents, Knowledge Bases, Flows 네 곳에 붙일 수 있고, 모델 없이 독립적으로 쓰는 API(ApplyGuardrail, InvokeGuardrailChecks)도 있습니다.

핵심 내용

기능별 적용 방법

사용 사례콘솔API
모델 추론플레이그라운드에서 가드레일 선택InvokeModel / InvokeModelWithResponseStream은 헤더에 지정, Converse / ConverseStream은 본문의 guardrailConfig
Agent 연결Agent builder의 Guardrail details 섹션CreateAgent / UpdateAgent 본문의 guardrailConfiguration
Knowledge Base 질의질의 구성(Configurations)에서 가드레일 추가RetrieveAndGenerate 본문의 guardrailConfiguration
Flow 프롬프트 노드노드 선택 → Configure 섹션CreateFlow / UpdateFlow의 PromptFlowNodeConfiguration 안 guardrailConfiguration
Flow 지식 기반 노드노드 선택 → Configure 섹션CreateFlow / UpdateFlow의 KnowledgeBaseFlowNodeConfiguration 안 guardrailConfiguration
  • 기본 추론 API와 Converse API 모두 동기·스트리밍 추론에서 가드레일을 쓸 수 있고, 사용자 입력만 선택적으로 평가하거나 스트리밍 응답 동작을 설정할 수 있습니다.

하위 페이지

번호설명
115추론 API(InvokeModel 등)와 함께 사용
119ApplyGuardrail API로 독립 사용
120InvokeGuardrailChecks API 사용

SA 관점

  • ⚠️ API마다 필드 이름이 다릅니다(guardrailConfig vs guardrailConfiguration, InvokeModel은 헤더). SDK 코드 작성 시 혼동 주의.
  • 💡 Bedrock 외부 모델이나 자체 파이프라인에도 같은 정책을 적용하려면 ApplyGuardrail이 적합합니다.