AWS AIP-C01 开源练习 · 高难 · 第 03 套
英文原题与中文机器翻译。本批暂不提供日文题文;日语界面显示英文原文。
开源练习,非 AWS 官方试题。按作者参考答案判分,解析附官方文档链接。
A team must retain the FULL prompt and response content of every Bedrock model call for troubleshooting and audit, with the least custom code. Which capability is correct?
团队必须保留每个 Bedrock 模型调用的完整提示和响应内容,以进行故障排除和审核,并使用最少的自定义代码。哪种能力是正确的?
- A
Amazon Bedrock model invocation logging.
Amazon Bedrock 模型调用日志记录。
- B
AWS CloudTrail.
AWS CloudTrail。
- C
Amazon CloudWatch metrics.
Amazon CloudWatch 指标。
- D
AWS X-Ray.
AWS X 射线。
解析 / Explanation
正确答案 / Answer: A
A. Invocation logging records full prompts, responses, and metadata to S3 and/or CloudWatch with no custom instrumentation.
B. CloudTrail records API metadata, not the full prompt/response content.
C. Metrics are numeric aggregates, not request/response content.
D. X-Ray traces request flow and timing, not full model content.
A. 调用日志记录将完整的提示、响应和元数据记录到 S3 和/或 CloudWatch,无需自定义工具。
B. CloudTrail 记录 API 元数据,而不是完整的提示/响应内容。
C. 指标是数字聚合,而不是请求/响应内容。
D. X-Ray 跟踪请求流和时间,而不是完整的模型内容。
An auditor needs to know WHICH IAM principal called WHICH Bedrock API and WHEN, across the account. Which service provides this?
审计员需要知道整个账户中哪个 IAM 主体称为哪个 Bedrock API 以及何时。哪个服务提供这个?
- A
AWS CloudTrail.
AWS CloudTrail。
- B
Amazon Bedrock model invocation logging.
Amazon Bedrock 模型调用日志记录。
- C
Amazon CloudWatch dashboards.
Amazon CloudWatch 仪表板。
- D
AWS Config.
AWS 配置。
解析 / Explanation
正确答案 / Answer: A
A. CloudTrail records API calls with principal, action, time, and source, the audit trail of who did what.
B. Invocation logging captures model prompt/response content, not a full account-wide API caller audit trail.
C. Dashboards visualize metrics, not per-call caller identity.
D. Config tracks resource configuration compliance, not API caller activity.
A. CloudTrail 记录 API 调用的主体、操作、时间和来源,以及谁做了什么的审计跟踪。
B. 调用日志记录捕获模型提示/响应内容,而不是完整的帐户范围内的 API 调用者审核跟踪。
C. 仪表板可视化指标,而不是每次呼叫的呼叫者身份。
D. Config 跟踪资源配置合规性,而不是 API 调用者活动。
A team must identify and troubleshoot per-DOCUMENT failures during knowledge base ingestion (ingested, ignored, or failed). Which solution is correct?
团队必须识别知识库摄取期间每个文档的故障并进行故障排除(摄取、忽略或失败)。哪个解决方案是正确的?
- A
Configure knowledge base logging to CloudWatch Logs and query with Logs Insights.
将知识库日志记录配置到 CloudWatch Logs 并使用 Logs Insights 进行查询。
- B
Enable Bedrock model invocation logging.
启用 Bedrock 模型调用日志记录。
- C
Use AWS CloudTrail.
使用 AWS CloudTrail。
- D
Enable CloudWatch Application Signals.
启用 CloudWatch 应用程序信号。
解析 / Explanation
正确答案 / Answer: A
A. Knowledge base logging records per-file ingestion status, which Logs Insights can query for failures.
B. Invocation logging captures model calls, not the document ingestion process.
C. CloudTrail records API calls, not document-level ingestion status.
D. Application Signals monitors application performance, not knowledge base ingestion.
A. 知识库日志记录记录每个文件的摄取状态,Logs Insights 可以查询失败情况。
B. 调用日志记录捕获模型调用,而不是文档摄取过程。
C. CloudTrail 记录 API 调用,而不是文档级摄取状态。
D. 应用程序信号监视应用程序性能,而不是知识库摄取。
A request flows through API Gateway, several Lambdas, a knowledge base, and Bedrock, and the team must find WHICH component causes high end-to-end latency. Which service is BEST?
请求流经 API Gateway、多个 Lambda、知识库和 Bedrock,团队必须找到哪个组件导致较高的端到端延迟。哪种服务最好?
- A
AWS X-Ray.
AWS X 射线。
- B
Amazon CloudWatch alarms on total latency.
Amazon CloudWatch 针对总延迟发出警报。
- C
Bedrock model invocation logging.
基岩模型调用日志记录。
- D
Amazon Macie.
亚马逊麦西.
解析 / Explanation
正确答案 / Answer: A
A. X-Ray traces requests across components and shows segment timings that pinpoint the bottleneck.
B. Alarms detect that latency is high but do not localize which component is responsible.
C. Invocation logging captures model content, not cross-service timing.
D. Macie classifies data and has no tracing capability.
A. X-Ray 跟踪组件之间的请求并显示可查明瓶颈的分段时序。
B. 警报检测到延迟很高,但无法定位是哪个组件负责。
C. 调用日志记录捕获模型内容,而不是跨服务计时。
D. Macie 对数据进行分类,并且没有跟踪功能。
Invocation logs are stored in CloudWatch Logs, and an engineer must interactively query them to find and aggregate error patterns. Which tool is BEST?
调用日志存储在 CloudWatch Logs 中,工程师必须交互式查询它们以查找和聚合错误模式。哪个工具最好?
- A
Amazon CloudWatch Logs Insights.
Amazon CloudWatch 日志见解。
- B
AWS CloudTrail Lake.
AWS CloudTrail 湖。
- C
Amazon Athena with no setup.
无需设置的 Amazon Athena。
- D
Amazon QuickSight Q.
亚马逊 QuickSight Q。
解析 / Explanation
正确答案 / Answer: A
A. Logs Insights provides an interactive query language to search and aggregate the CloudWatch log data.
B. CloudTrail Lake queries CloudTrail API events, not arbitrary invocation logs already in CloudWatch Logs.
C. Athena would require exporting and cataloging the data first; Logs Insights queries the logs directly.
D. QuickSight Q answers over prepared BI datasets, not ad hoc CloudWatch log querying.
A. Logs Insights 提供交互式查询语言来搜索和聚合 CloudWatch 日志数据。
B. CloudTrail Lake 查询 CloudTrail API 事件,而不是 CloudWatch Logs 中已有的任意调用日志。
C. Athena 需要首先导出数据并对其进行编目; Logs Insights 直接查询日志。
D. QuickSight Q 对准备好的 BI 数据集进行回答,而不是临时 CloudWatch 日志查询。
A model on a SageMaker real-time endpoint must be continuously monitored for DATA DRIFT against a baseline, with automated alerts. Which capability is correct?
必须通过自动警报持续监控 SageMaker 实时端点上的模型是否存在相对于基线的数据漂移。哪种能力是正确的?
- A
Amazon SageMaker Model Monitor.
Amazon SageMaker 模型监视器。
- B
Amazon SageMaker Clarify run once at training time.
Amazon SageMaker Clarify 在训练时运行一次。
- C
CloudWatch alarms on CPU only.
仅 CPU 上的 CloudWatch 警报。
- D
Amazon Bedrock Guardrails.
亚马逊基岩护栏。
解析 / Explanation
正确答案 / Answer: A
A. Model Monitor continuously checks a deployed endpoint for data quality and drift against a baseline and can alert.
B. A one-time Clarify analysis measures bias/explainability but is not continuous endpoint drift monitoring.
C. Infrastructure metrics do not detect data drift.
D. Guardrails filter content; they do not monitor endpoint data drift.
A. 模型监视器持续检查已部署端点的数据质量和相对于基线的偏差,并可以发出警报。
B. 一次性澄清分析衡量偏差/可解释性,但不是连续的终点漂移监测。
C. 基础设施指标不会检测数据漂移。
D. 护栏过滤内容;他们不监控端点数据漂移。
A finance team must ATTRIBUTE Bedrock usage and cost to specific applications and teams that SHARE the same models. Which approach is purpose-built for this?
财务团队必须将 Bedrock 使用情况和成本归因于共享相同模型的特定应用程序和团队。哪种方法是专门为此构建的?
- A
Use Amazon Bedrock application inference profiles with cost allocation tags.
使用带有成本分配标签的 Amazon Bedrock 应用程序推理配置文件。
- B
Use AWS Cost Explorer without any tagging.
使用 AWS Cost Explorer,无需任何标记。
- C
Use AWS CloudTrail.
使用 AWS CloudTrail。
- D
Use model invocation logging.
使用模型调用日志记录。
解析 / Explanation
正确答案 / Answer: A
A. Application inference profiles tag and route invocations so usage and cost can be attributed per application or team.
B. Cost Explorer alone cannot split a shared model's spend across applications without attribution tags.
C. CloudTrail records who called the API, not per-application cost attribution.
D. Invocation logging stores content, not cost attribution.
A. 应用程序推理配置文件标记和路由调用,因此可以将使用情况和成本归因于每个应用程序或团队。
B. 如果没有归因标签,仅 Cost Explorer 无法在应用程序之间分配共享模型的支出。
C. CloudTrail 记录谁调用了 API,而不是每个应用程序的成本归因。
D. 调用日志记录存储内容,而不是成本归因。
After launch, a team wants ongoing assurance of a generative feature's quality, catching regressions as prompts and models change. Which practice is MOST effective?
发布后,团队希望持续保证生成功能的质量,并随着提示和模型的变化捕获回归。哪种做法最有效?
- A
Log responses and run periodic automated evaluations on sampled production traffic, alerting on regressions.
记录响应并定期对采样的生产流量进行自动评估,并对回归发出警报。
- B
Monitor only CPU and memory.
仅监视 CPU 和内存。
- C
Wait for user complaints.
等待用户投诉。
- D
Run one pre-launch test and never re-check.
运行一项发布前测试,并且无需重新检查。
解析 / Explanation
正确答案 / Answer: A
A. Response logging plus scheduled automated evaluation on samples gives continuous, data-driven quality monitoring.
B. Infrastructure metrics do not reveal generation-quality regressions.
C. Relying on complaints is reactive and lets defects reach users.
D. A one-time test misses regressions introduced by later changes.
A. 响应记录加上对样品的预定自动评估可提供持续的、数据驱动的质量监控。
B. 基础设施指标并未揭示发电质量的回归。
C. 依赖投诉是被动的,会让缺陷传达给用户。
D. 一次性测试会错过后续更改引入的回归。
A mobile app's end users sign in and must then receive scoped, TEMPORARY AWS credentials to call Bedrock, with no AWS keys embedded in the app. Which approach is correct?
移动应用程序的最终用户登录后必须接收范围内的临时 AWS 凭证才能调用 Bedrock,且应用程序中未嵌入任何 AWS 密钥。哪种方法是正确的?
- A
Use an Amazon Cognito identity pool to exchange the sign-in for temporary, scoped AWS credentials.
使用 Amazon Cognito 身份池将登录信息交换为临时的、限定范围的 AWS 凭证。
- B
Use an Amazon Cognito user pool by itself.
单独使用 Amazon Cognito 用户池。
- C
Embed a shared IAM access key in the app.
在应用程序中嵌入共享 IAM 访问密钥。
- D
Create one IAM user per end user.
为每个最终用户创建一个 IAM 用户。
解析 / Explanation
正确答案 / Answer: A
A. Identity pools federate authenticated users to temporary AWS credentials tied to an IAM role, with no embedded keys.
B. A user pool authenticates users but does not itself vend AWS credentials; the identity pool provides AWS credentials.
C. Embedding long-lived keys in a distributed app is a serious security risk.
D. IAM users issue long-lived keys and do not scale or provide temporary access.
A. 身份池将经过身份验证的用户联合到与 IAM 角色绑定的临时 AWS 凭证,没有嵌入密钥。
B. 用户池对用户进行身份验证,但本身并不出售 AWS 凭证;身份池提供 AWS 凭证。
C. 在分布式应用程序中嵌入长期密钥是一个严重的安全风险。
D. IAM 用户颁发长期密钥,不扩展或提供临时访问。
INTERNAL employees must authenticate through the corporate SAML identity provider to access Bedrock with temporary credentials (workforce SSO). Which solution is BEST?
内部员工必须通过公司 SAML 身份提供商进行身份验证,才能使用临时凭证(员工 SSO)访问 Bedrock。哪种解决方案最好?
- A
AWS IAM Identity Center with SAML federation to the corporate IdP.
AWS IAM Identity Center 与企业 IdP 进行 SAML 联合。
- B
An Amazon Cognito identity pool.
Amazon Cognito 身份池。
- C
IAM users for each employee.
每个员工的 IAM 用户。
- D
Access keys distributed to employees.
访问密钥分发给员工。
解析 / Explanation
正确答案 / Answer: A
A. IAM Identity Center is the workforce SSO service that federates corporate identities to temporary AWS access.
B. Cognito targets application/customer identities; workforce SSO via the corporate IdP is IAM Identity Center.
C. IAM users rely on long-lived keys and do not integrate with the corporate IdP.
D. Distributing long-lived keys is insecure and unmanageable.
A. IAM Identity Center 是一种员工 SSO 服务,可将企业身份与临时 AWS 访问联合起来。
B. Cognito 针对应用程序/客户身份;通过企业 IdP 进行的员工 SSO 是 IAM 身份中心。
C. IAM 用户依赖长期密钥,并且不与企业 IdP 集成。
D. 分发长期密钥是不安全且难以管理的。
A regulated company must call Bedrock from its VPC WITHOUT traffic traversing the public internet. Which solution is correct?
受监管的公司必须从其 VPC 调用 Bedrock,且流量不得穿越公共互联网。哪个解决方案是正确的?
- A
Create VPC interface endpoints (AWS PrivateLink) for Amazon Bedrock.
为 Amazon Bedrock 创建 VPC 接口终端节点 (AWS PrivateLink)。
- B
Route Bedrock calls through a NAT gateway.
通过 NAT 网关路由 Bedrock 呼叫。
- C
Use an internet gateway with TLS.
使用具有 TLS 的互联网网关。
- D
Set up VPC peering.
设置 VPC 对等互连。
解析 / Explanation
正确答案 / Answer: A
A. Interface endpoints via PrivateLink keep traffic to Bedrock on the AWS network.
B. A NAT gateway still sends traffic over the public internet.
C. TLS encrypts traffic but it still traverses the public internet.
D. VPC peering connects VPCs to each other, not your VPC privately to the Bedrock service.
A. 通过 PrivateLink 的接口终端节点将流量保留到 AWS 网络上的 Bedrock。
B. NAT 网关仍然通过公共互联网发送流量。
C. TLS 对流量进行加密,但它仍然穿过公共互联网。
D. VPC 对等互连将 VPC 相互连接,而不是将您的 VPC 私下连接到 Bedrock 服务。
An application in Account A must call Bedrock resources governed by Account B using temporary credentials and no shared long-lived keys. Which mechanism is correct?
账户 A 中的应用程序必须使用临时凭证且不使用共享的长期密钥来调用由账户 B 管理的 Bedrock 资源。哪种机制是正确的?
- A
Create an IAM role in Account B and have Account A assume it via AWS STS AssumeRole.
在账户 B 中创建 IAM 角色,并让账户 A 通过 AWS STS AssumeRole 代入该角色。
- B
Share Account B's IAM access keys with Account A.
与账户 A 共享账户 B 的 IAM 访问密钥。
- C
Make the Bedrock resources public.
公开基岩资源。
- D
Use the same root user across both accounts.
在两个帐户中使用相同的根用户。
解析 / Explanation
正确答案 / Answer: A
A. Cross-account role assumption provides scoped, temporary credentials without sharing long-lived keys.
B. Sharing long-lived keys is insecure and unmanageable.
C. Public access removes the required access control.
D. Sharing root credentials is a severe security violation.
A. 跨账户角色假设提供了有范围的临时凭证,而无需共享长期密钥。
B. 共享长期密钥是不安全且难以管理的。
C. 公共访问消除了所需的访问控制。
D. 共享 root 凭据是严重的安全违规行为。
An agent's Lambda must use a third-party API key that has to be stored securely WITH automatic rotation and fine-grained access. Which service is BEST?
代理的 Lambda 必须使用第三方 API 密钥,该密钥必须通过自动轮换和细粒度访问进行安全存储。哪种服务最好?
- A
AWS Secrets Manager.
AWS 秘密管理器。
- B
AWS Systems Manager Parameter Store SecureString.
AWS Systems Manager 参数存储 SecureString。
- C
A plaintext environment variable.
明文环境变量。
- D
A hard-coded constant in the function.
函数中的硬编码常量。
解析 / Explanation
正确答案 / Answer: A
A. Secrets Manager stores credentials with IAM-controlled access and supports built-in automatic rotation.
B. Parameter Store can hold encrypted values but does not provide built-in managed rotation for arbitrary third-party secrets the way Secrets Manager does.
C. Plaintext secrets are insecure and cannot be rotated safely.
D. Hard-coded secrets cannot be rotated and risk exposure.
A. Secrets Manager 通过 IAM 控制的访问来存储凭证,并支持内置自动轮换。
B. Parameter Store 可以保存加密值,但不像 Secrets Manager 那样为任意第三方机密提供内置托管轮换。
C. 明文秘密是不安全的并且无法安全地轮换。
D. 硬编码的秘密无法轮换并存在暴露的风险。
Security policy requires that a specific IAM role be able to invoke ONLY one approved foundation model in Bedrock. How is this BEST enforced?
安全策略要求特定 IAM 角色只能调用 Bedrock 中一个已批准的基础模型。这是如何最好地执行的?
- A
Write a least-privilege IAM policy that allows invoke actions only on the approved model's resource ARN.
编写一个最低权限 IAM 策略,仅允许对已批准模型的资源 ARN 调用操作。
- B
Apply the bedrock:GuardrailIdentifier condition key.
应用基岩:GuardrailIdentifier 条件键。
- C
Allow all models and tell developers to use only the approved one.
允许所有模型并告诉开发人员仅使用批准的模型。
- D
Choose the model only in application code.
仅在应用程序代码中选择模型。
解析 / Explanation
正确答案 / Answer: A
A. Scoping the policy to the specific model ARN technically restricts the role to that model.
B. That condition enforces that a guardrail is applied; it does not restrict which model the role may invoke.
C. A verbal rule is not a technical control.
D. Application-side selection is not an access control and can be bypassed.
A. 将策略范围限定为特定模型 ARN 从技术上讲将角色限制为该模型。
B. 该条件强制应用护栏;它不限制角色可以调用哪个模型。
C. 口头规则不是技术控制。
D. 应用程序端选择不是访问控制,可以绕过。
A company must encrypt Bedrock-related data at rest using keys it can CONTROL, ROTATE, and AUDIT. Which approach is correct?
公司必须使用可以控制、轮换和审核的密钥对与 Bedrock 相关的静态数据进行加密。哪种方法是正确的?
- A
Encrypt with an AWS KMS customer managed key (CMK).
使用 AWS KMS 客户管理密钥 (CMK) 进行加密。
- B
Rely on the default AWS owned key.
依赖默认的 AWS 拥有的密钥。
- C
Store the data unencrypted for simplicity.
为简单起见,存储未加密的数据。
- D
Use a client-side passphrase hard-coded in the app.
使用应用程序中硬编码的客户端密码。
解析 / Explanation
正确答案 / Answer: A
A. A customer managed key gives control over key policy and rotation, and CloudTrail audits its use.
B. AWS owned keys encrypt data but give the customer no control, rotation policy, or usage auditing.
C. Unencrypted data fails the requirement.
D. A hard-coded passphrase is insecure and not an auditable managed key.
A. 客户管理的密钥可以控制密钥策略和轮换,CloudTrail 会审核其使用情况。
B. AWS 拥有的密钥可加密数据,但不给予客户任何控制权、轮换策略或使用情况审核。
C. 未加密的数据不符合要求。
D. 硬编码的密码是不安全的,并且不是可审核的托管密钥。
A compliance team must ensure customer prompts are processed only within an approved Region and are NOT used to train the base models. Which statement and action are correct?
合规团队必须确保客户提示仅在批准的区域内进行处理,并且不用于训练基本模型。哪种说法和做法是正确的?
- A
Use Bedrock in the approved Region; it processes the data in that Region and does not use your prompts/outputs to train the base models.
在批准的区域使用基岩;它处理该区域中的数据,并且不使用您的提示/输出来训练基本模型。
- B
File a support ticket to opt out, or your data trains the models by default.
提交支持票以选择退出,或者默认使用您的数据训练模型。
- C
Accept that data may be processed globally.
接受数据可以在全球范围内处理。
- D
Self-host the model, since only that prevents base-model training on your data.
自托管模型,因为只有这样才能阻止对数据进行基础模型训练。
解析 / Explanation
正确答案 / Answer: A
A. Bedrock keeps inference data in the Region you call and does not use customer inputs/outputs to train base models.
B. No opt-out is required; Bedrock does not use your data to train base models.
C. Inference data is processed in the Region you invoke, not globally.
D. Using Bedrock already prevents your data from training base models; self-hosting is unnecessary for that guarantee.
A. Bedrock 将推理数据保留在您调用的区域中,并且不使用客户输入/输出来训练基础模型。
B. 无需选择退出; Bedrock 不会使用您的数据来训练基础模型。
C. 推理数据在您调用的区域中处理,而不是全局处理。
D. 使用 Bedrock 已经可以防止您的数据训练基础模型;为了保证这一点,自托管是不必要的。
A team must filter harmful content (hate, insults, violence, sexual, misconduct) in BOTH prompts and responses, with adjustable strictness PER category. Which Guardrails feature is correct?
团队必须过滤提示和响应中的有害内容(仇恨、侮辱、暴力、性、不当行为),并按类别调整严格程度。哪种护栏功能是正确的?
- A
Content filters with configurable strength per harmful category.
每个有害类别的内容过滤器具有可配置的强度。
- B
Denied topics.
否认话题。
- C
Word filters.
词过滤器。
- D
Stop sequences.
停止序列。
解析 / Explanation
正确答案 / Answer: A
A. Content filters detect and block harmful categories in input and output with per-category strength settings.
B. Denied topics block specific subjects you define, not the built-in harmful-content categories.
C. Word filters block specific words/phrases, not graded harmful-content categories.
D. Stop sequences end generation; they do not classify harmful content.
A. 内容过滤器通过每个类别的强度设置来检测和阻止输入和输出中的有害类别。
B. 拒绝的主题会阻止您定义的特定主题,而不是内置的有害内容类别。
C. 单词过滤器会阻止特定单词/短语,而不是对有害内容类别进行分级。
D. 停止序列结束生成;他们不对有害内容进行分类。
A banking assistant must refuse a specific prohibited SUBJECT (individualized investment advice) even when users rephrase it in new ways. Which Guardrails feature is BEST?
即使用户以新的方式重新表述,银行助理也必须拒绝特定的禁止主题(个性化投资建议)。哪种护栏功能最好?
- A
Denied topics, defined with a description and examples.
拒绝的主题,通过描述和示例进行定义。
- B
Word filters listing banned terms.
列出禁用术语的单词过滤器。
- C
Content filters.
内容过滤器。
- D
The PII filter.
PII 过滤器。
解析 / Explanation
正确答案 / Answer: A
A. Denied topics block a subject by semantic description and examples, catching varied phrasings.
B. A keyword list misses rephrasings and is brittle for a whole subject.
C. Content filters target harmful categories, not an arbitrary business subject.
D. The PII filter handles personal data, not topic restriction.
A. 被拒绝的主题通过语义描述和示例来阻止主题,捕捉不同的短语。
B. 关键字列表缺少重新措辞,并且对于整个主题来说是脆弱的。
C. 内容过滤器针对有害类别,而不是任意业务主题。
D. PII 过滤器处理个人数据,而不是主题限制。
An assistant must ensure PII in model RESPONSES is masked or blocked before reaching users, as a managed guardrail control. Which feature is correct?
助理必须确保模型响应中的 PII 在到达用户之前被屏蔽或阻止,作为托管护栏控制。哪个特征是正确的?
- A
The Guardrails sensitive information (PII) filter.
Guardrails 敏感信息 (PII) 过滤器。
- B
Run Amazon Comprehend on each response in custom code.
对自定义代码中的每个响应运行 Amazon Comprehend。
- C
Denied topics.
否认话题。
- D
Content filters.
内容过滤器。
解析 / Explanation
正确答案 / Answer: A
A. The PII filter detects and masks or blocks personal information in inputs and outputs.
B. Comprehend can detect PII but is a separate custom step, not the managed in-guardrail control the scenario asks for.
C. Denied topics block subjects, not PII entities.
D. Content filters handle harmful categories, not PII masking.
A. PII 过滤器检测并屏蔽或阻止输入和输出中的个人信息。
B. Comprehend 可以检测 PII,但它是一个单独的自定义步骤,而不是场景要求的托管护栏内控制。
C. 被拒绝的主题会阻止主题,而不是 PII 实体。
D. 内容过滤器处理有害类别,而不是 PII 屏蔽。
A public chatbot faces users trying to override its instructions and jailbreak it. Which Guardrails capability specifically detects these attempts?
公共聊天机器人面临着试图覆盖其指令并越狱的用户。哪种 Guardrails 功能专门检测这些尝试?
- A
The prompt attack filter.
提示攻击过滤器。
- B
Denied topics.
否认话题。
- C
Content filters for hate/violence.
仇恨/暴力内容过滤器。
- D
Lowering the temperature.
降低温度。
解析 / Explanation
正确答案 / Answer: A
A. The prompt attack filter flags prompt injection and jailbreak inputs so they can be blocked.
B. Denied topics block subjects, not injection attempts.
C. Those categories do not target instruction-override attacks.
D. Temperature does not detect prompt attacks.
A. 提示攻击过滤器标记提示注入和越狱输入,以便可以阻止它们。
B. 被拒绝的主题会阻止受试者,而不是注射尝试。
C. 这些类别不针对指令覆盖攻击。
D. 温度不检测即时攻击。
A brand must block an EXACT list of competitor names and specific profane terms from outputs. Which Guardrails feature is the BEST fit?
品牌必须从输出中屏蔽竞争对手名称和特定亵渎术语的准确列表。哪种护栏功能最适合?
- A
Word filters (a custom word/phrase list plus managed profanity).
单词过滤器(自定义单词/短语列表以及受管理的脏话)。
- B
Denied topics.
否认话题。
- C
Content filters.
内容过滤器。
- D
The PII filter.
PII 过滤器。
解析 / Explanation
正确答案 / Answer: A
A. Word filters block specific, exact terms such as competitor names and profanity.
B. Denied topics target whole semantic subjects, which is heavier than blocking an exact word list.
C. Content filters address harmful categories, not a specific custom term list.
D. The PII filter handles personal data, not competitor names.
A. 单词过滤器会阻止特定、准确的术语,例如竞争对手的名称和脏话。
B. 拒绝的主题针对整个语义主题,这比阻止确切的单词列表更重。
C. 内容过滤器针对的是有害类别,而不是特定的自定义术语列表。
D. PII 过滤器处理个人数据,而不是竞争对手名称。
In a RAG assistant, the guardrail itself should block responses NOT supported by the retrieved source or off-topic from the query, using a tunable threshold. Which capability fits?
在 RAG 助手中,护栏本身应该使用可调阈值来阻止检索到的源不支持的响应或查询中偏离主题的响应。适合哪种能力?
- A
The contextual grounding and relevance checks.
上下文基础和相关性检查。
- B
Denied topics.
否认话题。
- C
Content filters.
内容过滤器。
- D
Word filters.
词过滤器。
解析 / Explanation
正确答案 / Answer: A
A. These checks score grounding in the source and relevance to the query and can block low-scoring responses at a configured threshold.
B. Denied topics block subjects, not ungrounded answers within an allowed subject.
C. Content filters target harmful content, not grounding.
D. Word filters block specific terms, not ungrounded responses.
A. 这些检查对源的基础和与查询的相关性进行评分,并可以在配置的阈值下阻止低分响应。
B. 被拒绝的主题会阻止主题,而不是允许主题内的无根据的答案。
C. 内容过滤器针对的是有害内容,而不是接地内容。
D. 单词过滤器会阻止特定术语,而不是没有根据的响应。
A self-managed pipeline calls a model hosted OUTSIDE Bedrock but wants to apply the same Bedrock guardrail policy to arbitrary text at chosen points. Which capability enables this?
自管理管道调用托管在 Bedrock 外部的模型,但希望将相同的 Bedrock 护栏策略应用于所选点的任意文本。哪种能力可以实现这一点?
- A
The ApplyGuardrail API.
应用Guardrail API。
- B
Inline guardrails only on Bedrock InvokeModel.
仅在 Bedrock InvokeModel 上使用内联护栏。
- C
Defining denied topics in the guardrail.
在护栏中定义被拒绝的主题。
- D
Provisioned Throughput.
预置吞吐量。
解析 / Explanation
正确答案 / Answer: A
A. ApplyGuardrail evaluates input/output text against a guardrail independently of a Bedrock model call, covering external models and arbitrary points.
B. Inline-only guardrails cannot cover text from a non-Bedrock model or arbitrary pipeline steps.
C. Denied topics is a policy type, not the independent evaluation API.
D. Provisioned Throughput is a capacity feature, unrelated to guardrail evaluation.
A. ApplyGuardrail 根据护栏评估输入/输出文本,独立于 Bedrock 模型调用,涵盖外部模型和任意点。
B. 仅内联护栏无法覆盖非基岩模型或任意管道步骤中的文本。
C. 拒绝主题是一种策略类型,而不是独立评估 API。
D. 预置吞吐量是一项容量功能,与护栏评估无关。
A regulated insurer needs strong assurance that policy answers conform to its written rules, with VERIFIABLE logical checks rather than only probabilistic filtering. Which newer Guardrails capability fits?
受监管的保险公司需要强有力的保证,确保保单答案符合其书面规则,并进行可验证的逻辑检查,而不仅仅是概率过滤。哪种新的 Guardrails 功能适合?
- A
Automated Reasoning checks.
自动推理检查。
- B
The contextual grounding check.
上下文接地检查。
- C
Content filters.
内容过滤器。
- D
Lowering the temperature.
降低温度。
解析 / Explanation
正确答案 / Answer: A
A. Automated Reasoning checks use formal, logic-based verification against an encoded policy to validate responses.
B. Grounding checks whether a response is supported by provided source text, not formal verification against encoded policy rules.
C. Content filters handle harmful content, not policy conformance verification.
D. Temperature does not verify outputs against policy.
A. 自动推理检查使用针对编码策略的基于逻辑的正式验证来验证响应。
B. 接地检查所提供的源文本是否支持响应,而不是根据编码的策略规则进行正式验证。
C. 内容过滤器处理有害内容,而不是策略一致性验证。
D. 温度不会根据策略验证输出。
Governance requires that EVERY InvokeModel and Converse call from many IAM roles apply a specific guardrail, enforced as efficiently as possible. Which approach is BEST?
治理要求来自许多 IAM 角色的每个 InvokeModel 和 Converse 调用都应用特定的防护栏,并尽可能有效地实施。哪种方法最好?
- A
Add an IAM policy with the bedrock:GuardrailIdentifier condition key to all roles that access Bedrock.
将带有 bedrock:GuardrailIdentifier 条件键的 IAM 策略添加到访问 Bedrock 的所有角色。
- B
Route all calls through a Lambda proxy that injects the guardrail.
通过注入护栏的 Lambda 代理路由所有调用。
- C
Store the guardrail ID in Parameter Store and fetch it per call.
将护栏 ID 存储在 Parameter Store 中并在每次调用时获取它。
- D
Manually set the guardrail in each application's config.
在每个应用程序的配置中手动设置护栏。
解析 / Explanation
正确答案 / Answer: A
A. The condition key centrally and efficiently enforces that the guardrail is applied across all relevant API calls.
B. A proxy is a bottleneck and custom code to maintain, less efficient than the IAM condition.
C. Per-call retrieval adds latency and maintenance.
D. Per-app configuration is not centrally enforced and is easy to miss.
A. 条件键集中有效地强制在所有相关 API 调用中应用护栏。
B. 代理是一个瓶颈,需要维护自定义代码,效率低于 IAM 条件。
C. 每次调用检索会增加延迟和维护。
D. 每个应用程序的配置不是集中执行的,很容易被遗漏。
Compliance records must be stored so they CANNOT be altered or deleted for a mandated period, even by administrators or the root user. Which configuration is correct?
必须存储合规记录,以便在规定的时间内无法更改或删除它们,即使是管理员或根用户也是如此。哪种配置是正确的?
- A
Amazon S3 Object Lock in compliance mode for the retention period.
Amazon S3 对象锁定在保留期内处于合规模式。
- B
Amazon S3 Object Lock in governance mode.
治理模式下的 Amazon S3 对象锁定。
- C
S3 versioning alone.
仅 S3 版本控制。
- D
A bucket policy that denies deletes.
拒绝删除的存储桶策略。
解析 / Explanation
正确答案 / Answer: A
A. Compliance mode enforces WORM immutability that no one, including root, can override until retention expires.
B. Governance mode can be overridden by users with special permissions, so it does not guarantee immutability against administrators.
C. Versioning preserves versions but does not prevent deletion or enforce retention.
D. A bucket policy can be changed by administrators, so it is not immutable retention.
A. 合规性模式强制执行 WORM 不变性,在保留到期之前,任何人(包括根用户)都无法覆盖该不变性。
B. 治理模式可以被具有特殊权限的用户覆盖,因此它不能保证管理员的不变性。
C. 版本控制会保留版本,但不会阻止删除或强制保留。
D. 管理员可以更改存储桶策略,因此它不是不可变的保留。
An auditor must determine which IAM principals called which Bedrock APIs and when. Which service provides this trail?
审核员必须确定哪些 IAM 主体调用了哪些 Bedrock API 以及何时调用。哪家服务提供这条路线?
- A
AWS CloudTrail.
AWS CloudTrail。
- B
Bedrock model invocation logging.
基岩模型调用日志记录。
- C
Amazon CloudWatch metrics.
Amazon CloudWatch 指标。
- D
AWS Config.
AWS 配置。
解析 / Explanation
正确答案 / Answer: A
A. CloudTrail records API calls with principal, action, and time.
B. Invocation logging captures prompt/response content, not the account-wide API caller audit trail.
C. Metrics are numeric aggregates, not caller identity.
D. Config tracks resource configuration, not API caller activity.
A. CloudTrail 记录 API 调用的主体、操作和时间。
B. 调用日志记录捕获提示/响应内容,而不是帐户范围的 API 调用者审核跟踪。
C. 指标是数字聚合,而不是呼叫者身份。
D. Config 跟踪资源配置,而不是 API 调用者活动。
For regulatory reconstruction, a company must retain the ACTUAL prompt and response content of every Bedrock call in immutable storage. Which combination is correct?
为了进行监管重建,公司必须在不可变存储中保留每个 Bedrock 调用的实际提示和响应内容。哪种组合是正确的?
- A
Enable Bedrock model invocation logging to S3 and apply S3 Object Lock for the retention period.
启用 Bedrock 模型调用日志记录到 S3 并在保留期内应用 S3 对象锁定。
- B
Enable AWS CloudTrail only.
仅启用 AWS CloudTrail。
- C
Print prompts to the application console.
将提示打印到应用程序控制台。
- D
Rely on CloudWatch metrics.
依赖 CloudWatch 指标。
解析 / Explanation
正确答案 / Answer: A
A. Invocation logging captures full content, and Object Lock makes the stored logs immutable for retention.
B. CloudTrail captures API metadata, not the full prompt/response content.
C. Console output is not durable, complete, or immutable.
D. Metrics do not store prompt or response text.
A. 调用日志记录捕获完整内容,对象锁定使存储的日志不可变以便保留。
B. CloudTrail 捕获 API 元数据,而不是完整的提示/响应内容。
C. 控制台输出不持久、不完整或不可变。
D. 指标不存储提示或响应文本。
A company wants to keep chat transcripts for analytics but is prohibited from RETAINING PII. What is the BEST approach before storage?
一家公司希望保留聊天记录以供分析,但禁止保留 PII。存储之前最好的方法是什么?
- A
Redact PII with Amazon Comprehend, then store the sanitized transcripts.
使用 Amazon Comprehend 编辑 PII,然后存储经过清理的转录本。
- B
Store the raw transcripts unchanged.
存储原始转录本不变。
- C
Encrypt the bucket and keep all PII.
加密存储桶并保留所有 PII。
- D
Lower the model temperature.
降低模型温度。
解析 / Explanation
正确答案 / Answer: A
A. Detecting and redacting PII before storage keeps useful analytics data while complying with the no-PII rule.
B. Storing raw PII violates the requirement.
C. Encryption protects data at rest but does not satisfy a rule against retaining PII at all.
D. Temperature does not remove PII from stored text.
A. 在存储之前检测和编辑 PII 可保留有用的分析数据,同时遵守无 PII 规则。
B. 存储原始 PII 违反了要求。
C. 加密可以保护静态数据,但根本不满足保留 PII 的规则。
D. 温度不会从存储的文本中删除 PII。
Stored embeddings and invocation logs contain sensitive data, and the security team must CONTROL and AUDIT the encryption keys. Which approach is BEST?
存储的嵌入和调用日志包含敏感数据,安全团队必须控制和审核加密密钥。哪种方法最好?
- A
Encrypt with AWS KMS customer managed keys and audit usage via key policies and CloudTrail.
使用 AWS KMS 客户管理的密钥进行加密,并通过密钥策略和 CloudTrail 审核使用情况。
- B
Leave the data unencrypted for easy access.
保持数据未加密以便于访问。
- C
Use one shared password stored in code.
使用存储在代码中的一个共享密码。
- D
Make the storage public so keys are unnecessary.
将存储公开,这样就不需要密钥了。
解析 / Explanation
正确答案 / Answer: A
A. Customer managed keys give control and rotation, and CloudTrail records key usage for auditing.
B. Unencrypted sensitive data fails the requirement.
C. A hard-coded shared secret is insecure and not auditable.
D. Public storage exposes the data and is the opposite of the requirement.
A. 客户管理的密钥提供控制和轮换,CloudTrail 记录密钥使用情况以供审核。
B. 未加密的敏感数据不符合要求。
C. 硬编码的共享秘密是不安全且不可审计的。
D. 公共存储暴露了数据,与需求相反。
A user invokes their right to erasure. Their documents were ingested into a knowledge base whose embeddings live in a vector store. What must you do to FULLY remove their data?
用户调用其删除权。他们的文档被提取到知识库中,知识库的嵌入内容存储在矢量存储中。您必须做什么才能完全删除他们的数据?
- A
Delete the source documents AND remove/re-sync them from the knowledge base so the corresponding vector embeddings are deleted.
删除源文档并从知识库中删除/重新同步它们,以便删除相应的向量嵌入。
- B
Delete only the source files from Amazon S3.
仅从 Amazon S3 中删除源文件。
- C
Delete only the CloudWatch logs.
仅删除 CloudWatch 日志。
- D
Rely on S3 Object Lock to expire the data.
依靠 S3 对象锁来使数据过期。
解析 / Explanation
正确答案 / Answer: A
A. Embeddings persist in the vector store until the knowledge base is updated, so both the source and the ingested vectors must be removed.
B. Deleting the source leaves the already-ingested embeddings in the vector store, so the data is not fully removed.
C. Logs are unrelated to the embeddings retained in the vector store.
D. Object Lock prevents deletion during retention, which is the opposite of fulfilling an erasure request.
A. 嵌入会一直保留在向量存储中,直到知识库更新为止,因此必须删除源向量和摄取的向量。
B. 删除源会将已提取的嵌入留在向量存储中,因此数据并未完全删除。
C. 日志与向量存储中保留的嵌入无关。
D. 对象锁定可防止在保留期间删除,这与满足擦除请求相反。