更新时间: 试题数量: 购买人数: 提供作者:

有效期: 个月

章节介绍: 共有个章节

收藏
搜索
题库预览
A company has a mobile application that makes HTTP API calls to an Application Load Balancer (ALB). The ALB routes requests to an AWS Lambda function. Many different versions of the application are in use at any given time, including versions that are in testing by a subset of users. The version of the application is defined in the user-agent header that is sent with all requests to the API. After a series of recent changes to the API, the company has observed issues with the application. The company needs to gather a metric for each API operation by response code for each version of the application that is in use. A DevOps engineer has modified the Lambda function to extract the API operation name, version information from the user-agent header and response code. Which additional set of actions should the DevOps engineer take to gather the required metrics? 一家公司有一个移动应用程序,该应用程序通过 HTTP API 调用连接到一个 Application Load Balancer (ALB)。ALB 将请求路由到一个 AWS Lambda 函数。在任何时候,应用程序都有许多不同的版本在使用,包括由部分用户进行测试的版本。应用程序的版本通过发送到 API 的 user-agent header 中定义。 在最近对 API 进行一系列更改后,公司发现应用程序出现问题。公司需要为每个正在使用的应用程序版本的每个 API 操作按响应代码收集指标。一个 DevOps 工程师已修改 Lambda 函数以提取 API 操作名称、user-agent header 中的版本信息和响应代码。 DevOps 工程师还需要采取哪些额外的操作来收集所需的指标?
A company provides an application to customers. The application has an Amazon API Gateway REST API that invokes an AWS Lambda function. On initialization, the Lambda function loads a large amount of data from an Amazon DynamoDB table. The data load process results in long cold-start times of 8-10 seconds. The DynamoDB table has DynamoDB Accelerator (DAX) configured. Customers report that the application intermittently takes a long time to respond to requests. The application receives thousands of requests throughout the day. In the middle of the day, the application experiences 10 times more requests than at any other time of the day. Near the end of the day, the application's request volume decreases to 10% of its normal total. A DevOps engineer needs to reduce the latency of the Lambda function at all times of the day. Which solution will meet these requirements? 一家公司向客户提供一个应用程序。该应用程序有一个 Amazon API Gateway REST API,该 API 调用一个 AWS Lambda 函数。在初始化时,Lambda 函数从一个 Amazon DynamoDB 表加载大量数据。数据加载过程导致了较长的冷启动时间,约为 8-10 秒。DynamoDB 表已配置了 DynamoDB Accelerator (DAX)。 客户报告说,该应用程序偶尔会需要很长时间才能响应请求。该应用程序全天接收数千个请求。在一天的中间时段,该应用程序的请求量是一天中任何其他时段的 10 倍。接近一天结束时,该应用程序的请求量下降到正常总量的 10%。 一名 DevOps 工程师需要在一天中的任何时间都减少 Lambda 函数的延迟。 哪种解决方案可以满足这些需求?
A company is adopting AWS CodeDeploy to automate its application deployments for a Java-Apache Tomcat application with an Apache Webserver. The development team started with a proof of concept, created a deployment group for a developer environment, and performed functional tests within the application. After completion, the team will create additional deployment groups for staging and production. The current log level is configured within the Apache settings, but the team wants to change this configuration dynamically when the deployment occurs, so that they can set different log level configurations depending on the deployment group without having a different application revision for each group. How can these requirements be met with the LEAST management overhead and without requiring different script versions for each deployment group? 一家公司正在采用 AWS CodeDeploy 来自动化其 Java-Apache Tomcat 应用程序与 Apache Webserver 的应用部署。开发团队从概念验证开始,为开发人员环境创建了一个部署组,并在应用程序内执行了功能测试。完成后,团队将为预生产环境和生产环境创建额外的部署组。 当前日志级别是在 Apache 设置中配置的,但团队希望在部署时动态更改此配置,以便根据部署组设置不同的日志级别配置,而无需为每个组创建不同的应用程序修订版本。 如何以最少的管理开销满足这些要求,并且不需要为每个部署组使用不同的脚本版本?
A company has a single AWS account that runs hundreds of Amazon EC2 instances in a single AWS Region. New EC2 instances are launched and terminated each hour in the account. The account also includes existing EC2 instances that have been running for longer than a week. The company's security policy requires all running EC2 instances to use an EC2 instance profile. If an EC2 instance does not have an instance profile attached, the EC2 instance must use a default instance profile that has no IAM permissions assigned. A DevOps engineer reviews the account and discovers EC2 instances that are running without an instance profile. During the review, the DevOps engineer also observes that new EC2 instances are being launched without an instance profile. Which solution will ensure that an instance profile is attached to all existing and future EC2 instances in the Region? 一家公司拥有一个单一的AWS账户,在一个AWS区域中运行着数百个Amazon EC2实例。每小时都会在该账户中启动和终止新的EC2实例。该账户还包括已经运行超过一周的现有EC2实例。 公司的安全策略要求所有正在运行的EC2实例必须使用EC2实例配置文件。如果某个EC2实例没有附加实例配置文件,则该EC2实例必须使用一个没有分配任何IAM权限的默认实例配置文件。 一位DevOps工程师审查了该账户,并发现有一些正在运行的EC2实例没有实例配置文件。在审查过程中,DevOps工程师还观察到新的EC2实例正在启动时没有附加实例配置文件。 哪种解决方案可以确保在该区域中的所有现有和未来的EC2实例都附加了实例配置文件?
A company has multiple AWS accounts. The company uses AWS IAM Identity Center (AWS Single Sign-On) that is integrated with AWS Toolkit for Microsoft Azure DevOps. The attributes for access control feature is enabled in IAM Identity Center.The attribute mapping list contains two entries. The department key is mapped to $${path:enterprise.department}. The costCenter key is mapped to $${path:enterprise.costCenter}.All existing Amazon EC2 instances have a department tag that corresponds to three company departments (d1, d2, d3). A DevOps engineer must create policies based on the matching attributes. The policies must minimize administrative effort and must grant each Azure AD user access to only the EC2 instances that are tagged with the user’s respective department name.Which condition key should the DevOps engineer include in the custom permissions policies to meet these requirements?一家公司拥有多个AWS账户。该公司使用与AWS Toolkit for Microsoft Azure DevOps集成的AWS IAM Identity Center(AWS Single Sign-On)。IAM Identity Center启用了访问控制功能的属性。属性映射列表包含两个条目。department键映射到${path:enterprise.department}。costCenter键映射到${path:enterprise.costCenter}。所有现有的Amazon EC2实例都有一个department标签,该标签对应于公司的三个部门(d1, d2, d3)。一名DevOps工程师必须基于匹配属性创建策略。这些策略必须尽量减少管理工作,并且必须仅授予每个Azure AD用户访问与用户所属部门名称相匹配标签的EC2实例的权限。DevOps工程师应该在自定义权限策略中包含哪个条件键以满足这些要求?