amazon-web-services - 启动配置问题(AWS Certified Solutions Architect – Associate Certification)
问题描述
你可以看到别人给出的问题和答案。我的问题是为什么不是 C,C 似乎也正确。
Which of the following statements is true of creating a launch configuration using an EC2 instance?
A. The launch configuration can be created only using the Query APIs.
B. Auto Scaling automatically creates a launch configuration directly from an EC2 instance.
C. A user should manually create a launch configuration before creating an Auto Scaling group.
D. The launch configuration should be created manually from the AWS CLI.
答案:B
您可以直接从 EC2 实例创建 Auto Scaling 组。当您使用此功能时。Auto Scaling 也会自动为您创建启动配置。参考: http ://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/create-lc-with-instancelD.html
解决方案
这是一个非常糟糕的问题。我建议您将时间花在其他地方,而不是尝试诊断这个问题。
我怀疑这个问题也很老了,因为 Auto Scaling 组现在也可以接受启动模板,并且您提供的链接不起作用。(更新后的链接是:https ://docs.aws.amazon.com/autoscaling/ec2/userguide/create-lc-with-instanceID.html )
使用“应该”的问题写得不好。考试题试图测试你如何成功地做某事的知识,而不是你“应该”如何做某事。例如,问题通常会询问成本最低的解决方案或可用性最高的解决方案,而不会留下关于正确答案的问题。
要回答您的问题:
- 可以通过 AWS CLI 或 AWS SDK API 调用在管理控制台中创建启动配置(因此 C 和 D 有效,A 不正确)
- 无法从现有 Amazon EC2 实例创建启动配置(因此 B 不正确)
- 现在可以从现有 Amazon EC2 实例创建启动模板,Auto Scaling 组可以使用它(但这不是他们要求的)
底线:让作者知道该问题已过时/不正确。
推荐阅读
- javascript - 拆分字符串和排序的时间复杂度
- android - 设计 Android 客户端-服务器应用程序的最佳方法是什么
- javascript - 如何在 JavaScript 中以最短的方式创建 { 0: false, 1: false, 2: false, ..., 99: false }(最好使用 Lodash?)
- jenkins - 使用 anyof 的 Jenkins 管道
- sql - 雪花中的 SELECT DISTINCT 或 GROUP BY 更快吗?
- sql-server - 是否可以改进视图的“包含”过滤器?
- html - 悬停 div 更改另一个 div 不起作用
- node.js - Nodejs 发布带有标头的 Json 数据
- c# - 当我想让至少一个复选框值为真时,如何检查 Model.IsValid 是否为真?
- django - django 中的购物车会话