SAP-C02 学习助手

SAP-C02 第 349 题

VPC S3 Config

题目

A team of data scientists is using Amazon SageMaker instances and SageMaker APIs to train machine learning (ML) models. The SageMaker instances are deployed in a VPC that does not have access to or from the internet. Datasets for ML model training are stored in an Amazon S3 bucket. Interface VPC endpoints provide access to Amazon S3 and the SageMaker APIs. Occasionally, the data scientists require access to the Python Package Index (PyPI) repository to update Python packages that they use as part of their workflow. A solutions architect must provide access to the PyPI repository while ensuring that the SageMaker instances remain isolated from the internet. Which solution will meet these requirements?

中文翻译:
数据科学家团队正在使用 Amazon SageMaker 实例和 SageMaker API 来训练机器学习 (ML) 模型。 SageMaker 实例部署在无法访问互联网或从互联网访问的 VPC 中。用于 ML 模型训练的数据集存储在 Amazon S3 存储桶中。接口 VPC 终端节点提供对 Amazon S3 和 SageMaker API 的访问。有时,数据科学家需要访问 Python 包索引 (PyPI) 存储库来更新他们在工作流程中使用的 Python 包。解决方案架构师必须提供对 PyPI 存储库的访问,同时确保 SageMaker 实例与互联网保持隔离。哪种解决方案可以满足这些要求?

选项

A. Create an AWS CodeCommit repository for each package that the data scientists need to access. Configure code synchronization between the PyPI repository and the CodeCommit repository. Create a VPC endpoint for CodeCommit.

中文翻译:
为数据科学家需要访问的每个包创建一个 AWS CodeCommit 存储库。配置 PyPI 存储库和 CodeCommit 存储库之间的代码同步。为 CodeCommit 创建 VPC 终端节点。

B. Create a NAT gateway in the VPC. Configure VPC routes to allow access to the internet with a network ACL that allows access to only the PyPI repository endpoint.

中文翻译:
在VPC中创建NAT网关。配置 VPC 路由以允许使用仅允许访问 PyPI 存储库端点的网络 ACL 访问互联网。

C. Create a NAT instance in the VPConfigure VPC routes to allow access to the internet. Configure SageMaker notebook instance firewall rules that allow access to only the PyPI repository endpoint.

中文翻译:
在VP中创建NAT实例配置VPC路由以允许访问Internet。配置 SageMaker 笔记本实例防火墙规则,仅允许访问 PyPI 存储库端点。

D. Create an AWS CodeArtifact domain and repository. Add an external connection for public:pypi to the CodeArtifact repository. Configure the Python client to use the CodeArtifact repository. Create a VPC endpoint for CodeArtifact.

中文翻译:
创建 AWS CodeArtifact 域和存储库。将 public:pypi 的外部连接添加到 CodeArtifact 存储库。配置 Python 客户端以使用 CodeArtifact 存储库。为 CodeArtifact 创建 VPC 终端节点。

答案

D

解析

正确答案:D 解析: 本题应选择 D。 正确选项: D. 创建 AWS CodeArtifact 域和存储库。将 public:pypi 的外部连接添加到 CodeArtifact 存储库。配置 Python 客户端以使用 CodeArtifact 存储库。为 CodeArtifact 创建 VPC 终端节点。 选择理由: 该选项最直接地满足题干中的关键约束。做 SAP-C02 题目时,需要同时对照题干里的限定词,例如最高性能、最低运维...

登录后查看完整解析