标签搜索
全栈-07-DevOps/云-1
程序员的自留地

全栈-07-DevOps/云-1

fiora
2026-10-21 / 0 评论 / 10 阅读
本段 800 题 | 来源:fullstack + general + design | 知识点:DevOps/云

1. 云计算(Cloud Computing)中三种基本运行云(functioning clouds)是什么?

  • 知识点: DevOps/云 / 系统设计/架构 / UI/UX 设计 (主题: system-design;标签: Professional, Personal, Performance)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: general
  • id: 6960ae7e0e32007ea0d0b3f2 | 官方: 是 | 付费: 否

答案:

核心答案- 专业云(Professional cloud)

  • 个人云(Personal cloud)
  • 性能云(Performance cloud)

2. 什么是计算(Computing)?

  • 知识点: DevOps/云 / 算法与数据结构 / 系统设计/架构 / UI/UX 设计 (主题: system-design;标签: Computing, Algorithms, Data Structures)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: general
  • id: 6960ca460e32007ea0d2eca0 | 官方: 是 | 付费: 否

答案:

核心答案计算(Computing)是利用技术对信息进行处理并完成各种计算任务的过程,包含数据存储(Data Storage)、信息分析(Information Analysis)与问题求解(Problem Solving)等活动。
包含内容- 计算设备(Computing Device):计算机、服务器(Server)等

  • 软件与编程语言:用于运行与交互
  • 理论基础:算法、数据结构与相关数学概念
    一句话:计算就是用技术处理数据(Data),让信息更有用、更有意义。

3. 云服务(Cloud Service)的主要特性有哪些?

  • 知识点: DevOps/云 / 系统设计/架构 / UI/UX 设计 (主题: system-design;标签: Centralized Management, Global Access, Auto Updates)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: general
  • id: 6960ca460e32007ea0d2ed5b | 官方: 是 | 付费: 否

答案:

核心答案云服务(Cloud Service)/云计算(Cloud Computing)的特性之一是随时随地访问与管理软件服务(Software Service)。常见特性包括:

  • 把软件管理集中到中心化的 Web 服务(集中运维与管理)
  • 支持面向全球多客户端的 Web 应用设计与开发
  • 通过集中化与自动化更新,减少客户端手动下载安装升级

4. 使用云计算(Cloud Computing)有哪些优势?

  • 知识点: DevOps/云 / 系统设计/架构 / UI/UX 设计 / 编程语言基础 (主题: system-design;标签: Cost, Speed, Scalability)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: general
  • id: 6960ca470e32007ea0d2ee16 | 官方: 是 | 付费: 否

答案:

核心答案云计算(Cloud Computing)的优势很多,其中一个关键优势是快速且无缝的部署(Deployment),能在很短时间内开始使用服务与应用。
常见优势- 成本优化(Cost Optimization):按需付费,减少一次性硬件投入

  • 弹性扩缩容:资源可随业务变化快速调整
  • 交付更快:更快上线、自动化更强
  • 运维负担更低:基础设施维护由云厂商承担
    补充(原文对比点)原文提到对比视角:Google Cloud 数据中心(Data Center)规模相对少、进入云市场更晚,但处于全球前三;AWS 数据中心更多、市场领导者、入场更早。

5. 大型云计算常用的平台有哪些?

  • 知识点: DevOps/云 / 系统设计/架构 / UI/UX 设计 (主题: system-design;标签: AWS, Azure, GCP)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: general
  • id: 6960ca480e32007ea0d2eecf | 官方: 是 | 付费: 否

答案:

核心答案常见的大规模云计算平台(Cloud Computing Platform)包括:

  • Amazon Web Services(AWS)
  • Microsoft Azure
  • Google Cloud Platform(GCP)
  • 以及其他云服务提供商

6. 云计算有哪些部署模型(Deployment Model)?

  • 知识点: DevOps/云 / 系统设计/架构 / UI/UX 设计 (主题: system-design;标签: Public Cloud, Private Cloud, Hybrid Cloud)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: general
  • id: 6960ca480e32007ea0d2ef89 | 官方: 是 | 付费: 否

答案:

核心答案云计算常见部署模型包括:

  • 私有云(Private Cloud)
  • 公有云(Public Cloud)
  • 混合云(Hybrid Cloud)

7. 用户能从公用事业计算(Utility Computing)中获得什么?

  • 知识点: DevOps/云 / 系统设计/架构 / UI/UX 设计 (主题: system-design;标签: Pay-as-you-go, On-demand)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: general
  • id: 6960ca480e32007ea0d2ef8c | 官方: 是 | 付费: 否

答案:

核心答案公用事业计算(Utility Computing)是一种按需、按量计费(pay-as-you-go)的服务模式:云服务商(Cloud Service Provider)负责管理与运营计算服务,用户按需选择并使用云端资源。
核心收益- 按需获取资源

  • 按使用量付费
  • 把运维工作交给服务商,降低管理成本

8. 云计算如何提供按需(On-demand)功能?

  • 知识点: DevOps/云 / 系统设计/架构 / UI/UX 设计 (主题: system-design;标签: On-demand, Internet Access, Anytime Anywhere)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: general
  • id: 6960ca490e32007ea0d2f113 | 官方: 是 | 付费: 否

答案:

核心答案云计算的基础目标之一就是让用户随时随地按需使用计算资源与应用。随着 Google Cloud 等云平台的成熟,用户只要能连接互联网(Internet),就可以在任意设备、任意时间访问云端文件与服务。

9. 云架构(Cloud Architecture)包含哪些层?

  • 知识点: DevOps/云 / 系统设计/架构 / UI/UX 设计 (主题: system-design;标签: Physical Layer, Infrastructure Layer, Platform Layer, Application Layer)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: general
  • id: 6960ca490e32007ea0d2f116 | 官方: 是 | 付费: 否

答案:

核心答案原文给出的云架构层次包括:

  • 物理层(Physical Layer):物理服务器、网络等
  • 基础设施层(Infrastructure Layer):存储、虚拟化层等
  • 平台层(Platform Layer):操作系统、应用等
  • 应用层(Application Layer):终端用户直接交互的层

10. 有哪些流行的开源云计算平台(Open-source Cloud Computing Platform)?

  • 知识点: DevOps/云 / 算法与数据结构 / 系统设计/架构 / UI/UX 设计 (主题: docker, kubernetes, system-design;标签: OpenStack, Cloud Foundry, Docker, Mesos, KVM)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: general
  • id: 6960ca4a0e32007ea0d2f29f | 官方: 是 | 付费: 否

答案:

核心答案原文列出的开源云计算平台包括:

  • OpenStack
  • Cloud Foundry
  • Docker
  • Apache Mesos
  • KVM

11. 在 Git(Git) 中创建仓库(repository) 的流程是什么?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965f03afa809e6d38883ce7 | 官方: 是 | 付费: 否

答案:

Answer

答案
If we want to create a repository in Git, then we need to run the command “git init”. With this command .git repository, we can create a directory in the project directory.
如果我们要在Git中创建一个仓库,那么我们需要运行命令“git init”。通过这个命令,我们可以在项目目录中创建一个.git仓库目录。

12. Git(Git) 里的 origin(origin) 是什么?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965f03afa809e6d38883cea | 官方: 是 | 付费: 否

答案:

Answer

答案
Origin refers to the remote repository that a project was originally cloned from and is used instead of the original repository’s URL. This allows for easier referencing.
Origin指的是一个项目最初克隆自的远程仓库,用于代替原始仓库的URL。这使得引用更加方便。

13. git push(git push) 命令是什么,用来做什么?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965f03afa809e6d38883ced | 官方: 是 | 付费: 否

答案:

Answer

答案
The git push command is applied for uploading content to a remote repository from a local repository. Pushing can overwrite changes, so it should be used with caution.
git push命令用于将内容从本地仓库上传到远程仓库。推送可能会覆盖更改,因此应谨慎使用。

14. git pull(git pull) 命令是什么,用来做什么?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965f03afa809e6d38883cf0 | 官方: 是 | 付费: 否

答案:

Answer

答案
The git pull command is for fetching and downloading content from a remote repository and integrating it with a local repository.
git pull命令用于从远程仓库获取和下载内容,并将其与本地仓库集成。

15. git rebase(git rebase) 和 git merge(git merge) 有什么区别?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965f03afa809e6d38883cf3 | 官方: 是 | 付费: 否

答案:

Answer

答案
In git rebase, a feature branch is moved into a master. Git merge maintains the history by adding a new commit.
在git rebase中,特性分支会被移动到主分支上。Git merge通过添加新的提交来保留历史记录。

16. 为什么 Git(Git) 需要分支(branching)?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965f03afa809e6d38883cf6 | 官方: 是 | 付费: 否

答案:

Answer

答案
With the help of branching, we can have our own branch and we can also jump between various branches. We can go to our previous work, at the same time keeping our recent work intact.
借助分支,我们可以拥有自己的分支,并且可以在各个分支之间切换。我们可以回到之前的工作,同时保持最近的工作不被破坏。

17. Git(Git) 和 GitHub(GitHub) 有什么区别?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965f03afa809e6d38883cf9 | 官方: 是 | 付费: 否

答案:

Answer

答案
Git is a version control system that is used in the management of the source code history. GitHub, on the other hand, is a cloud-based hosting service that is used in the management of Git repositories. GitHub is designed to help in the better management of open-source projects.
Git 是一个版本控制系统,用于管理源代码历史。而GitHub是一个基于云端的托管服务,用于管理Git仓库。GitHub旨在帮助更好地管理开源项目。

18. 在 Git(Git) 中创建新分支(branch) 有哪些方式?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965f03afa809e6d38883cfd | 官方: 是 | 付费: 否

答案:

Answer

答案
If we want to create a new feature into the main branch, then we can use the command ‘git merge’ or ‘git pull’.
如果我们想向主分支创建新功能,那么可以使用命令'git merge'或'git pull'。

19. .gitignore(.gitignore) 文件的作用是什么?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965f03afa809e6d38883d00 | 官方: 是 | 付费: 否

答案:

Answer

答案
The purpose of .gitignore files is to ensure that certain files that are not tracked by Git should remain untracked.
.gitignore文件的作用是确保某些未被Git跟踪的文件保持不被跟踪。

20. 如何从 Git(Git) 仓库(repository) 克隆(clone) 指定分支(branch)?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965f03afa809e6d38883d05 | 官方: 是 | 付费: 否

答案:

Answer

答案
To clone a specific branch from a repository, you can use git clone -b .
要从仓库克隆特定分支,可以使用 git clone -b 。

21. 如何重命名本地 Git(Git) 分支(branch)?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965f03afa809e6d38883d0b | 官方: 是 | 付费: 否

答案:

Answer

答案
To rename a local git branch, you can use git branch -m . If already on the branch that has to be renamed, write git branch -m
要重命名本地Git分支,可以使用 git branch -m 。如果已经位于需要重命名的分支上,则写 git branch -m 。

22. 如何查看某次提交(commit) 中变更过的文件列表?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965f03bfa809e6d38883df0 | 官方: 是 | 付费: 否

答案:

Answer

答案
To find the list of files that have changed in a particular commit, you can use git show –name-only .
要查找特定提交中更改的文件列表,可以使用 git show --name-only 。

23. 如何把文件从暂存区(staging area) 移除?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965f03bfa809e6d38883df3 | 官方: 是 | 付费: 否

答案:

Answer

答案
To remove a file from the staging area, you can execute git reset HEAD
要从暂存区移除文件,可以执行 git reset HEAD 。

24. 使用 Git(Git) 有哪些优势?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965f03bfa809e6d38883dfa | 官方: 是 | 付费: 否

答案:

Answer

答案
Here are some of the most important advantages of Git:
以下是Git最重要的一些优点:
  • Data redundancy and data replication is possible
  • It is a highly available service
  • For one repository we can have only one directory of Git
  • The network performance and disk utilization are excellent
  • It is very easy to collaborate on any project
  • We can work on any sort of project within the Git

25. git init(git init) 和 git clone(git clone) 有什么区别?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965f03bfa809e6d38883dfd | 官方: 是 | 付费: 否

答案:

Answer

答案
git init command is used to create a new repository locally, whereas the git clone command copies an existing repository from some other location.
git init 命令用于在本地创建一个新的仓库,而 git clone 命令则从其他位置复制一个现有的仓库。

26. .gitkeep(.gitkeep) 文件的用途是什么?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965f03bfa809e6d38883e00 | 官方: 是 | 付费: 否

答案:

Answer

答案
gitkeep is not a git feature but is a convention to keep an empty folder in the repository.
gitkeep 并不是 Git 的一个功能,而是一种保持仓库中空文件夹存在的约定。

27. git diff(差异比较)命令有什么用?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965f03bfa809e6d38883e03 | 官方: 是 | 付费: 否

答案:

Answer

答案
The git diff command helps the users see, compare, and understand the changes in the project.
git diff 命令帮助用户查看、比较并理解项目中的更改。

28. 什么是 Git Bash(Git 的 Bash 命令行工具)?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965f03bfa809e6d38883e06 | 官方: 是 | 付费: 否

答案:

Answer

答案
Git Bash is an application that installs Bash, Git, and a few Bash utilities that are commonly used on a Windows OS. In Git Bash, interaction is possible with Git elements and the repository through different commands.
Git Bash 是一个应用程序,它在 Windows 操作系统上安装 Bash、Git 以及一些常用的 Bash 工具。在 Git Bash 中,可以通过不同的命令与 Git 元素和仓库进行交互。

29. git clean(清理)命令的作用是什么?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965f03bfa809e6d38883e09 | 官方: 是 | 付费: 否

答案:

Answer

答案
The git clean command removes the untracked files from the working directory.
git clean 命令从工作目录中删除未跟踪的文件。

30. Git 里的 Tag(标签)是什么,有什么用?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965f03bfa809e6d38883e0c | 官方: 是 | 付费: 否

答案:

Answer

答案
Tagging allows developers to mark all the important checkpoints through the course of their projects’ progress. Instead of commit IDs, tag names can be used while commits are checked out and pushed to a remote repo.
标记允许开发人员在项目进展过程中标记所有重要的检查点。当提交被检出并推送到远程仓库时,可以使用标记名称代替提交 ID。

31. Git/GitHub 里的 Fork(复制分支)是什么?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965f03bfa809e6d38883e0f | 官方: 是 | 付费: 否

答案:

Answer

答案
A repository copy is called a fork. So, forking allows one to experiment with changes without worrying about the original project. This process is ideal for proposing changes to someone else’s projects.
仓库的副本称为分叉。因此,分叉允许人们在不必担心原项目的情况下进行更改实验。这个过程非常适合向别人的项目提出更改建议。

32. Git 中的 Index(索引) / Staging Area(暂存区)是什么意思?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965f03bfa809e6d38883e12 | 官方: 是 | 付费: 否

答案:

Answer

答案
When we are making the commits, we can make changes to it, format it and review it in the intermediate area known as ‘Staging Area’ or ‘Index’.
当我们进行提交时,可以在一个名为“暂存区”或“索引”的中间区域对更改进行修改、格式化和审查。

33. Git 使用什么语言实现的?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965f03bfa809e6d38883e1a | 官方: 是 | 付费: 否

答案:

Answer

答案
C is the programming language that is used for creating Git which ensures that the overheads are reduced.
C 是用于创建 Git 的编程语言,它确保了开销的降低。

34. 如何复制一个本地分支(branch)?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965f03bfa809e6d38883f05 | 官方: 是 | 付费: 否

答案:

Answer

答案
To create a copy of a local branch, you can use the command git checkout -b .
要创建本地分支的副本,可以使用命令 git checkout -b <新分支名> <现有分支名>。

35. 如何初始化一个新的 Git 仓库(repository)?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965f03cfa809e6d38883fc2 | 官方: 是 | 付费: 否

答案:

Answer

答案
To start keeping track of the changes in your project using Git, begin by opening the folder where your project is located. Next access the command line and enter “git init”. Git will create a folder named “.git” within your project directory to store history.
要开始使用 Git 跟踪项目中的更改,首先打开项目所在的文件夹。接下来进入命令行并输入“git init”。Git 会在项目目录中创建一个名为“.git”的文件夹来存储历史记录。

36. 什么是 Git 分支(branch)?如何创建分支?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965f03dfa809e6d38883fd3 | 官方: 是 | 付费: 否

答案:

Answer

答案
Git branches allow parallel development. Create a new branch with “git branch ”, or use “git checkout -b ” to create and switch in one step.
Git 分支支持并行开发。使用“git branch <名称>”创建新分支,或使用“git checkout -b <名称>”一步完成创建和切换。

37. 描述一下解决 Git 合并冲突(merge conflict)的流程。

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965f03dfa809e6d38883fd6 | 官方: 是 | 付费: 否

答案:

Answer

答案
Edit the files to resolve the conflicting changes, then use “git add” to stage the fixes and commit them with “git commit”.
编辑文件以解决冲突的更改,然后使用“git add”暂存修复,并使用“git commit”提交它们。

38. 如何把 Git 仓库(repository)回退到之前的某次提交(commit)?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965f03dfa809e6d38883fe4 | 官方: 是 | 付费: 否

答案:

Answer

答案
Use “git reset” to move the branch pointer back (mixed/hard affects staging/working tree). Or use “git revert” to create a new commit that undoes a previous commit, which is safer for shared repos.
使用“git reset”将分支指针移回(mixed/hard 会影响暂存区/工作目录)。或者使用“git revert”创建一个新提交来撤销之前的提交,这对于共享仓库更安全。

39. Git 的优势有哪些?

  • 知识点: DevOps/云 (主题: git, version-control, github;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965f80efa809e6d38893902 | 官方: 是 | 付费: 否

答案:

Answer

答案
  • Data redundancy and replication
  • High availability (distributed copies make repos resilient)
  • Only one .git directory per repository
  • Superior disk utilization and network performance
  • Collaboration-friendly (branching/merging workflows)
  • Works for projects of any size/type

40. git fetch(获取)和 git pull(拉取)是一样的吗?它们有什么区别?

  • 知识点: DevOps/云 (主题: git, version-control, github;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965f80efa809e6d38893907 | 官方: 是 | 付费: 否

答案:

Answer

答案
git pull fetches new commits from the remote and then integrates them into your current branch (usually via merge or rebase, depending on config).
git pull 从远程获取新提交,然后将其集成到当前分支中(通常通过合并或变基,具体取决于配置)。

git fetch only downloads new commits/refs from the remote and updates your remote-tracking branches (e.g. origin/main) without changing your working branch.

git fetch 仅从远程下载新的提交/引用,并更新远程跟踪分支(例如 origin/main),而不更改工作分支。

To apply fetched changes to your current branch, you typically follow with a merge or rebase, e.g. git merge origin/main or git rebase origin/main.

要将获取的更改应用到当前分支,通常会接着进行合并或变基,例如 git merge origin/main 或 git rebase origin/main。

A common shorthand equation is: git pull = git fetch + git merge (in the default merge-based pull behavior).

一个常见的简写等式是:git pull = git fetch + git merge(在默认的基于合并的拉取行为下)。

41. 如何定义 Maven?

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Basic, Q1, Maven)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965fd38fa809e6d3889b79f | 官方: 是 | 付费: 否

答案:

答案Maven 常用于 Java 项目,是一款构建自动化(build automation)与项目管理(project management)工具,能以标准化流程完成依赖管理(dependency management)、编译(compilation)、测试(testing)、打包(packaging)与分发(distribution)。它强调“约定优于配置”(convention over configuration),默认提供典型项目结构与生命周期阶段,减少手动配置成本;同时通过本地/远程/中央仓库机制自动拉取并复用依赖,使构建过程更可控、可重复,也更利于团队协作与持续集成(continuous integration)。

42. Maven 会处理哪些组成部分(Components)?

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Basic, Q2, Maven)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965fd39fa809e6d3889b7a3 | 官方: 是 | 付费: 否

答案:

答案Maven 主要处理 POM(Project Object Model,项目对象模型)项目模型、依赖管理(Dependency Management)、构建生命周期(Build Lifecycle)、插件体系(Plugins)以及仓库管理(Repository Management),从而把构建与依赖解析流程标准化。

43. 如何在 Ubuntu 上安装 Maven?

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Basic, Q5, Maven)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965fd39fa809e6d3889b7ae | 官方: 是 | 付费: 否

答案:

答案在 Ubuntu 安装 Maven 的常见步骤:

  • 更新包索引:sudo apt update
  • 安装 Maven:sudo apt install maven
  • 验证安装:mvn --version

若输出 Maven 版本与环境信息,说明安装成功,可以开始在 Java 项目中使用依赖管理与构建能力。

44. 在 Maven 中,Clean、Default、Site 分别是什么意思?

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Basic, Q6, Maven)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965fd39fa809e6d3889b7b1 | 官方: 是 | 付费: 否

答案:

答案在 Maven 生命周期(Lifecycle)里:Clean 用于清理上一次构建产物(如 target 目录);Default 指主要构建生命周期(负责编译、测试、打包等核心流程);Site 用于生成项目站点相关内容,例如报告与文档(质量报告、API 文档等)。

45. 在 Maven 中运行测试类的最佳方式是什么?

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Basic, Q7, Maven)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965fd39fa809e6d3889b7b7 | 官方: 是 | 付费: 否

答案:

答案直接执行 mvn test。该命令会触发测试阶段(Test Phase):先编译源码、解析并准备依赖,再按项目配置的测试框架运行测试用例;结果会输出到控制台,并在构建产物中生成更完整的测试报告,包含失败与错误的详细信息,便于定位问题。

46. 什么是 Maven Repository(仓库)?

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Basic, Q8, Maven)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965fd39fa809e6d3889b7ba | 官方: 是 | 付费: 否

答案:

答案Maven Repository 是存放构件(Artifact,如 JAR)及其元数据的存储位置,主要分三类:本地仓库(Local Repository,开发者机器上)、远程仓库(Remote Repository,公司/团队服务器上)与 中央仓库(Central Repository,默认公共仓库)。它们让 Maven 能高效检索与下载依赖,从而保证构建可重复、依赖可追踪。

47. Maven 项目通常遵循哪些命名规范?

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Basic, Q10, Maven)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965fd39fa809e6d3889b7c9 | 官方: 是 | 付费: 否

答案:

答案Maven 通常用三元组来唯一标识一个构件:groupId、artifactId、version。例如 org.apache.maven:maven:2.0.1,分别表示组织标识、项目/产物标识与版本号,用于依赖解析与仓库检索。

48. Maven 项目编译后,class 文件通常在哪里?

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Intermediate, Q16, Maven)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965fd39fa809e6d3889b7db | 官方: 是 | 付费: 否

答案:

答案编译后的 class 文件通常位于 ${basedir}/target/classes/ 目录(即项目根目录下的 target/classes)。

49. 什么是 Maven Archetype?

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Intermediate, Q19, Maven)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965fd39fa809e6d3889b7ea | 官方: 是 | 付费: 否

答案:

答案Maven Archetype(Maven原型) 是用于按模板生成项目结构的插件/机制。你可以把它理解为“项目脚手架模板”,在创建新项目时由 Maven(构建工具) 根据指定 archetype(原型) 自动生成标准目录结构与基础文件。

50. Maven Clean(Maven清理) 是什么意思?

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Intermediate, Q20, Maven)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965fd39fa809e6d3889b7ed | 官方: 是 | 付费: 否

答案:

答案Maven Clean(Maven清理) 通常指 clean(清理) 插件/clean(清理) 生命周期,用于清理构建过程中生成的文件与目录。它会删除 target(目标) 目录,其中包含编译产物(class(类文件))、生成的文档与打包产物(JAR/WAR)等,帮助你获得“干净”的构建环境。

51. 什么是 SaaS(软件即服务)?

  • 知识点: DevOps/云 (主题: saas, subscription, cloud-computing, product-delivery;标签: Basic, Q1, SaaS)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965fe98fa809e6d3889d94b | 官方: 是 | 付费: 否

答案:

答案SaaS(Software as a Service,软件即服务)是一种软件交付模式:应用通过互联网提供给用户使用,用户无需在本地安装和维护软件。SaaS(软件即服务) 通常具备快速上线、灵活订阅、可扩展、跨设备访问、集中安全与高连接性等特点;对企业而言,它常伴随订阅制的经常性收入(MRR/ARR(月度经常性收入/年度经常性收入))与更可预测的现金流,也便于持续迭代更新与统一的用户体验。

52. SaaS(软件即服务) 的优势有哪些?

  • 知识点: DevOps/云 / 系统设计/架构 / 编程语言基础 (主题: saas, cloud-computing, cost-optimization, scalability;标签: Basic, Q2, SaaS)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965fe98fa809e6d3889d950 | 官方: 是 | 付费: 否

答案:

答案SaaS(软件即服务) 能显著降低企业在本地部署与运维软件的成本与复杂度,减少自建机房/服务器、软件采购、安装、升级与支持等投入。

  • 成本更可控:订阅制把一次性资本支出转为运营支出,预算更好规划,随时可取消或调整套餐。
  • 更易集成:常可与同厂商或第三方企业系统集成,并支持一定程度的定制化。
  • 弹性扩展:按需增减功能与资源,适配业务波动。
  • 随时随地访问:联网即可跨设备使用。
  • 自动升级:由服务商统一更新与维护,内部团队负担更低。

53. 云计算会用到哪些数据类型?

  • 知识点: DevOps/云 (主题: cloud-computing, data-types, storage;标签: Intermediate, Q7, SaaS)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965fe99fa809e6d3889da69 | 官方: 是 | 付费: 否

答案:

答案云计算可处理多种数据类型与格式,例如邮件、文本消息、布尔值(Boolean)、图片、十进制数据(Decimal)、联系人信息、数字、地区/语言(locale(区域设置))、日期等。随着业务数据不断增长,云平台也会持续扩展对新数据类型与新型数据工作负载的支持能力。

54. 请举例说明有哪些应用属于 SaaS(软件即服务) 模式。

  • 知识点: DevOps/云 (主题: saas, product-examples, cloud-applications;标签: Intermediate, Q9, SaaS)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965fe99fa809e6d3889da73 | 官方: 是 | 付费: 否

答案:

答案

  • 企业业务应用:支撑企业运营与业务流程。例:PayPal(在线安全支付)。
  • 数据存储与备份:用于存储文件、图片、音视频等。例:Google Drive。
  • 社交应用:帮助用户跨地域连接与互动。例:LinkedIn、Twitter。
  • 教育类应用:支持在线学习与培训。例:AWS 在教育场景中的云学习与实验平台能力。

55. AWS(亚马逊云服务) 上哪个服务可以让用户查找/购买并立即使用软件解决方案?

  • 知识点: DevOps/云 (主题: aws, aws-marketplace, software-procurement;标签: Advanced, Q14, SaaS)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 6965fe99fa809e6d3889da93 | 官方: 是 | 付费: 否

答案:

答案AWS Marketplace(AWS市场) 允许用户在 AWS(亚马逊云服务) 环境中查找、购买并快速启用软件解决方案。它提供 AWS(亚马逊云服务) 官方与第三方的软件目录,覆盖安全、数据库、网络、开发工具等多类产品,可直接部署到 AWS(亚马逊云服务) 基础设施上。

56. 从开发与基础设施角度看,DevOps(开发运维一体化) 的核心操作有哪些?

  • 知识点: DevOps/云 (主题: devops, ci-cd, monitoring, config-management, orchestration;标签: DevOps Core, Q19, DevOps)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 696601a5fa809e6d388a2ed3 | 官方: 是 | 付费: 否

答案:

答案DevOps(开发运维一体化) 的核心操作覆盖“应用交付 + 基础设施运维”全链路,常见包括:应用开发、版本控制(Version Control)、单元测试(Unit Testing)、结合基础设施的部署、监控、配置管理以及编排(如容器/集群编排)。这些环节串成一条端到端流水线,让代码与基础设施变更能够持续构建、测试、发布、观测与优化。

57. 自动化如何帮助 DevOps(开发运维一体化)?

  • 知识点: DevOps/云 (主题: automation, devops, cicd;标签: Automation, Q32, DevOps)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 696601a6fa809e6d388a2fc0 | 官方: 是 | 付费: 否

答案:

答案自动化通过消除重复、耗时的工作(如测试、部署等)来提升 DevOps(开发运维一体化) 效率,从而加快发布节奏、提升质量并降低人为错误概率。它还能增强系统的可扩展性与稳定性,让团队把精力从“手工运维”转移到“创新与价值交付”上。

58. 关于 DevOps(Development and Operations)有哪些常见误解?

  • 知识点: DevOps/云 (主题: devops, culture, misconceptions;标签: DevOps Culture, Q42, DevOps)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 696601a7fa809e6d388a3167 | 官方: 是 | 付费: 否

答案:

答案常见误解包括:① 认为 DevOps(Development and Operations)只是工具与自动化,实际上它首先是文化与组织协作方式的变革;② 认为 DevOps(Development and Operations)只适用于创业公司/互联网公司,事实上任何需要交付软件的组织都受益;③ 认为 DevOps(Development and Operations)只是 IT 部门的事,但它需要开发、运维、安全与管理层的共同参与与支持。

59. 可以列出衡量 DevOps(Development and Operations)成功的关键 KPI(Key Performance Indicator)吗?

  • 知识点: DevOps/云 (主题: devops, kpi, dora-metrics, reliability;标签: Metrics, Q48, DevOps)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 696601a7fa809e6d388a31a0 | 官方: 是 | 付费: 否

答案:

答案- Deployment Frequency(部署频率):一定周期内发布次数。

  • MTTR(平均恢复时间):故障后恢复服务的平均时间。
  • Lead Time(交付前置时间):从提交代码到上线的时间。
  • Change Failure Rate(变更失败率):导致故障/事故的变更占比。
  • TTDR(发现与响应时间):平均发现并响应事件的时间。

60. 使用版本控制(Version Control)有哪些好处?

  • 知识点: DevOps/云 / 行为与软技能 (主题: version-control, git, collaboration;标签: Version Control, Q51, DevOps)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 696601a9fa809e6d388a33d6 | 官方: 是 | 付费: 否

答案:

答案- 提升协作:多人可并行开发并把变更合并到统一版本。

  • 保留历史:代码的各个版本可追溯、可回滚。
  • 可解释性:能看到改了什么、谁改的、为什么改(提交信息与 diff)。
  • 备份与容灾:像 Git 这样的分布式版本库会把历史复制到本地仓库,中心仓库故障时也便于恢复。

61. 如何用 Puppet 配置系统?

  • 知识点: DevOps/云 (主题: puppet, puppet-agent, puppet-master;标签: Puppet, Q75, DevOps)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 696601a9fa809e6d388a3407 | 官方: 是 | 付费: 否

答案:

答案在客户端/服务器架构中,通过节点上的 Puppet Agent(代理)与中心的 Puppet Master(主服务器)配合完成配置下发与收敛;在单机(stand-alone)模式下,可使用 puppet apply 在本地直接应用 manifests(清单),无需 Master(主服务器)。

62. 什么是 Puppet 的 codedir(代码目录)?

  • 知识点: DevOps/云 (主题: puppet, codedir, hiera;标签: Puppet, Q77, DevOps)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 696601a9fa809e6d388a340d | 官方: 是 | 付费: 否

答案:

答案codedir(代码目录)是 Puppet 存放代码与数据的主目录,包含多个 environments(环境,内含 manifests 与 modules)、全局 modules(模块)目录,以及 Hiera 数据等。它是 Puppet 加载与管理配置定义的核心目录结构。

63. 在 Puppet 中哪里可以找到 codedir(代码目录)?

  • 知识点: DevOps/云 (主题: puppet, codedir, cli;标签: Puppet, Q78, DevOps)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 696601a9fa809e6d388a3411 | 官方: 是 | 付费: 否

答案:

答案codedir(代码目录)的具体路径与安装方式/操作系统有关。通常可通过 Puppet 配置查询,例如运行 puppet config print codedir 来获取当前的 codedir(代码目录)位置。它会指向存放 environments(环境)、modules(模块)与 Hiera 数据的主目录;不同系统会有各自的默认路径。

64. Ansible Playbook(剧本)和 ad-hoc 命令有什么区别?分别适合什么场景?

  • 知识点: DevOps/云 (主题: ansible, playbook, ad-hoc, automation;标签: Ansible, Q80, DevOps)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 696601a9fa809e6d388a3417 | 官方: 是 | 付费: 否

答案:

答案ad-hoc 命令适合快速执行一次性的临时任务(通常不需要复用);Playbook(剧本)则用于可重复的自动化流程,支持多步骤编排,采用 YAML(YAML Ain't Markup Language)编写,便于版本控制与复用。紧急排查/临时操作用 ad-hoc;日常运维、批量配置与稳定流程用 Playbook(剧本)更合适。

65. 为什么要使用 Ansible?

  • 知识点: DevOps/云 (主题: ansible, configuration-management, deployment, automation;标签: Ansible, Q81, DevOps)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 696601a9fa809e6d388a341b | 官方: 是 | 付费: 否

答案:

答案Ansible 常用于:配置管理、应用部署与任务自动化。它 agentless(无代理)、基于 Playbook(剧本)编排,易读易维护,也便于用版本控制管理自动化脚本,从而更高效地批量管理大量主机与环境。

66. Ansible 的 handler 是什么?

  • 知识点: DevOps/云 (主题: ansible, handlers, playbook;标签: Ansible, Q82, DevOps)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 696601a9fa809e6d388a341e | 官方: 是 | 付费: 否

答案:

答案Handler 是 Playbook 中的一类特殊任务,只有当其他任务通过 notify 触发时才会执行。典型场景是配置变更后才重启服务:配置未变就不重启,减少不必要的操作。

67. 什么是 Ansible Galaxy?它有什么用?

  • 知识点: DevOps/云 (主题: ansible, galaxy, roles;标签: Ansible, Q83, DevOps)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 696601a9fa809e6d388a3421 | 官方: 是 | 付费: 否

答案:

答案Ansible Galaxy 是 Ansible 的社区角色仓库与网站,用户可以在上面分享与获取 Roles。它支持搜索、安装、创建与管理可复用角色,用来加速自动化落地并复用社区最佳实践。

68. Ansible 有哪些优势?

  • 知识点: DevOps/云 (主题: ansible, automation, efficiency;标签: Ansible, Q84, DevOps)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 696601a9fa809e6d388a3426 | 官方: 是 | 付费: 否

答案:

答案Ansible 能帮助自动化运维任务、管理配置、部署应用并提升效率。它 agentless、基于 YAML 编排,学习与落地成本相对更低,有助于快速规模化自动化。

69. 构建 Docker 镜像的命令语法是什么?

  • 知识点: DevOps/云 (主题: docker, containers, devops;标签: Scenario, Q86, DevOps)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 696601a9fa809e6d388a342c | 官方: 是 | 付费: 否

答案:

答案常见语法为:docker build -t <镜像名>:<标签> <上下文路径>。例如:docker build -t myapp:1.0 . 会基于当前目录的 Dockerfile 与构建上下文生成镜像。

70. Linux 中 sudo 的概念是什么?

  • 知识点: DevOps/云 / 安全 / 操作系统与网络 (主题: linux, sudo, security;标签: Linux, Q89, DevOps)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 696601a9fa809e6d388a3438 | 官方: 是 | 付费: 否

答案:

答案sudo 是 “superuser do” 的缩写,允许被授权用户以更高权限(通常是 root)执行特定系统命令。它常用于安全地完成管理操作,并保留一定的审计与权限控制能力。

71. SSH 的作用是什么?

  • 知识点: DevOps/云 / 安全 / 操作系统与网络 (主题: ssh, linux, security, networking;标签: Linux, Q90, DevOps)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 696601a9fa809e6d388a343b | 官方: 是 | 付费: 否

答案:

答案SSH(Secure Shell)提供加密的远程登录与通信机制,用于在不安全网络中安全地连接远程主机。它支持远程命令执行、隧道与端口转发,以及安全文件传输等能力。

72. 为什么要使用 Nagios?

  • 知识点: DevOps/云 (主题: nagios, monitoring, sla;标签: Monitoring, Q92, DevOps)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 696601a9fa809e6d388a3441 | 官方: 是 | 付费: 否

答案:

答案- 在老旧系统出问题前提前规划升级

  • 更快响应故障与告警
  • 在检测到问题时触发自动化修复
  • 协调技术团队的响应与处理
  • 帮助满足 SLA(服务级别协议)
  • 降低基础设施故障对业务收入的影响
  • 监控全局基础设施与关键业务流程

73. Kubernetes 中的 namespace 是什么?

  • 知识点: DevOps/云 (主题: kubernetes, namespace, multi-tenancy;标签: Kubernetes, Q95, DevOps)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 696601aafa809e6d388a344a | 官方: 是 | 付费: 否

答案:

答案Namespace 用于在 Kubernetes 集群中对资源进行逻辑划分,方便多个团队/用户共享同一集群时进行隔离与组织管理,并减少资源命名冲突。它提供一种“同集群、多租户”的基础能力。

74. 什么是 kubectl(Kubernetes Control Tool)?

  • 知识点: DevOps/云 (主题: kubernetes, kubectl, cli;标签: Kubernetes, Q96, DevOps)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 696601aafa809e6d388a344d | 官方: 是 | 付费: 否

答案:

答案kubectl 是操作 Kubernetes 集群的命令行工具(其中 ctl 表示 control)。它可用于部署应用、查看与管理集群资源(如 Pod/Service/Deployment 等),并查看日志与运行状态。

75. Maven 中用哪个文件定义依赖(dependency)?

  • 知识点: DevOps/云 (主题: maven, pom, dependencies, build;标签: Build Tools, Q99, DevOps)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 696601aafa809e6d388a3456 | 官方: 是 | 付费: 否

答案:

答案Maven 在 pom.xml(Project Object Model XML)中定义项目依赖。Maven 读取 POM 后会自动下载所需依赖并在构建过程中使用。

76. 在weblogic管理制台中对一个应用域(或者说是一个网站,Domain)进行jms及ejb或连接池等相关信息进行配置后,实际保存在什么文件中?

  • 知识点: DevOps/云 / 编程语言基础 (主题: weblogic;标签: WebLogic, Domain, config.xml)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 696700dafa809e6d389ebbb8 | 官方: 是 | 付费: 否

答案:

答案保存在此Domain的config.xml文件中,它是服务器的核心配置文件。

77. 如何查看在weblogic中已经发布的EJB(Enterprise JavaBean)?

  • 知识点: DevOps/云 / 编程语言基础 (主题: weblogic, ejb;标签: Admin Console, Deployment, EJB)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 696700dafa809e6d389ebbc6 | 官方: 是 | 付费: 否

答案:

答案可以使用管理控制台,在它的Deployment中可以查看所有已发布的EJB

78. 你用过哪些云平台(AWS/Azure/GCP)?举例说明你在云上部署/运维过什么系统。

  • 知识点: DevOps/云 / 行为与软技能 (主题: aws, azure, devops;标签: Cloud, IaC, CI/CD)
  • 类型: behavioral | 难度: easy | 子类型: behavioral
  • 分类: fullstack
  • 公司: Carsales
  • id: 697042c1120fcc1591302fca | 官方: 是 | 付费: 否

答案:

答案回答要具体:用过哪些服务(例如 AWS EC2/S3/RDS,Azure App Service/SQL Database),做过什么(部署 API、配置网络与权限、日志监控、自动扩缩容)。
加分点:基础设施即代码(Infrastructure as Code,Terraform/CloudFormation)、CI/CD(Continuous Integration/Continuous Deployment)、蓝绿/金丝雀发布(Blue-Green/Canary Deployment)。
AnswerBe specific: services used (e.g., AWS EC2/S3/RDS; Azure App Service/SQL DB) and what you built (deploying APIs, networking/IAM, logging/monitoring, autoscaling).

回答要具体:使用的服务(例如,AWS EC2/S3/RDS;Azure App Service/SQL DB)以及你所构建的内容(部署 API、网络/IAM、日志/监控、自动扩展)。
Bonus: IaC (Terraform/CloudFormation), CI/CD, blue-green/canary releases.
加分项:IaC(Terraform/CloudFormation)、CI/CD、蓝绿/金丝雀发布。

79. 云计算中的可扩展性和弹性有什么区别?

  • 知识点: DevOps/云 / 系统设计/架构 / 编程语言基础 (主题: cloud, scaling;标签: Scalability, Elasticity, Auto Scaling)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 69772f97a39c9c5c3a8bc00a | 官方: 是 | 付费: 否

答案:

答案可扩展性(Scalability)指系统通过增加资源来承载更大负载的能力,可垂直扩展(Vertical Scaling,加大单机)或水平扩展(Horizontal Scaling,加机器),通常可计划实施;弹性(Elasticity)更强调根据实时需求自动扩缩容,在高峰自动加资源、低谷自动释放资源,以更少人工干预维持性能与成本平衡。简单理解:可扩展是“能变大”,弹性是“能自动变大变小”。

80. DevOps 中的持续集成(Continuous Integration,CI)和持续部署(Continuous Deployment,CD)是什么?

  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: CI, CD, Pipeline)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 69772f97a39c9c5c3a8bc017 | 官方: 是 | 付费: 否

答案:

答案CI 指频繁将代码合并到主干,并自动完成构建与测试,以尽早发现集成问题;CD 指在 CI 通过后,把变更自动发布到目标环境(持续交付/持续部署),实现更快、更稳定的上线节奏。关键要素包括:自动化测试、质量门禁(Quality Gate)、制品管理(Artifact Management)、回滚策略(Rollback Strategy)与可观测性(Observability)。

81. 容器化(例如 Docker)如何使 DevOps 流程受益?

  • 知识点: DevOps/云 (主题: devops, docker, containers;标签: Docker, Container, Kubernetes)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 69772f97a39c9c5c3a8bc01d | 官方: 是 | 付费: 否

答案:

答案容器(Container)把应用与依赖打包为可移植镜像(Image),实现“开发、测试、生产”环境一致,减少“在我机器上能跑”的问题;启动快、资源占用低,便于弹性扩缩(Scaling)与快速发布;配合镜像版本化(Versioning)可追溯回滚。结合编排(Orchestration)(如 Kubernetes)还能实现自动部署、健康检查(Health Check)、自愈与滚动升级(Rolling Update)。

82. 解释 SDLC(Software Development Life Cycle)。

  • 知识点: DevOps/云 / 操作系统与网络 / 行为与软技能 (主题: software-engineering, process;标签: SDLC, Agile, DevOps)
  • 类型: technical | 难度: easy | 子类型:
  • 分类: fullstack
  • id: 69773280a39c9c5c3a8d693a | 官方: 是 | 付费: 否

答案:

答案SDLC(Software Development Life Cycle)是软件从需求到交付与维护的全生命周期过程,通常包括需求分析(Requirement Analysis)、设计(Design)、开发(Development)、测试(Testing)、部署(Deployment)、运维(Operation)与迭代改进(Iterative Improvement)。不同方法论(瀑布(Waterfall)、敏捷(Agile)、DevOps(Development and Operations))对阶段的组织方式不同,但目标一致:在质量、成本与进度约束下可控地交付软件,并通过反馈持续优化。

83. What is CI/CD?

什么是 CI/CD?
  • 知识点: DevOps/云 (主题: ansible, iac, devops;标签: interviewbit, ansible, topic-specific, iac, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3793058d557c902b98776 | 官方: 否 | 付费: 否

答案:

Continuous Integration is something that is used for streamlining the development and deployment process. These lead to the more rapid development of cohesive software. Continuous Delivery is on the other hand is a process where your code after being pushed to a remote repository can be taken to production at any time.

持续集成用于简化开发和部署流程,这有助于更快速地开发出凝聚力强的软件。另一方面,持续交付是一种流程,代码在推送到远程仓库后,可以随时进入生产环境。

In the above diagram our integration test and unit test are performed without any manual intervention and after UAT we just needed the approval to ship our tested features to production and to make such a process we need CI/CD.

在上图中,我们的集成测试和单元测试无需人工干预即可执行,在 UAT 之后,我们只需获得批准即可将经过测试的功能交付到生产环境,而实现这样的流程就需要 CI/CD。

84. How to use YAML files in high programming languages such as JAVA, Python, etc?

如何在诸如 JAVA、Python 等高级编程语言中使用 YAML 文件?
  • 知识点: DevOps/云 (主题: ansible, iac, devops;标签: interviewbit, ansible, topic-specific, iac, devops)
  • 类型: technical | 难度: easy | 子类型: coding
  • 分类: fullstack
  • id: 69b3793058d557c902b98779 | 官方: 否 | 付费: 否

答案:

YAML is supported in most programming languages and can be easily integrated with user programs. In JAVA we can use the Jackson module which also parses XML and JSON. For e.g

大多数编程语言都支持 YAML,并且可以轻松集成到用户程序中。在 JAVA 中,我们可以使用同样能解析 XML 和 JSON 的 Jackson 模块。例如:

// We need to declare Topic class with necessary attributes such as name, total_score, user_score, sub_topics

// 我们需要声明一个 Topic 类,并包含必要的属性,如 name、total_score、user_score、sub_topics
List topics = new ArrayList();
List topics = new ArrayList();
topics.add(new Topic("String Manipulation", 10, 6));
topics.add(new Topic("String Manipulation", 10, 6));
topics.add(new Topic("Knapsack", 5, 5));
topics.add(new Topic("Knapsack", 5, 5));
topics.add(new Topic("Sorting", 20, 13));
topics.add(new Topic("Sorting", 20, 13));
// We want to save this Topic in a YAML file
// 我们想将此 Topic 保存到一个 YAML 文件中
Topic topic = new Topic("DS & Algo", 35, 24, topics);
Topic topic = new Topic("DS & Algo", 35, 24, topics);
// ObjectMapper is instantiated just like before
// ObjectMapper 的实例化方式与之前完全相同
ObjectMapper om = new ObjectMapper(new YAMLFactory());
ObjectMapper om = new ObjectMapper(new YAMLFactory());
// We write the topic into topic.yaml
// 我们将 topic 写入到 topic.yaml 中
om.writeValue(new File("/src/main/resources/topics.yaml"), topic);
om.writeValue(new File("/src/main/resources/topics.yaml"), topic);

name: "DS & Algo"

name: "DS & Algo"
total_score: 35
total_score: 35
user_score: 24
user_score: 24
sub_topics:
sub_topics:
  • name: "String Manipulation"
    total_score: 10

    total_score: 10
    user_score: 6
    user_score: 6
  • name: "Knapsack"
    total_score: 5

    total_score: 5
    user_score: 5
    user_score: 5
  • name: "Sorting"
    total_score: 20

    total_score: 20
    user_score: 13
    user_score: 13
    Similarly, we can read from YAML also:
    同样,我们也可以从 YAML 中读取数据:

// Loading the YAML file from the /resources folder

// 从 /resources 文件夹中加载 YAML 文件
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
File file = new File(classLoader.getResource("topic.yaml").getFile());
File file = new File(classLoader.getResource("topic.yaml").getFile());
// Instantiating a new ObjectMapper as a YAMLFactory
// 实例化一个新的ObjectMapper作为YAMLFactory
ObjectMapper om = new ObjectMapper(new YAMLFactory());
ObjectMapper om = new ObjectMapper(new YAMLFactory());
// Mapping the employee from the YAML file to the Employee class
// 将YAML文件中的employee映射到Employee类
Topic topic = om.readValue(file, Topic.class);
Topic topic = om.readValue(file, Topic.class);
In python similarly, we can use the pyyaml library and read and write easily in YAML format.
在Python中类似地,我们可以使用pyyaml库,轻松地以YAML格式读写。

85. What are Ansible tasks?

什么是Ansible任务?
  • 知识点: DevOps/云 (主题: ansible, iac, devops;标签: interviewbit, ansible, topic-specific, iac, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3793058d557c902b9877d | 官方: 否 | 付费: 否

答案:

The task is a unit action of Ansible. It helps by breaking a configuration policy into smaller files or blocks of code. These blocks can be used in automating a process. For example, to install a package or update a software

任务是Ansible的单元动作。它通过将配置策略分解为更小的文件或代码块来帮助实现。这些块可用于自动化流程。例如,安装包或更新软件

Install , update

安装、更新

86. What is a YAML file and how do we use it in Ansible?

什么是YAML文件,我们如何在Ansible中使用它?
  • 知识点: DevOps/云 (主题: ansible, iac, devops;标签: interviewbit, ansible, topic-specific, iac, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3793058d557c902b98781 | 官方: 否 | 付费: 否

答案:

YAML or files are like any formatted text file with few sets of rules just like JSON or XML. Ansible uses this syntax for playbooks as it is more readable than other formats. An example of JSON vs YAML is:

YAML或文件类似于任何带有一组规则的格式化文本文件,就像JSON或XML一样。Ansible在playbook中使用这种语法,因为它比其他格式更易读。JSON与YAML的示例如下:

{
"object": {

"object": {
"key": "value",
"key": "value",
"array": [
"array": [
{
"null_value": null
"null_value": null
},
{
"boolean": true
"boolean": true
},
{
"integer": 1
"integer": 1
},
{
"alias": "aliases are like variables"
"alias": "别名就像变量"
}
]
}
}

object:

对象:
key: value
键:值
array:
数组:
  • null_value:
  • boolean: true
  • integer: 1
  • alias: aliases are like variables

87. Explain Ansible modules in detail?

详细解释Ansible模块?
  • 知识点: DevOps/云 (主题: ansible, iac, devops;标签: interviewbit, ansible, topic-specific, iac, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3793058d557c902b98785 | 官方: 否 | 付费: 否

答案:

Ansible modules are like functions or standalone scripts which run specific tasks idempotently. The return value of these are JSON string in stdout and input depends on the type of module. These are used by Ansible playbooks. There are 2 types of modules in Ansible: - Core Modules

Ansible模块类似于函数或独立脚本,它们以幂等方式运行特定任务。它们的返回值是标准输出中的JSON字符串,输入取决于模块类型。这些模块由Ansible playbook使用。Ansible中有两种类型的模块:- 核心模块
The core Ansible team is responsible for maintaining these modules thus these come with Ansible itself. The issues reported are fixed on priority than those in the “extras” repo. - Extras Modules
核心Ansible团队负责维护这些模块,因此它们随Ansible本身一起提供。所报告的问题在处理优先级上高于“extras”仓库中的问题。- 扩展模块
The Ansible community maintains these modules so, for now, these are being shipped with Ansible but they might get discontinued in the future. These can be used but if there are any feature requests or issues they will be updated on low priority.
Ansible社区维护这些模块,因此目前它们随Ansible一起发布,但未来可能会被停止支持。这些模块可以使用,但如果有任何功能请求或问题,它们将以低优先级进行更新。

Now popular extra modules might enter into the core modules anytime. You may find these separate repos for these modules as ansible-modules-core and ansible-modules-extra respectively.

现在流行的扩展模块可能随时进入核心模块。您可能会分别找到这些模块的独立仓库,如ansible-modules-core和ansible-modules-extra。

88. What is Ansible Galaxy?

什么是Ansible Galaxy?
  • 知识点: DevOps/云 (主题: ansible, iac, devops;标签: interviewbit, ansible, topic-specific, iac, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3793058d557c902b98789 | 官方: 否 | 付费: 否

答案:

Galaxy is a repository of Ansible roles that can be shared among users and can be directly dropped into playbooks for execution. It is also used for the distribution of packages containing roles, plugins, and modules also known as collection. The ansible-galaxy-collection command implements similar to init, build, install, etc like an ansible-galaxy command.

Galaxy是一个Ansible角色仓库,用户之间可以共享这些角色,并且可以直接放入playbooks中执行。它还用于分发包含角色、插件和模块的包,也称为集合。ansible-galaxy-collection命令实现了类似初始化、构建、安装等操作,就像ansible-galaxy命令一样。

89. Explain Infrastructure as Code?

解释基础设施即代码?
  • 知识点: DevOps/云 (主题: ansible, iac, devops;标签: interviewbit, ansible, topic-specific, iac, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3793058d557c902b9878c | 官方: 否 | 付费: 否

答案:

Infrastructure as Code or IaC is a process that DevOps teams should follow to have a more organized way of managing the infra. Instead of some throwaway scripts or manually configuring any cloud component, there should be a code repo where all of these will lie and any change in configuration should be done through it. It is wise to put it under source control also. This improves speed, consistency, and accountability.

基础设施即代码或IaC是DevOps团队应遵循的一种流程,以更有序地管理基础设施。而不是使用一些一次性脚本或手动配置任何云组件,应该有一个代码仓库,所有这些都将存储于此,任何配置更改都应通过它进行。明智的做法是将其也纳入源代码控制。这提高了速度、一致性和问责性。

90. What are the features of Ansible?

Ansible有哪些特点?
  • 知识点: DevOps/云 (主题: ansible, iac, devops;标签: interviewbit, ansible, topic-specific, iac, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3793058d557c902b98790 | 官方: 否 | 付费: 否

答案:

It has the following features: - Agentless – Unlike puppet or chef there is no software or agent managing the nodes.

它具有以下特点:- 无代理——与Puppet或Chef不同,没有软件或代理来管理节点。
  • Python – Built on top of python which is very easy to learn and write scripts and one of the robust programming languages.
  • SSH – Passwordless network authentication which makes it more secure and easy to set up.
  • Push architecture – The core concept is to push multiple small codes to the configure and run the action on client nodes.
  • Setup – This is very easy to set up with a very low learning curve and any open source so that anyone can get hands-on.
  • Manage Inventory – Machines’ addresses are stored in a simple text format and we can add different sources of truth to pull the list using plugins such as Openstack, Rackspace, etc.

91. What is Configuration Management?

什么是配置管理?
  • 知识点: DevOps/云 (主题: ansible, iac, devops;标签: interviewbit, ansible, topic-specific, iac, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3793058d557c902b98798 | 官方: 否 | 付费: 否

答案:

It’s a practice that we should follow in order to keep track of all updates that are going into the system over a period of time. This also helps in a situation where a major bug has been introduced to the system due to some new changes and we need to fix it with minimum downtime. Instead of fixing the bug, we can roll back the new changes(which caused this bug) as we have been tracking those.

这是一种我们应该遵循的实践,以便在一段时间内跟踪进入系统的所有更新。这也有助于在系统因某些新更改而引入重大错误时,以最小停机时间修复它。与其修复错误,我们可以回滚导致此错误的新更改,因为我们一直在跟踪这些更改。

92. What is AWS, and how does it help businesses?

什么是AWS,它如何帮助企业?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795958d557c902b9a9c3 | 官方: 否 | 付费: 否

答案:

Amazon Web Services (AWS) is a cloud platform. Cloud platforms help businesses rent infrastructure (servers, storage, databases, etc.) rather than buy it. The pricing model cloud platforms use is Pay-as-You-Go, i.e., if you use a server for 10 days, you just pay for 10 days, or if you use it for 1 hour, you just pay for 1 hour.

亚马逊网络服务(AWS)是一个云平台。云平台帮助企业租用基础设施(服务器、存储、数据库等),而不是购买它们。云平台使用的定价模型是按需付费,也就是说,如果你使用服务器10天,你只需支付10天的费用,或者如果你使用1小时,你只需支付1小时。
This pricing model attracts businesses to cloud platforms. Rather than buying infrastructure, they use AWS’s pay-as-you-go model to launch their servers on AWS.
这种定价模型吸引了企业使用云平台。与其购买基础设施,他们使用AWS的按需付费模型在AWS上启动服务器。

But pricing is not the only factor; here are a few more reasons as to why businesses prefer using a cloud platform like AWS:

但定价并不是唯一因素;以下是一些企业更喜欢使用像AWS这样的云平台的更多原因:
  • Hardware maintenance is taken care of by AWS
  • AWS promises an SLA of 99.99% of server availability monthly
  • You can scale up or down your infrastructure as per your business needs
  • You can also automatically scale up / down (autoscaling) the number of servers based on the traffic coming to your application or the CPU usage.
  • You will never run out of storage; you can scale up or down your storage requirements in real-time.

93. What is the Shared Responsibility Model of AWS?

什么是AWS的共享责任模型?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795958d557c902b9a9c6 | 官方: 否 | 付费: 否

答案:

The Shared Responsibility Model in AWS is a framework that defines the security and compliance responsibilities between AWS and the customer using the AWS services.

AWS中的共享责任模型是一个框架,定义了AWS和使用AWS服务的客户之间的安全与合规责任。

Take the example of renting a house; as a tenant, you must lock the doors while leaving, ensure all electrical appliances are off when unused, etc., and pay rent on time.

以租房为例;作为租户,你离开时必须锁门,确保不使用时所有电器关闭,并按时支付租金。

As an owner, you must get anything old repaired, such as leaking pipes or faulty geysers or lights, pay security maintenance, pay property taxes, etc.

作为房东,你必须修复任何老旧的东西,比如漏水的水管或故障的热水器或灯,支付安全维护费用,支付房产税等。

Similarly, when you use AWS infrastructure, the responsibility for its security is shared between AWS and the customers.

类似地,当你使用AWS基础设施时,安全责任由AWS和客户共同承担。

AWS Responsibilities include:

AWS的责任包括:
  • Physical Security: AWS ensures the security of the hardware, data center, etc.
  • Network Security: Ensure the security of hardware components of the network, such as routers, switches, etc.
  • Virtualization: AWS ensures the security of underlying hardware, software and networks that support virtualization.
  • Compliance: AWS ensures certifications and compliances like ISO 27001, PCI DSS etc.

Customer’s responsibilities:

客户的责任:
  • Application Security
  • Network Configuration
  • Data Encryption
  • Customer Data
  • Identity and Access Management

Source: AWS Official Documentation

来源:AWS官方文档

94. What is the relation between Availability Zone and Regions?

可用区和区域之间有什么关系?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795958d557c902b9a9c9 | 官方: 否 | 付费: 否

答案:

Regions and Availability Zones are the building blocks of the AWS Global Infrastructure.

区域和可用区是AWS全球基础设施的构建模块。

Let’s understand them one by one:

让我们逐一了解它们:
  • Regions: AWS Cloud Services are available worldwide at various strategic locations across continents. Each continent/country/area where AWS infrastructure is present is called a region, and each region has multiple availability zones.
  • Availability Zone: Availability Zones exist within an AWS Region. Each availability zone has one or more data centres and is connected to one another with low latency, high throughput, and highly redundant networking.

The image below depicts how regions and availability zones are related.

下图展示了区域和可用区之间的关系。

Source: AWS Documentation

来源:AWS文档

95. What is an EC2 instance?

什么是EC2实例?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795958d557c902b9a9cc | 官方: 否 | 付费: 否

答案:

An EC2 (Elastic Compute Cloud) is an AWS server. Elastic in the name of EC2 means scalable. You can increase or decrease the number of EC2 machines (Horizontal Scaling) or increase or decrease the configuration of an EC2 instance (Vertical Scaling). Hence, the name EC2.

EC2(弹性计算云)是AWS服务器。EC2名称中的“弹性”意味着可扩展性。您可以增加或减少EC2机器的数量(水平扩展),或增加或减少EC2实例的配置(垂直扩展)。因此,命名为EC2。

This server has a lot of configurable properties, like:

这台服务器有许多可配置的属性,例如:
  • Configuration: You can decide the size of an EC2 instance, such as how many CPU cores and how much memory is required for the server
  • Storage: You can decide the size of the hard drive (EBS) and the type of the hard drive (SSD, Premium SSD, etc.)
  • Network: You need to deploy an EC2 instance inside a VPC. You can customise the properties of the VPC as per your needs.
  • Firewall: You can customise the inbound and outbound rules to your EC2 instance via Security Groups.

96. Explain VPC and its components in AWS

解释AWS中的VPC及其组件
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795958d557c902b9a9cf | 官方: 否 | 付费: 否

答案:

Virtual Private Cloud (VPC) is a networking service in AWS that helps configure the network properties for the resources that will be deployed inside it.

虚拟私有云(VPC)是AWS中的一项网络服务,帮助配置将在其内部部署的资源的网络属性。
In the image below, you can see the essential components of a VPC:
在下图中,您可以看到VPC的基本组件:

Source: AWS Documentation

来源:AWS文档
Let’s understand them one by one:
让我们逐一了解它们:

There are various components of VPC; let’s understand them in chronological order as per the image:

VPC有多种组件;让我们按照图中所示的顺序依次理解它们:
  • Virtual Private Cloud: A VPC is the top-most network layer in AWS. Almost all the resources in AWS are deployed inside a VPC.
  • Subnets: Inside VPCs, you have to create subnets. Any resource that has to be deployed inside a VPC has to be deployed inside a subnet. Each subnet can be associated with one or more availability zones. Subnets can be connected to each other via Route Tables. Subnets can be of two types:
  • Public Subnet: A public subnet is a subnet that has inbound and outbound access to the Internet. A web application, for example, is deployed inside a public subnet since it needs to be accessed over the Internet.
  • Private Subnet: A subnet without internet access is called a private subnet. For example, a database server does not need internet access; it just needs to communicate with a web server. Therefore, it is deployed inside a private subnet to protect it from unwanted cyber attacks from the internet.
  • Internet Gateway: Whenever we want to give internet access to a subnet, we attach an internet gateway to it. As the name suggests, an internet gateway provides the internet’s inbound and outbound access to the subnet. In other words, if you want to create a public subnet, simply attach an internet gateway.

    1. 互联网网关:当我们想要给子网提供互联网访问时,我们会将一个互联网网关附加到它上面。顾名思义,互联网网关为子网提供互联网的入站和出站访问。换句话说,如果你想创建一个公有子网,只需附加一个互联网网关。
  • NAT Gateway: A NAT Gateway is a special gateway that can help private subnets get outbound internet access by relaying requests via the public subnet. With this approach, a NAT Gateway forwards the request to the public subnet’s internet gateway, through which resources/servers in the private subnet can browse the internet but not get any inbound requests.
  • Elastic IP: An elastic IP address is a static IP address that does not change when a machine’s state changes.For example, when you stop an EC2 instance, the public IP address attached to it is detached. When the EC2 machine is again turned on, a random new public IP address will be attached. However, if you want the IP address to remain the same, no matter what the machine’s state is, you can attach an Elastic IP address to it.
  • Route Tables: Route Tables help you define how traffic within a VPC travels. Each table has a target and a destination. For example, an Internet Gateway to connect to the Internet has a route defined in the route table. The target will be the Internet gateway, and the destination will be 0.0.0.0/0, which means any IP address.

97. Why do we make subnets?

为什么我们要创建子网?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795958d557c902b9a9d2 | 官方: 否 | 付费: 否

答案:

Subnets can be imaged as sub-parts of a network; creating subnets are helpful in a lot of ways. Let’s discuss them one by one:

子网可以被想象为网络的子部分;创建子网在许多方面都很有帮助。让我们逐一讨论它们:
  • Isolation of Resources: Subnets are a great way to isolate resources in your AWS infrastructure based on their properties. For example, you can isolate database servers from the internet and only grant internet access to your web servers.
  • Control Network Traffic: Subnets can be used to control network traffic on your AWS resources. This is accomplished using NACLs, which act as a firewall for each subnet. You can customize the network for each of your subnets separately.
  • High Availability: Subnets can be deployed in multiple availability zones, then you can choose how your servers scale across different subnets, ensuring outage in one AZ does not affect resources deployed in other AZs via different subnets.
  • Efficient Private IP allocation: You can divide your subnets into IP address ranges (CIDR blocks) of manageable chunks.
  • Segmentation by Use Case: You can segment the division of your AWS resources via subnets.

98. Is there a way to upload a file that is greater than 100 megabytes on Amazon S3?

在 Amazon S3 上有没有办法上传大于 100 兆字节的文件?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795958d557c902b9a9d5 | 官方: 否 | 付费: 否

答案:

Yes, we can upload files up to 5 GB in size. However, for files that are greater than 100 MB, AWS recommends using the multi-part upload method. In this method, files are broken into chunks and uploaded parallelly. This can boost upload speeds and efficiency.

可以,我们能够上传大小达 5 GB 的文件。但是,对于大于 100 MB 的文件,AWS 建议使用多部分上传方法。在这种方法中,文件被分成多个块并并行上传,这样可以提升上传速度和效率。

For files less than 100 MB, a single-put method works; however, for files greater than 100 MB and using Single PUT method, you may encounter timeout issues or failures during the upload.

对于小于 100 MB 的文件,单次 PUT 方法即可,但对于大于 100 MB 的文件,若使用单次 PUT 方法,上传过程中可能会遇到超时问题或失败。

99. When should you use the classic load balancer vs the application load balancer?

何时应使用经典负载均衡器而不是应用程序负载均衡器?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795958d557c902b9a9d8 | 官方: 否 | 付费: 否

答案:

Classic Load BalancerApplication Load BalancerClassic load balancer is helpful when you want to distribute traffic on a round-robin basis between instances or based on their IP address or port access.Application load balancer is useful when you want to distribute traffic based on URL path, the content being requested, or query parametersIt works on the L4 and the L7 layer of the OSI Model.It works on only the L7 layer of the OSI model.Targets are EC2 instances directly.Targets are target groups, which can include instances, ECS containers, or IP addresses.

经典负载均衡器应用程序负载均衡器经典负载均衡器适用于您希望基于轮询方式在实例之间分配流量,或根据其 IP 地址或端口访问进行分配的情况。应用程序负载均衡器适用于您希望根据 URL 路径、请求内容或查询参数分配流量的情况。它工作在 OSI 模型的 L4 和 L7 层。它仅工作在 OSI 模型的 L7 层。目标直接是 EC2 实例。目标是目标组,可以包含实例、ECS 容器或 IP 地址。

100. How many total VPCs per account/region and subnets per VPC can you have?

每个账户/区域总共可以创建多少个 VPC,以及每个 VPC 可以有多少个子网?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795958d557c902b9a9db | 官方: 否 | 付费: 否

答案:

We can have a total of 5 VPCs for every account/region and 200 subnets for every VPC that you have. However, if you need more VPCs or subnets, you can request a quota increase from AWS support; you can get your VPC limit increased to 1000 VPCs per region, and you can similarly request an increased subnet limit.

我们每个账户/区域最多可以有 5 个 VPC,每个 VPC 最多可以有 200 个子网。但是,如果您需要更多 VPC 或子网,可以向 AWS 支持请求配额提升;您可以将每个区域的 VPC 限制增加到 1000 个,同样可以请求增加子网限制。

Start Your Journey to Cloud Computing Excellence

开启您的云计算卓越之旅

Explore Cloud Computing Like Never Before

以前所未有的方式探索云计算

Explore Program

探索课程

101. Your organization has decided to have all its workloads on the public cloud. But, due to certain security concerns, your organization has decided to distribute some of the workload on private servers. You are asked to suggest a cloud architecture for your organization. What will your suggestion be?

您的组织决定将所有工作负载放在公有云上。但由于某些安全顾虑,组织决定将部分工作负载分布在私有服务器上。您被要求为组织建议一种云架构。您的建议会是什么?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: easy | 子类型: system-design
  • 分类: fullstack
  • id: 69b3795958d557c902b9a9de | 官方: 否 | 付费: 否

答案:

A hybrid cloud

混合云
The hybrid cloud architecture is where an organization can use the public cloud for shared resources and the private cloud for confidential workloads.
混合云架构是指组织可以将其公共资源使用公有云,将机密工作负载使用私有云。

102. What is the name of Amazon's Content Delivery Network?

Amazon 的内容分发网络名称是什么?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795958d557c902b9a9e1 | 官方: 否 | 付费: 否

答案:

Amazon CloudFront is a CDN service that is used in AWS. It helps deliver static content to the end-user through the nearest available server, hence reducing latency.

Amazon CloudFront 是 AWS 中使用的 CDN 服务。它通过就近可用的服务器向最终用户提供静态内容,从而减少延迟。

103. How will you configure an Amazon S3 bucket to serve static assets for your public web application?

您将如何配置 Amazon S3 存储桶,以便为您的公共 Web 应用提供静态资源服务?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795958d557c902b9a9e4 | 官方: 否 | 付费: 否

答案:

For serving static assets to your public web application, you have to uncheck the “disable all public access” option of the bucket while creating it.

在为公共 Web 应用提供静态资产服务时,您必须在创建存储桶时取消选中“禁用所有公共访问”选项。

104. What is Snowball?

什么是 Snowball?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795958d557c902b9a9e7 | 官方: 否 | 付费: 否

答案:

Snowball is an application designed for transferring terabytes of data into and outside of the AWS cloud. It uses secured physical storage to transfer the data. Snowball is considered a petabyte-scale data transport solution that helps with cost and time savings.

Snowball 是一款专为将数 TB 数据传入和传出 AWS 云而设计的应用程序。它使用安全的物理存储来传输数据。Snowball 被视为 PB 级数据传输解决方案,有助于节省成本和时间。

105. What is AWS?

什么是 AWS?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795958d557c902b9a9ea | 官方: 否 | 付费: 否

答案:

AWS (Amazon Web Services) is a cloud platform. Like any other cloud platform, AWS helps you to rent high-end servers at a per-hour or per-second basis without the need of buying them. It provides servers for various use cases such as database, compute, content delivery, etc. which can help businesses scale without investing a lot of money in IT infrastructure.

AWS(亚马逊云服务)是一个云平台。与任何其他云平台一样,AWS 帮助您按小时或按秒租用高端服务器,而无需购买它们。它为数据库、计算、内容交付等各种用例提供服务器,这可以帮助企业在不大量投资 IT 基础设施的情况下实现扩展。

106. What is the difference between Spot Instances and On-demand Instances?

竞价实例和按需实例之间有什么区别?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795958d557c902b9a9ed | 官方: 否 | 付费: 否

答案:

Both Spot Instances and On-demand Instances are pricing models.

竞价实例和按需实例都是定价模式。
| Spot Instance | On-demand Instance |
Spot instances are unused AWS servers, which AWS offers at a lower price.With On-demand Instances, users can launch instances at any time based on their needs.
When the demand for servers goes up, spot instance price changes; it is similar to how flight prices fluctuate.The price of On-Demand instances is fixed and remains constant no matter how big the demand is.
When the price of the spot instance increases compared to your bid price, the instance gets shut down automatically.Since the price is fixed, the instances are not automatically shut down or terminated unless initiated by the user.
Spot Instances are charged on an hourly basis.On-demand Instances are charged on a per-second basis.

107. What is the maximum number of S3 buckets you can create?

您可以创建的最大 S3 存储桶数量是多少?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795958d557c902b9a9f0 | 官方: 否 | 付费: 否

答案:

The maximum number of S3 buckets that can be created is 100. However, if you need more buckets, you can request AWS support for an increase in S3 bucket quota and increase the limit up to 1000 buckets per account.

可以创建的 S3 存储桶最大数量是 100。但是,如果您需要更多存储桶,您可以请求 AWS 支持增加 S3 存储桶配额,并将每个账户的限制提高到最多 1000 个存储桶。

108. How can you save the data on root volume on an EBS-backed machine?

您如何保存基于 EBS 的机器上根卷的数据?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795958d557c902b9a9f3 | 官方: 否 | 付费: 否

答案:

Two scenarios can happen with an EBS-backed machine:

基于 EBS 的机器可能发生两种情况:
  • Shutting down the machine: Data persists when you shut down an EBS-backed machine.
  • Terminating the machine: On termination of an EC2 instance, the EBS also automatically gets deleted. To save the data, you can take a snapshot of the instance before terminating the EC2 machine.

109. Which one of the storage solutions offered by AWS would you use if you need extremely low pricing and data archiving?

如果您需要极低价格和数据存档,您会使用 AWS 提供的哪种存储解决方案?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795958d557c902b9a9f6 | 官方: 否 | 付费: 否

答案:

AWS Glacier is an extremely low-cost storage service offered by Amazon that is used for data archiving and backup purposes. The longer you store data in Glacier, the less it will cost you.

AWS Glacier 是亚马逊提供的极低成本存储服务,用于数据存档和备份目的。您在 Glacier 中存储数据的时间越长,其费用就越低。

110. You have connected four instances to ELB. To automatically terminate your unhealthy instances and replace them with new ones, which functionality would you use?

您已将四个实例连接到 ELB。要自动终止不健康的实例并用新实例替换它们,您会使用哪种功能?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: easy | 子类型: coding
  • 分类: fullstack
  • id: 69b3795958d557c902b9a9f9 | 官方: 否 | 付费: 否

答案:

In order to automatically terminate the the unhealthy instances we would use Auto-scaling groups. They basically ensure high availability by simple monitoring the instance health, terminating unhealthy instances, and launching the new ones automatically.

为了自动终止不健康的实例,我们将使用自动扩展组。它们基本上通过简单监控实例健康状态、终止不健康实例并自动启动新实例来确保高可用性。

111. The data on the root volumes of instance store-backed and EBS-backed instances gets deleted by default when they are terminated. If you want to prevent that from happening, which instance would you use?

实例存储支持和 EBS 支持的实例在终止时,其根卷上的数据默认会被删除。如果您想防止这种情况发生,您会使用哪种实例?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795958d557c902b9a9fc | 官方: 否 | 付费: 否

答案:

We should use EBS-backed instances for this use case. Although by default if we terminate EBS-backed instances, the EBS volume gets deleted, this can be modified by disabling the ‘delete on termination’ option while creating the EC2 instance.

对于这种用例,我们应该使用基于EBS的实例。虽然默认情况下,如果终止基于EBS的实例,EBS卷会被删除,但可以通过在创建EC2实例时禁用“终止时删除”选项来修改此行为。

112. What is CloudWatch?

什么是CloudWatch?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795958d557c902b9a9ff | 官方: 否 | 付费: 否

答案:

The Amazon CloudWatch is used for monitoring and managing data and getting actionable insights for AWS, on-premise applications, etc. It helps you monitor your entire task stack, which includes the applications, infrastructure, and services. Apart from this, CloudWatch also assists you in optimizing your resource utilization and cost by providing analytics-driven insights.

Amazon CloudWatch用于监控和管理数据,并为AWS、本地部署应用程序等提供可操作的见解。它帮助您监控整个任务堆栈,包括应用程序、基础设施和服务。此外,CloudWatch还通过提供基于分析驱动的见解,帮助您优化资源利用率和成本。

113. What is Elastic Transcoder?

什么是Elastic Transcoder?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795958d557c902b9aa02 | 官方: 否 | 付费: 否

答案:

In the AWS cloud, the Elastic Transcoder is used for converting media files into versions that can be run/played on devices such as tablets, PCs, smartphones, etc. It consists of advanced transcoding features with conversion rates starting from $ 0.0075 per minute.

在AWS云中,Elastic Transcoder用于将媒体文件转换为可在平板电脑、PC、智能手机等设备上运行或播放的版本。它包含高级转码功能,转换费率从每分钟0.0075美元起。

114. What does an AMI include?

AMI包含哪些内容?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795958d557c902b9aa05 | 官方: 否 | 付费: 否

答案:

AMI stands for Amazon Machine Images. It includes the following:

AMI代表Amazon Machine Images(亚马逊机器镜像)。它包含以下内容:
  • Single or multiple Amazon Elastic Block Store (Amazon EBS) snapshots. Templates for the root volume of the instance.
  • Launch permissions that let AWS accounts use AMI to launch instances.
  • A block device mapping specifies what volumes are to be attached to the instance during its launch.

115. What are the storage classes available in Amazon S3?

Amazon S3中可用的存储类别有哪些?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795958d557c902b9aa08 | 官方: 否 | 付费: 否

答案:

The following storage classes are available in Amazon S3:

以下是Amazon S3中可用的存储类别:
  • S3 Standard: It is by and large the default storage class. In cases where no specification about the storage class is provided while uploading the object, Amazon S3 assigns the S3 Standard storage class by default.
  • Reduced Redundancy: It is assigned when non-critical, reproducible data needs to be stored. The Reduced Redundancy Storage class is designed in a way that the above data categories can be stored with less redundancy.

However, it is always advisable to go ahead with the S3 standard storage class.

然而,始终建议优先使用S3标准存储类别。

116. What is EC2?

什么是EC2?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: interviewbit, aws, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9aaf7 | 官方: 否 | 付费: 否

答案:

EC2, a Virtual Machine in the cloud on which you have OS-level control. You can run this cloud server whenever you want and can be used when you need to deploy your own servers in the cloud, similar to your on-premises servers, and when you want to have full control over the choice of hardware and the updates on the machine.

EC2是云中的虚拟机,您可以在操作系统层面进行控制。您可以随时运行此云服务器,当您需要在云中部署自己的服务器(类似于本地服务器)并希望完全控制硬件选择和机器更新时,可以使用它。

117. DNS and Load Balancer Services come under which type of Cloud Service?

DNS和负载均衡器服务属于哪种云服务类型?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: interviewbit, aws, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9ab0a | 官方: 否 | 付费: 否

答案:

DNS and Load Balancer are a part of IaaS-Storage Cloud Service.

DNS和负载均衡器是IaaS-存储云服务的一部分。

118. Explain what T2 instances are?

解释什么是T2实例?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: interviewbit, aws, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9ab11 | 官方: 否 | 付费: 否

答案:

T2 Instances are designed to provide moderate baseline performance and the capability to burst to higher performance as required by the workload.

T2实例旨在提供适度的基线性能,并具备根据工作负载需求突增至更高性能的能力。

119. What are Key-Pairs in AWS?

什么是AWS中的密钥对?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: interviewbit, aws, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9ab14 | 官方: 否 | 付费: 否

答案:

Key-Pairs are secure login information for your Virtual Machines. To connect to the instances, you can use Key-Pairs which contain a Public Key and a Private Key.

密钥对是您虚拟机的安全登录信息。要连接到实例,您可以使用包含公钥和私钥的密钥对。

120. How many Subnets can you have per VPC?

每个VPC可以有多少个子网?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: interviewbit, aws, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9ab17 | 官方: 否 | 付费: 否

答案:

You can have 200 Subnets per VPC.

每个VPC可以有200个子网。

121. List different types of Cloud Services.

列出不同类型的云服务。
  • 知识点: DevOps/云 (主题: aws, cloud;标签: interviewbit, aws, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9ab1a | 官方: 否 | 付费: 否

答案:

Different types of Cloud Services are: - Software as a Service (SaaS)

不同类型的云服务包括:- 软件即服务(SaaS)
  • Data as a Service (DaaS)
  • Platform as a Service (PaaS)
  • Infrastructure as a Service (IaaS)

    Advanced AWS Questions

122. How does Amazon Route 53 provide high availability and low latency?

Amazon Route 53如何提供高可用性和低延迟?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: interviewbit, aws, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: system-design
  • 分类: fullstack
  • id: 69b3795a58d557c902b9ab21 | 官方: 否 | 付费: 否

答案:

Amazon Route 53 uses the following to provide high availability and low latency: - Globally Distributed Servers - Amazon is a global service and consequently has DNS Servers globally. Any customer creating a query from any part of the world gets to reach a DNS Server local to them that provides low latency.

Amazon Route 53通过以下方式提供高可用性和低延迟:- 全球分布式服务器 - Amazon是一项全球服务,因此拥有全球DNS服务器。来自世界任何地方的客户发起的查询都能到达本地DNS服务器,从而提供低延迟。
  • Dependency - Route 53 provides a high level of dependability required by critical applications.
  • Optimal Locations - Route 53 serves the requests from the nearest data center to the client sending the request. AWS has data-centers across the world. The data can be cached on different data-centers located in different regions of the world depending on the requirements and the configuration chosen. Route 53 enables any server in any data-center which has the required data to respond. This way, it enables the nearest server to serve the client request, thus reducing the time taken to serve.

Amazon Route

Amazon Route

As can be seen in the above image, the requests coming from a user in India are served from the Singapore Server, while the requests coming from a user in the US are routed to Oregon region.

如上图所示,来自印度用户的请求由新加坡服务器提供服务,而来自美国用户的请求则路由到俄勒冈区域。

123. How can you send a request to Amazon S3?

您如何向Amazon S3发送请求?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: interviewbit, aws, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9ab24 | 官方: 否 | 付费: 否

答案:

Amazon S3 is a REST Service, and you can send a request by using the REST API or the AWS SDK wrapper libraries that wrap the underlying Amazon S3 REST API.

Amazon S3是一项REST服务,您可以通过使用REST API或封装底层Amazon S3 REST API的AWS SDK包装库来发送请求。

124. What does AMI include?

AMI包含什么?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: interviewbit, aws, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9ab27 | 官方: 否 | 付费: 否

答案:

An AMI includes the following things: - A template for the root volume for the instance.

AMI包含以下内容:- 实例根卷的模板。
  • Launch permissions to decide which AWS accounts can avail the AMI to launch instances.
  • A block device mapping that determines the volumes to attach to the instance when it is launched.

125. What are the different types of Instances?

不同类型的实例有哪些?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: interviewbit, aws, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9ab2a | 官方: 否 | 付费: 否

答案:

Following are the types of instances: - Compute Optimized

以下为实例类型:- 计算优化型
  • Memory-Optimized
  • Storage Optimized
  • Accelerated Computing
  • General Purpose

126. What is the relation between the Availability Zone and Region?

可用区与区域之间的关系是什么?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: interviewbit, aws, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9ab2d | 官方: 否 | 付费: 否

答案:

An AWS Availability Zone is a physical location where an Amazon data center is located. On the other hand, an AWS Region is a collection or group of Availability Zones or Data Centers.

AWS可用区是亚马逊数据中心所在的物理位置。另一方面,AWS区域是可用区或数据中心的集合或分组。

This setup helps your services to be more available as you can place your VMs in different data centers within an AWS Region. If one of the data centers fails in a Region, the client requests still get served from the other data centers located in the same Region. This arrangement, thus, helps your service to be available even if a Data Center goes down.

这种设置有助于提高服务的可用性,因为您可以将在AWS区域内的不同数据中心放置虚拟机。如果区域中的一个数据中心发生故障,客户端请求仍会从同一区域中的其他数据中心得到服务。因此,这种安排有助于您的服务即使在一个数据中心宕机时也能保持可用。

127. How do you monitor Amazon VPC?

如何监控Amazon VPC?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: interviewbit, aws, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9ab30 | 官方: 否 | 付费: 否

答案:

You can monitor Amazon VPC using: - CloudWatch

您可以使用以下方式监控Amazon VPC:- CloudWatch
  • VPC Flow Logs

128. What are the different types of EC2 instances based on their costs?

基于成本,不同类型的EC2实例有哪些?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: interviewbit, aws, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9ab33 | 官方: 否 | 付费: 否

答案:

The three types of EC2 instances based on the costs are:

基于成本,三种类型的EC2实例分别是:

On-Demand Instance - These instances are prepared as and when needed. Whenever you feel the need for a new EC2 instance, you can go ahead and create an on-demand instance. It is cheap for the short-time but not when taken for the long term.

按需实例 - 这些实例按需随时准备。每当您觉得需要新的EC2实例时,您可以继续创建按需实例。对于短期使用它很便宜,但长期使用则不划算。

Spot Instance - These types of instances can be bought through the bidding model. These are comparatively cheaper than On-Demand Instances.

竞价实例 - 这类实例可以通过竞价模型购买。它们相对按需实例来说更便宜。

Reserved Instance - On AWS, you can create instances that you can reserve for a year or so. These types of instances are especially useful when you know in advance that you will be needing an instance for the long term. In such cases, you can create a reserved instance and save heavily on costs.

预留实例 - 在AWS上,您可以创建可预留一年或更长时间的实例。这类实例在您提前知道需要长期使用实例时特别有用。在这种情况下,您可以创建预留实例并大幅节省成本。

129. What do you understand by stopping and terminating an EC2 Instance?

您如何理解停止和终止EC2实例?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: interviewbit, aws, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9ab36 | 官方: 否 | 付费: 否

答案:

Stopping an EC2 instance means to shut it down as you would normally do on your Personal Computer. This will not delete any volumes attached to the instance and the instance can be started again when needed.

停止EC2实例意味着像您在个人电脑上通常做的那样将其关闭。这不会删除附加到实例上的任何卷,并且在需要时可以再次启动该实例。

On the other hand, terminating an instance is equivalent to deleting an instance. All the volumes attached to the instance get deleted and it is not possible to restart the instance if needed at a later point in time.

另一方面,终止实例等同于删除实例。所有附加到实例的卷都会被删除,并且在以后需要时无法重新启动该实例。

130. What are the consistency models for modern DBs offered by AWS?

AWS提供的现代数据库的一致性模型有哪些?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: interviewbit, aws, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9ab39 | 官方: 否 | 付费: 否

答案:

Eventual Consistency - It means that the data will be consistent eventually, but may not be immediate. This will serve the client requests faster, but chances are that some of the initial read requests may read the stale data. This type of consistency is preferred in systems where data need not be real-time. For example, if you don’t see the recent tweets on Twitter or recent posts on Facebook for a couple of seconds, it is acceptable.

最终一致性 - 这意味着数据最终会保持一致,但可能不是立即的。这将更快地响应客户端请求,但有可能一些初始读请求会读取到过期数据。这种一致性类型在数据不需要实时性的系统中是首选。例如,如果您在Twitter上看不到最近推文或在Facebook上看不到最近帖子几秒钟,这是可以接受的。

Strong Consistency - It provides an immediate consistency where the data will be consistent across all the DB Servers immediately. Accordingly. This model may take some time to make the data consistent and subsequently start serving the requests again. However, in this model, it is guaranteed that all the responses will always have consistent data.

强一致性 - 它提供了即时一致性,即数据将在所有数据库服务器上立即保持一致。相应地,此模型可能需要一些时间使数据一致,然后继续提供服务请求。然而,在此模型中,保证所有响应都将始终具有一致的数据。

131. What is Geo-Targeting in CloudFront?

CloudFront 中的地理定向是什么?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: interviewbit, aws, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9ab3c | 官方: 否 | 付费: 否

答案:

Geo-Targeting enables the creation of customized content based on the geographic location of the user. This allows you to serve the content which is more relevant to a user. For example, using Geo-Targeting, you can show the news related to local body elections to a user sitting in India, which you may not want to show to a user sitting in the US. Similarly, the news related to Baseball Tournament can be more relevant to a user sitting in the US, and not so relevant for a user sitting in India.

地理定向能够根据用户的地理位置创建定制化内容。这使你能够向用户提供更相关的内容。例如,使用地理定向,你可以向位于印度的用户展示与地方机构选举相关的新闻,而你可能不希望向位于美国的用户展示这些内容。同样,与棒球锦标赛相关的新闻对位于美国的用户可能更相关,而对位于印度的用户则不那么相关。

132. What are the advantages of AWS IAM?

AWS IAM 的优势有哪些?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: interviewbit, aws, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9ab3f | 官方: 否 | 付费: 否

答案:

AWS IAM enables an administrator to provide granular level access to different users and groups. Different users and user groups may need different levels of access to different resources created. With IAM, you can create roles with specific access-levels and assign the roles to the users.

AWS IAM 使管理员能够为不同用户和用户组提供细粒度的访问权限。不同用户和用户组可能需要对创建的不同资源具有不同级别的访问权限。通过 IAM,你可以创建具有特定访问级别的角色,并将这些角色分配给用户。

It also allows you to provide access to the resources to users and applications without creating the IAM Roles, which is known as Federated Access.

它还允许你无需创建 IAM 角色即可向用户和应用程序提供对资源的访问权限,这被称为联合访问。

133. What do you understand by a Security Group?

你对安全组的理解是什么?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: interviewbit, aws, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795b58d557c902b9ab42 | 官方: 否 | 付费: 否

答案:

When you create an instance in AWS, you may or may not want that instance to be accessible from the public network. Moreover, you may want that instance to be accessible from some networks and not from others.

当你在 AWS 中创建实例时,你可能希望或可能不希望该实例可从公共网络访问。此外,你可能希望该实例可从某些网络访问,而不能从其他网络访问。

Security Groups are a type of rule-based Virtual Firewall using which you can control access to your instances. You can create rules defining the Port Numbers, Networks, or protocols from which you want to allow access or deny access.

安全组是一种基于规则的虚拟防火墙类型,使用它你可以控制对实例的访问。你可以创建定义端口号、网络或协议的规则,以允许或拒绝访问。

134. What are Spot Instances and On-Demand Instances?

什么是竞价实例和按需实例?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: interviewbit, aws, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795b58d557c902b9ab45 | 官方: 否 | 付费: 否

答案:

When AWS creates EC2 instances, there are some blocks of computing capacity and processing power left unused. AWS releases these blocks as Spot Instances. Spot Instances run whenever capacity is available. These are a good option if you are flexible about when your applications can run and if your applications can be interrupted.

当 AWS 创建 EC2 实例时,会留下一些计算能力和处理能力未被使用的块。AWS 将这些块作为竞价实例发布。竞价实例在容量可用时运行。如果你对应用程序的运行时间灵活,并且应用程序可以中断,那么这些实例是不错的选择。

On the other hand, On-Demand Instances can be created as and when needed. The prices of such instances are static. Such instances will always be available unless you explicitly terminate them.

另一方面,按需实例可以根据需要随时创建。此类实例的价格是固定的。除非你明确终止它们,否则它们始终可用。

135. Explain Connection Draining.

解释连接排空。
  • 知识点: DevOps/云 (主题: aws, cloud;标签: interviewbit, aws, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795b58d557c902b9ab48 | 官方: 否 | 付费: 否

答案:

Connection Draining is a feature provided by AWS which enables your servers which are either going to be updated or removed, to serve the current requests.

连接排空是 AWS 提供的一项功能,它使即将更新或移除的服务器能够处理当前请求。

If Connection Draining is enabled, the Load Balancer will allow an outgoing instance to complete the current requests for a specific period but will not send any new request to it. Without Connection Draining, an outgoing instance will immediately go off and the requests pending on that instance will error out.

如果启用了连接排空,负载均衡器将允许出站实例在特定时间段内完成当前请求,但不会向其发送任何新请求。如果没有连接排空,出站实例将立即关闭,该实例上待处理的请求将报错。

136. What is a Stateful and a Stateless Firewall?

什么是有状态防火墙和无状态防火墙?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: interviewbit, aws, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795b58d557c902b9ab4b | 官方: 否 | 付费: 否

答案:

A Stateful Firewall is the one that maintains the state of the rules defined. It requires you to define only inbound rules. Based on the inbound rules defined, it automatically allows the outbound traffic to flow.

有状态防火墙是维护已定义规则状态的防火墙。它要求你仅定义入站规则。根据已定义的入站规则,它会自动允许出站流量通过。

On the other hand, a Stateless Firewall requires you to explicitly define rules for inbound as well as outbound traffic.

另一方面,无状态防火墙要求你明确为入站和出站流量定义规则。

For example, if you allow inbound traffic from Port 80, a Stateful Firewall will allow outbound traffic to Port 80, but a Stateless Firewall will not do so.

例如,如果你允许来自80端口的入站流量,有状态防火墙会允许到80端口的出站流量,但无状态防火墙不会这样做。

137. What is a Power User Access in AWS?

什么是AWS中的Power User Access?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: interviewbit, aws, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795b58d557c902b9ab4e | 官方: 否 | 付费: 否

答案:

An Administrator User will be similar to the owner of the AWS Resources. He can create, delete, modify or view the resources and also grant permissions to other users for the AWS Resources.

管理员用户类似于AWS资源的所有者。他可以创建、删除、修改或查看资源,也可以为其他用户授予AWS资源的权限。

A Power User Access provides Administrator Access without the capability to manage the users and permissions. In other words, a user with Power User Access can create, delete, modify or see the resources, but he cannot grant permissions to other users.

Power User Access提供管理员访问权限,但没有管理用户和权限的能力。换句话说,拥有Power User Access的用户可以创建、删除、修改或查看资源,但不能向其他用户授予权限。

138. What is an Instance Store Volume and an EBS Volume?

什么是实例存储卷和EBS卷?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: interviewbit, aws, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795b58d557c902b9ab51 | 官方: 否 | 付费: 否

答案:

An Instance Store Volume is temporary storage that is used to store the temporary data required by an instance to function. The data is available as long as the instance is running. As soon as the instance is turned off, the Instance Store Volume gets removed and the data gets deleted.

实例存储卷是临时存储,用于存储实例运行所需的临时数据。只要实例在运行,数据就可用。一旦实例关闭,实例存储卷会被移除,数据会被删除。

On the other hand, an EBS Volume represents a persistent storage disk. The data stored in an EBS Volume will be available even after the instance is turned off.

另一方面,EBS卷代表持久性存储磁盘。存储在EBS卷中的数据即使在实例关闭后仍然可用。

139. What are Recovery Time Objective and Recovery Point Objective in AWS?

什么是AWS中的恢复时间目标和恢复点目标?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: interviewbit, aws, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795b58d557c902b9ab54 | 官方: 否 | 付费: 否

答案:

Recovery Time Objective - It is the maximum acceptable delay between the interruption of service and restoration of service. This translates to an acceptable time window when the service can be unavailable.

恢复时间目标 - 这是服务中断和恢复之间最大可接受的延迟。这转化为服务不可用的可接受时间窗口。

Recover Point Objective - It is the maximum acceptable amount of time since the last data restore point. It translates to the acceptable amount of data loss which lies between the last recovery point and the interruption of service.

恢复点目标 - 这是自上次数据恢复点以来最大可接受的时间量。这转化为可接受的数据损失量,介于上次恢复点和服务中断之间。

140. Is there a way to upload a file that is greater than 100 Megabytes in Amazon S3?

有没有办法在Amazon S3中上传大于100兆字节的文件?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: interviewbit, aws, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795b58d557c902b9ab58 | 官方: 否 | 付费: 否

答案:

Yes, it is possible by using the Multipart Upload Utility from AWS. With the Multipart Upload Utility, larger files can be uploaded in multiple parts that are uploaded independently. You can also decrease upload time by uploading these parts in parallel. After the upload is done, the parts are merged into a single object or file to create the original file from which the parts were created.

是的,可以使用AWS的Multipart Upload Utility来实现。使用Multipart Upload Utility,较大的文件可以分成多个部分上传,这些部分独立上传。你也可以通过并行上传这些部分来减少上传时间。上传完成后,这些部分会被合并为一个单一对象或文件,以创建原始文件。

141. What is the use of lifecycle hooks is Autoscaling?

在自动缩放中使用生命周期钩子有什么用途?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: interviewbit, aws, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795b58d557c902b9ab5f | 官方: 否 | 付费: 否

答案:

Lifecycle hooks are used for Auto-scaling to put an additional wait time to a scale-in or a scale-out event.

生命周期钩子用于自动缩放,为扩展或收缩事件增加额外的等待时间。

142. What are the policies that you can set for your user’s passwords?

你可以为用户密码设置哪些策略?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: interviewbit, aws, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795b58d557c902b9ab62 | 官方: 否 | 付费: 否

答案:

Following are the policies that can be set for user’s passwords: - You can set a minimum length of the password.

以下是可为用户密码设置的策略:- 您可以设置密码的最短长度。

143. VM creation is possible using Azure Resource Manager in a Virtual Network which was created by means of classic deployment. True or False?

通过经典部署方式创建虚拟网络后,可以使用Azure资源管理器在该虚拟网络中创建虚拟机。对还是错?
  • 知识点: DevOps/云 (主题: azure, cloud;标签: interviewbit, azure, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795c58d557c902b9acc0 | 官方: 否 | 付费: 否

答案:

False. Azure does not support this.

错。Azure不支持此操作。

144. Can you tell something about Azure Cloud Service?

你能介绍一下Azure云服务吗?
  • 知识点: DevOps/云 (主题: azure, cloud;标签: interviewbit, azure, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795c58d557c902b9acc3 | 官方: 否 | 付费: 否

答案:

  • Azure Cloud Service is a classic example of a platform as a service (PaaS). This was designed to support those applications which demand high scalability, reliability, and availability all within the constraints of reduced cost of operations. These are hosted on virtual VMs and Azure provides more control over them by letting the developers install the necessary software and enabling them to control remotely.
  • Azure cloud services are used for deploying multi-tier web-based applications in Azure by means of creating an instance of cloud service. It is also possible to define multiple roles such as web roles, worker roles, etc for the purpose of distributed processing. Azure cloud services help in the easier and flexible scalability of the application.
  • Each role of the cloud service has its own purpose and thereby its own configuration and application files.

Azure Cloud Service

Azure云服务

145. What are the various models available for cloud deployment?

云部署可用的模型有哪些?
  • 知识点: DevOps/云 (主题: azure, cloud;标签: interviewbit, azure, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795c58d557c902b9acc6 | 官方: 否 | 付费: 否

答案:

There are 3 models available for cloud deployment:

云部署有3种可用模型:

Models For Cloud Deployment - Public Cloud: In this model, the cloud infrastructure is owned publicly by the cloud provider and there are chances that the server resources could be shared between multiple applications.

云部署模型 - 公共云:在此模型中,云基础设施由云提供商公开拥有,服务器资源有可能在多个应用程序之间共享。
  • Private Cloud: Here, the cloud infrastructure is owned exclusively by us or exclusive service is provided by the cloud provider to us.This includes hosting our applications on our own on-premise servers or hosting the application on a dedicated server provided by the cloud provider.
  • Hybrid Cloud: As the name itself says, this model is the hybrid combination of private cloud and the public cloud.This might include the scenario of using on-premise servers for processing confidential, sensitive data and using public cloud features for hosting public-facing applications.

Hybrid Cloud

混合云

Here, we use the best of both worlds to our requirements and advantage.

在这里,我们结合两者的优势来满足需求和发挥优势。

146. Define role instance in Azure.

在Azure中定义角色实例。
  • 知识点: DevOps/云 (主题: azure, cloud;标签: interviewbit, azure, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795c58d557c902b9acc9 | 官方: 否 | 付费: 否

答案:

A role instance is nothing but a virtual machine where the application code runs with the help of running role configurations. There can also be multiple instances of a role as per the definition in the cloud service configuration files.

角色实例就是一个虚拟机,应用程序代码借助运行中的角色配置在其中运行。根据云服务配置文件中的定义,一个角色也可以有多个实例。

147. How many cloud service roles are provided by Azure?

Azure提供了多少个云服务角色?
  • 知识点: DevOps/云 (主题: azure, cloud;标签: interviewbit, azure, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795c58d557c902b9accc | 官方: 否 | 付费: 否

答案:

Cloud service roles comprise a set of application and configuration files. There are 2 kinds of roles provided by Azure: - Web role: This provides a dedicated web server belonging to IIS (Internet Information Services) that is used for automatic deployment and hosting of front-end websites.

云服务角色由一组应用程序和配置文件组成。Azure 提供了两种类型的角色:- Web 角色:这提供了一个属于 IIS(Internet 信息服务)的专用 Web 服务器,用于前端网站的自动部署和托管。
  • Worker role: These roles help the applications hosted within them to run asynchronously for longer durations and are independent of the user interactions and generally do not use IIS. They are also ideal for performing background processes. The applications are run in a standalone manner.

148. Why is Azure Diagnostics API needed?

为什么需要 Azure 诊断 API?
  • 知识点: DevOps/云 (主题: azure, cloud;标签: interviewbit, azure, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795c58d557c902b9accf | 官方: 否 | 付费: 否

答案:

  • Azure Diagnostics API helps us collect diagnostic data such as performance monitoring, system event logs, etc from the applications that are running on Azure.
  • For the verbose monitoring of the data, Azure Diagnostics has to be enabled for the cloud service roles.
  • The diagnostics data can be used for building visual chart representations for better monitoring and also for creating performance metric alerts.

149. Define Azure Service Level Agreement (SLA)?

定义 Azure 服务级别协议(SLA)?
  • 知识点: DevOps/云 (主题: azure, cloud;标签: interviewbit, azure, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795c58d557c902b9acd2 | 官方: 否 | 付费: 否

答案:

  • The Azure SLA is a contract that ensures or guarantees that when two or more role instances of a role are deployed on Azure, access to that cloud service is guaranteed for at least 99.95% of the time.
  • It also states that if the role instance process is not in the running state, then the detection of such processes and corrective action for the same will be taken 99.9% percent of the time.
  • If the mentioned guarantees are not satisfied at any point in time, then Azure credits a percentage of monthly fees to us depending on the pricing model of the respective Azure services.

150. What is Azure Resource Manager?

什么是 Azure 资源管理器?
  • 知识点: DevOps/云 (主题: azure, cloud;标签: interviewbit, azure, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795c58d557c902b9acd5 | 官方: 否 | 付费: 否

答案:

Azure Resource Manager is a service provided by Azure to provide management and application deployment in Azure.

Azure 资源管理器是 Azure 提供的一项服务,用于在 Azure 中进行管理和应用程序部署。

The resource manager provides the management layer that helps the developer to create, modify or delete the resources in the Azure subscription account. This feature comes in handy when we have requirements like managing access controls, locks, ensuring the security of the resources post-deployment, and organization of those resources.

资源管理器提供了管理层,帮助开发人员在 Azure 订阅账户中创建、修改或删除资源。当我们需要管理访问控制、锁、确保部署后资源的安全性以及组织这些资源时,此功能非常有用。

151. What is NSG?

什么是 NSG?
  • 知识点: DevOps/云 (主题: azure, cloud;标签: interviewbit, azure, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795c58d557c902b9acd8 | 官方: 否 | 付费: 否

答案:

NSG stands for Network Security Group that has a list of ACL (Access Control List) rules which either allows/denies network traffic to subnets or NICs (Network Interface Card) connected to a subnet or both. When NSG is linked with a subnet, then the ACL rules are applied to all the Virtual Machines in that subnet.

NSG 代表网络安全组,它有一系列 ACL(访问控制列表)规则,这些规则允许或拒绝网络流量到子网或连接到子网的 NIC(网络接口卡),或两者兼有。当 NSG 与子网关联时,ACL 规则将应用于该子网中的所有虚拟机。

Restrictions of traffic to individual NIC can be done by associating NSG directly to that NIC.

通过将 NSG 直接关联到单个 NIC,可以限制该 NIC 的流量。

152. What do you understand about cloud computing?

你对云计算有什么理解?
  • 知识点: DevOps/云 (主题: azure, cloud;标签: interviewbit, azure, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795c58d557c902b9acdb | 官方: 否 | 付费: 否

答案:

  • Cloud computing refers to the usage of computing resources (servers) on the internet (refers to the term cloud) for the purpose of storing, managing, analyzing, and processing the data. Here, instead of maintaining our own servers, we use the infrastructure provided and maintained by third-party vendors such as Microsoft, AWS, etc, and pay them based on the server usage time duration.
  • Cloud computing enhances the speed of execution, ensures flexibility of resources, and easier scalability.
  • Cloud computing can be used to attain high fault tolerance and high system availability and this can also be done dynamically as per the infrastructural requirements of the application.

Cloud Computing

云计算

153. What is Azure Data Factory?

什么是 Azure 数据工厂?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ad2c | 官方: 否 | 付费: 否

答案:

In today's world, there is an abundance of data coming from a wide range of different sources; collectively, this information forms a gigantic mountain of data. Before we can upload this information to the cloud, there are a few things that need to be taken care of first.

在当今世界,有来自各种不同来源的大量数据;总体而言,这些信息形成了巨大的数据山。在我们将这些信息上传到云端之前,需要先处理一些事情。

As a result of the fact that data can come from a broad number of locations, each of which may employ relatively different protocols for transporting or channelling the information, the data itself can take on a large variety of shapes and sizes. Once this information has been uploaded to the cloud or some other specific storage, it is absolutely necessary for us to manage it in the appropriate manner. That is, you will need to make some adjustments to the statistics and get rid of any unnecessary details. Concerning the transfer of data, it is important for us to collect data from a variety of sources, combine it in a single area for storage, and, if required, change it into a more helpful form.

由于数据可能来自广泛的多个位置,每个位置可能采用相对不同的协议来传输或引导信息,因此数据本身可能具有多种形状和大小。一旦这些信息被上传到云端或其他特定存储,我们绝对有必要以适当的方式管理它。也就是说,您需要对统计数据做一些调整,并去除任何不必要的细节。关于数据传输,我们需要从各种来源收集数据,将其合并到单一存储区域,并在需要时将其转换为更有用的形式。

A traditional data warehouse is also capable of achieving this goal, albeit with a few significant limitations. When it comes to integrating all of these sources, there are times when we have no choice but to go ahead and construct bespoke programs that handle each of these procedures on an individual basis. This is not only a time-consuming process but also a significant source of frustration. We need to either find means to automate this process or come up with more effective workflows.

传统数据仓库也能实现这一目标,尽管有一些显著的局限性。在集成所有这些来源时,有时我们别无选择,只能构建定制的程序来单独处理每个过程。这不仅耗时,而且是一个重要的挫折来源。我们需要找到自动化此过程的方法,或设计更有效的工作流程。

This entire process may be carried out in a manner that is more streamlined, organized, and controllable with the assistance of Data Factory .

借助数据工厂,整个过程可以以更简化、更有组织且更可控的方式执行。

154. In the pipeline, can I set default values for the parameters?

在管道中,我可以为参数设置默认值吗?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ad2f | 官方: 否 | 付费: 否

答案:

Parameters in pipelines can have default values defined.

管道中的参数可以定义默认值。

155. What is the anticipated length of time needed for the integration?

预期的集成所需时间长度是多少?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ad32 | 官方: 否 | 付费: 否

答案:

The integration runtime of Azure Data Factory is the underlying computational architecture that enables the following data integration functionalities across a range of network topologies. These features can be accessed through the Azure portal.

Azure Data Factory 的集成运行时是底层计算架构,使其能够在各种网络拓扑中实现以下数据集成功能。这些功能可通过 Azure 门户访问。

Integration runtimes can be broken down into one of three categories:

集成运行时可分为以下三类之一:
  1. The Azure Integration Run Time makes it very easy to copy data from one cloud data store to another cloud data storage. The transformations can be handled by any one of a number of various computing services, such as Azure HDInsight or SQL Server. 2. You have the option of employing a piece of software known as Self Hosted Integration Run Time rather than making use of Microsoft's Azure Integration Run Time. However, you must first install it on a host computer, either at your business or on a virtual server located in the cloud. Data can be replicated between an on-premises repository and a cloud-based repository using a self-hosted information repository. It is also able to delegate transformation jobs to several machines that are connected to an intranet. Because all of the on-primitive data sources are protected by a firewall, the Data factory won't be able to access any of them; therefore, we have no choice except to use Self-Hosted IR. If we configure the Azure firewall in a certain way, we can circumvent the need for a self-hosted IR in certain circumstances. This will enable a direct connection to be made between Azure and the data sources that are located on-premises. 3. You will have the ability to natively execute SSIS packages in a managed environment if you use the Azure SSIS Integration Run Time. After that, the Azure SSIS Integration Run Time is utilized to transport the SSIS packages to the data factory.

    1. Azure 集成运行时可以非常轻松地将数据从一个云数据存储复制到另一个云数据存储。转换可由多种计算服务中的任何一种处理,例如 Azure HDInsight 或 SQL Server。 2. 您可以选择使用称为自托管集成运行时的软件,而不是使用 Microsoft 的 Azure 集成运行时。但是,您必须首先将其安装在主机上,无论是在您的企业本地还是在云中的虚拟服务器上。可以使用自托管信息存储库在本地存储库和基于云的存储库之间复制数据。它还能够将转换任务委派给连接到 intranet 的多台机器。由于所有本地数据源都受防火墙保护,数据工厂将无法访问其中的任何数据源;因此,我们别无选择,只能使用自托管 IR。如果我们以特定方式配置 Azure 防火墙,在某些情况下可以规避对自托管 IR 的需求。这将使 Azure 与位于本地的数据源之间能够建立直接连接。 3. 如果您使用 Azure SSIS 集成运行时,您将能够在托管环境中原生执行 SSIS 包。之后,利用 Azure SSIS 集成运行时将 SSIS 包传输到数据工厂。

156. How many times may an integration be run through its iterations?

集成可以运行多少次迭代?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI / 行为与软技能 (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
  • 类型: behavioral | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ad35 | 官方: 否 | 付费: 否

答案:

There are no limits placed in any way on the amount of integration runtime instances that can exist within a data factory. However, there is a limit on the number of virtual machine cores that can be utilized by the integration runtime for the execution of SSIS packages for each subscription.

数据工厂中可以存在的集成运行时实例数量没有任何限制。但是,对于每个订阅,集成运行时用于执行 SSIS 包的虚拟机核心数量是有限制的。

157. Where can I obtain additional information on the blob storage offered by Azure?

在哪里可以获得有关 Azure 提供的 Blob 存储的更多信息?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ad38 | 官方: 否 | 付费: 否

答案:

With the use of a service known as Blob Storage, vast amounts of data belonging to Azure Objects, such as text or binary data, can be saved. Using Blob Storage, you have the option of retaining the confidentiality of the data associated with your application or making it accessible to the general public. The following are some examples of typical applications of Blob Storage:

通过使用称为 Blob 存储的服务,可以保存属于 Azure 对象的海量数据,例如文本或二进制数据。使用 Blob 存储,您可以选择保留与应用程序相关的数据的机密性,或使其对公众可访问。以下是 Blob 存储的一些典型应用示例:
  1. Providing files to a user's browser in an unmediated fashion. 2. preservation of data with the goal of enhancing accessibility from a remote location. 3. Streaming live audio and video content 4. Examples of data archiving and backup that can be used in the event of a catastrophe. 5. Putting away information so that it can be used at a later time by a service that is hosted either locally or on Microsoft Azure.

    1. 以直接方式向用户的浏览器提供文件。 2. 保存数据以增强从远程位置的访问性。 3. 流式传输实时音频和视频内容 4. 可在灾难情况下使用的数据存档和备份示例。 5. 存储信息以供本地或 Microsoft Azure 上托管的服务以后使用。
  • Data Science
  • All Events
  • My Events

158. Is there a cap on the number of cycles that can be invested in the integration process?

在集成过程中可以投入的周期数有上限吗?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ad3b | 官方: 否 | 付费: 否

答案:

In no way is this the case; an Azure data factory can support an unlimited number of integration runtime occurrences simultaneously. However, there is a maximum number of VM cores that can be used by the integration runtime while executing SSIS packages, and this limitation varies depending on the type of subscription. It is essential that you have a solid grasp of these ideas before you start your journey toward earning a certification in Microsoft Azure.

绝对不是这种情况;Azure 数据工厂可以同时支持无限数量的集成运行时实例。但是,集成运行时在执行 SSIS 包时可以使用的 VM 核心数有最大值,并且此限制取决于订阅类型。在您开始获得 Microsoft Azure 认证的旅程之前,必须充分理解这些概念。

159. How does the Data Factory's integration runtime actually function?

数据工厂的集成运行时实际上如何运作?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
  • 类型: technical | 难度: easy | 子类型: coding
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ad3e | 官方: 否 | 付费: 否

答案:

Integration Runtime, a safe computing platform, makes it feasible for Data Factory to offer data integration capabilities that are portable across various network configurations. This is made possible by the use of Integration Runtime. Because of its proximity to the data centre, the work will almost certainly be performed there. If you want to Learn Azure Step by Step, you must be familiar with terminologies like this and other key aspects of Azure.

集成运行时是一个安全的计算平台,使数据工厂能够提供可在各种网络配置中移植的数据集成功能。这是因为使用了集成运行时。由于靠近数据中心,工作几乎肯定会在此执行。如果您想逐步学习 Azure,必须熟悉此类术语以及 Azure 的其他关键方面。

160. Provide information regarding the steps required to create an ETL procedure in Azure Data Factory.

提供有关在 Azure Data Factory 中创建 ETL 过程所需步骤的信息。
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ad41 | 官方: 否 | 付费: 否

答案:

Any data that requires processing in order to be accessed from an Azure SQL server database is first subjected to the processing step, and then the data is saved to the Data Lake Store. The following are the steps that must be taken to construct ETL:

为了从 Azure SQL Server 数据库中访问任何需要处理的数据,首先会进行数据处理步骤,然后将数据保存到 Data Lake Store。以下是构建 ETL 必须采取的步骤:
  1. To get started, you will need to create a Linked Service for the SQL Server Database that will be used as the source database. 2. Let's imagine for a moment that we are analyzing data from a car database. 3. Construct a Linked Service with the Azure Data Lake Store as its destination at this point. 4. The next thing you need to do is create a dataset in the Data Storage app. 5. Make the necessary preparations for the system and include a phase for copying. 6. Following that, a trigger ought to be included in the pipeline's timetable.

    1. 首先,您需要为用作源数据库的 SQL Server 数据库创建链接服务。 2. 让我们假设我们正在分析来自汽车数据库的数据。 3. 此时,构建一个以 Azure Data Lake Store 为目标的链接服务。 4. 接下来需要做的是在数据存储应用中创建数据集。 5. 为系统做好必要准备,并包含复制阶段。 6. 之后,应在管道的时间表中包含触发器。

161. What are the three different types of triggers that are available for use with Azure Data Factory?

可用于 Azure Data Factory 的三种不同类型的触发器是什么?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI / 行为与软技能 (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
  • 类型: behavioral | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ad44 | 官方: 否 | 付费: 否

答案:

  • Utilizing the Schedule trigger helps ensure that the ADF pipeline is executed in accordance with a predetermined timetable.
  • With the assistance of the Tumbling window trigger, the ADF pipeline can be triggered to execute at predetermined time intervals. The current status of the pipeline has been maintained.

    1. 借助翻转窗口触发器,ADF 管道可以在预定的时间间隔内被触发执行。管道的当前状态已被维护。
  • The Event-based trigger is activated whenever there is a triggering event that is associated with the blob in some way. The addition of a blob to your Azure storage account or its deletion are two instances of actions that fall within this category.

    1. 基于事件的触发器在与 blob 相关联的触发事件发生时被激活。将 blob 添加到您的 Azure 存储账户或删除它都属于此类操作的实例。

162. Where can I locate the step-by-step instructions for creating Azure Functions?

在哪里可以找到创建 Azure Functions 的分步说明?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
  • 类型: technical | 难度: easy | 子类型: coding
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ad47 | 官方: 否 | 付费: 否

答案:

With Azure Functions, building cloud-based applications requires only a few lines of code rather than the traditional tens or hundreds of lines. Because of this functionality, we are able to choose the programming language that best suits our needs. Because the only cost is the time the code is actually executed, pricing is determined on a per-user basis.

借助 Azure Functions,构建基于云的应用程序只需几行代码,而不是传统的几十行或几百行。由于此功能,我们能够选择最适合我们需求的编程语言。因为唯一的成本是代码实际执行的时间,所以定价是按用户确定的。

It is compatible with a wide variety of programming languages, including F#, C#, Node.js, Java, Python, and PHP, among others. Additionally, the system enables continuous integration and deployment of updates. The development of serverless applications is made possible through the use of Azure Functions apps. By enrolling in Azure Training in Hyderabad, you will have the opportunity to learn everything there is to know about the creation of Azure Functions.

它兼容多种编程语言,包括 F#、C#、Node.js、Java、Python 和 PHP 等。此外,该系统还支持更新的持续集成和部署。通过使用 Azure Functions 应用,可以实现无服务器应用程序的开发。通过在海得拉巴参加 Azure 培训,您将有机会了解有关 Azure Functions 创建的所有知识。

163. How do I access data by using the other 80 dataset types in Data Factory?

如何通过 Data Factory 中的其他 80 种数据集类型访问数据?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ad4a | 官方: 否 | 付费: 否

答案:

  • Existing options for sinks and sources for Mapping Data Flow include the Azure SQL Data Warehouse and the Azure SQL Database, as well as specified text files from Azure Blob storage or Azure Data Lake Storage Gen2 and Parquet files from either Blob storage or Data Lake Storage Gen2.
  • You will need to make use of the Copy activity to retrieve information from one of the auxiliary connectors so that you may make reference to it. After the data has been staged, you will need to carry out an activity known as a Data Flow if you wish to effectively convert the data.

164. What prerequisites does Data Factory SSIS execution require?

Data Factory SSIS 执行有哪些先决条件?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ad4d | 官方: 否 | 付费: 否

答案:

Either an Azure SQL Managed Instance or an Azure SQL Database must be used as the hosting location for your SSIS IR and SSISDB catalogue.

Azure SQL 托管实例或 Azure SQL 数据库必须用作 SSIS IR 和 SSISDB 目录的托管位置。

Successful Tech Career for FREE!

免费开启成功的科技职业生涯!

Successful Tech Career!

成功的技术职业生涯!

Interview Process

面试流程

CTC & Designation

CTC与职位级别

Projects on the Job

工作项目

Referral System

推荐系统

Try It Out

试试看

2 Lakh+ Roadmaps Created

已生成20万+职业规划

165. What are "Datasets" in the ADF framework?

ADF 框架中的“数据集”是什么?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ad50 | 官方: 否 | 付费: 否

答案:

The pipeline activities will make use of the inputs and outputs that are contained in the dataset, which contains those activities. A connected data store can be any kind of file, folder, document, or anything else imaginable; datasets frequently represent the organization of information within such a store. An Azure blob dataset, for example, details the blob storage folder and container from which a particular pipeline activity must read data to continue processing. This information is used to determine where the data will be read from.

管道活动将使用数据集中包含的输入和输出,该数据集包含这些活动。连接的数据存储可以是任何类型的文件、文件夹、文档或其他任何可想象的内容;数据集通常表示此类存储中的信息组织方式。例如,Azure blob 数据集详细说明了特定管道活动必须从中读取数据以继续处理的 blob 存储文件夹和容器。此信息用于确定数据的读取位置。

166. What is the purpose of ADF Service?

ADF 服务的用途是什么?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ad53 | 官方: 否 | 付费: 否

答案:

ADF's primary purpose is to handle data replication across local and remote, relational and non-relational data sources. In addition, ADF may replicate data between these different types of sources. Additionally, the ADF Service can be used to modify the incoming data to cater to the requirements of a particular organization. Ingestion of data can be accomplished using ADF Service either as an ETL or an ELT tool. This makes it a vital component of the vast majority of Big Data solutions. Sign up for Azure Training in Hyderabad to gain an in-depth understanding of the several advantages offered by ADF Service.

ADF 的主要用途是处理本地和远程、关系型和非关系型数据源之间的数据复制。此外,ADF 还可以在这些不同类型的数据源之间复制数据。此外,ADF 服务可用于修改传入数据以满足特定组织的需求。数据摄取可以使用 ADF 服务作为 ETL 或 ELT 工具来完成。这使其成为绝大多数大数据解决方案的关键组件。报名参加海得拉巴的 Azure 培训,深入了解 ADF 服务提供的多项优势。

167. State the difference between the transformation procedures known as Mapping data flow and Wrangling data flow when it comes to Data Factory?

在 Data Factory 中,映射数据流和整理数据流这两种转换过程有何区别?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ad56 | 官方: 否 | 付费: 否

答案:

  • The process of graphically designing and transforming data is referred to as mapping data flow. This application allows you to design data transformation logic in a graphical interface without the need to engage a professional programmer, which is a significant benefit. In addition to this, it is executed as an activity within the ADF pipeline on a scaled-out Spark cluster that is fully managed by the ADF.
  • On the other hand, a non-programmatic method of data preparation is referred to as "wrangling data flow activity," which is the phrase that is used. Users of spark get access to all of the data manipulation capabilities of Power Query M since spark is compatible with Power Query Online. This gives users more control over the data.

168. What is Azure Databricks?

什么是 Azure Databricks?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ad59 | 官方: 否 | 付费: 否

答案:

Azure Databricks is an analytics platform that is built on Apache Spark and has been fine-tuned for Azure. It is fast, simple, and can be used in collaboration with others. Apache Spark was conceived and developed in collaboration with its creators. Azure Databricks is a service that combines the most beneficial aspects of Databricks and Azure to enable rapid deployment. This service is designed to assist customers in accelerating innovation. The enjoyable activities and engaging environment both contribute to making collaboration between data engineers, data scientists, and business analysts easier to do.

Azure Databricks 是一个基于 Apache Spark 构建并针对 Azure 进行了优化的分析平台。它快速、简单,并且可以与他人协作使用。Apache Spark 是与它的创建者合作构思和开发的。Azure Databricks 是一项结合了 Databricks 和 Azure 最有益方面的服务,以实现快速部署。该服务旨在帮助客户加速创新。有趣的活动和引人入胜的环境都有助于使数据工程师、数据科学家和业务分析师之间的协作更加容易。

169. What is Azure SQL Data Warehouse?

什么是 Azure SQL 数据仓库?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ad5c | 官方: 否 | 付费: 否

答案:

It is a vast storehouse of knowledge that may be mined for useful insights and utilized to guide management decisions. Using this strategy, the data from numerous different databases that are either located in different physical places or are spread across a network can be aggregated into a single repository.

它是一个庞大的知识库,可以被挖掘以获取有用的见解并用于指导管理决策。使用这种策略,来自不同物理位置或分布在网络中的多个不同数据库的数据可以聚合到一个单一存储库中。

It is possible to construct an Azure SQL Data Warehouse by merging data from multiple sources. This can be done for a variety of reasons, including the fact that it will make it easier to conduct analyses, generate reports, and make decisions. Because it is a business tool that operates in the cloud and allows parallel processing, it enables you to quickly analyze even the most complex queries on the most extensive data sets. In addition to that, it can be used as a workable alternative for Big Data theories.

可以通过合并来自多个来源的数据来构建 Azure SQL 数据仓库。这可以出于多种原因进行,包括它将使进行分析、生成报告和做出决策变得更容易。因为它是一种在云中运行并支持并行处理的业务工具,它使您能够快速分析最广泛数据集上最复杂的查询。此外,它还可以作为大数据理论的一个可行替代方案。

170. What is Azure Data Lake ?

什么是 Azure Data Lake?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ad5f | 官方: 否 | 付费: 否

答案:

The enhanced productivity and reduced complexity of data storage that Azure Data Lake offers are all benefits that can accrue to data analysts, software engineers, and data scientists. It is a cutting-edge method that enables you to carry out tasks like these in a wide variety of programming languages and environments.

Azure Data Lake 提供的增强生产力和降低的数据存储复杂性,这些好处都可以惠及数据分析师、软件工程师和数据科学家。它是一种尖端方法,使您能够在各种编程语言和环境中执行此类任务。

The problems that are normally involved with archiving information are eliminated as a result. Additionally, it makes it simple to perform batch, interactive, and streaming analytics. The Azure Data Lake from Microsoft provides capabilities that assist businesses in satisfying their growing requirements and overcoming challenges relating to productivity and scalability.

这消除了通常与归档信息相关的问题。此外,它使批处理、交互式和流式分析变得简单。微软的 Azure Data Lake 提供了帮助企业在满足日益增长的需求并克服生产力和可扩展性相关挑战方面的能力。

171. Determine the data sources utilized by the Azure Data Factory

确定 Azure Data Factory 使用的数据源
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ad62 | 官方: 否 | 付费: 否

答案:

The original or final storage location for information that will be processed or utilized in some manner is referred to as the data source. The format of the data could be anything from binary to text to a file containing comma-separated values to a file containing JSON, and so on and so forth.

将被处理或以某种方式使用的信息的原始或最终存储位置被称为数据源。数据的格式可以是任何形式,从二进制到文本,到包含逗号分隔值的文件,到包含 JSON 的文件,等等。

It's possible that this is an actual database, but it might also be an image, video, or audio file. One example of a data source is a database. Some examples of databases include MySQL, Azure SQL Database, PostgreSQL, and others. Azure Data Lake Storage and Azure Blob Storage are also examples of data sources.

这可能是一个实际数据库,但也可能是图像、视频或音频文件。数据源的一个例子是数据库。数据库的一些例子包括 MySQL、Azure SQL 数据库、PostgreSQL 等。Azure Data Lake Storage 和 Azure Blob Storage 也是数据源的例子。

172. The Auto Resolve Integration Runtime provides users with several benefits; nonetheless, the question remains: why should you use it?

自动解析集成运行时为用户提供了几个好处;尽管如此,问题仍然是:为什么要使用它?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ad65 | 官方: 否 | 付费: 否

答案:

AutoResolveIntegration: The runtime environment will make every effort to carry out the tasks in the same physical place as the source of the sink data, or one that is as close as it can get. Productivity may also increase using the same.

AutoResolveIntegration:运行时环境将尽一切努力在与接收器数据源相同的物理位置或尽可能接近的位置执行任务。使用它还可以提高生产力。

173. What are some of the advantages of carrying out a lookup in the Azure Data Factory?

在 Azure Data Factory 中执行查找有哪些优势?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ad68 | 官方: 否 | 付费: 否

答案:

Within the ADF pipeline, the Lookup activity is utilized rather frequently for configuration lookup. It includes the data set in its initial form. In addition to this, the output of the activity can be used to retrieve the data from the dataset that served as the source. In most cases, the outcomes of a lookup operation are sent back down the pipeline to be used as input for later phases.

在 ADF 管道中,Lookup 活动经常用于配置查找。它包含初始形式的数据集。此外,该活动的输出可用于从作为来源的数据集中检索数据。在大多数情况下,查找操作的结果会被发送回管道,作为后续阶段的输入。

To provide a more detailed explanation, the lookup activity in the ADF pipeline is responsible for retrieving data. You may only utilize it in a manner that is appropriate for the process you are going through. You have the option of retrieving just the first row, or you may select to obtain all of the rows in the dataset depending on the query.

更详细地解释,ADF 管道中的查找活动负责检索数据。您只能以适合您正在经历的过程的方式使用它。您可以选择仅检索第一行,或者根据查询选择获取数据集中的所有行。

174. Please provide a more in-depth explanation of what Data Factory Integration Runtime entails.

请对 Data Factory 集成运行时包含的内容提供更深入的说明。
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ad6b | 官方: 否 | 付费: 否

答案:

The Integration Runtime (IR) is the underlying computing environment that is used when working with Azure Data Factory pipelines. In essence, it links the activities that individuals participate in with the services that they require to participate in those activities.

集成运行时(IR)是在使用 Azure Data Factory 管道时所使用的底层计算环境。本质上,它将个人参与的活动与完成这些活动所需的服务连接起来。

It offers the computing environment in which the activity is either directly run or dispatched, and as a result, it is referenced by the service or activity that is associated with it. This indicates that the task can be finished regardless of where the closest data storage or computing service is located in the world.

它提供了活动直接运行或分派的计算环境,因此,它被与之关联的服务或活动所引用。这表明,无论最近的数据存储或计算服务位于世界何处,任务都能完成。

The following configurations are available for Data Factory and its integration runtimes, as shown in the accompanying diagram:

数据工厂及其集成运行时提供以下配置,如随附图表所示:

There are three separate integration runtimes available with Azure Data Factory. These runtimes each have their own set of benefits and downsides, which are determined by the user's level of experience with data integration and the desired network setup.

Azure Data Factory 提供三种独立的集成运行时。这些运行时各有其自身的优缺点,这些优缺点取决于用户在数据集成方面的经验水平以及所需的网络设置。
  1. You can use Azure Integration Runtime to transport information across different cloud storage services and to trigger activities in other platforms such as SQL Server, Azure HDInsight, and other similar services. 2. The Self-Hosted Integration Runtime is where the action takes place whenever there is a need for data to be replicated between the cloud and private networks. Both the Azure Integration Runtime and the self-hosted integration runtime are the same pieces of software; however, the Azure Integration Runtime is designed to run locally on your computer, whilst the self-hosted integration runtime is designed to run in the cloud. 3. Execution of SSIS packages is made possible by the Azure SSIS Integration Runtime, which offers a managed environment in which to do so. As a result, the lifting and moving of SSIS packages to the data factory is accomplished through the utilization of the Azure SSIS Integration Runtime.

    1. 您可以使用 Azure 集成运行时在不同的云存储服务之间传输信息,并在其他平台(如 SQL Server、Azure HDInsight 及其他类似服务)上触发活动。 2. 每当需要在云和私有网络之间复制数据时,自托管集成运行时就是发挥作用的地方。Azure 集成运行时和自托管集成运行时是相同的软件;但是,Azure 集成运行时设计为在本地计算机上运行,而自托管集成运行时设计为在云中运行。 3. 执行 SSIS 包由 Azure SSIS 集成运行时实现,该运行时提供了执行 SSIS 包的管理环境。因此,将 SSIS 包提升和迁移到数据工厂是通过利用 Azure SSIS 集成运行时完成的。

175. What is meant to be referred to when people use the phrase "breakpoint" in conjunction with the ADF pipeline?

当人们将“断点”一词与 ADF 管道结合使用时,指的是什么意思?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI / 行为与软技能 (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
  • 类型: behavioral | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ad6e | 官方: 否 | 付费: 否

答案:

The commencement of the testing step of the pipeline is indicated by the placement of a debugging breakpoint. Before committing to a particular action, you can make use of breakpoints to check and make sure that the pipeline is operating as it should.

调试断点的放置标志着管道测试步骤的开始。在提交特定操作之前,您可以使用断点来检查并确保管道按预期运行。

Take the following example into consideration to get a better understanding of the concept: you have three activities in your pipeline, but you only want to debug through the second one. In order to be successful in this endeavour, a breakpoint needs to be established for the second task. By simply clicking the circle located at the very top of the activity, you will be able to add a breakpoint.

请考虑以下示例以更好地理解这一概念:您的管道中有三个活动,但您只想调试第二个活动。要想在此努力中成功,需要为第二个任务设置一个断点。只需单击活动最顶部的圆圈,您就可以添加断点。

176. What is the connected service offered by the Azure Data Factory, and how does it operate?

Azure Data Factory 提供的连接服务是什么,它如何运作?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ad71 | 官方: 否 | 付费: 否

答案:

In Azure Data Factory, the connection method that is utilized to join an external source is referred to as a "connected service," and the phrase is used interchangeably. It not only serves as the connection string, but it also saves the user validation data.

在 Azure Data Factory 中,用于连接外部源的连接方法被称为“连接服务”,该短语可互换使用。它不仅充当连接字符串,还保存用户验证数据。

The connected service can be implemented in two different ways, which are as follows:

连接服务可以通过以下两种不同方式实现:
  1. ARM approach. 2. Azure Portal.

    1. ARM方法。 2. Azure门户。

177. What sorts of variables are supported by Azure Data Factory and how many different kinds are there?

Azure Data Factory 支持哪些变量,以及有多少种不同的类型?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ad74 | 官方: 否 | 付费: 否

答案:

Variables are included in the ADF pipeline so that values can be temporarily stored in them. Their application is almost entirely equivalent to that of variables in programming languages. There are two types of operations that are used to assign and change the values of variables. These are set variables and add variables.

ADF 管道中包含变量,以便值可以临时存储在其中。它们的应用几乎与编程语言中变量的应用完全等效。有两种操作类型用于赋值和更改变量的值,即设置变量和添加变量。

The Azure data factory makes use of two different categories of variables:

Azure 数据工厂使用两类变量:
  1. In Azure, the pipeline's constants are referred to as system variables. Pipeline ID, Pipeline Name, Trigger Name, etc. are all instances. 2. The user is responsible for declaring user variables, which are then utilized by the logic of the pipeline.

    1. 在 Azure 中,管道的常量被称为系统变量。管道 ID、管道名称、触发器名称等均为实例。 2. 用户负责声明用户变量,然后这些变量会被管道的逻辑所使用。

178. What is Databricks Spark?

什么是 Databricks Spark?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9adc9 | 官方: 否 | 付费: 否

答案:

Databricks Spark is the result of Apache Spark being forked to build it. Spark has undergone development and received upgrades that make its connection with Databricks more streamlined.

Databricks Spark 是 Apache Spark 被分叉(fork)后构建的结果。Spark 经过开发并获得升级,使其与 Databricks 的连接更加简化。

179. What are the advantages of Microsoft Azure Databricks?

Microsoft Azure Databricks 有哪些优势?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9adcc | 官方: 否 | 付费: 否

答案:

Utilizing Azure Databricks comes with a variety of benefits, some of which are as follows: - Using the managed clusters provided by Databricks can cut your costs associated with cloud computing by up to 80%.

使用 Azure Databricks 带来多种好处,其中一些如下: - 使用 Databricks 提供的托管集群可以降低您的云计算成本高达 80%。
  • The straightforward user experience provided by Databricks, which simplifies the building and management of extensive data pipelines, contributes to an increase in productivity.
  • Your data is protected by a multitude of security measures provided by Databricks, including role-based access control and encrypted communication, to name just two examples.

180. Why is it necessary for us to use the DBU Framework?

为什么我们必须使用 DBU 框架?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9adcf | 官方: 否 | 付费: 否

答案:

The DBU Framework was developed as a means of streamlining the process of developing applications on Databricks that are capable of working with significant quantities of data. A command line interface (CLI), a software development kit (SDK) written in Python, and a software development kit written in Java are all included in the framework (SDK).

DBU 框架是为了简化在 Databricks 上开发能够处理大量数据的应用程序的过程而开发的。该框架包含命令行界面(CLI)、用 Python 编写的软件开发工具包(SDK)以及用 Java 编写的软件开发工具包(SDK)。

181. When referring to Azure Databricks, what exactly does it mean to "auto-scale" a cluster of nodes?

在提到 Azure Databricks 时,对节点集群进行“自动缩放”具体意味着什么?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
  • 类型: technical | 难度: easy | 子类型: system-design
  • 分类: fullstack
  • id: 69b3795d58d557c902b9add2 | 官方: 否 | 付费: 否

答案:

The auto-scaling feature offered by Databricks enables you to automatically expand or contract the size of your cluster as needed. Utilizing only the resources that are really put to use is a foolproof method for lowering expenses and reducing waste.

Databricks 提供的自动缩放功能使您能够根据需要自动扩展或缩小集群规模。仅使用实际利用的资源是降低费用和减少浪费的稳妥方法。

182. What actions should I take to resolve the issues I'm having with Azure Databricks?

我应该采取哪些行动来解决我在 Azure Databricks 上遇到的问题?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9add5 | 官方: 否 | 付费: 否

答案:

If you are having trouble using Azure Databricks, you should begin by looking over the Databricks documentation. The documentation includes a collated list of common issues and the remedies to those issues, as well as any other relevant information. You can also get in touch with the support team for Databricks if you find that you require assistance.

如果您在使用 Azure Databricks 时遇到困难,应首先查看 Databricks 文档。文档包含常见问题及其解决方法的整理列表,以及其他任何相关信息。如果您需要帮助,也可以联系 Databricks 的支持团队。
  • Data Science
  • All Events
  • My Events

183. What is the function of the Databricks filesystem?

Databricks 文件系统的功能是什么?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
  • 类型: technical | 难度: easy | 子类型: coding
  • 分类: fullstack
  • id: 69b3795d58d557c902b9add8 | 官方: 否 | 付费: 否

答案:

The Databricks filesystem is used to store the data that is saved in Databricks. Workloads involving large amounts of data are an ideal fit for this particular distributed file system. The Hadoop Distributed File System (DVFS) is compatible with Databricks, which is a distributed file system (HDFS).

Databricks 文件系统用于存储保存在 Databricks 中的数据。涉及大量数据的工作负载非常适合这个分布式文件系统。Hadoop 分布式文件系统(DVFS)与 Databricks 兼容,这是一个分布式文件系统(HDFS)。

184. What programming languages are available for use when interacting with Azure Databricks?

与 Azure Databricks 交互时可使用哪些编程语言?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
  • 类型: technical | 难度: easy | 子类型: coding
  • 分类: fullstack
  • id: 69b3795d58d557c902b9addb | 官方: 否 | 付费: 否

答案:

A few examples of languages that can be used in conjunction with the Apache Spark framework include Python, Scala, and R. Additionally, the SQL database language is supported by Azure Databricks.

可与 Apache Spark 框架结合使用的语言的一些示例包括 Python、Scala 和 R。此外,Azure Databricks 还支持 SQL 数据库语言。

185. Is it possible to manage Databricks using PowerShell?

是否可以使用 PowerShell 管理 Databricks?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9adde | 官方: 否 | 付费: 否

答案:

No, the administration of Databricks cannot be done with PowerShell because it is not compatible with it. There are other methods available, including the Azure command line interface (CLI), the Databricks REST API, and the Azure site itself.

不,无法使用PowerShell管理Databricks,因为它不兼容。还有其他可用方法,包括Azure命令行界面(CLI)、Databricks REST API和Azure站点本身。

186. Which of these two, a Databricks instance or a cluster, is the superior option?

这两个选项中,Databricks实例和集群,哪一个更优秀?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ade1 | 官方: 否 | 付费: 否

答案:

To put it another way, an instance is a virtual machine (VM) that has the Databricks runtime installed on it and is used to execute commands. Spark applications are typically installed on what is known as a cluster, which is just a collection of servers.

换句话说,实例是安装了Databricks运行时并用于执行命令的虚拟机(VM)。Spark应用程序通常安装在所谓的集群上,集群只是服务器的集合。

187. What is meant by the term "management plane" when referring to Azure Databricks?

在Azure Databricks中,“管理平面”指的是什么?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ade4 | 官方: 否 | 付费: 否

答案:

Only with the assistance of the management plane will your Databricks deployment be able to run smoothly. The Databricks REST API, the Azure Command Line Interface (CLI), and the Azure portal are all included.

只有借助管理平面的协助,您的Databricks部署才能顺利运行。其中包括Databricks REST API、Azure命令行界面(CLI)和Azure门户。

188. Where can I find more information about the control plane that is used by Azure Databricks?

在哪里可以找到有关Azure Databricks使用的控制平面的更多信息?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ade7 | 官方: 否 | 付费: 否

答案:

The control plane is used to manage the various Spark applications. Included in this package are both the Spark user interface and the Spark history server.

控制平面用于管理各种Spark应用程序。此包中包含Spark用户界面和Spark历史服务器。

189. What is meant by the term "data plane" when referring to Azure Databricks?

在Azure Databricks中,“数据平面”指的是什么?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9adea | 官方: 否 | 付费: 否

答案:

The portion of the network responsible for the storing and processing of data is referred to as the data plane. Included in this package are both the Apache Hive megastore as well as the Databricks filesystem.

负责存储和处理数据的网络部分称为数据平面。此包中包含Apache Hive元存储和Databricks文件系统。

Successful Tech Career for FREE!

免费开启成功的科技职业生涯!

Successful Tech Career!

成功的技术职业生涯!

Interview Process

面试流程

CTC & Designation

CTC与职位级别

Projects on the Job

工作项目

Referral System

推荐系统

Try It Out

试试看

2 Lakh+ Roadmaps Created

已生成20万+职业规划

190. Is there a way to halt a Databricks process that is already in progress?

有没有办法暂停正在进行的Databricks进程?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9aded | 官方: 否 | 付费: 否

答案:

You are able to stop a job that is currently running in Databricks by going to the Jobs page, selecting the job, and then selecting the Cancel-Job option from the context menu.

您可以通过转到“作业”页面、选择作业,然后从上下文菜单中选择“取消作业”选项来停止Databricks中当前正在运行的作业。

191. What is delta table in Databricks?

Databricks中的delta表是什么?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9adf0 | 官方: 否 | 付费: 否

答案:

Any information that is stored in the Databricks Delta format is stored in a table that is referred to as a delta table. Delta tables, in addition to being fully compliant with ACID transactions, also make it possible for reads and writes to take place at lightning speed.

以Databricks Delta格式存储的任何信息都存储在称为delta表的表中。Delta表除了完全符合ACID事务外,还使得读写能够以闪电般的速度进行。

192. What is the name of the platform that enables the execution of Databricks applications?

支持执行Databricks应用程序的平台名称是什么?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9adf3 | 官方: 否 | 付费: 否

答案:

An application environment that is created on top of Apache Spark is referred to as the Databricks Runtime. It provides everything you need to construct and run Spark applications, such as libraries, application programming interfaces (APIs), and tools.

构建在Apache Spark之上的应用程序环境称为Databricks Runtime。它提供了构建和运行Spark应用所需的一切,例如库、应用程序编程接口(API)和工具。

193. What are workspaces in Azure DataBricks?

Azure DataBricks中的工作区是什么?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9adfa | 官方: 否 | 付费: 否

答案:

Workspaces in Azure Databricks are instances of Apache Spark that are completely managed by the service. Along with everything else that is required to construct and run Spark applications, the package includes a code editor, a debugger, as well as Machine Learning and SQL libraries.

Azure Databricks 中的工作区是 Apache Spark 的实例,完全由该服务进行管理。除了构建和运行 Spark 应用程序所需的其余一切,该软件包还包含代码编辑器、调试器以及机器学习和 SQL 库。

194. In the context of Azure Databricks, what is a "dataframe"?

在 Azure Databricks 的背景下,什么是“数据帧”?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9adfd | 官方: 否 | 付费: 否

答案:

A data frame is a particular form of table that is used for the storage of data within the Databricks runtime. There is complete support for ACID transactions, and data frames were developed with the goal of providing fast reads and writes.

数据帧是一种特定形式的表,用于在 Databricks 运行时中存储数据。它完全支持 ACID 事务,并且数据帧的开发目标是提供快速读写功能。

195. Within the context of Azure Databricks, what role does Kafka play?

在 Azure Databricks 的背景下,Kafka 扮演什么角色?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ae00 | 官方: 否 | 付费: 否

答案:

When working with the streaming features of Azure Databricks, Kafka is the tool that is recommended to use. This approach allows for the ingestion of a wide variety of data, including but not limited to sensor readings, logs, and financial transactions. Processing and analysis of streaming data may also be done in real-time with Kafka, another area in which it excels.

在使用 Azure Databricks 的流式处理功能时,Kafka 是推荐使用的工具。这种方法支持摄入多种多样的数据,包括但不限于传感器读数、日志和金融交易。流式数据的处理和分析也可以通过 Kafka 实时完成,这是它擅长的另一个领域。

196. Is it only possible to access Databricks through the cloud, and there is no way to install it locally?

是否只能通过云访问 Databricks,并且没有办法在本地安装它?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI / 行为与软技能 (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
  • 类型: behavioral | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ae03 | 官方: 否 | 付费: 否

答案:

Yes. Apache Spark, which is the on-premises solution for Databricks, made it possible for engineers working within the company to manage the application and the data locally. Users of Databricks may run into connectivity issues when attempting to use the service with data that is kept on local servers because Databricks was developed specifically for the cloud. The on-premises solutions provided by Databricks are hampered by discrepancies in the data as well as workflows that are wasteful.

是的。Apache Spark 作为 Databricks 的本地解决方案,使公司内部的工程师能够在本地管理应用程序和数据。Databricks 用户在使用存储在本地服务器上的数据时,可能会遇到连接问题,因为 Databricks 专门为云而开发。Databricks 提供的本地解决方案受到数据差异以及低效工作流程的阻碍。

197. Is Databricks a Microsoft subsidiary or a subsidiary company?

Databricks 是微软的子公司还是附属公司?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ae06 | 官方: 否 | 付费: 否

答案:

No. Apache Spark serves as the foundation for Databricks, which is an open-source project. A commitment of $250 million dollars has been made by Microsoft for 2019. Microsoft made the announcement in 2017 that it will be releasing Azure Databricks, a cloud platform that would include Databricks. Both Google Cloud Platform and Amazon Web Services have formed agreements in a manner analogous to this.

不是。Databricks 以 Apache Spark 为基础,是一个开源项目。微软在 2019 年已承诺投入 2.5 亿美元。微软在 2017 年宣布将发布 Azure Databricks,这是一个包含 Databricks 的云平台。谷歌云平台和亚马逊网络服务也以类似方式达成了协议。

198. Could you please explain the many types of cloud services that Databricks offers?

您能解释一下 Databricks 提供的多种云服务类型吗?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ae09 | 官方: 否 | 付费: 否

答案:

The solution that Databricks offers is categorized as software as a service (SaaS), and the intention behind it is to utilize clusters in order to realize Spark's full potential in terms of storage management. Before rolling out the applications, users only need to make a few changes to the configurations of those programs.

Databricks 提供的解决方案被归类为软件即服务(SaaS),其设计意图是利用集群来实现 Spark 在存储管理方面的全部潜力。在推出应用程序之前,用户只需对这些程序的配置进行少量更改。

199. Which category of cloud service does Microsoft's Azure Databricks belong to: SaaS, PaaS, or IaaS?

Microsoft 的 Azure Databricks 属于哪种云服务类别:SaaS、PaaS 还是 IaaS?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ae0c | 官方: 否 | 付费: 否

答案:

PaaS stands for the platform as a service, and Databricks in Azure is a PaaS. It is an application development platform that is built on top of Microsoft Azure and Databricks. Users are going to be accountable for utilizing the capabilities offered by Azure Databricks in order to design and develop the data life cycle as well as build applications.

PaaS 代表平台即服务,Azure 中的 Databricks 是一种 PaaS。它是一个构建在 Microsoft Azure 和 Databricks 之上的应用程序开发平台。用户需要负责利用 Azure Databricks 提供的功能来设计并开发数据生命周期以及构建应用程序。

200. Differences between Microsoft Azure Databricks and Amazon Web Services Databricks.

Microsoft Azure Databricks 与 Amazon Web Services Databricks 之间的区别。
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ae0f | 官方: 否 | 付费: 否

答案:

Azure Databricks is a product that combines the features of both Azure and Databricks in an effortless manner. Using Microsoft Azure as a cloud provider for Databricks entails more than just utilizing a hosting service. Because it includes Microsoft features such as Active directory authentication and the ability to communicate with a wide variety of Azure services, Azure Databricks is the most advantageous product currently available. To put it another way, AWS Databricks are simply Databricks that are hosted on the AWS cloud.

Azure Databricks 是一种将 Azure 和 Databricks 的功能轻松结合的产品。对于 Databricks,使用 Microsoft Azure 作为云提供商不仅仅意味着利用托管服务。因为它包含微软功能,例如 Active Directory 身份验证以及与各种 Azure 服务通信的能力,所以 Azure Databricks 是目前最有利的产品。换句话说,AWS Databricks 只是托管在 AWS 云上的 Databricks。

201. What does "reserved capacity" mean when referring to Azure?

在 Azure 中,“预留容量”是什么意思?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ae12 | 官方: 否 | 付费: 否

答案:

Microsoft provides a reserved capacity option for customers who are interested in achieving the greatest possible cost savings with Azure Storage. During the time period that they have reserved, customers are assured that they will have access to a predetermined amount of storage space on the Azure cloud. Block Blobs and Azure Data Lake are two storage solutions that make it feasible to keep Gen 2 data in a standard storage account.

Microsoft 为有意通过 Azure 存储实现最大成本节省的客户提供了预留容量选项。在客户预留的时间段内,他们可以确保访问 Azure 云上预定量的存储空间。块 Blob 和 Azure Data Lake 是两种存储解决方案,使得在标准存储账户中保存 Gen 2 数据成为可行。

202. Outline the individual parts that come together to form Azure Synapse Analytics.

概述组成 Azure Synapse Analytics 的各个部分。
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ae15 | 官方: 否 | 付费: 否

答案:

It was developed specifically to manage tables with hundreds of millions of rows. Because it is based on a Massively Parallel Processing, or MPP, architecture, Synapse SQL is able to conduct complicated queries and provide the query answers within seconds, even when working with large amounts of data. This is made possible by the fact that Azure Synapse Analytics can distribute data processing across numerous nodes.

它专门用于管理拥有数亿行的表。由于基于大规模并行处理(MPP)架构,Synapse SQL 能够执行复杂的查询,并在几秒内提供查询答案,即使处理大量数据也是如此。这得益于 Azure Synapse Analytics 可以将数据处理分布到多个节点上。

Applications connect to the Synapse Analytics MPP engine via a control node in order to perform their tasks. The Synapse SQL query is delivered to the control node, which then performs the necessary conversions to make it compatible with MPP. Sending the various operations to the compute nodes that are able to carry out those operations in parallel allows for improved query performance to be accomplished.

应用程序通过控制节点连接到 Synapse Analytics MPP 引擎以执行任务。Synapse SQL 查询被传送到控制节点,控制节点会执行必要的转换以使其与 MPP 兼容。将各种操作发送到能够并行执行这些操作的计算节点,可以实现改进的查询性能。

203. What is "Dedicated SQL Pools."

什么是“专用 SQL 池”。
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ae18 | 官方: 否 | 付费: 否

答案:

The Dedicated SQL Pool of Azure Synapse Analytics is a collection of technologies that enables you to leverage the platform that is typically utilized for enterprise data warehousing. The provisioning of the resources in the Data Warehousing Units is accomplished with the help of Synapse SQL (DWU). A dedicated SQL pool improves the efficiency of queries and decreases the amount of data storage that is required by storing information in both columnar and relational tables.

Azure Synapse Analytics 的专用 SQL 池是一组技术集合,使您能够利用通常用于企业数据仓库的平台。数据仓库单元(DWU)中的资源配置是借助 Synapse SQL 完成的。专用 SQL 池通过将信息存储在列式和关系表中,提高了查询效率并减少了所需的数据存储量。

204. Where can I get instructions on how to record live data in Azure?

我在哪里可以获得关于如何在 Azure 中记录实时数据的说明?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ae1b | 官方: 否 | 付费: 否

答案:

The Stream Analytics Query Language is a SQL-based query language that has been simplified and is offered as part of the Azure Stream Analytics service. The capabilities of the query language can be expanded by the use of this feature, which allows programmers to define new ML (Machine Learning) functions. The use of Azure Stream Analytics makes it possible to process more than a million events per second, and the findings may be distributed with very little delay.

Stream Analytics 查询语言是一种基于 SQL 的简化查询语言,作为 Azure Stream Analytics 服务的一部分提供。通过该功能,程序员可以定义新的 ML(机器学习)函数,从而扩展查询语言的能力。使用 Azure Stream Analytics 可以每秒处理超过一百万个事件,并且结果可以以极低的延迟进行分发。

205. What are the skills necessary to use the Azure Storage Explorer.

使用 Azure Storage Explorer 需要哪些技能?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ae1e | 官方: 否 | 付费: 否

答案:

It is a handy standalone tool that gives you the ability to command Azure Storage from any computer that is running Windows, Mac OS X, or Linux. A downloaded version of Microsoft's Azure Storage is available to users. Access to several Azure data stores, such as ADLS Gen2, Cosmos DB, Blobs, Queues, and Tables, may be accomplished using its intuitive graphical user interface.

它是一个方便的独立工具,使您能够从任何运行 Windows、Mac OS X 或 Linux 的计算机上管理 Azure 存储。用户可以使用 Microsoft Azure 存储的下载版本。通过其直观的图形用户界面,可以访问多个 Azure 数据存储,如 ADLS Gen2、Cosmos DB、Blobs、Queues 和 Tables。

One of the most compelling features of Azure Storage Explorer is its compatibility with users' environments in which they are unable to access the Azure cloud service.

Azure Storage Explorer 最引人注目的功能之一是其与用户无法访问 Azure 云服务的环境兼容。

206. What is Azure Databricks, and how is it distinct from the more traditional data bricks?

什么是 Azure Databricks,它与更传统的数据砖有何不同?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b3795d58d557c902b9ae21 | 官方: 否 | 付费: 否

答案:

  • An open-source big data processing platform can be obtained through the Apache Spark implementation that is found in Azure. Azure Databricks operates in the stage of the data lifecycle known as the stage of data preparation or processing. First and foremost, the Data Factory is used to import data into Azure, where it is then saved to permanent storage (such as ADLS Gen2 or Blob Storage).
  • In addition, the data is analyzed using Machine Learning (ML) in Databricks, and once the insights have been retrieved, they are loaded into the Analysis Services in Azure, such as Azure Synapse Analytics or Cosmos DB.
  • In the end, insights are visualized with the use of analytical reporting tools like Power BI, and then they are given to end users.

207. State differences between a docker image and a container.

说明 Docker 镜像和容器之间的区别。
  • 知识点: DevOps/云 (主题: ci-cd, devops;标签: interviewbit, ci-cd, topic-specific, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a1158d557c902ba2bb6 | 官方: 否 | 付费: 否

答案:

The following are the differences between Docker images and containers:

以下是 Docker 镜像和容器之间的区别:
Docker Container
Docker 容器
Docker Image
Docker 镜像
Docker Containers are actually Docker Virtual Machines. Essentially, a Docker image is a map of the house, while a Docker container is the actual house itself, so we can call it an instance of an image.
Docker 容器实际上是 Docker 虚拟机。本质上,Docker 镜像是房屋的地图,而 Docker 容器是实际的房屋本身,因此我们可以将其称为镜像的实例。
Images are templates containing instructions for creating containers. With Docker images, containers can be created to run on the Docker platform.
镜像是包含创建容器指令的模板。使用 Docker 镜像,可以创建容器以在 Docker 平台上运行。
It is a real-world entity.
它是一个现实世界的实体。
It is a logical entity.
它是一个逻辑实体。
Using images, containers can be created as many times as necessary.
使用镜像,可以根据需要多次创建容器。
An image is only created once.
镜像只创建一次。
In order for containers to change, the old image must be deleted and a new one must be used to build the containers.
为了使容器发生变化,必须删除旧镜像并使用新镜像来构建容器。
There is no change to the image. It is immutable.
镜像没有变化。它是不可变的。
A container requires computing resources to run since it runs as a Docker Virtual Machine.
容器需要计算资源来运行,因为它作为 Docker 虚拟机运行。
Computing resources aren't required to work with images.
使用镜像不需要计算资源。
Run the "docker build." command to build a container from an image.
运行“docker build。”命令从镜像构建容器。
Creating a Docker image requires writing a script in a Dockerfile.
创建 Docker 镜像需要在 Dockerfile 中编写脚本。
In order to function, containers utilize server information and file systems provided by docker images.
为了正常运行,容器利用 Docker 镜像提供的服务器信息和文件系统。
You can use Docker images to package up applications and pre-configured server environments.
您可以使用 Docker 镜像来打包应用程序和预配置的服务器环境。

208. What is CI/CD pipeline?

什么是 CI/CD 管道?
  • 知识点: DevOps/云 (主题: ci-cd, devops;标签: interviewbit, ci-cd, topic-specific, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a1158d557c902ba2bb9 | 官方: 否 | 付费: 否

答案:

CI/CD is a combination of continuous integration (CI) and continuous delivery (usually) or continuous deployment (rarely) in software engineering. Modern DevOps operations are built on the foundation of continuous integration and continuous delivery, or the CI/CD pipeline. You can automate your software delivery process with a CI/CD pipeline. As part of the pipeline, code is built, tests are run (CI), and a new version of the application is safely deployed (CD). By automating pipelines, manual errors are eliminated, developers are provided with standardized feedback loops, and iterating on products is made more efficient. In DevOps, continuous integration and continuous delivery (CI/CD) are best practices that ensure that code changes are delivered regularly and reliably.

CI/CD是软件工程中持续集成(CI)与持续交付(通常)或持续部署(较少见)的组合。现代DevOps操作建立在持续集成和持续交付(即CI/CD流水线)的基础之上。您可以通过CI/CD流水线自动化软件交付过程。作为流水线的一部分,代码会被构建、测试运行(CI),并安全部署新版本的应用(CD)。通过自动化流水线,可消除手动错误,为开发者提供标准化的反馈循环,并使产品迭代更高效。在DevOps中,持续集成和持续交付(CI/CD)是确保代码更改定期且可靠交付的最佳实践。

209. Explain Docker.

解释一下Docker。
  • 知识点: DevOps/云 (主题: ci-cd, devops;标签: interviewbit, ci-cd, topic-specific, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a1158d557c902ba2bbc | 官方: 否 | 付费: 否

答案:

As its name implies, Docker is a containerization platform that packages applications and their dependencies together in containers to ensure that the applications run seamlessly across multiple environments. Docker containers are entire file systems that contain all the components for running a piece of software: code, system tools, runtime, system libraries, etc. Any software that can be installed on a server can be packaged in a Docker container. It ensures that the software always runs the same in any environment.

顾名思义,Docker是一个容器化平台,它将应用程序及其依赖项打包在容器中,以确保应用在多种环境中无缝运行。Docker容器是完整的文件系统,包含运行软件所需的所有组件:代码、系统工具、运行时、系统库等。任何可在服务器上安装的软件都可以打包到Docker容器中。它确保软件在任何环境中都以相同方式运行。

210. What does containerization mean?

容器化是什么意思?
  • 知识点: DevOps/云 (主题: ci-cd, devops;标签: interviewbit, ci-cd, topic-specific, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a1158d557c902ba2bbf | 官方: 否 | 付费: 否

答案:

As the term implies, containerization entails packaging together software code along with all the necessary components, such as frameworks, libraries, and other dependencies, in their own container. Among the advantages of containerization is that a container can be viewed as a fully packaged computing environment that can be transported in one piece.

如术语所示,容器化涉及将软件代码与所有必要组件(如框架、库和其他依赖项)一起打包在自己的容器中。容器化的优势之一是,容器可被视为一个完全打包的计算环境,可以作为一个整体进行传输。

211. Describe the build stage.

描述构建阶段。
  • 知识点: DevOps/云 (主题: ci-cd, devops;标签: interviewbit, ci-cd, topic-specific, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a1158d557c902ba2bc2 | 官方: 否 | 付费: 否

答案:

The build stage is the first phase of the CI/CD pipeline, and it automates a lot of the steps that a typical developer goes through, such as installing tools, downloading dependencies, and compiling a project. Aside from building code, build automation involves the use of tools to verify that the code is safe and compliant with best practices. In this stage, the buildability and testability of the application are validated.

构建阶段是CI/CD流水线的第一个阶段,它自动化了典型开发人员经历的许多步骤,如安装工具、下载依赖项和编译项目。除了构建代码外,构建自动化还涉及使用工具来验证代码的安全性并符合最佳实践。在此阶段,应用程序的可构建性和可测试性会得到验证。
  • Data Science
  • All Events
  • My Events

212. What is the importance of DevOps?

DevOps的重要性是什么?
  • 知识点: DevOps/云 (主题: ci-cd, devops;标签: interviewbit, ci-cd, topic-specific, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a1158d557c902ba2bc5 | 官方: 否 | 付费: 否

答案:

A robust and flexible product deployment system is essential for organizations to remain competitive in today's digitized world. It is here that the DevOps concept comes into play. - The DevOps approach plays a crucial role in generating agility and mobility across all aspects of software development, from conception to deployment.

在当今数字化世界中,组织要保持竞争力,一个强大且灵活的产品部署系统至关重要。这正是DevOps概念发挥作用的地方。- DevOps方法在从构思到部署的软件开发的各个方面生成敏捷性和灵活性方面发挥着关键作用。
  • Continuously updating and improving products is more streamlined and efficient with DevOps.
  • By implementing DevOps, developers increase their focus on building only code, while automating and consolidating the remaining tasks.
  • In addition to creating better communication and collaboration, combining the engineering and operations teams increase transparency and accessibility.
  • Increasing efficiency speeds up development and reduces coding errors.
  • Programming defects are the most common cause of development failures. DevOps teams will facilitate more releases in a shorter time frame.

213. Can you explain the Git branch?

你能解释一下Git分支吗?
  • 知识点: DevOps/云 (主题: ci-cd, devops;标签: interviewbit, ci-cd, topic-specific, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a1158d557c902ba2bc8 | 官方: 否 | 付费: 否

答案:

The Git branch is essentially a separate line of development that can be used for working on a particular feature, usually during development. The use of branches allows developers to code without interfering with the work of other team members.

Git分支本质上是一个独立的开发线,通常用于在开发期间处理特定功能。使用分支允许开发人员在编码时不干扰其他团队成员的工作。

214. What do you mean by Git Repository?

你所说的Git仓库是指什么?
  • 知识点: DevOps/云 (主题: ci-cd, devops;标签: interviewbit, ci-cd, topic-specific, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a1158d557c902ba2bcb | 官方: 否 | 付费: 否

答案:

As part of the software development process, software projects are organized through Git repositories. In the repository, developers can keep track of all the files and changes in the project, so that they can navigate to any point in its history at any time.

作为软件开发过程的一部分,软件项目通过Git仓库进行组织。在仓库中,开发人员可以跟踪项目中所有文件和更改,以便他们随时导航到其历史中的任何点。

215. Explain Git.

解释一下Git。
  • 知识点: DevOps/云 (主题: ci-cd, devops;标签: interviewbit, ci-cd, topic-specific, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a1158d557c902ba2bce | 官方: 否 | 付费: 否

答案:

It is a distributed version control system that keeps track of changes to code repositories. As projects progress, Git uses a branch-based workflow to streamline team collaboration. Learn More .

它是一个分布式版本控制系统,用于跟踪代码仓库的更改。随着项目的进展,Git使用基于分支的工作流来简化团队协作。了解更多。

216. What is Version Control?

什么是版本控制?
  • 知识点: DevOps/云 (主题: ci-cd, devops;标签: interviewbit, ci-cd, topic-specific, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a1158d557c902ba2bd1 | 官方: 否 | 付费: 否

答案:

Version control involves the use of a central repository where teammates can commit changes to files and sets of files. The purpose of version control is to track every line of code, and to share, review, and synchronize changes between team members. The following are some of the most popular version control tools: - Mercurial

版本控制涉及使用中央仓库,团队成员可以在其中提交对文件和文件集的更改。版本控制的目的是跟踪每一行代码,并在团队成员之间共享、审查和同步更改。以下是一些最流行的版本控制工具:- Mercurial
  • Subversion (SVN)
  • Concurrent Version Systems (CVS)
  • Perforce
  • Bazaar
  • Bitkeeper
  • Fossil

217. Does CI/CD require any programming knowledge?

CI/CD 是否需要任何编程知识?
  • 知识点: DevOps/云 (主题: ci-cd, devops;标签: interviewbit, ci-cd, topic-specific, devops)
  • 类型: technical | 难度: easy | 子类型: coding
  • 分类: fullstack
  • id: 69b37a1158d557c902ba2bd5 | 官方: 否 | 付费: 否

答案:

As far as CI/CD goes, it does not require any programming language or scripting language to be used. It is not necessary to use any programming or scripting language when you use a GUI-based tool like Azure DevOps (ADO). The use of ARM templates in Azure DevOps requires scripting knowledge. Therefore, it depends on the tools and different ways of setting up CI/CD.

就 CI/CD 而言,它不需要使用任何编程语言或脚本语言。当您使用像 Azure DevOps(ADO)这样的基于 GUI 的工具时,不必使用任何编程或脚本语言。在 Azure DevOps 中使用 ARM 模板需要脚本知识。因此,这取决于工具以及设置 CI/CD 的不同方式。

218. What are some popular CI/CD tools?

有哪些流行的 CI/CD 工具?
  • 知识点: DevOps/云 (主题: ci-cd, devops;标签: interviewbit, ci-cd, topic-specific, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a1158d557c902ba2bd8 | 官方: 否 | 付费: 否

答案:

Some popular CI/CD tools are as follows: - Jenkins

一些流行的 CI/CD 工具如下:- Jenkins
  • CircleCI
  • Bamboo
  • Team City
  • Codefresh

Successful Tech Career for FREE!

免费开启成功的科技职业生涯!

Successful Tech Career!

成功的技术职业生涯!

Interview Process

面试流程

CTC & Designation

CTC与职位级别

Projects on the Job

工作项目

Referral System

推荐系统

Try It Out

试试看

2 Lakh+ Roadmaps Created

已生成20万+职业规划

219. State difference between CI/CD vs DevOps.

说明 CI/CD 与 DevOps 之间的区别。
  • 知识点: DevOps/云 (主题: ci-cd, devops;标签: interviewbit, ci-cd, topic-specific, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a1158d557c902ba2bdc | 官方: 否 | 付费: 否

答案:

DevOps and CI/CD differ in the following ways:

DevOps 和 CI/CD 在以下方面有所不同:
CI/CDDevOps
An important feature of CI/CD is its ability to automate and deliver code changes quickly and reliably.
CI/CD 的一个重要特性是其快速可靠地自动化和交付代码更改的能力。
The DevOps methodology is an approach to streamlining the development of products by integrating ideas, practices, processes, and technology.
DevOps 方法论是一种通过整合思想、实践、流程和技术来简化产品开发的方法。
CI/CD involves continuous automation and monitoring of the entire application lifecycle, starting with integration and testing and ending with delivery and deployment. As a result of CI/CD pipelines, organizations are able to minimize bottlenecks during software development and deployment.
CI/CD 涉及对整个应用程序生命周期的持续自动化和监控,从集成和测试开始,到交付和部署结束。通过 CI/CD 管道,组织能够在软件开发和部署期间最大限度地减少瓶颈。
Organizations can implement DevOps methodologies to encourage rapid, continuous deployment of software by setting up their production teams and processes.
组织可以通过设置其生产团队和流程来实施 DevOps 方法论,以鼓励快速、持续的软件部署。
A continuous integration process optimizes the process of building, integrating, and testing code in a development environment. Continuous delivery is concerned with deploying code effectively in production.
持续集成过程优化了在开发环境中构建、集成和测试代码的流程。持续交付关注于在生产环境中有效部署代码。
DevOps promotes minimizing waste and creating scalable, enduring systems.
DevOps 促进减少浪费并创建可扩展、持久的系统。

220. What is a CI/CD Engineer?

什么是 CI/CD 工程师?
  • 知识点: DevOps/云 (主题: ci-cd, devops;标签: interviewbit, ci-cd, topic-specific, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a1158d557c902ba2bdf | 官方: 否 | 付费: 否

答案:

CI/CD engineers can improve the integration and operation of CI/CD tools as well as ensure quality end-to-end integration systems. CI/CD Engineers would keep teams motivated and lead the charge on CI/CD. It is the CI/CD engineer's responsibility to ensure that CI/CD tools and platforms are functioning correctly within an organization. CI/CD engineers understand how to optimize their teams' development and release processes.

CI/CD 工程师可以改进 CI/CD 工具的集成和运维,并确保端到端集成系统的质量。CI/CD 工程师会保持团队积极性,并领导 CI/CD 工作。CI/CD 工程师的职责是确保组织内的 CI/CD 工具和平台正常运行。CI/CD 工程师了解如何优化其团队的开发和发布流程。

221. Explain the benefit of the CI/CD Pipeline.

解释 CI/CD 管道的好处。
  • 知识点: DevOps/云 (主题: ci-cd, devops;标签: interviewbit, ci-cd, topic-specific, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a1158d557c902ba2be3 | 官方: 否 | 付费: 否

答案:

CI/CD brings certain benefits to your organization that will help you decide whether to go ahead with it. Below are some of these benefits: - CI/CD makes it possible to quickly integrate small code changes and test the changes easily.

CI/CD 为您的组织带来了某些好处,这将帮助您决定是否继续采用它。以下是其中一些好处:- CI/CD 使得快速集成小规模代码更改并轻松测试这些更改成为可能。
  • With CI/CD setup, fault isolation is easier and faster. In fault isolation, the system is monitored, the fault occurrence time is determined, and the fault location is determined.
  • With CI/CD, MTTR (mean time to resolution) is reduced since changes are smaller and easier to implement. CI/CD setup increases the reliability of the unit and integration testing.
  • When CI/CD is set up, small code changes are merged very quickly and the code is ready for production very soon.
  • CI improves transparency by detecting early-stage failures like build failures, merge issues, integration test failures, etc.
  • CD facilitates the release of code to end-users.

222. Explain Continuous Integration, Continuous Delivery, and Continuous Deployment.

解释持续集成、持续交付和持续部署。
  • 知识点: DevOps/云 (主题: ci-cd, devops;标签: interviewbit, ci-cd, topic-specific, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a1158d557c902ba2be6 | 官方: 否 | 付费: 否

答案:

  • Continuous Integration (CI): Continuous integration (CI) is the practice of developers regularly integrating their code changes into a repository. Integration may take place several times a day and is verified by automated tests and a build process. As a result, integration challenges can be avoided, bugs can be found early in the development cycle, fixed, and tested iteratively. Every time new commits are integrated into the main branch, continuous integration emphasizes testing automation to make sure the application is not broken.
  • Continuous Delivery (CD): In continuous delivery, all code changes are automatically deployed to the test and/or production environments after the build is complete. Feature additions, configuration changes, and error fixes are some examples of changes. By automating the delivery of new code to users, CD ensures a safe, quick, sustainable process. The CD process also involves some additional checks, like performance tests in production. With Continuous Delivery, deployments are predictable and scheduled regularly.
  • Continuous Deployment (CD): The most critical stage of the pipeline is continuous deployment. By following this practice, you will be able to release all changes that have passed all stages of the production pipeline to your customers on time. Code changes can be made live much more quickly at this stage because there is little human interaction. In addition, continuous deployment allows you to accelerate your feedback loop with your customers and relieve pressure on your team since "release days" are no longer needed. Minutes after finishing their work, developers see their work go live.

223. What is a Cloud Technology?

什么是云技术?
  • 知识点: DevOps/云 (主题: cloud, infrastructure;标签: interviewbit, cloud-computing, topic-specific, cloud, infrastructure)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a1358d557c902ba2cf8 | 官方: 否 | 付费: 否

答案:

A cloud is a combination of services, networks, hardware, storage, and interfaces that helps in delivering computing as a service. It broadly has three users. These are the end-user, business management user, and cloud service, provider. The end-user is the one who uses the services provided by the cloud. The responsibility of the data and the services provided by the cloud is taken by the business management user in the cloud. The one who takes care of or is responsible for the maintenance of the IT assets of the cloud is the cloud service provider. The cloud acts as a common center for its users to fulfill their computing needs.

云是服务、网络、硬件、存储和接口的组合,有助于将计算作为服务提供。它大致有三类用户。这些是最终用户、业务管理用户和云服务提供商。最终用户是使用云提供的服务的用户。云所提供的数据和服务的责任由云中的业务管理用户承担。负责或管理云 IT 资产维护的是云服务提供商。云作为其用户的公共中心来满足他们的计算需求。

224. What are the Cloud Storage Levels?

云存储级别有哪些?
  • 知识点: DevOps/云 (主题: cloud, infrastructure;标签: interviewbit, cloud-computing, topic-specific, cloud, infrastructure)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a1358d557c902ba2cfd | 官方: 否 | 付费: 否

答案:

Cloud storage device mechanisms provide common levels of data storage, such as: - Files – These are collections of data that are grouped into files that are located in folders.

云存储设备机制提供了常见的数据存储级别,例如:- 文件 – 这些是分组为文件的数据集合,位于文件夹中。
  • Blocks – A block is the smallest unit of data that is individually accessible. It is the lowest level of storage and the closest to the hardware.
  • Datasets – Data sets organized into a table-based, delimited, or record format.
  • Objects – Data and the associated metadata with it are organized as web-based resources.
    Each of the above data storage levels is associated with a certain type of technical interface. This interface corresponds to a particular type of cloud storage device and the cloud storage service used to expose its API.

    上述每个数据存储级别都与某种类型的技术接口相关联。该接口对应于特定类型的云存储设备以及用于公开其API的云存储服务。

225. Describe the Cloud Computing Architecture.

描述云计算架构。
  • 知识点: DevOps/云 (主题: cloud, infrastructure;标签: interviewbit, cloud-computing, topic-specific, cloud, infrastructure)
  • 类型: technical | 难度: easy | 子类型: system-design
  • 分类: fullstack
  • id: 69b37a1358d557c902ba2d00 | 官方: 否 | 付费: 否

答案:

The cloud computing architecture is all the components of a cloud model that fit together from an architectural perspective. The figure below depicts how the various cloud services are related to support the needs of businesses. On the left side, the cloud service consumer represents the types of uses of cloud services. No matter what the requirements of the particular constituent are, it is important to bring the right type of services together that can support both internal and external users. Management of the consumers should be able to make services readily available to support the changing business needs. The applications, middleware, infrastructure, and services that are built based on on-premises computing models are within this category. In addition to this, the model depicts the role of a cloud auditor. This organization provides an oversight either by an internal or external group which makes sure that the consumer group meets its obligations.

云计算架构是从架构角度组合在一起的所有云模型组件。下图描绘了各种云服务如何关联以支持业务需求。在左侧,云服务消费者代表了云服务的使用类型。无论特定用户的需求如何,重要的是将正确的服务类型组合在一起,以支持内部和外部用户。消费者管理应能够使服务随时可用,以支持不断变化的业务需求。基于本地计算模型构建的应用程序、中间件、基础设施和服务都属于此类。此外,该模型描绘了云审计师的角色。该组织通过内部或外部团体提供监督,确保消费者团体履行其义务。

The NIST Cloud Reference Model

NIST云参考模型

226. Who are the Cloud service providers in a cloud ecosystem?

在云生态系统中,谁是云服务提供商?
  • 知识点: DevOps/云 (主题: cloud, infrastructure;标签: interviewbit, cloud-computing, topic-specific, cloud, infrastructure)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a1358d557c902ba2d03 | 官方: 否 | 付费: 否

答案:

Cloud service providers are the commercial vendors or companies that create their own capabilities. The commercial vendors sell their services to cloud consumers. In contrast to this, a company might decide to become an internal cloud service provider to its own partners, employees, and customers, either as an internal service or as a profit center. Cloud service providers also create applications or services for such environments.

云服务提供商是创建自身能力的商业供应商或公司。商业供应商向云消费者出售其服务。与此相反,一家公司可能决定成为面向其自身合作伙伴、员工和客户的内部云服务提供商,无论是作为内部服务还是作为利润中心。云服务提供商还会为此类环境创建应用程序或服务。

227. Who are the Direct customers in a cloud ecosystem?

在云生态系统中,谁是直接客户?
  • 知识点: DevOps/云 (主题: cloud, infrastructure;标签: interviewbit, cloud-computing, topic-specific, cloud, infrastructure)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a1358d557c902ba2d06 | 官方: 否 | 付费: 否

答案:

Users who often take advantage of services that your business has created within a cloud environment. The end-users of your service have no idea that you’re using a public or private cloud. As long as the users are concerned, they’re interacting directly with the services and value.

经常利用您的企业在云环境中创建的服务的用户。您的服务的最终用户不知道您正在使用公有云或私有云。只要用户关心,他们就在直接与服务及其价值交互。
  • Data Science
  • All Events
  • My Events

228. Who are the Cloud Consumers in a cloud ecosystem?

在云生态系统中,谁是云消费者?
  • 知识点: DevOps/云 (主题: cloud, infrastructure;标签: interviewbit, cloud-computing, topic-specific, cloud, infrastructure)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a1358d557c902ba2d09 | 官方: 否 | 付费: 否

答案:

The individuals and groups within your business unit that use different types of cloud services to get a task accomplished. A cloud consumer could be a developer using compute services from a public cloud.

在您的业务单位内,使用不同类型的云服务来完成任务的人员和团体。云消费者可能是使用公有云计算服务的开发者。

229. What are the main constituents that are part of the cloud ecosystem?

哪些是云生态系统的主要组成部分?
  • 知识点: DevOps/云 (主题: cloud, infrastructure;标签: interviewbit, cloud-computing, topic-specific, cloud, infrastructure)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a1358d557c902ba2d0c | 官方: 否 | 付费: 否

答案:

The parts of the cloud ecosystem that determine how you view the cloud architecture are: - Cloud consumers

决定您如何看待云架构的云生态系统部分包括:- 云消费者
  • Direct customers
  • Cloud service providers

230. What are the different versions of the cloud?

云有哪些不同的版本?
  • 知识点: DevOps/云 (主题: cloud, infrastructure;标签: interviewbit, cloud-computing, topic-specific, cloud, infrastructure)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a1358d557c902ba2d0f | 官方: 否 | 付费: 否

答案:

There are two primary deployment models of the cloud: Public and Private . - Public Cloud: The set of hardware, networking, storage, services, applications, and interfaces owned and operated by a third party for use by other companies or individuals is the public cloud. These commercial providers create a highly scalable data center that hides the details of the underlying infrastructure from the consumer. Public clouds are viable because they offer many options for computing, storage, and a rich set of other services.

云主要有两种部署模型:公有云和私有云。- 公有云:由第三方拥有和运营的一套硬件、网络、存储、服务、应用程序和接口,供其他公司或个人使用,这就是公有云。这些商业提供商创建了高度可扩展的数据中心,将底层基础设施的细节对消费者隐藏。公有云是可行的,因为它们为计算、存储以及丰富的其他服务提供了许多选项。
  • Private Cloud: The set of hardware, networking, storage, services, applications, and interfaces owned and operated by an organization for the use of its employees, partners, or customers is the private cloud. This can be created and managed by a third party for the exclusive use of one enterprise. The private cloud is a highly controlled environment not open for public consumption. Thus, it sits behind a firewall.
  • Hybrid Cloud: Most companies use a combination of private computing resources and public services, called the hybrid cloud environment.
  • Multi-Cloud: Some companies, in addition, also use a variety of public cloud services to support the different developer and business units – called a multi-cloud environment.

231. What do you mean by cloud delivery models?

您说的云交付模型是什么意思?
  • 知识点: DevOps/云 (主题: cloud, infrastructure;标签: interviewbit, cloud-computing, topic-specific, cloud, infrastructure)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a1358d557c902ba2d12 | 官方: 否 | 付费: 否

答案:

Cloud delivery models are models that represent the computing environments. These are as follows: - Infrastructure as a Service (IaaS): Infrastructure as a Service (IaaS) is the delivery of services, including an operating system, storage, networking, and various utility software elements, on a request basis.

云交付模型是表示计算环境的模型。具体如下:- 基础设施即服务(IaaS):基础设施即服务(IaaS)是按需交付的服务,包括操作系统、存储、网络和各种实用软件元素。
  • Platform as a Service (PaaS): Platform as a Service (PaaS) is a mechanism for combining Infrastructure as a Service with an abstracted set of middleware services, software development, and deployment tools. These allow the organization to have a consistent way to create and deploy applications on a cloud or on-premises environment.
  • Software as a Service (SaaS): Software as a Service (SaaS) is a business application created and hosted by a provider in a multi-tenant model.
  • Function as a Service (FaaS): Function as a Service (FaaS) gives a platform for customers to build, manage and run app functionalities without the difficulty of maintaining infrastructure. One can thus achieve a "serverless" architecture.

232. What are some of the key features of Cloud Computing?

云计算的一些关键特性是什么?
  • 知识点: DevOps/云 (主题: cloud, infrastructure;标签: interviewbit, cloud-computing, topic-specific, cloud, infrastructure)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a1358d557c902ba2d15 | 官方: 否 | 付费: 否

答案:

The following are some of the key features of cloud computing: - Agility: Helps in quick and inexpensive re-provisioning of resources.

以下是云计算的一些关键特性:- 敏捷性:有助于快速且廉价地重新配置资源。
  • Location Independence: This means that the resources can be accessed from everywhere.
  • Multi-Tenancy: The resources are shared amongst a large group of users.
  • Reliability: Resources and computation can be dependable for accessibility.
  • Scalability: Dynamic provisioning of data helps in scaling.

233. What are the various types of transport modes that VMware supports?

VMware支持哪些不同类型的传输模式?
  • 知识点: DevOps/云 (标签: interviewbit, commvault, company-specific)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: general
  • 公司: Commvault
  • id: 69b37a4d58d557c902ba50e9 | 官方: 否 | 付费: 否

答案:

  • Storage Area Networks (SAN): The VMware Backup Host must be installed on a physical computer that has access to a Fibre Channel or iSCSI SAN that contains the virtual discs to be accessed. Because no data must be sent through the production ESX/ESXi host, this is an efficient data channel. In this mode, the vStorage APIs get information about the structure of VMFS LUNs from the vCenter server or the ESX/ESXi host and then read data directly from the SAN or iSCSI LUN where the VMDK is stored.
  • Local Area Network (LAN): The ESX/ESXi host reads data from storage and transmits it via a network to the VMware Backup Host in this mode. Unlike SAN transfer, this kind of transport does require a LAN. The following are some of the benefits of LAN transport:
    Any storage device, whether local storage or NAS, can be used by the ESX/ESXi host.

    任何存储设备,无论是本地存储还是NAS,都可以由ESX/ESXi主机使用。
    Because the VMware Backup server could be a virtual machine, you can use VMware vSphere's resource pool and scheduling capabilities to reduce the backup's performance impact. You can put the VMware Backup Host, for example, in a different resource pool than the production ESX/ESXi hosts, with a lower backup priority.
    由于VMware备份服务器可以是虚拟机,您可以使用VMware vSphere的资源池和调度功能来减少备份的性能影响。例如,您可以将VMware备份主机放在与生产ESX/ESXi主机不同的资源池中,并设置较低的备份优先级。
    If the ESX/ESXi host and the VMware Backup Host are on the same private network, you can use unencrypted data transfer instead of NBDSSL, which is faster and uses fewer resources. You can transport virtual machine data in an encrypted form using NBDSSL if you need to protect sensitive information.
    如果ESX/ESXi主机和VMware备份主机位于同一专用网络上,您可以使用未加密的数据传输而不是NBDSSL,这样速度更快且使用的资源更少。如果您需要保护敏感信息,可以使用NBDSSL以加密形式传输虚拟机数据。
  • HotAdd: When running VMware Backup Host on a Virtual Machine, vStorage APIs can use the ESX/ESXi server's SCSI Hot-add feature to attach the VMDKs of a backed-up Virtual Machine to the VMware Backup Host. It's simple to move a virtual machine around, and it can back up local storage without utilising the LAN, however, this has a higher burden on the physical ESX/ESXi host than using SAN transport mode.
  • Network Attached Storage (NAS): The VSA proxy computer can read data directly from the network file server using NAS.

234. How do you run your script without configuring it in Jenkins?

如何在不配置Jenkins的情况下运行脚本?
  • 知识点: DevOps/云 (标签: interviewbit, dassault-systemes, company-specific)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: general
  • 公司: 达索系统
  • id: 69b37a5b58d557c902ba5bbd | 官方: 否 | 付费: 否

答案:

Jenkins is a popular open-source automation server that can be used to automate the building, testing, and deployment of software. But if you want to run your script without configuring it in Jenkins, there are several ways to do that:

Jenkins是一个流行的开源自动化服务器,可用于自动化软件的构建、测试和部署。但如果您想在不配置Jenkins的情况下运行脚本,有几种方法可以做到:

Run the script directly from the command line: You can simply navigate to the location of the script on your system and execute it using the command line. Depending on the script, you may need to specify certain command-line arguments or environment variables to run it correctly.

直接从命令行运行脚本:您可以简单地导航到系统上脚本的位置,并使用命令行执行它。根据脚本的不同,您可能需要指定某些命令行参数或环境变量才能正确运行它。

Let's say you have a Python script named myscript.py that takes a command-line argument. Here's an example code:

假设您有一个名为myscript.py的Python脚本,它接受一个命令行参数。以下是一个示例代码:

File: myscript.py

import sys

import sys

if len(sys.argv) > 1:

if len(sys.argv) > 1:
print("Hello, " + sys.argv[1] + "!")
print("Hello, " + sys.argv[1] + "!")
else:
否则:
print("Hello, world!")
print("Hello, world!")
This script checks if there is a command-line argument provided and prints a greeting message accordingly. If there is no command-line argument, it defaults to printing "Hello, world!".
此脚本检查是否提供了命令行参数,并相应地打印问候消息。如果没有命令行参数,则默认打印"Hello, world!"。

To run this script from the command line, you can follow these steps: - Open a terminal or command prompt.

要从命令行运行此脚本,您可以按照以下步骤操作: - 打开终端或命令提示符。
  • Navigate to the directory where your myscript.py file is located.
  • Run the command python myscript.py to execute the script.
    If you want to provide a command-line argument to the script, you can pass it after the script name, like this

    如果要向脚本提供命令行参数,可以在脚本名称之后传递,如下所示

python myscript.py Alice

python myscript.py Alice
This will print "Hello, Alice!" to the console. You can replace "Alice" with any other name to customize the greeting message.
这会将 "Hello, Alice!" 打印到控制台。你可以将 "Alice" 替换为任何其他名称来自定义问候消息。

Create a batch file: If you frequently need to run the script, you can create a batch file that automates the process of running the script from the command line. The batch file can include any command-line arguments or environment variables that are required to run the script.

创建批处理文件:如果你经常需要运行该脚本,可以创建一个批处理文件来自动完成从命令行运行脚本的过程。该批处理文件可以包含运行脚本所需的任何命令行参数或环境变量。

Let's say you have a Python script named myscript.py that you want to run frequently. Here's an example batch file that automates the process of running the script:

假设你有一个名为 myscript.py 的 Python 脚本,并且你想经常运行它。以下是一个自动完成运行该脚本过程的批处理文件示例:

@echo off

@echo off
python "C:\path\to\myscript.py" Alice
python "C:\path\to\myscript.py" Alice
pause
pause
This batch file uses the @echo off command to prevent the command prompt from displaying the commands it executes. It then runs the python command to execute the myscript.py script, passing the argument "Alice" to customize the greeting message.
这个批处理文件使用 @echo off 命令来阻止命令提示符显示它执行的命令。然后它运行 python 命令来执行 myscript.py 脚本,并传递参数 "Alice" 来自定义问候消息。

To create this batch file, you can follow these steps:

要创建这个批处理文件,你可以按照以下步骤操作:
  1. Open a text editor, such as Notepad or Sublime Text. 2. Copy and paste the example batch file code above into the text editor. 3. Replace the file path "C:\path\to\myscript.py" with the actual file path to your myscript.py file. 4. Save the file with a .bat extension, such as run_script.bat.

    1. 打开文本编辑器,例如 Notepad 或 Sublime Text。 2. 将上面的示例批处理文件代码复制并粘贴到文本编辑器中。 3. 将文件路径 "C:\path\to\myscript.py" 替换为你的 myscript.py 文件的实际文件路径。 4. 使用 .bat 扩展名保存文件,例如 run_script.bat。

To run the batch file, simply double-click on it in Windows Explorer or from the command line. This will execute the commands in the batch file and run your script with the specified command-line arguments.

要运行该批处理文件,只需在 Windows 资源管理器中双击它,或从命令行运行它。这将执行批处理文件中的命令,并使用指定的命令行参数运行你的脚本。
  1. Create a Shell script: If you are on Linux, you can create a Shell script that automates the process of running the script. Like in batch files, you can include any command-line arguments or environment variables that are required to run the script. 2. Schedule it to run with the built-in scheduler: Depending on your operating system, you can use the built-in scheduler to schedule your script to run at specific times. For example, on Windows, you can use the Task Scheduler, and on Linux, you can use CRON jobs. 3. Use an external scheduler like Windows Task Scheduler: you can use an external scheduler to run your script at a specific time or intervals.

    1. 创建 Shell 脚本:如果你使用的是 Linux,可以创建一个 Shell 脚本来自动完成运行该脚本的过程。与批处理文件一样,你可以包含运行脚本所需的任何命令行参数或环境变量。 2. 使用内置调度器安排运行:根据你的操作系统,你可以使用内置调度器来安排脚本在特定时间运行。例如,在 Windows 上,你可以使用 Task Scheduler;在 Linux 上,你可以使用 CRON 作业。 3. 使用外部调度器,例如 Windows Task Scheduler:你可以使用外部调度器在特定时间或按间隔运行你的脚本。

Keep in mind that in all of the above-mentioned methods, you will need to ensure that any dependencies or environment variables that the script requires are properly configured on the system where the script is running.

请记住,在上述所有方法中,你都需要确保脚本所需的任何依赖项或环境变量都已在运行该脚本的系统上正确配置。

These are some of the most common ways to run a script without configuring it in Jenkins. The exact steps will depend on the script and the environment in which it is being run.

这些是在不通过 Jenkins 配置的情况下运行脚本的一些最常见方法。具体步骤将取决于脚本以及运行它的环境。

235. Describe the lifecycle of a Docker Container.

描述 Docker 容器的生命周期。
  • 知识点: DevOps/云 (标签: interviewbit, dassault-systemes, company-specific)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: general
  • 公司: 达索系统
  • id: 69b37a5b58d557c902ba5bf6 | 官方: 否 | 付费: 否

答案:

The lifecycle of a Docker container includes several stages, from the creation of the container to its removal as shown in the image below:

Docker 容器的生命周期包括几个阶段,从容器创建到其删除,如下图所示:

Let's see what these stages are:

让我们看看这些阶段是什么:
  1. Create: The container is created from an image using the docker run command. A container is a running instance of an image. 2. Start: The container is started, and its process is executed. This can be done using the docker start command.

    1. 创建(Create):使用 docker run 命令从镜像创建容器。容器是镜像的运行实例。 2. 启动(Start):容器被启动,其进程被执行。这可以使用 docker start 命令完成。

Syntax:

语法:

docker  start <container_id>

docker start <container_id>
Pause: The container can be paused using the docker pause command. This will pause all processes running inside the container, but the container will still be running and will not consume any resources.
暂停(Pause):可以使用 docker pause 命令暂停容器。这将暂停容器内运行的所有进程,但容器仍处于运行状态且不会消耗任何资源。

Syntax:

语法:

docker pause [OPTIONS] CONTAINER [CONTAINER...]

docker pause [OPTIONS] CONTAINER [CONTAINER...]
Unpause: The container can be unpaused using the docker unpause command, after being paused, all processes inside the container will continue running where they left off.
取消暂停:容器被暂停后,可以使用 docker unpause 命令取消暂停,容器内的所有进程将继续从暂停的地方运行。

Syntax:

语法:

docker unpause [OPTIONS] CONTAINER [CONTAINER...]

docker unpause [OPTIONS] CONTAINER [CONTAINER...]
Stop: The container can be stopped using the docker stop command. This will stop all processes running inside the container, but the container will still be present on the host, and its configuration and data will be retained.
停止:可以使用 docker stop 命令停止容器。这将停止容器内运行的所有进程,但容器仍会存在于主机上,其配置和数据将被保留。

Syntax:

语法:

docker stop [OPTIONS] CONTAINER [CONTAINER...]

docker stop [OPTIONS] CONTAINER [CONTAINER...]
Restart: The container can be restarted using the docker restart command. This will stop and start the container, which can be useful if the container or its application requires a restart.
重启:可以使用 docker restart 命令重启容器。这将停止并启动容器,当容器或其应用程序需要重启时会很有用。

Syntax:

语法:

docker restart [OPTIONS] CONTAINER [CONTAINER...]

docker restart [OPTIONS] CONTAINER [CONTAINER...]
Kill: The container can be killed using the docker kill command. This will stop the container immediately and forcefully, it's useful if the container process becomes unresponsive.
终止:可以使用 docker kill 命令终止容器。这将立即强制停止容器,当容器进程无响应时会很有用。

Syntax:

语法:

docker kill [OPTIONS] CONTAINER [CONTAINER...]

docker kill [OPTIONS] CONTAINER [CONTAINER...]
Remove: The container can be removed using the docker rm command. This will remove the container and its data, including its configuration and all files. Once a container is removed, all its data will be lost.
移除:可以使用 docker rm 命令移除容器。这将移除容器及其数据,包括其配置和所有文件。一旦容器被移除,其所有数据都将丢失。

Syntax:

语法:

docker rm [OPTIONS] CONTAINER [CONTAINER...]

docker rm [OPTIONS] CONTAINER [CONTAINER...]
On every command syntax [OPTIONS] can include: - -s or --signal: Specify the signal to send to the container. The default signal is SIGKILL.
在每个命令语法中,[OPTIONS] 可以包括:- -s 或 --signal:指定要发送到容器的信号。默认信号是 SIGKILL。
  • -f or --force: Force the container to stop by sending a SIGKILL signal after a grace period.
    And [CONTAINER…] is the name or ID of one or more.

    而 [CONTAINER…] 是一个或多个容器的名称或 ID。

It's worth noting that a container can also be excited, this happens when the main process inside the container exits. The state can be seen using the docker ps -a command. An exited container can be removed or restarted depending on the desired outcome.

值得注意的是,容器也可能处于已退出状态,这发生在容器内的主进程退出时。可以使用 docker ps -a 命令查看该状态。已退出的容器可以根据所需结果被删除或重新启动。

236. What is DevOps?

什么是DevOps?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: intellipaat, devops, topic-specific, devops, ci-cd)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7158d557c902ba6b11 | 官方: 否 | 付费: 否

答案:

Devops is often confused with a tool or a technology. However it is none of these, Devops is a set of practices that help development and operations teams to work together and increase collaboration. The name itself suggests Developer + Operations i.e DevOps.

DevOps常被误认为是一种工具或技术。然而它两者都不是,DevOps是一套帮助开发团队和运维团队协同工作、增强协作的实践。名称本身暗示了开发者+运维,即DevOps。
To implement the said set of practices in DevOps, one uses a suite of tools such as Docker, Kubernetes, git, ansible etc.
要实施上述DevOps实践,需要使用一系列工具,如Docker、Kubernetes、git、ansible等。

237. How do you define the role of a DevOps engineer?

您如何定义DevOps工程师的角色?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: intellipaat, devops, topic-specific, devops, ci-cd)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7158d557c902ba6b15 | 官方: 否 | 付费: 否

答案:

A DevOps engineer is responsible for increasing collaboration between the development team and the IT operations team using a set of principles or tools. Through these principles, they implement the following things:

DevOps工程师负责通过一系列原则或工具,增强开发团队与IT运维团队之间的协作。通过这些原则,他们实施以下内容:
  • Automate Processes by creating CICD pipelines
  • Manage Infrastructure on cloud or on-premise
  • Monitor Performance of deployed applications
  • Ensure Security
  • Improve Collaboration

238. How does DevOps differ from traditional software development methodologies?

DevOps与传统软件开发方法有何不同?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: intellipaat, devops, topic-specific, devops, ci-cd)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7158d557c902ba6b18 | 官方: 否 | 付费: 否

答案:

Traditional DevelopmentDevOpsSoftware is shipped once all the features are developed, making the development time longer.Software features are divided into various phases, and after each phase software is released. For eg. v1.0, v1.1, v1.2 etc.No automation between teams for collaboration.Automation is present, for example, configuration management, automated test cases, containerization etc. This significantly decreases the dependency between teams and makes deployment times faster.Development and Operations team works in silos.Increased collaboration between teams, promoting the culture of shared responsibilityScaling happens once the software is live, since it’s not planned or automated, leads to problems.Scaling is automated using tools for Infrastructure as a Code(eg. terraform), making scaling extremely easy.

传统开发DevOps软件在所有功能开发完成后才发布,导致开发时间较长。软件功能被划分为多个阶段,每完成一个阶段即发布软件。例如v1.0、v1.1、v1.2等。团队间协作无自动化。存在自动化,例如配置管理、自动化测试用例、容器化等。这显著减少了团队间的依赖,并加快了部署时间。开发和运维团队各自独立工作。团队间协作增强,促进了共同责任的文化。扩展在软件上线后才进行,由于缺乏规划或自动化,易出现问题。使用基础设施即代码工具(如terraform)实现自动化扩展,使扩展变得极其容易。

239. What are CI/CD Pipelines?

什么是CI/CD流水线?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: intellipaat, devops, topic-specific, devops, ci-cd)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7158d557c902ba6b1b | 官方: 否 | 付费: 否

答案:

CI/CD Pipelines are Continuous Integration and Continuous Deployment Pipelines, which help in deploying software once it is submitted to the version control system. It deploys the software by going following various automated stages which not only makes the deployment of software fast, but also bug-free!

CI/CD流水线即持续集成和持续部署流水线,帮助在软件提交到版本控制系统后实现部署。它通过经历各种自动化阶段来部署软件,这不仅使软件部署快速,而且无缺陷!

Here are the different stages involved in a CICD Pipeline:

以下是CICD流水线中涉及的不同阶段:

240. What are the different phases in DevOps?

DevOps中有哪些不同阶段?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: intellipaat, devops, topic-specific, devops, ci-cd)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7158d557c902ba6b1e | 官方: 否 | 付费: 否

答案:

Plan: Requirements are gathered from the stakeholders, and the first set of features are decided, which will be rolled out in the first release.

计划:从利益相关者处收集需求,并决定第一批功能,这些功能将在首次发布中推出。
Code: Requirements are broken down into code tasks, and assigned to developers. Developers, once done with the code upload it on Github.
编码:将需求分解为代码任务,并分配给开发人员。开发人员完成代码后,将其上传至Github。
Build: In this stage, the code is built into an executable
构建:在此阶段,代码被编译成可执行文件
Test: The executable is then moved to a test server and tested against automated test cases.
测试:然后,可执行文件被转移到测试服务器上,并通过自动化测试用例进行测试。
Integration: The integration is done via CI/CD pipelines created by tools like Jenkins. Their job is to move the artifacts between one stage to another. For example, from code to build, from build to test, etc.
集成:集成是通过Jenkins等工具创建的CI/CD流水线完成的,其任务是将工件从一个阶段移动到另一个阶段。例如,从代码到构建,从构建到测试等。
Deploy & Operate: This stage combines configuration management, containerisation and deployment to production. All these tasks are automated.
部署与运维:此阶段结合了配置管理、容器化和生产环境部署,所有这些任务都是自动化的。
Monitor: Finally once the tools are deployed, they are monitored for any anomalies continuously by monitoring tools. Any feedback received from monitoring tools, is then forwarded to the Plan stage again.
监控:最后,一旦工具部署完成,就会持续通过监控工具对其异常进行监控。来自监控工具的任何反馈,随后都会被转发回规划阶段。

241. How does HTTP/HTTPS work?

HTTP/HTTPS 是如何工作的?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: intellipaat, devops, topic-specific, devops, ci-cd)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7158d557c902ba6b21 | 官方: 否 | 付费: 否

答案:

HTTP or Hypertext Transfer Protocol, works in a client–server model like most other protocols. HTTP provides a way to interact with web resources by transmitting hypertext messages between clients (browsers) and servers.

HTTP(超文本传输协议)与大多数其他协议一样,采用客户端-服务器模型工作。HTTP通过在客户端(浏览器)和服务器之间传输超文本消息,提供了一种与Web资源交互的方式。

HTTPS is similar to HTTP, however, HTTPS is a secured version of HTTP. It encrypts the data between your machine and the server.

HTTPS与HTTP相似,但HTTPS是HTTP的安全版本,它会加密您的机器与服务器之间的数据。

242. What is CI and CD? What is its purpose?

什么是CI和CD?其目的是什么?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: intellipaat, devops, topic-specific, devops, ci-cd)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7158d557c902ba6b24 | 官方: 否 | 付费: 否

答案:

DevOps Pipeline comprises two stages: Continuous Integration and Continuous Deployment.

DevOps流水线包含两个阶段:持续集成和持续部署。

Continuous Integration comprises 3 parts: Build, Test, and Artifact versioning.

持续集成包含三个部分:构建、测试和工件版本管理。

In Continuous Integration, developers integrate their code into a single repository, which is then thoroughly tested, and after passing all the tests, it is built into an artifact. The artifact is again built and automatically tested, and if it passes the tests, it is uploaded to an Artifact repository like Nexus or Artifactory.

在持续集成中,开发人员将代码集成到单一仓库中,然后进行彻底测试,通过所有测试后,将其构建为一个工件。工件再次被构建并自动测试,如果通过测试,则上传到Nexus或Artifactory等工件仓库。

From here, continuous deployment starts, its job is to deploy the latest artifacts to a staging repository and finally to a production server.

从这里开始,持续部署启动,其任务是将最新工件部署到预发布仓库,最终部署到生产服务器。

Are you ready to take a challenge to answer the utmost asked interview questions?

您准备好迎接挑战,回答最常被问及的面试问题了吗?

Take a quick Quiz to check it out

通过快速测验来检验一下吧

Take a Quiz

参加测验

243. How do you measure the success of DevOps implementation?

你如何衡量DevOps实施的成功?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: intellipaat, devops, topic-specific, devops, ci-cd)
  • 类型: technical | 难度: easy | 子类型: coding
  • 分类: fullstack
  • id: 69b37a7158d557c902ba6b27 | 官方: 否 | 付费: 否

答案:

To measure the success of a DevOps implementation following indicators can help:

以下指标可以帮助衡量DevOps实施的成功:
  • Deployment Frequency
  • Time taken from code commit to deployment on production
  • Change failure rate
  • Mean Time to Recovery
  • Availability and Uptime
  • Automation Levels
  • Code Quality Metrics

244. What is continuous delivery?

什么是持续交付?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: intellipaat, devops, topic-specific, devops, ci-cd)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7158d557c902ba6b2b | 官方: 否 | 付费: 否

答案:

Continuous delivery is a software development practice that automates the release process. Its primary objective is to ensure that software is consistently prepared for deployment to production. This means that code changes are frequently integrated, built, tested, and deployed in a repeatable and automated manner. It helps the teams to reduce the time and effort required to release software while maintaining high quality and reliability. With continuous delivery, teams can release software more frequently and confidently.

持续交付是一种自动化发布流程的软件开发实践。其主要目标是确保软件始终准备好部署到生产环境。这意味着代码更改会以可重复和自动化的方式频繁集成、构建、测试和部署。它帮助团队减少发布软件所需的时间和精力,同时保持高质量和可靠性。通过持续交付,团队可以更频繁、更有信心地发布软件。

245. What is the difference between continuous deployment and continuous delivery?

持续部署和持续交付之间有什么区别?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: intellipaat, devops, topic-specific, devops, ci-cd)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7158d557c902ba6b2e | 官方: 否 | 付费: 否

答案:

Continuous deployment is a software development practice where code changes are automatically deployed to production as soon as they pass the necessary tests and checks. Continuous delivery, on the other hand, focuses on automating the software release process but allows for manual intervention to determine when and how code changes are deployed to production.

持续部署是一种软件开发实践,其中代码更改在通过必要测试和检查后立即自动部署到生产环境。相反,持续交付侧重于自动化软件发布流程,但允许人工干预来决定代码更改何时以及如何部署到生产环境。

While continuous deployment is fully automated, continuous delivery provides the flexibility to choose when and how to release code changes, even though the process is automated.

持续部署是完全自动化的,而持续交付即使流程自动化,也提供了选择何时以及如何发布代码更改的灵活性。

246. What is infrastructure as code?

什么是基础设施即代码?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: intellipaat, devops, topic-specific, devops, ci-cd)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7158d557c902ba6b32 | 官方: 否 | 付费: 否

答案:

Infrastructure as code (IaC) is a practice where infrastructure is defined and managed using code. Instead of manually configuring servers and infrastructure components, IaC allows teams to automate the provisioning, configuration, and deployment of infrastructure using code.

基础设施即代码(IaC)是一种使用代码定义和管理基础设施的实践。无需手动配置服务器和基础设施组件,IaC允许团队通过代码自动化基础设施的供应、配置和部署。
This approach helps teams achieve consistency, reduce errors, and increase speed and efficiency. IaC also enables teams to version control their infrastructure code, making it easier to track changes and collaborate.
这种方法帮助团队实现一致性,减少错误,并提高速度和效率。IaC还使团队能够对基础设施代码进行版本控制,从而更容易跟踪更改和协作。

247. Is DevOps a tool?

DevOps是一个工具吗?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: intellipaat, devops, topic-specific, devops, ci-cd)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7158d557c902ba6b36 | 官方: 否 | 付费: 否

答案:

DevOps is not a tool or a technology, it is a set of practices aimed at breaking down silos between the Development and Operations team.

DevOps不是一个工具或技术,它是一套旨在打破开发和运维团队之间孤岛的实践。

248. What is a DevOps pipeline?

什么是DevOps流水线?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: intellipaat, devops, topic-specific, devops, ci-cd)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7158d557c902ba6b3a | 官方: 否 | 付费: 否

答案:

DevOps is a sequence of steps through which an application starting from the code stage is transformed into a full-fledged application on the production server. The code goes through various stages to get deployed on the production server.

DevOps是从代码阶段开始,将应用程序转换为生产服务器上完整应用的步骤序列。代码经历各个阶段以部署到生产服务器。

249. How would you ensure your DevOps pipeline is scalable and can handle increased demand?

你如何确保你的DevOps流水线可扩展并能处理增加的需求?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: intellipaat, devops, topic-specific, devops, ci-cd)
  • 类型: technical | 难度: easy | 子类型: scenario
  • 分类: fullstack
  • id: 69b37a7158d557c902ba6b3d | 官方: 否 | 付费: 否

答案:

Here are a few things that you can do:

以下是你可以做的一些事情:
  • Leverage Cloud Infrastructure
  • Adopt Microservices Architecture
  • Containerization and Orchestration
  • Parallelise CI/CD Pipelines
  • Cache dependencies and builds
  • Apply Infrastructure as Code

250. Why DevOps has become famous?

为什么DevOps变得如此出名?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: interviewbit, devops, topic-specific, ci-cd)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7258d557c902ba6c6a | 官方: 否 | 付费: 否

答案:

These days, the market window of products has reduced drastically. We see new products almost daily. This provides a myriad of choices to consumers but it comes at a cost of heavy competition in the market. Organizations cant afford to release big features after a gap. They tend to ship off small features as releases to the customers at regular intervals so that their products don't get lost in this sea of competition.

如今,产品的市场窗口期已大幅缩短。我们几乎每天都能看到新产品。这为消费者提供了众多选择,但也带来了激烈的市场竞争。组织无法承受在间隔很久后才发布大型功能。他们倾向于定期向客户以小功能作为版本发布,以便产品不会在这场竞争海洋中迷失。

Customer satisfaction is now a motto to the organizations which has also become the goal of any product for its success. In order to achieve this, companies need to do the below things: - Frequent feature deployments

客户满意度现已成为组织的座右铭,也成为任何产品成功的最终目标。为了实现这一目标,公司需要做到以下几点:- 频繁的功能部署
  • Reduce time between bug fixes
  • Reduce failure rate of releases
  • Quicker recovery time in case of release failures.
  • In order to achieve the above points and thereby achieving seamless product delivery, DevOps culture acts as a very useful tool. Due to these advantages, multi-national companies like Amazon and Google have adopted the methodology which has resulted in their increased performance.

251. Who is a DevOps engineer?

什么是DevOps工程师?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: interviewbit, devops, topic-specific, ci-cd)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7258d557c902ba6c6d | 官方: 否 | 付费: 否

答案:

A DevOps engineer is a person who works with both software developers and the IT staff to ensure smooth code releases. They are generally developers who develop an interest in the deployment and operations domain or the system admins who develop a passion for coding to move towards the development side.

DevOps工程师是与软件开发人员和IT人员协作,确保代码顺利发布的人。他们通常是开发人员,对部署和运维领域产生兴趣,或是系统管理员,对编码产生热情并向开发方向转型。

In short, a DevOps engineer is someone who has an understanding of SDLC (Software Development Lifecycle) and of automation tools for developing CI/CD pipelines.

简而言之,DevOps工程师是理解SDLC(软件开发生命周期)以及开发CI/CD流水线的自动化工具的人。

252. What is the use of SSH?

SSH有什么用途?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: interviewbit, devops, topic-specific, ci-cd)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7258d557c902ba6c70 | 官方: 否 | 付费: 否

答案:

SSH stands for Secure Shell and is an administrative protocol that lets users have access and control the remote servers over the Internet to work using the command line.

SSH代表安全外壳(Secure Shell),是一种管理协议,让用户能够通过互联网访问和控制远程服务器,并使用命令行进行操作。

SSH is a secured encrypted version of the previously known Telnet which was unencrypted and not secure. This ensured that the communication with the remote server occurs in an encrypted form.

SSH是先前已知的Telnet的安全加密版本,而Telnet未加密且不安全。这确保了与远程服务器的通信以加密形式进行。

SSH also has a mechanism for remote user authentication, input communication between the client and the host, and sending the output back to the client.

SSH还具有远程用户认证、客户端与主机之间的输入通信以及将输出发送回客户端的机制。

253. What is the importance of having configuration management in DevOps?

在DevOps中,配置管理的重要性是什么?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: interviewbit, devops, topic-specific, ci-cd)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7258d557c902ba6c78 | 官方: 否 | 付费: 否

答案:

Configuration management (CM) helps the team in the automation of time-consuming and tedious tasks thereby enhancing the organization’s performance and agility.

配置管理(CM)帮助团队自动化耗时且繁琐的任务,从而提升组织的性能和敏捷性。

It also helps in bringing consistency and improving the product development process by employing means of design streamlining, extensive documentation, control, and change implementation during various phases/releases of the project.

它还有助于通过在设计简化、广泛文档记录、控制以及在项目各个阶段/版本中的变更实施方面采用手段,来实现一致性并改进产品开发过程。

254. What does CAMS stand for in DevOps?

在DevOps中,CAMS代表什么?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: interviewbit, devops, topic-specific, ci-cd)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7258d557c902ba6c7b | 官方: 否 | 付费: 否

答案:

CAMS stands for Culture, Automation, Measurement, and Sharing. It represents the core deeds of DevOps.

CAMS代表文化(Culture)、自动化(Automation)、测量(Measurement)和共享(Sharing)。它代表了DevOps的核心行为。

255. What is Continuous Integration (CI)?

什么是持续集成(CI)?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: interviewbit, devops, topic-specific, ci-cd)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7258d557c902ba6c7e | 官方: 否 | 付费: 否

答案:

Continuous Integration (CI) is a software development practice that makes sure developers integrate their code into a shared repository as and when they are done working on the feature. Each integration is verified by means of an automated build process that allows teams to detect problems in their code at a very early stage rather than finding them after the deployment.

持续集成(CI)是一种软件开发实践,旨在确保开发人员在完成功能开发后及时将代码集成到共享代码库中。每次集成都通过自动化构建过程进行验证,使团队能够在代码开发初期发现问题,而不是在部署后才察觉。

Continuous Integration (CI)

持续集成(CI)

Based on the above flow, we can have a brief overview of the CI process. - Developers regularly check out code into their local workspaces and work on the features assigned to them.

基于上述流程,我们可以对CI过程有一个简要概述。- 开发人员定期将代码检出到本地工作区,并处理分配给他们各自的功能。
  • Once they are done working on it, the code is committed and pushed to the remote shared repository which is handled by making use of effective version control tools like git.
  • The CI server keeps track of the changes done to the shared repository and it pulls the changes as soon as it detects them.
  • The CI server then triggers the build of the code and runs unit and integration test cases if set up.
  • The team is informed of the build results. In case of the build failure, the team has to work on fixing the issue as early as possible, and then the process repeats.

256. Why is Continuous Integration needed?

为什么需要持续集成?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: interviewbit, devops, topic-specific, ci-cd)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7258d557c902ba6c81 | 官方: 否 | 付费: 否

答案:

By incorporating Continuous Integration for both development and testing, it has been found that the software quality has improved and the time taken for delivering the features of the software has drastically reduced.

通过在开发和测试中引入持续集成,研究发现软件质量得到了提升,同时交付软件功能所需的时间大幅减少。

This also allows the development team to detect and fix errors at the initial stage as each and every commit to the shared repository is built automatically and run against the unit and integration test cases.

这也使开发团队能够在初始阶段检测并修复错误,因为对共享代码库的每次提交都会自动构建,并针对单元测试和集成测试用例运行。

257. What is Continuous Testing (CT)?

什么是持续测试(CT)?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: interviewbit, devops, topic-specific, ci-cd)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7258d557c902ba6c84 | 官方: 否 | 付费: 否

答案:

Continuous Testing (CT) is that phase of DevOps which involves the process of running the automated test cases as part of an automated software delivery pipeline with the sole aim of getting immediate feedback regarding the quality and validation of business risks associated with the automated build of code developed by the developers.

持续测试(CT)是DevOps中的一个阶段,涉及在自动化软件交付管道中运行自动化测试用例的过程,其唯一目的是获得有关开发人员编写的代码自动构建所关联的业务风险的验证和质量即时反馈。

Using this phase will help the team to test each build continuously (as soon as the code developed is pushed) thereby giving the dev teams a chance to get instant feedback on their work and ensuring that these problems don’t arrive in the later stages of SDLC cycle.

使用此阶段有助于团队持续测试每次构建(一旦开发的代码被推送即可进行),从而为开发团队提供对其工作的即时反馈机会,并确保这些问题不会出现在SDLC周期的后期阶段。

Doing this would drastically speed up the workflow followed by the developer to develop the project due to the lack of manual intervention steps to rebuild the project and run the automated test cases every time the changes are made.

这样做将大幅加快开发人员遵循的工作流程来开发项目,因为无需手动介入步骤来重建项目并在每次进行更改时运行自动化测试用例。

258. What are the three important DevOps KPIs?

哪三个DevOps关键绩效指标(KPI)很重要?
  • 知识点: DevOps/云 / 行为与软技能 (主题: devops, ci-cd;标签: interviewbit, devops, topic-specific, ci-cd)
  • 类型: behavioral | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7258d557c902ba6c87 | 官方: 否 | 付费: 否

答案:

Few KPIs of DevOps are given below: - Reduce the average time taken to recover from a failure.

以下列出了几个DevOps KPI:- 减少从故障中恢复所需的平均时间。
  • Increase Deployment frequency in which the deployment occurs.
  • Reduced Percentage of failed deployments.

259. How many Docker components are there?

有多少个Docker组件?
  • 知识点: DevOps/云 (主题: docker, containers, devops;标签: interviewbit, docker, topic-specific, containers, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a9f58d557c902ba8723 | 官方: 否 | 付费: 否

答案:

There are three docker components, they are - Docker Client, Docker Host, and Docker Registry. - Docker Client: This component performs “build” and “run” operations for the purpose of opening communication with the docker host.

有三个Docker组件,它们是 - Docker客户端、Docker主机和Docker注册表。- Docker客户端:此组件执行“构建”和“运行”操作,以开启与Docker主机的通信。
  • Docker Host: This component has the main docker daemon and hosts containers and their associated images. The daemon establishes a connection with the docker registry.
  • Docker Registry: This component stores the docker images. There can be a public registry or a private one. The most famous public registries are Docker Hub and Docker Cloud.

260. What are docker images?

什么是Docker镜像?
  • 知识点: DevOps/云 (主题: docker, containers, devops;标签: interviewbit, docker, topic-specific, containers, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a9f58d557c902ba8727 | 官方: 否 | 付费: 否

答案:

They are executable packages(bundled with application code & dependencies, software packages, etc.) for the purpose of creating containers. Docker images can be deployed to any docker environment and the containers can be spun up there to run the application.

它们是可执行包(捆绑了应用程序代码和依赖项、软件包等),旨在创建容器。Docker镜像可以部署到任何docker环境中,并可在那里启动容器来运行应用程序。

261. What is a DockerFile?

什么是 DockerFile?
  • 知识点: DevOps/云 (主题: docker, containers, devops;标签: interviewbit, docker, topic-specific, containers, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a9f58d557c902ba872b | 官方: 否 | 付费: 否

答案:

  • It is a text file that has all commands which need to be run for building a given image.

262. Can you tell what is the functionality of a hypervisor?

你能说明一下虚拟机监控程序的功能是什么吗?
  • 知识点: DevOps/云 (主题: docker, containers, devops;标签: interviewbit, docker, topic-specific, containers, devops)
  • 类型: technical | 难度: easy | 子类型: coding
  • 分类: fullstack
  • id: 69b37a9f58d557c902ba872e | 官方: 否 | 付费: 否

答案:

A hypervisor is a software that makes virtualization happen because of which is sometimes referred to as the Virtual Machine Monitor. This divides the resources of the host system and allocates them to each guest environment installed.

虚拟机监控程序是一种使虚拟化得以实现的软件,因此有时也被称为虚拟机监视器。它会划分主机系统的资源,并将其分配给每个已安装的客户机环境。
  • This means that multiple OS can be installed on a single host system. Hypervisors are of 2 types:1. Native Hypervisor: This type is also called a Bare-metal Hypervisor and runs directly on the underlying host system which also ensures direct access to the host hardware which is why it does not require base OS.2. Hosted Hypervisor: This type makes use of the underlying host operating system which has the existing OS installed.

263. What can you tell about Docker Compose?

关于 Docker Compose,你能说些什么?
  • 知识点: DevOps/云 (主题: docker, containers, devops;标签: interviewbit, docker, topic-specific, containers, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a9f58d557c902ba8733 | 官方: 否 | 付费: 否

答案:

It is a YAML file consisting of all the details regarding various services, networks, and volumes that are needed for setting up the Docker-based application. So, docker-compose is used for creating multiple containers, host them and establish communication between them. For the purpose of communication amongst the containers, ports are exposed by each and every container.

它是一个 YAML 文件,包含设置基于 Docker 的应用程序所需的各种服务、网络和卷的所有详细信息。因此,docker-compose 用于创建多个容器、托管它们并建立它们之间的通信。为了实现容器间的通信,每个容器都会暴露端口。
  • Data Science
  • All Events
  • My Events

264. Can you tell something about docker namespace?

你能介绍一下 docker 命名空间吗?
  • 知识点: DevOps/云 (主题: docker, containers, devops;标签: interviewbit, docker, topic-specific, containers, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a9f58d557c902ba8736 | 官方: 否 | 付费: 否

答案:

A namespace is basically a Linux feature that ensures OS resources partition in a mutually exclusive manner. This forms the core concept behind containerization as namespaces introduce a layer of isolation amongst the containers. In docker, the namespaces ensure that the containers are portable and they don't affect the underlying host. Examples for namespace types that are currently being supported by Docker – PID, Mount, User, Network, IPC.

命名空间基本上是一种 Linux 特性,它确保操作系统资源以互斥的方式分区。这构成了容器化的核心概念,因为命名空间在容器之间引入了隔离层。在 Docker 中,命名空间确保容器是可移植的,并且不会影响底层主机。目前 Docker 支持的命名空间类型示例包括 PID、Mount、User、Network、IPC。

265. What is the docker command that lists the status of all docker containers?

列出所有 docker 容器状态的 docker 命令是什么?
  • 知识点: DevOps/云 (主题: docker, containers, devops;标签: interviewbit, docker, topic-specific, containers, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a9f58d557c902ba873c | 官方: 否 | 付费: 否

答案:

In order to get the status of all the containers, we run the below command: docker ps -a

要获取所有容器的状态,我们运行以下命令:docker ps -a

266. On what circumstances will you lose data stored in a container?

在什么情况下你会丢失存储在容器中的数据?
  • 知识点: DevOps/云 (主题: docker, containers, devops;标签: interviewbit, docker, topic-specific, containers, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a9f58d557c902ba8740 | 官方: 否 | 付费: 否

答案:

The data of a container remains in it until and unless you delete the container.

容器的数据会一直保留在其中,除非你删除该容器。

267. What is docker image registry?

什么是 docker 镜像仓库?
  • 知识点: DevOps/云 (主题: docker, containers, devops;标签: interviewbit, docker, topic-specific, containers, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a9f58d557c902ba8743 | 官方: 否 | 付费: 否

答案:

  • A Docker image registry, in simple terms, is an area where the docker images are stored. Instead of converting the applications to containers each and every time, a developer can directly use the images stored in the registry.
  • This image registry can either be public or private and Docker hub is the most popular and famous public registry available.

268. Can you tell something about docker container?

你能介绍一下 docker 容器吗?
  • 知识点: DevOps/云 (主题: docker, containers, devops;标签: interviewbit, docker, topic-specific, containers, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a9f58d557c902ba8746 | 官方: 否 | 付费: 否

答案:

  • In simplest terms, docker containers consist of applications and all their dependencies.
  • They share the kernel and system resources with other containers and run as isolated systems in the host operating system.
  • The main aim of docker containers is to get rid of the infrastructure dependency while deploying and running applications. This means that any containerized application can run on any platform irrespective of the infrastructure being used beneath.
  • Technically, they are just the runtime instances of docker images.

269. What is a Docker Hub?

什么是 Docker Hub?
  • 知识点: DevOps/云 (主题: docker, containers, devops;标签: interviewbit, docker, topic-specific, containers, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a9f58d557c902ba874a | 官方: 否 | 付费: 否

答案:

  • It is a public cloud-based registry provided by Docker for storing public images of the containers along with the provision of finding and sharing them.
  • The images can be pushed to Docker Hub through the docker push command.

270. What command can you run to export a docker image as an archive?

你可以运行什么命令将 docker 镜像导出为归档文件?
  • 知识点: DevOps/云 (主题: docker, containers, devops;标签: interviewbit, docker, topic-specific, containers, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a9f58d557c902ba874d | 官方: 否 | 付费: 否

答案:

This can be done using the docker save command and the syntax is: docker save -o .tar

这可以使用 docker save 命令完成,语法为:docker save -o .tar

Successful Tech Career for FREE!

免费开启成功的科技职业生涯!

Successful Tech Career!

成功的技术职业生涯!

Interview Process

面试流程

CTC & Designation

CTC与职位级别

Projects on the Job

工作项目

Referral System

推荐系统

Try It Out

试试看

2 Lakh+ Roadmaps Created

已生成20万+职业规划

271. What command can be run to import a pre-exported Docker image into another Docker host?

可以运行什么命令将预先导出的 Docker 镜像导入到另一台 Docker 主机?
  • 知识点: DevOps/云 (主题: docker, containers, devops;标签: interviewbit, docker, topic-specific, containers, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a9f58d557c902ba8751 | 官方: 否 | 付费: 否

答案:

This can be done using the docker load command and the syntax is docker load -i .tar

这可以通过 docker load 命令完成,语法是 docker load -i .tar

272. Can a paused container be removed from Docker?

暂停的容器能否从 Docker 中移除?
  • 知识点: DevOps/云 (主题: docker, containers, devops;标签: interviewbit, docker, topic-specific, containers, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a9f58d557c902ba8754 | 官方: 否 | 付费: 否

答案:

No, it is not possible! A container MUST be in the stopped state before we can remove it.

不能,这是不可能的!在我们可以移除容器之前,它必须处于停止状态。

273. What command is used to check for the version of docker client and server?

哪个命令用于检查 docker 客户端和服务器的版本?
  • 知识点: DevOps/云 (主题: docker, containers, devops;标签: interviewbit, docker, topic-specific, containers, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37a9f58d557c902ba8757 | 官方: 否 | 付费: 否

答案:

  • The command used to get all version information of the client and server is the docker version.
  • To get only the server version details, we can run docker version --format '{{.Server.Version}}'

274. What is "Virtual Private Cloud" (VPC) when referring to Google Cloud Platform?

在提及 Google Cloud Platform 时,“Virtual Private Cloud”(VPC)是什么?
  • 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37afb58d557c902babdd9 | 官方: 否 | 付费: 否

答案:

Through the use of a Virtual Private Cloud, your Google Cloud Platform (GCP) virtual machine (VM) instances, Google Kubernetes Engine (GKE) clusters, and other resources will be able to connect with one another (VPC). The Virtual Private Cloud gives users a great deal of wiggle room in terms of regulating regional and global workload connectivity. Without having to rely on the public internet, virtual private networks (VPCs) make it possible for multiple regions to communicate with one another.

通过使用 Virtual Private Cloud,您的 Google Cloud Platform(GCP)虚拟机(VM)实例、Google Kubernetes Engine(GKE)集群以及其他资源将能够相互连接(VPC)。Virtual Private Cloud 在规范区域和全球工作负载连接方面给用户提供了很大的灵活性。无需依赖公共互联网,虚拟专用网络(VPC)使得多个区域能够相互通信。

275. What is a cloud?

什么是云?
  • 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37afb58d557c902babddc | 官方: 否 | 付费: 否

答案:

A computer system that has a network, hardware, storage, and an application programming interface is referred to as a "cloud," and its name comes from the word "cloud." The combination of these two factors is what makes cloud computing a universal service that everyone can use.

一个具有网络、硬件、存储和应用程序编程接口的计算机系统被称为“云”,其名称来源于“cloud”一词。这两个因素的结合使得云计算成为一种人人都可以使用的通用服务。

Computing in the cloud is employed extensively by businesses in order to fulfill the requirements posed by its stakeholders. In any given cloud computing system, the two most important participants are the service provider, who is in charge of providing and managing the cloud services, and the end-user, who makes use of the cloud services for a variety of different reasons.

云计算被企业广泛采用,以满足其利益相关者的需求。在任何给定的云计算系统中,两个最重要的参与者是服务提供商(负责提供和管理云服务)和最终用户(出于各种不同原因使用云服务)。

276. Explain the Google Cloud and all of its different levels.

解释一下 Google Cloud 及其所有不同的层级。
  • 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37afb58d557c902babddf | 官方: 否 | 付费: 否

答案:

There are four separate tiers of the Google Cloud Platform, and they are as follows:

Google Cloud Platform 有四个独立的层级,如下所示:
  1. IaaS is an abbreviation for "Infrastructure as a Service," which describes the most fundamental component of a cloud computing environment. 2. The "platform as a service" (PaaS) model, which serves as the second tier, is responsible for providing the underlying infrastructure as well as the application development tools. 3. Users get access to the cloud services offered by the provider through the third layer, which is known as "Software as a Service," or SaaS. 4. Despite the fact that business process outsourcing (BPO) is not a technical solution, it is considered to be the final layer because of its essential role in outsourcing business operations. In the context of cloud computing services, business process outsourcing (BPO) refers to the practice of entering into a contract with a third party in order to manage the requirements of the end user.

    1. IaaS 是“Infrastructure as a Service”的缩写,描述了云计算环境中最基本的组件。 2. “平台即服务”(PaaS)模式作为第二层,负责提供底层基础设施以及应用程序开发工具。 3. 用户通过第三层访问提供商提供的云服务,该层称为“Software as a Service”(SaaS)。 4. 尽管业务流程外包(BPO)不是技术解决方案,但因其在外包业务流程中的关键作用而被视为最后一层。在云计算服务的背景下,业务流程外包(BPO)指的是与第三方签订合同以管理最终用户需求的实践。

277. What do you consider to be some of the most noteworthy features of the Google Cloud Platform, and why do you think these features exist?

您认为 Google Cloud Platform 的哪些特性最值得注意,为什么您认为这些特性存在?
  • 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37afb58d557c902babde3 | 官方: 否 | 付费: 否

答案:

The following are the most prominent characteristics:

以下是最突出的特性:
  1. The ability to create your own machine types, complete with arbitrary configurations for the CPU, RAM, and storage devices. 2. When resizing a disc in situ, there is no requirement for maintenance or downtime to be taken. 3. The many different tools that are pre-installed with GCP can be used to manage a wide variety of different operations. 4. There are two different web hosting options available, and you have the option to select either one of them. App Engine gives users the option of using a Platform as a Service, whereas Compute Engine gives users the chance to utilize an Infrastructure as a Service.

    1. 能够创建您自己的机器类型,包含 CPU、RAM 和存储设备的任意配置。 2. 在原位调整磁盘大小时,无需维护或停机。 3. GCP 预装的许多不同工具可用于管理各种不同的操作。 4. 有两种不同的网站托管选项可用,您可以选择其中任何一种。App Engine 给用户提供使用平台即服务(Platform as a Service)的选项,而 Compute Engine 则给用户提供利用基础设施即服务(Infrastructure as a Service)的机会。

278. What are the many strategies that might be utilized when developing cloud computing?

开发云计算时可以使用的许多策略有哪些?
  • 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37afb58d557c902babde9 | 官方: 否 | 付费: 否

答案:

  • Public Cloud: Everyone is able to make use of a service when it is hosted in the cloud and made available through a public subscription model. Users have the ability to access the various components of this kind of cloud, which include the operating system, central processing unit, memory, and storage.
  • Private Cloud: A private cloud is a type of cloud that is accessible solely to a single organization and the individuals working for that company. A similar idea that exists within a company's own network is referred to as the internal cloud or the corporate cloud.
  • Hybrid Cloud: The combination of public and private cloud services is what's meant to be understood by the term "hybrid cloud." This form of infrastructure, which includes a combination of processing, storage, and service components, is frequently used by businesses that desire more scalability and management flexibility than what is currently available to them.
  • Community Cloud: Multiple companies are able to share the same amount of online storage space when using a community cloud.

279. What is the Function of a Bucket in Google Cloud Storage?

Google Cloud Storage 中存储桶的功能是什么?
  • 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: coding
  • 分类: fullstack
  • id: 69b37afb58d557c902babdec | 官方: 否 | 付费: 否

答案:

"Buckets" are the most straightforward containers that may be used to hold information. Any data that is stored in Cloud Storage must first be organized into a bucket. There is no restriction on the number of buckets that can be added or taken away from the system. Buckets, on the other hand, do not support nesting in the same way that directories and files do.

“存储桶”是最直接的容器,可用于存放信息。存储在 Cloud Storage 中的任何数据都必须首先组织到存储桶中。系统中可以添加或移除的存储桶数量没有限制。然而,存储桶不支持像目录和文件那样的嵌套。

280. What are the benefits and drawbacks of using reserved instances as opposed to on-demand instances.

使用预留实例与按需实例相比,有哪些优点和缺点?
  • 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37afb58d557c902babdef | 官方: 否 | 付费: 否

答案:

Both Reserved Instances and On-Demand Instances offer the same computing options and configurations, therefore there is no difference between the two. When renting (reserving) a Reserved Instance for a predetermined amount of time, the user is entitled to a price reduction in comparison to the standard cost of an On Demand instance.

预留实例和按需实例提供相同的计算选项和配置,因此两者之间没有区别。当用户为预定时间段租用(预留)预留实例时,与按需实例的标准成本相比,有权享受价格优惠。

281. How can you save money by using cloud computing?

如何通过使用云计算节省资金?
  • 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37afb58d557c902babdf2 | 官方: 否 | 付费: 否

答案:

With the help of cloud computing, you won't require the assistance of a large number of individuals. In a manner analogous to that of carpooling, these make use of a communal pool of resources, for which users pay only for the amount of those resources that they really consume.

借助云计算,你不需要大量人员的协助。以类似于拼车的方式,这些利用共享资源池,用户只需为他们实际消耗的资源量付费。

282. What are the connections between Google Compute Engine and Google App Engine?

Google Compute Engine 和 Google App Engine 之间有什么联系?
  • 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37afb58d557c902babdf5 | 官方: 否 | 付费: 否

答案:

The product that Google offers in the category of infrastructure as a service (IaaS) is referred to as Google Compute Engine, whereas the product that Google offers in the category of the platform as a service (PaaS) is referred to as Google App Engine. They complement one another very well and work well together. In contrast to the App Engine, which is in charge of providing power to websites and mobile backends, the Compute Engine can be used to develop one-of-a-kind business logic and can even host an individual data storage system.

Google 在基础设施即服务(IaaS)类别中提供的产品称为 Google Compute Engine,而 Google 在平台即服务(PaaS)类别中提供的产品称为 Google App Engine。它们相互补充,配合得很好。与负责为网站和移动后端提供动力的 App Engine 不同,Compute Engine 可用于开发独特的业务逻辑,甚至可以托管单独的数据存储系统。

283. To what extent do you have experience working with application programming interfaces for Google Cloud?

你在使用 Google Cloud 应用程序编程接口方面有多少经验?
  • 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: coding
  • 分类: fullstack
  • id: 69b37afb58d557c902babdf8 | 官方: 否 | 付费: 否

答案:

The primary objective of utilizing application programming interfaces is, of course, to automate processes within the programming language of your choice.

使用应用程序编程接口的主要目标当然是在你选择的编程语言中自动化流程。

Application programming interfaces are what makes it easy to connect to and integrate with any of Google's many services (APIs). Additionally, it functions as a portal via which users can have access to a range of software services and cloud resources, both internal and external to the organization.

应用程序编程接口使得轻松连接和集成 Google 的众多服务(API)成为可能。此外,它还可以作为门户,让用户访问组织内外的一系列软件服务和云资源。

284. What is Google Application Engine or GCP Application Engine?

什么是 Google Application Engine 或 GCP Application Engine?
  • 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37afb58d557c902babdfb | 官方: 否 | 付费: 否

答案:

You have the ability to immediately run your code on Google App Engine, which is also referred to as GCP App Engine. This is made possible by the platform's serverless architecture, which ensures that your app is constantly accessible to users. Google will handle the management of all of your servers and infrastructure for you. GCP App Engine will take care of providing the necessary built-in services and APIs as the traffic to your website increases. You will only be charged for the resources that you actually use, so there is no need to worry about additional costs.

你可以立即在 Google App Engine(也称为 GCP App Engine)上运行代码。这得益于该平台的无服务器架构,确保你的应用始终对用户可访问。Google 将为你管理所有服务器和基础设施。随着网站流量的增加,GCP App Engine 将负责提供必要的内置服务和 API。你只需为实际使用的资源付费,因此无需担心额外成本。

App Engine is a PaaS platform that allows developers to make scalable web applications that operate on Google's data centres. It is sometimes referred to by its acronym, GAE. It is compatible with a wide range of integrated development environments (IDEs) and IDE plugins, such as Jenkins, Eclipse, Git, IntelliJ, and Maven, so you won't need to make any changes to the way you do things now.

App Engine 是一个 PaaS 平台,允许开发人员构建可在 Google 数据中心运行的可扩展 Web 应用程序。它有时以其缩写 GAE 来称呼。它与各种集成开发环境(IDE)和 IDE 插件(如 Jenkins、Eclipse、Git、IntelliJ 和 Maven)兼容,因此你无需更改现有工作方式。

285. How to migrate servers and virtual machines hosted on-premises or in another cloud to the Compute Engine of the Google Cloud Platform?

如何将本地或其他云中托管的服务器和虚拟机迁移到 Google Cloud Platform 的 Compute Engine?
  • 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37afb58d557c902babdfe | 官方: 否 | 付费: 否

答案:

The virtual machines (VMs) can be moved from on-premises data centres, Azure, and Amazon Web Services (AWS) to Google's Compute Engine with the use of the cloud software known as Google Cloud Migrate for Compute Engine. This software does not come with any additional charges or fees attached to it.

使用名为 Google Cloud Migrate for Compute Engine 的云软件,可以将虚拟机(VM)从本地数据中心、Azure 和 Amazon Web Services(AWS)迁移到 Google 的 Compute Engine。该软件不附带任何额外费用或收费。

286. What does the Google Cloud Software Development Kit is.

谷歌云软件开发工具包是什么。
  • 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37afb58d557c902babe01 | 官方: 否 | 付费: 否

答案:

The Google Cloud Software Development Kit includes a variety of command-line interface (CLI) utilities. The cloud infrastructure that Google uses depends on this data. With the help of these utilities, we are able to use Google Cloud Platform services such as Big Query, Cloud Storage, and Compute Engine from the command line. It comes with both the API libraries and the client libraries in addition to the API libraries. We are able to browse computer engine networks, storage, and firewalls, as well as manage instances of Virtual Machines thanks to the utilities and libraries that we have at our disposal.

谷歌云软件开发工具包包含多种命令行界面(CLI)实用工具。谷歌使用的云基础设施依赖于这些数据。借助这些工具,我们能够从命令行使用谷歌云平台服务,如Big Query、云存储和计算引擎。它除了提供API库之外,还附带客户端库。得益于我们可用的工具和库,我们能够浏览计算引擎网络、存储和防火墙,以及管理虚拟机实例。

287. Provide a rundown of the most significant advantages gained by utilizing Google's cloud services.

请简要介绍利用谷歌云服务所获得的最显著优势。
  • 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37afb58d557c902babe04 | 官方: 否 | 付费: 否

答案:

The following is a list of the primary characteristics of GCP:

以下是GCP的主要特性列表:
  1. Using Google Cloud Platform makes it simple to fine-tune the CPU, RAM, and storage capacities of your virtual machine. The virtual machine (VM) rightsizing advice tool clearly demonstrates in a short amount of time whether or not the machines in your environment are utilizing the appropriate quantity of hardware. 2. You will have access to the Google cloud shell when you utilize GCP. This shell comes pre-loaded with a broad number of helpful tools and makes it possible for you to manage your infrastructure with just a few keystrokes. Docker, Gradle, Make, npm, nvm, and pip, along with a great deal more software, is pre-installed and ready to use. 3. You'll have the ability to swiftly prototype new kinds of machines with Google Cloud Platform thanks to its fully programmable CPU, RAM, and storage. 4. The preemptible virtual machines that come with this technology can slash expenses by as much as 70 per cent for fault-tolerant and batch processing. 5. The Cloud SQL functionality of GCP does a check on the database's available storage once every 30 seconds and adds additional if it's required. 6. It is possible to alter the size of a persistent disc in real-time and without disrupting service in any way, either by decreasing or increasing the amount of space it occupies.

    1. 使用谷歌云平台可以轻松微调虚拟机的CPU、内存和存储容量。虚拟机(VM)大小调整建议工具能在短时间内清晰展示您环境中的机器是否正在使用适当的硬件数量。 2. 当您使用GCP时,您将可以访问谷歌云shell。此shell预装了广泛的实用工具,使您只需几次击键就能管理您的基础设施。Docker、Gradle、Make、npm、nvm和pip,以及更多软件,都已预装并准备就绪。 3. 借助谷歌云平台完全可编程的CPU、内存和存储,您将能够快速原型化新型机器。 4. 此技术附带的抢占式虚拟机可将容错和批处理成本削减高达70%。 5. GCP的Cloud SQL功能每30秒检查一次数据库的可用存储,并在必要时添加额外存储。 6. 可以实时调整持久磁盘的大小,而不会以任何方式中断服务,无论是通过减少还是增加其占用的空间。

288. Explain the primary differences that exist between virtualization and cloud computing?

解释虚拟化和云计算之间存在的主要差异是什么?
  • 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37afb58d557c902babe07 | 官方: 否 | 付费: 否

答案:

The phrase "virtualization" refers to the usage of the software that transforms your hardware into many virtual machines, whereas the term "cloud computing" refers to the practice of utilizing several computers and servers that work together as a single entity. In the case of virtualization, each user is provided with their very own unique collection of hardware resources; yet, in the cloud, a user's login information is shared across a number of different machines.

术语“虚拟化”指的是使用软件将您的硬件转换为多个虚拟机的过程,而术语“云计算”指的是利用多个计算机和服务器作为一个单一实体协同工作的实践。在虚拟化的情况下,每个用户被提供他们自己独特的硬件资源集合;然而,在云中,用户的登录信息在多个不同机器之间共享。

289. Explain the Google App Engine.

解释谷歌应用引擎。
  • 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37afb58d557c902babe0a | 官方: 否 | 付费: 否

答案:

Scalability is something that may be provided to web app developers and large enterprises through Google App Engine, which is a Platform as a Service (PaaS) offering. Because of this, developers are able to build, deploy, and scale a totally managed platform according to their requirements.

可扩展性是通过谷歌应用引擎提供给Web应用开发人员和大企业的,这是一种平台即服务(PaaS)产品。因此,开发人员能够根据他们的需求构建、部署和扩展一个完全托管的平台。

Support is provided for many of today's most popular programming languages, including Java, PHP, Python, C#,.Net, Go, and Node.js, among others. Because it is malleable, you can use it to develop programmes that are quite robust.

支持当今许多最流行的编程语言,包括Java、PHP、Python、C#、.Net、Go和Node.js等。由于其灵活性,您可以使用它来开发相当强大的程序。

290. Explain GCP Storage?

解释GCP存储?
  • 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37afb58d557c902babe0d | 官方: 否 | 付费: 否

答案:

The cloud-based data storage solution offered by Google is known as Google Cloud Platform (GCP) Storage. Access to your data is possible at any time and in any location. This storage solution is dependable, safe, and scalable all at the same time. This service gives you the ability to securely store not just your own data but also the data generated by your apps, as well as the data generated by your customers.

基于云的数据存储解决方案由谷歌提供,被称为谷歌云平台(GCP)存储。您可以随时随地在任何位置访问您的数据。此存储解决方案可靠、安全且可扩展,同时具备这些特性。此服务使您能够安全地存储不仅是您自己的数据,还有您的应用生成的数据,以及您的客户生成的数据。

291. What are GCP Objects?

什么是GCP对象?
  • 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37afb58d557c902babe10 | 官方: 否 | 付费: 否

答案:

Object versioning makes it possible to restore deleted or overwritten data. This includes entire databases. Object versioning causes an increase in storage costs, but it also safeguards the objects, preventing them from being mistakenly deleted or replaced.

对象版本化使得恢复已删除或覆盖的数据成为可能,包括整个数据库。对象版本化会导致存储成本增加,但同时也保护了对象,防止它们被意外删除或替换。

When object versioning is enabled in a Google Cloud Storage (GCP) bucket, a historical copy of the item is saved anytime it is modified or removed. This happens regardless of whether the item is being kept or deleted. Generation and meta-generation are the qualities that are utilized to figure out which form of an object is being referred to in a certain context. The term "generation" refers to the process of creating material, whereas "metageneration" refers to the process of creating metadata.

当在谷歌云存储(GCP)存储桶中启用对象版本化时,每当项目被修改或删除时,都会保存该项目的历史副本。无论项目是保留还是删除,都会发生这种情况。代和元代是用于确定在特定上下文中引用哪个对象版本的属性。术语“代”指的是创建内容的过程,而“元代”指的是创建元数据的过程。

292. What is serverless computing?

什么是无服务器计算?
  • 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37afb58d557c902babe13 | 官方: 否 | 付费: 否

答案:

Serverless computing is made possible by cloud service providers who maintain a server in the cloud and dynamically allocate resources to customers. Because the provider is responsible for the underlying hardware, the user is free to concentrate on their task without being distracted by concerns about the system's workings.

无服务器计算由云服务提供商实现,他们在云端维护服务器并动态向客户分配资源。由于提供商负责底层硬件,用户可以专注于自己的任务,而不必担心系统的运行机制。

The costs that are linked with the users' utilization of the resource are anticipated to be covered by them. The deployment procedure is simplified for end users as a result, and they no longer need to worry about scalability or maintenance. This falls under the category of "utility computing."

与用户资源使用相关的成本预计由用户承担。因此,部署过程对最终用户来说得以简化,他们不再需要担心可扩展性或维护问题。这属于“效用计算”的范畴。

293. Please explain about Cloud-based load balancing.

请解释基于云的负载均衡。
  • 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37afb58d557c902babe16 | 官方: 否 | 付费: 否

答案:

Load balancing refers to the process of dividing up tasks and resources between all of the cloud's accessible servers in an equitable manner. This helps in obtaining high performance at reduced costs by carefully managing the requirements of the workload as well as the distribution of the available resources. Scalability and flexibility are utilized so that supply and demand can be more effectively matched.

负载均衡是指在云中所有可访问的服务器之间公平地分配任务和资源的过程。这通过谨慎管理工作负载需求和可用资源分配,有助于以更低成本获得高性能。可扩展性和灵活性得以利用,以便更有效地匹配供需。

In addition to this, it is utilized for the purpose of monitoring the health of the cloud service on its own. This functionality is offered by all of the major cloud service providers, such as Amazon Web Services (AWS), Google Cloud Platform (GCP), Microsoft Azure, and so on.

此外,它还用于监控云服务自身的健康状况。所有主要云服务提供商都提供此功能,例如亚马逊网络服务(AWS)、谷歌云平台(GCP)、微软Azure等。

294. Explain BigQuery.

解释BigQuery。
  • 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37afb58d557c902babe19 | 官方: 否 | 付费: 否

答案:

BigQuery is a service that can be found on the Google Cloud Platform. This service acts as a storage facility for major companies and organizations. This reasonably priced and highly scalable software analyses data in memory and makes use of machine learning to improve the quality of the results.

BigQuery是谷歌云平台上的一项服务。该服务充当大型公司和组织的存储设施。这款价格合理且高度可扩展的软件在内存中分析数据,并利用机器学习来提高结果质量。

You will have the ability to quickly develop analytical reports and perform real-time evaluations of the data with the assistance of a data analytics engine. BigQuery is able to access and work with a wide variety of external data sources, including object storage, transaction databases, and spreadsheets.

借助数据分析引擎,您将能够快速开发分析报告并对数据执行实时评估。BigQuery能够访问并处理各种外部数据源,包括对象存储、事务数据库和电子表格。

295. Explain Google Cloud Messaging?

解释谷歌云消息传递?
  • 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37afb58d557c902babe1c | 官方: 否 | 付费: 否

答案:

Firebase is a message and notification system that is free and ubiquitous (Android, iOS, and the Web). It is also often known as Google Cloud Messaging. That's a terrific approach to get users engaged once more, and one method to do it is by sending a message or notifying a client app. You have the option of sending a message to a single device, an entire group of devices, or all devices that are subscribed to the service.

Firebase是一个免费且无处不在(Android、iOS和Web)的消息和通知系统,它也常被称为谷歌云消息传递。这是让用户重新参与进来的绝佳方法,其中一种方式就是向客户端应用发送消息或通知。您可以选择向单个设备、整组设备或所有订阅该服务的设备发送消息。

296. What is an Application Programming Interface for Google Cloud? How would it be possible for us to enter the building?

什么是谷歌云应用程序编程接口?我们如何才能进入大楼?
  • 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
  • 类型: technical | 难度: easy | 子类型: coding
  • 分类: fullstack
  • id: 69b37afb58d557c902babe1f | 官方: 否 | 付费: 否

答案:

Users are able to extend the functionality of Google Cloud-based applications in a variety of ways by utilizing the Application Programming Interfaces (APIs) provided by Google Cloud. Some of these ways include improved storage access and image analytics that are powered by machine learning.

用户能够通过利用谷歌云提供的应用程序编程接口(API),以多种方式扩展基于谷歌云的应用功能。这些方式包括改进的存储访问和由机器学习驱动的图像分析。

In the cloud, application programming interfaces (APIs) are easily accessible through client libraries and server-side code. The Application Programming Interface (API) for Google Cloud can be accessed through a variety of different programming languages. The utilization of mobile apps is made possible by Firebase SDKs and other third-party clients. Both the command-line tools of the Google SDK and the Web-based user interface of the Google Cloud Platform Console can be used to access the Google Cloud APIs.

在云中,应用程序编程接口(API)可通过客户端库和服务器端代码轻松访问。谷歌云的应用程序编程接口(API)可以通过多种不同的编程语言进行访问。移动应用的使用通过Firebase SDKs和其他第三方客户端得以实现。谷歌SDK的命令行工具和谷歌云平台控制台的基于Web的用户界面都可以用来访问谷歌云API。

297. What is a git repository?

什么是git仓库?
  • 知识点: DevOps/云 (主题: git, version-control;标签: interviewbit, git, topic-specific, version-control)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37aff58d557c902babfd8 | 官方: 否 | 付费: 否

答案:

A repository is a file structure where git stores all the project-based files. Git can either stores the files on the local or the remote repository.

仓库是一种文件结构,git在其中存储所有基于项目的文件。Git可以将文件存储在本地或远程仓库中。

298. What does git clone do?

git clone是做什么的?
  • 知识点: DevOps/云 (主题: git, version-control;标签: interviewbit, git, topic-specific, version-control)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37aff58d557c902babfdb | 官方: 否 | 付费: 否

答案:

The command creates a copy (or clone) of an existing git repository. Generally, it is used to get a copy of the remote repository to the local repository.

该命令用于创建现有 git 仓库的副本(或克隆)。通常,它用于将远程仓库复制到本地仓库。

299. What does the command git config do?

git config 命令的作用是什么?
  • 知识点: DevOps/云 (主题: git, version-control;标签: interviewbit, git, topic-specific, version-control)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37aff58d557c902babfde | 官方: 否 | 付费: 否

答案:

The git config command is a convenient way to set configuration options for defining the behavior of the repository, user information and preferences, git installation-based configurations, and many such things. For example: To set up your name and email address before using git commands, we can run the below commands: - git config --globaluser.name“>”

git config 命令是设置配置选项的便捷方式,用于定义仓库行为、用户信息和偏好、基于 git 安装的配置以及许多类似内容。例如:要在使用 git 命令前设置您的姓名和电子邮件地址,我们可以运行以下命令:- git config --globaluser.name“>”
  • git config --global user.email “>”

300. Can you explain head in terms of git and also tell the number of heads that can be present in a repository?

您能用 git 术语解释一下 head 吗?并告诉我一个仓库中可以存在多少个 head?
  • 知识点: DevOps/云 (主题: git, version-control;标签: interviewbit, git, topic-specific, version-control)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37aff58d557c902babfe1 | 官方: 否 | 付费: 否

答案:

  • A head is nothing but a reference to the last commit object of a branch.
  • For every repository, there will always be a default head referred to as “master” or now “main” (as per GitHub) but there is no restriction to the count of heads available. In other words, it can have any number of heads.
  • Usages:- To go or checkout to 1 commit before the latest commit, we use git checkout HEAD~1- To uncommit the last 3 commits without losing the changes, we first run git reset HEAD~3. Then we can see the changes made in the last 3 commits and then update it manually and commit it finally.- In order to uncommit the last 3 commits and also remove the changes, we can run the command: git reset --hard HEAD~3. This command will completely remove all the changes.- To look into the changes made in the last 3 commits, we can run git diff HEAD~3- To make a new commit by reverting the last 3 commits, we can run the command: git revert --no-commit HEAD~3...HEAD

301. What is a conflict?

什么是冲突?
  • 知识点: DevOps/云 / 行为与软技能 (主题: git, version-control;标签: interviewbit, git, topic-specific, version-control)
  • 类型: behavioral | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37aff58d557c902babfe4 | 官方: 否 | 付费: 否

答案:

  • Git usually handles feature merges automatically but sometimes while working in a team environment, there might be cases of conflicts such as:1. When two separate branches have changes to the same line in a file2. A file is deleted in one branch but has been modified in the other.
  • These conflicts have to be solved manually after discussion with the team as git will not be able to predict what and whose changes have to be given precedence.

302. What is the functionality of git ls-tree?

git ls-tree 的功能是什么?
  • 知识点: DevOps/云 (主题: git, version-control;标签: interviewbit, git, topic-specific, version-control)
  • 类型: technical | 难度: easy | 子类型: coding
  • 分类: fullstack
  • id: 69b37aff58d557c902babfe7 | 官方: 否 | 付费: 否

答案:

This command returns a tree object representation of the current repository along with the mode and the name of each item and the SHA-1 value of the blob.

此命令返回当前仓库的树对象表示,包括模式、每项的名称以及 blob 的 SHA-1 值。

303. What does git status command do?

git status 命令有什么作用?
  • 知识点: DevOps/云 (主题: git, version-control;标签: interviewbit, git, topic-specific, version-control)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37aff58d557c902babfea | 官方: 否 | 付费: 否

答案:

git status command is used for showing the difference between the working directory and the index which is helpful for understanding git in-depth and also keep track of the tracked and non-tracked changes.

git status 命令用于显示工作目录和索引之间的差异,这有助于深入了解 git,并跟踪已跟踪和未跟踪的更改。

304. Define “Index”.

定义“索引”。
  • 知识点: DevOps/云 (主题: git, version-control;标签: interviewbit, git, topic-specific, version-control)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37aff58d557c902babfed | 官方: 否 | 付费: 否

答案:

Before making commits to the changes done, the developer is given provision to format and review the files and make innovations to them. All these are done in the common area which is known as ‘Index’ or ‘Staging Area’.

在提交已完成的更改之前,开发人员有机会格式化、审查文件并进行创新修改。所有这些都在称为“索引”或“暂存区”的公共区域中完成。

In the above image, the “staged” status indicates the staging area and provides an opportunity for the people to evaluate changes before committing them.

在上图中,“staged”状态表示暂存区,并为人们在提交前评估更改提供了机会。

305. What does git add command do?

git add 命令有什么作用?
  • 知识点: DevOps/云 (主题: git, version-control;标签: interviewbit, git, topic-specific, version-control)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37aff58d557c902babff0 | 官方: 否 | 付费: 否

答案:

  • This command adds files and changes to the index of the existing directory.
  • You can add all changes at once using git add . command.
  • You can add files one by one specifically using git add command.
  • You can add contents of a particular folder by using git add // command.

306. What is a version control system (VCS)?

什么是版本控制系统(VCS)?
  • 知识点: DevOps/云 (主题: git, version-control;标签: interviewbit, git, topic-specific, version-control)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37aff58d557c902babff3 | 官方: 否 | 付费: 否

答案:

A VCS keeps track of the contributions of the developers working as a team on the projects. They maintain the history of code changes done and with project evolution, it gives an upper hand to the developers to introduce new code, fixes bugs, and run tests with confidence that their previously working copy could be restored at any moment in case things go wrong.

VCS 跟踪作为团队在项目上工作的开发人员的贡献。它们维护代码更改的历史记录,随着项目的发展,它为开发人员提供了引入新代码、修复错误并自信地运行测试的优势,因为如果出现问题,他们可以随时恢复之前的工作副本。

307. 设计一个类似 GitLab CI/CD(Continuous Integration/Continuous Deployment)的核心系统架构,需要支持高并发(High Concurrency)和低延迟(Low Latency)。

  • 知识点: DevOps/云 / 系统设计/架构 / UI/UX 设计 (主题: system-design, distributed-systems;标签: gitlab, generated)
  • 类型: technical | 难度: easy | 子类型: system-design
  • 分类: fullstack
  • 公司: GitLab
  • id: 69b37b1258d557c902bacaa3 | 官方: 是 | 付费: 是

答案:

思路分析从需求出发:用户量级(User Scale)、QPS 预估(QPS Estimation)、数据量(Data Volume)。然后设计整体架构、存储选型(Storage Selection)、缓存策略(Caching Strategy)、负载均衡(Load Balancing)。
参考答案分层架构(Layered Architecture):CDN(Content Delivery Network) → Load Balancer(负载均衡器) → API Gateway(API网关) → Microservices(微服务) → Database/Cache(数据库/缓存)。关键考虑:读写分离(Read-Write Separation)、分库分表(Database Sharding)、消息队列(Message Queue)解耦、缓存多级策略(Multi-level Caching Strategy)。
评分要点- 需求分析和容量估算(Capacity Estimation)

  • 合理的技术选型
  • 可扩展性和高可用设计
  • 数据一致性和分区容错权衡
    常见追问- 如何处理热点数据(Hot Data)?
  • 如何实现跨区域容灾?
  • 数据库如何水平扩展?

308. What are the different cloud computing service models?

云计算服务模型有哪些不同类型?
  • 知识点: DevOps/云 (标签: interviewbit, hcl, company-specific)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: general
  • 公司: HCL Technologies
  • id: 69b37b3658d557c902badf87 | 官方: 否 | 付费: 否

答案:

The different Cloud computing service models can be categorized as follows: - IaaS (Infrastructure as a Service): It is a computing infrastructure managed over the internet.

不同的云计算服务模型可以分类如下:- IaaS(基础设施即服务):它是在互联网上管理的一种计算基础设施。
  • PaaS (Platform as a Service): PaaS cloud computing platform is created for programmers to develop, test, run, as well as manage applications.
  • SaaS (Software as a Service): In this, applications are hosted by a cloud service provider.
  • FaaS (Function as a service): This provides a platform that allows customers to develop, run, and manage app functionalities without the complexity of building and maintaining the infrastructure that is associated with the process of launching an app.

309. Define the git repository.

定义 git 仓库。
  • 知识点: DevOps/云 (标签: interviewbit, intuit, company-specific)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: general
  • 公司: Intuit
  • id: 69b37b6b58d557c902bb02d9 | 官方: 否 | 付费: 否

答案:

Git is free, open-source software that allows members of different teams to collaborate and track project modifications. With Git, changes in the source code are tracked and multiple developers can collaborate on non-linear projects. Git keeps/saves files related to each version of a project in a repository. A Git repository is typically the .git/ folder within a project. In a repository, all changes made to files within a project are tracked and saved using a version control system.

Git 是免费的开源软件,允许不同团队的成员协作并跟踪项目修改。使用 Git,源代码中的更改会被跟踪,多个开发者可以在非线性项目上协作。Git 将项目每个版本相关的文件保留/保存在一个仓库中。Git 仓库通常是项目中的 .git/ 文件夹。在仓库中,项目内文件所做的所有更改都会使用版本控制系统进行跟踪和保存。

Types of Git repositories - Bare Repositories: Repositories are used to track modifications made by different developers. This repository cannot be modified by a user nor can a new version be created from the modifications made.

Git 仓库的类型 - 裸仓库:仓库用于跟踪不同开发者所做的修改。该仓库不能被用户修改,也不能根据所做的修改创建新版本。
  • Non-Bare Repositories: Unlike bare repositories, non-bare repositories are user-friendly and thus allow the user to make new modifications to files as well as create new repository versions. The cloning process produces a non-bare repository by default.

310. How does git clone work?

git clone 如何工作?
  • 知识点: DevOps/云 (标签: interviewbit, intuit, company-specific)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: general
  • 公司: Intuit
  • id: 69b37b6b58d557c902bb02dc | 官方: 否 | 付费: 否

答案:

Upon copying the files from the repository into the local server of the user, the files can be modified and updated. Cloning involves copying existing content from a Git repository using various Git tools. Upon cloning, the user receives the repository on his local machine. Git clone command can be used to copy an existing repository into your system.

将仓库中的文件复制到用户的本地服务器后,这些文件可以被修改和更新。克隆涉及使用各种 Git 工具复制 Git 仓库中的现有内容。克隆后,用户会在其本地机器上获得该仓库。可以使用 git clone 命令将现有仓库复制到你的系统中。

Syntax:

语法:

git clone [url] [directory]

git clone [url] [directory]
Here, - [url]: URL of the git repository for which you wish to clone.
这里,- [url]:你想要克隆的 git 仓库的 URL。

311. What is Jenkins?

什么是 Jenkins?
  • 知识点: DevOps/云 (主题: jenkins, ci-cd, devops;标签: interviewbit, jenkins, topic-specific, ci-cd, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37b7a58d557c902bb0f23 | 官方: 否 | 付费: 否

答案:

Jenkins is a self-contained, open-source automation server that can be used to automate all sorts of tasks related to building, testing, and delivering or deploying software. Jenkins can be installed through native system packages, Docker, or even run standalone by any machine with a Java Runtime Environment (JRE) installed.

Jenkins 是一个自包含的开源自动化服务器,可用于自动化与构建、测试、交付或部署软件相关的各种任务。Jenkins 可以通过系统原生包、Docker 安装,甚至可以在任何安装了 Java 运行时环境(JRE)的机器上独立运行。

312. Tell me something about Continuous Integration, Continuous Delivery, and Continuous Deployment?

请告诉我关于持续集成、持续交付和持续部署的一些信息?
  • 知识点: DevOps/云 (主题: jenkins, ci-cd, devops;标签: interviewbit, jenkins, topic-specific, ci-cd, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37b7a58d557c902bb0f26 | 官方: 否 | 付费: 否

答案:

Continuous Integration: A software development process where the changes made to software are integrated into the main code as and when a patch is ready so that the software will be always ready to be - built, tested, deployed, monitored - continuously.

持续集成:一种软件开发过程,其中对软件所做的更改会在补丁准备好时集成到主代码中,以便软件始终准备好被持续构建、测试、部署、监控。

Continuous Delivery: This is a Software Development Process where the continuously integrated (CI) changes will be tested & deployed continuously into a specific environment, generally through a manual release process, after all the quality checks are successful

持续交付:这是一种软件开发过程,其中持续集成(CI)的更改会被持续测试并部署到特定环境中,通常通过手动发布流程,在所有质量检查成功后进行。

Continuous Deployment: A Software Development practice where the continuously integrated (CI) changes are deployed automatically into the target environment after all the quality checks are successful

持续部署:一种软件开发实践,其中持续集成(CI)的更改在所有质量检查成功后会自动部署到目标环境中。

Based on the level of automation, the above three paradigms can be better represented as below -

基于自动化程度,上述三种范式可以更好地表示如下——

CI/CD and Continuous Deployment

CI/CD 和持续部署

313. How can we stop a scheduled job from being executed temporarily?

我们如何临时停止一个计划任务的执行?
  • 知识点: DevOps/云 (主题: jenkins, ci-cd, devops;标签: interviewbit, jenkins, topic-specific, ci-cd, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37b7a58d557c902bb0f2d | 官方: 否 | 付费: 否

答案:

Disable the job from the job details page to temporarily stop all scheduled executions & other factors/events from triggering the job and enable it back to resume the job schedules/triggers. If a job is not required permanently, we can delete the job from the jobs list view page.

从任务详情页面禁用该任务,以临时停止所有计划执行以及其他因素/事件触发该任务,然后重新启用它以恢复任务计划/触发器。如果一个任务永久不再需要,我们可以从任务列表视图页面删除该任务。

314. What are the common use cases Jenkins is used for?

Jenkins 常见的用例有哪些?
  • 知识点: DevOps/云 (主题: jenkins, ci-cd, devops;标签: interviewbit, jenkins, topic-specific, ci-cd, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37b7a58d557c902bb0f30 | 官方: 否 | 付费: 否

答案:

Jenkins being open-source automation can be used for any kind of software-based automation. Some of the common use-cases include but not limited to - - Software build jobs

Jenkins 作为开源自动化工具,可用于任何类型的基于软件的自动化。一些常见用例包括但不限于—— - 软件构建任务
  • Sanity/Smoke/CI/Regression test jobs
  • Web/Data Scraping related jobs
  • Code coverage measurement jobs
  • General-purpose automation
  • Reverse Engineering jobs
  • Key Decoding jobs & many other jobs where software automation will be applicable.

315. What are the ways to install Jenkins?

安装 Jenkins 的方式有哪些?
  • 知识点: DevOps/云 (主题: jenkins, ci-cd, devops;标签: interviewbit, jenkins, topic-specific, ci-cd, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37b7a58d557c902bb0f33 | 官方: 否 | 付费: 否

答案:

Jenkins can be installed using -

Jenkins 可以通过以下方式安装——
  1. Native System Package Manager like - apt (Linux), brew (Mac), etc. 2. Docker (popular docker images for Jenkins is available for different platforms like Unix/Mac/Windows in the docker registry) 3. Kubernetes (available as a helm chart and can be installed on our Kubernetes clusters) 4. Standalone (on any machine with a Java Runtime Environment installed)

    1. 原生系统包管理器,如—— apt(Linux)、brew(Mac)等。 2. Docker(Jenkins 的流行 Docker 镜像可在 Docker 注册表中用于不同平台,如 Unix/Mac/Windows) 3. Kubernetes(可作为 Helm 图表使用,并可安装在我们的 Kubernetes 集群上) 4. 独立运行(在任何安装了 Java 运行时环境的机器上)

For more detailed installation instructions refer official documentation

有关更详细的安装说明,请参阅官方文档

316. What is a Jenkins job?

什么是 Jenkins 任务?
  • 知识点: DevOps/云 (主题: jenkins, ci-cd, devops;标签: interviewbit, jenkins, topic-specific, ci-cd, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37b7a58d557c902bb0f36 | 官方: 否 | 付费: 否

答案:

A Job/Project is the fundamental unit of a logical work (like a software build, an automation task, test execution, etc) using the Jenkins automation server and other required plugins, configurations & infrastructures.

Job/Project(作业/项目)是使用 Jenkins 自动化服务器以及其他必要插件、配置和基础设施的逻辑工作(如软件构建、自动化任务、测试执行等)的基本单元。

Jobs can be of different types like - a freestyle project, a multi-configuration project, a pipeline project, a multi-branch project, etc.

作业可以有不同类型,如自由风格项目、多配置项目、流水线项目、多分支项目等。

317. What is a Jenkins Pipeline?

什么是 Jenkins 流水线?
  • 知识点: DevOps/云 (主题: jenkins, ci-cd, devops;标签: interviewbit, jenkins, topic-specific, ci-cd, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37b7a58d557c902bb0f39 | 官方: 否 | 付费: 否

答案:

Jenkins Pipeline

Jenkins 流水线

The pipeline is a special type of Jenkins job - simply a sequence of steps controlled by a defined logic - which Orchestrates long-running activities that can span across multiple build agents. It is suitable for building pipelines (formerly known as workflows) and/or organizing complex activities that cannot be easily achieved using a freestyle job.

流水线是一种特殊类型的 Jenkins 作业——简单地说,是由定义逻辑控制的一系列步骤——它编排可跨多个构建代理的长时间运行活动。它适用于构建流水线(以前称为工作流)和/或组织无法通过自由风格作业轻松实现的复杂活动。

Understand how to create your first pipeline here

在此处了解如何创建您的第一个流水线

318. What are the types of Jenkins pipelines?

Jenkins 流水线有哪些类型?
  • 知识点: DevOps/云 (主题: jenkins, ci-cd, devops;标签: interviewbit, jenkins, topic-specific, ci-cd, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37b7a58d557c902bb0f3c | 官方: 否 | 付费: 否

答案:

Jenkins Pipelines can be either - a Declarative pipeline or a Scripted Pipeline. Declarative pipeline makes use of numerous, generic, predefined build steps/stages (i.e. code snippets) to build our job according to our build/automation needs whereas, with Scripted pipelines, the steps/stages can be custom-defined & used using a groovy syntax which provides better control & fine-tuned execution levels.

Jenkins 流水线可以是声明式流水线或脚本式流水线。声明式流水线利用大量通用的、预定义的构建步骤/阶段(即代码片段)来根据我们的构建/自动化需求构建作业,而脚本式流水线可以使用 Groovy 语法自定义步骤/阶段,从而提供更好的控制和微调执行级别。

319. Explain Jenkins Multibranch Pipeline?

解释 Jenkins 多分支流水线?
  • 知识点: DevOps/云 (主题: jenkins, ci-cd, devops;标签: interviewbit, jenkins, topic-specific, ci-cd, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37b7a58d557c902bb0f44 | 官方: 否 | 付费: 否

答案:

Jenkins Multibranch Pipeline

Jenkins 多分支流水线

It is a pipeline job that can be configured to Create a set of Pipeline projects according to the detected branches in one SCM repository. This can be used to configure pipelines for all branches of a single repository e.g. if we maintain different branches (i.e. production code branches) for different configurations like locales, currencies, countries, etc.

它是一种流水线作业,可以根据一个 SCM 仓库中检测到的分支配置为创建一组流水线项目。这可用于为单个仓库的所有分支配置流水线,例如,如果我们针对不同配置(如区域设置、货币、国家等)维护不同分支(即生产代码分支)。

320. How do you store credentials in Jenkins securely?

如何在 Jenkins 中安全存储凭据?
  • 知识点: DevOps/云 (主题: jenkins, ci-cd, devops;标签: interviewbit, jenkins, topic-specific, ci-cd, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37b7a58d557c902bb0f49 | 官方: 否 | 付费: 否

答案:

Credentials can be stored securely in Jenkins using the Credentials plugin, which stores different types of credentials like - Username with a password, SSH username with the private key, AWS Credentials, Jenkins Build Token, Secret File/Text, X509 & other certificates, Vault related credentials securely with proper encryption & decryption as and when required.

可以使用凭据插件在 Jenkins 中安全存储凭据,该插件在需要时通过适当的加密和解密安全地存储不同类型的凭据,如带密码的用户名、带私钥的 SSH 用户名、AWS 凭据、Jenkins 构建令牌、机密文件/文本、X509 和其他证书、Vault 相关凭据。

Intermediate Questions

321. What are the ways to trigger a Jenkins Job/Pipeline?

触发 Jenkins 作业/流水线的方式有哪些?
  • 知识点: DevOps/云 (主题: jenkins, ci-cd, devops;标签: interviewbit, jenkins, topic-specific, ci-cd, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37b7a58d557c902bb0f4c | 官方: 否 | 付费: 否

答案:

There are many ways we can trigger a job in Jenkins. Some of the common ways are as below - - Trigger an API (POST) request to the target job URL with the required data.

在 Jenkins 中触发作业有很多方式。一些常见方式如下:- 使用所需数据向目标作业 URL 发送 API(POST)请求。
  • Trigger it manually from the Jenkins web application.
  • Trigger it using Jenkins CLI from the master/slave nodes.
  • Time-based Scheduled Triggers like a cron job.
  • Event-based Triggers like SCM Actions (Git Commit, Pull Requests), WebHooks, etc.
  • Upstream/Downstream triggers by other Jenkins jobs.

322. What is Jenkins Build Cause?

什么是 Jenkins 构建原因?
  • 知识点: DevOps/云 (主题: jenkins, ci-cd, devops;标签: interviewbit, jenkins, topic-specific, ci-cd, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37b7a58d557c902bb0f4f | 官方: 否 | 付费: 否

答案:

Build Cause is a text attribute that represents what made a job's build to be triggered, say it could be a Jenkins User (from UI), Timer for Scheduled jobs, Upstream jobs for a job which was triggered by upstream job, etc. This is mainly used to identify the nature of the builds - be it nightly, manual, automated, etc.

构建原因是文本属性,表示什么触发了作业的构建,例如可能是Jenkins用户(从界面)、定时任务的定时器、由上游作业触发的上游作业等。这主要用于识别构建的性质——是夜间、手动、自动化等。

323. How Jenkins knows when to execute a Scheduled job/pipeline and how it is triggered?

Jenkins如何知道何时执行定时作业/流水线,以及它如何被触发?
  • 知识点: DevOps/云 (主题: jenkins, ci-cd, devops;标签: interviewbit, jenkins, topic-specific, ci-cd, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37b7a58d557c902bb0f52 | 官方: 否 | 付费: 否

答案:

Jenkins master will have the cron entries set up for the jobs as per the scheduled Job's configurations. As and when the time for a particular job comes, it commands agents (based on the configuration of the job) to execute the job with required configurations.

Jenkins主节点将根据定时作业的配置为作业设置cron条目。当特定作业的时间到来时,它会根据作业配置命令代理(基于作业的配置)以所需配置执行作业。

324. What are the credential types supported by Jenkins?

Jenkins支持哪些凭据类型?
  • 知识点: DevOps/云 (主题: jenkins, ci-cd, devops;标签: interviewbit, jenkins, topic-specific, ci-cd, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37b7a58d557c902bb0f58 | 官方: 否 | 付费: 否

答案:

In Jenkins, credentials are a set of information used for authentication with internal/external services to accomplish an action. Jenkins credentials are provisioned & managed by a built-in plugin called - Credentials Binding - plugin. Jenkins can handle different credentials as follows - - Secret text - A token such as an API token, JSON token, etc.

在Jenkins中,凭据是用于与内部/外部服务进行身份验证以完成操作的一组信息。Jenkins凭据由内置插件——凭据绑定插件——提供和管理。Jenkins可以处理不同的凭据,如下所示——- 秘密文本 - 诸如API令牌、JSON令牌等令牌。
  • Username and password - Basic Authentication can be stored as a credential as well.
  • Secret file - A secret file used to authenticate some secure data services & security handshakes.
  • SSH Username with a private key - An SSH public/private key pair for Machine to Machine authentication.
  • Certificate - a PKCS#12 certificate file and an optional password.
  • Docker Host Certificate Authentication credentials.
    And as we can guess, this can be extended to several other extensible credential types like - AWS credential, Azure secrets, etc. using commonly available plugins.

    正如我们可以猜测的,这可以使用常用插件扩展到其他可扩展的凭据类型,如——AWS凭据、Azure机密等。

325. What are the Scopes of Jenkins Credentials?

Jenkins凭据的作用范围有哪些?
  • 知识点: DevOps/云 (主题: jenkins, ci-cd, devops;标签: interviewbit, jenkins, topic-specific, ci-cd, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37b7a58d557c902bb0f5d | 官方: 否 | 付费: 否

答案:

Jenkins credentials can be of one of the two scopes - Global & System

Jenkins凭据可以是以下两种作用域之一——全局和系统

Global - the credential will be usable across all the jobs configured in the Jenkins instance (i.e. for all jobs). This is more suited for user Jobs (i.e. for the freestyle, pipeline, or other jobs) to authenticate itself with target services/infrastructures to accomplish the purpose of the job)

全局——该凭据将可用于Jenkins实例中配置的所有作业(即所有作业)。这更适合用户作业(即自由风格、流水线或其他作业)用于与目标服务/基础设施进行身份验证以实现作业目的。

System - This is a special scope that will allow the Jenkins itself (i.e. the core Jenkins functionalities & some installed plugins) to authenticate itself to external services/infrastructures to perform some defined tasks. E.g. sending emails, etc.

系统——这是一种特殊的作用域,允许Jenkins本身(即Jenkins核心功能和一些已安装插件)与外部服务/基础设施进行身份验证以执行某些已定义任务。例如发送电子邮件等。

326. What is a Jenkins Shared Library and how it is useful?

什么是Jenkins共享库,它有什么用处?
  • 知识点: DevOps/云 (主题: jenkins, ci-cd, devops;标签: interviewbit, jenkins, topic-specific, ci-cd, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37b7a58d557c902bb0f60 | 官方: 否 | 付费: 否

答案:

As an organization starts using more and more pipeline jobs, there is a chance for more and more code being duplicated in every pipeline job, since a part of the build/automation processes will be the same for most of the jobs. In such a situation, every other new upcoming job should also duplicate the same piece of code. To avoid duplications, the Jenkins project brought in the concept of Shared Libraries, to code - DRY - Don't Repeat Yourself.

随着组织开始使用越来越多的流水线作业,每个流水线作业中重复的代码可能会越来越多,因为大多数作业的构建/自动化过程部分相同。在这种情况下,每个新的后续作业也要重复相同的代码段。为避免重复,Jenkins项目引入了共享库的概念,以实现代码的DRY——不要重复自己。

Shared libraries are a set of code that can be common for more than one pipeline job and can be maintained separately. Such libraries improve the maintenance, modularity & readability of the pipeline code. And it also speeds up the automation for new jobs.

共享库是一组代码,可以供多个流水线作业共用,并可单独维护。这些库提高了流水线代码的维护性、模块化和可读性。同时,它也加速了新作业的自动化。

327. How Jenkins jobs can be Triggered/Stopped/Controlled programmatically?

如何以编程方式触发/停止/控制Jenkins作业?
  • 知识点: DevOps/云 (主题: jenkins, ci-cd, devops;标签: interviewbit, jenkins, topic-specific, ci-cd, devops)
  • 类型: technical | 难度: easy | 子类型: coding
  • 分类: fullstack
  • id: 69b37b7a58d557c902bb0f63 | 官方: 否 | 付费: 否

答案:

Jenkins Remote Access API can be used to do things like - - Retrieving information about jobs, views, nodes, builds, etc. from Jenkins for programmatic consumption.

Jenkins远程访问API可用于执行诸如——- 从Jenkins检索作业、视图、节点、构建等信息以供程序化使用。
  • Trigger a build (both parameterized & non-parameterized), stop/abort a build, enable/disable a Job, group/remove jobs into/from views, etc.
  • Create/copy/modify/delete jobs.
    and many other programming language-specific functionalities. It has wrappers for main programming languages like - Python, Ruby & Java. It can be triggered via CURL as below -

    以及其他许多特定于编程语言的功能。它有针对主要编程语言(如Python、Ruby和Java)的包装器。它可以通过CURL如下触发——

Jobs without parameters

无参数的任务

Simply an HTTP POST on JENKINS_URL/job/JOBNAME/build.

只需向 JENKINS_URL/job/JOBNAME/build 发送一个 HTTP POST 请求。

Jobs with parameters

带参数的任务

Simple example - sending "String Parameters":

简单示例 - 发送“字符串参数”:

curl JENKINS_URL/job/JOB_NAME/buildWithParameters --user USER:TOKEN --data id=123 --data verbosity=high

curl JENKINS_URL/job/JOB_NAME/buildWithParameters --user USER:TOKEN --data id=123 --data verbosity=high

328. How to get the Jenkins version programmatically in Jobs/Pipelines or nodes other than master?

如何在任务/流水线或其他非主节点中通过编程方式获取 Jenkins 版本?
  • 知识点: DevOps/云 (主题: jenkins, ci-cd, devops;标签: interviewbit, jenkins, topic-specific, ci-cd, devops)
  • 类型: technical | 难度: easy | 子类型: coding
  • 分类: fullstack
  • id: 69b37b7a58d557c902bb0f66 | 官方: 否 | 付费: 否

答案:

To check the version of Jenkins, load the top-level page or any top-level Remote Access API path like the '.../api/*' page and then check for the 'X-Jenkins' response header.

要检查 Jenkins 的版本,请加载顶层页面或任何顶层远程访问 API 路径(如'.../api/*'页面),然后检查 'X-Jenkins' 响应头。

This contains the version number of Jenkins, like "1.404". This is also a good way to check if an URL is a Jenkins URL.

该响应头包含 Jenkins 的版本号,例如 "1.404"。这也是检查某个 URL 是否为 Jenkins URL 的好方法。

329. What happens when a Jenkins agent is offline and what is the best practice in that situation?

当 Jenkins agent 离线时会发生什么,以及在这种情况下最佳实践是什么?
  • 知识点: DevOps/云 (主题: jenkins, ci-cd, devops;标签: interviewbit, jenkins, topic-specific, ci-cd, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37b7a58d557c902bb0f69 | 官方: 否 | 付费: 否

答案:

When a job is tied to a specific agent on a specific node, the job can only be run on that agent and no other agents can fulfill the job request. If the target node is offline or all the agents on that particular node are busy building other jobs, then the triggered job has to wait until the node comes online or an agent from that node becomes available to execute the triggered build request.

当任务被绑定到特定节点上的特定 agent 时,该任务只能在该 agent 上运行,其他 agent 无法满足任务需求。如果目标节点离线或该特定节点上的所有 agent 都忙于构建其他任务,则触发的任务必须等待,直到节点上线或该节点上的某个 agent 可用于执行触发的构建请求。

As a result, a triggered job may sometimes wait indefinitely without knowing that the target node is offline. So, it is always the best practice to tie the jobs to a group of nodes & agents, referred to with a 'Label'. Once a job is tied to a Label, instead of a specific node/agent, any of the nodes/agents falling under the label can fulfill a build request, when a job is triggered. This way we can reduce the overall turn-around time of the builds.

因此,触发的任务有时可能会无限期等待,而不知道目标节点已离线。所以,最佳实践始终是将任务绑定到一组节点和 agent(以 '标签' 引用)。一旦任务绑定到标签而不是特定节点/agent,当任务被触发时,该标签下的任何节点/agent 都可以满足构建请求。这样我们可以减少构建的整体周转时间。

Even then if a job is waiting for more time for the nodes/agents, then it is time to consider adding more nodes/agents.

即便如此,如果任务等待节点/agent 的时间过长,那么是时候考虑增加更多节点/agent 了。

330. What is the Blue Ocean?

什么是 Blue Ocean?
  • 知识点: DevOps/云 (主题: jenkins, ci-cd, devops;标签: interviewbit, jenkins, topic-specific, ci-cd, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37b7a58d557c902bb0f6c | 官方: 否 | 付费: 否

答案:

Blue Ocean is the redefined user experience for Jenkins. Designed from the ground up for Jenkins Pipeline, it is still compatible with freestyle jobs, Blue Ocean reduces clutter and increases clarity. Blue Ocean’s main features include - - Sophisticated visualizations of continuous delivery (CD) Pipelines, allowing for fast and intuitive comprehension of your Pipeline’s status.

Blue Ocean 是重新定义的 Jenkins 用户体验。它是专为 Jenkins Pipeline 从头设计的,并且仍然兼容自由风格任务,Blue Ocean 减少了混乱并提高了清晰度。Blue Ocean 的主要功能包括 - - 持续交付(CD)流水线的复杂可视化,让您能够快速直观地了解流水线的状态。
  • Pipeline editor - makes the creation of Pipelines approachable by guiding the user through an intuitive and visual process to create a Pipeline.
  • Personalization to suit the role-based needs of each member of the team.
  • Pinpoint precision when intervention is needed and/or issues arise. Blue Ocean shows where in the pipeline attention is needed, facilitating exception handling and increasing productivity.
  • Native integration for branch and pull requests, enables maximum developer productivity when collaborating on code with others in GitHub, Bitbucket, etc.
    Conventional UI - Job Details Page

    传统 UI - 任务详情页

Conventional UI Jenkins

传统 UI Jenkins

331. What is the Jenkins User Content service?

什么是 Jenkins 用户内容服务?
  • 知识点: DevOps/云 (主题: jenkins, ci-cd, devops;标签: interviewbit, jenkins, topic-specific, ci-cd, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37b7a58d557c902bb0f6f | 官方: 否 | 付费: 否

答案:

Jenkins has a mechanism known as "User Content", where administrators can place files inside the $JENKINS_HOME/userContent folder and these files are served from yourhost/jenkins/userContent.

Jenkins 有一种称为“用户内容”的机制,管理员可以将文件放置在 $JENKINS_HOME/userContent 文件夹中,这些文件会从 yourhost/jenkins/userContent 提供访问。

This can be thought of as a mini HTTP server to serve images, stylesheets, and other static resources that you can use from various description fields inside Jenkins.

这可以看作是一个迷你 HTTP 服务器,用于提供图像、样式表和其他静态资源,您可以在 Jenkins 内的各种描述字段中使用这些资源。

332. How to do maintenance activity on the K8 node?

如何对 K8 节点进行维护活动?
  • 知识点: DevOps/云 (主题: kubernetes, containers, devops;标签: interviewbit, kubernetes, topic-specific, containers, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37b8358d557c902bb1540 | 官方: 否 | 付费: 否

答案:

Whenever there are security patches available the Kubernetes administrator has to perform the maintenance task to apply the security patch to the running container in order to prevent it from vulnerability, which is often an unavoidable part of the administration. The following two commands are useful to safely drain the K8s node. - kubectl cordon

每当有安全补丁可用时,Kubernetes 管理员必须执行维护任务,将安全补丁应用于运行中的容器以防漏洞,这通常是管理过程中不可避免的部分。以下两个命令有助于安全地排空 K8s 节点。- kubectl cordon
  • kubectl drain –ignore-daemon set
    The first command moves the node to maintenance mode or makes the node unavailable, followed by kubectl drain which will finally discard the pod from the node. After the drain command is a success you can perform maintenance.

    第一个命令将节点移至维护模式或使节点不可用,接着使用 kubectl drain 最终从节点上释放吊舱。在 drain 命令成功后,您可以执行维护。

Note: If you wish to perform maintenance on a single pod following two commands can be issued in order: - kubectl get nodes: to list all the nodes

注意:如果您希望对单个吊舱执行维护,可以按顺序发出以下两个命令:- kubectl get nodes:用于列出所有节点
  • kubectl drain : drain a particular node

333. How to get the central logs from POD?

如何从 POD 获取中央日志?
  • 知识点: DevOps/云 (主题: kubernetes, containers, devops;标签: interviewbit, kubernetes, topic-specific, containers, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37b8358d557c902bb1544 | 官方: 否 | 付费: 否

答案:

This architecture depends upon the application and many other factors. Following are the common logging patterns - Node level logging agent.

这种架构取决于应用程序和许多其他因素。以下是常见的日志模式 - 节点级日志代理。
  • Streaming sidecar container.
  • Sidecar container with the logging agent.
  • Export logs directly from the application.
    In the setup, journalbeat and filebeat are running as daemonset. Logs collected by these are dumped to the kafka topic which is eventually dumped to the ELK stack.

    在设置中,journalbeat 和 filebeat 作为守护进程集运行。这些工具收集的日志被转储到 kafka 主题,最终转储到 ELK 堆栈。

The same can be achieved using EFK stack and fluentd-bit.

同样可以通过 EFK 堆栈和 fluentd-bit 实现。

334. How to monitor the Kubernetes cluster?

如何监控 Kubernetes 集群?
  • 知识点: DevOps/云 (主题: kubernetes, containers, devops;标签: interviewbit, kubernetes, topic-specific, containers, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37b8358d557c902bb1547 | 官方: 否 | 付费: 否

答案:

Prometheus is used for Kubernetes monitoring. The Prometheus ecosystem consists of multiple components. - Mainly Prometheus server which scrapes and stores time-series data.

Prometheus 用于 Kubernetes 监控。Prometheus 生态系统由多个组件组成。- 主要是 Prometheus 服务器,它抓取并存储时间序列数据。
  • Client libraries for instrumenting application code.
  • Push gateway for supporting short-lived jobs.
  • Special-purpose exporters for services like StatsD, HAProxy, Graphite, etc.
  • An alert manager to handle alerts on various support tools.

335. What are the various things that can be done to increase Kubernetes security?

可以采取哪些措施来增强 Kubernetes 安全性?
  • 知识点: DevOps/云 (主题: kubernetes, containers, devops;标签: interviewbit, kubernetes, topic-specific, containers, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37b8358d557c902bb154a | 官方: 否 | 付费: 否

答案:

By default, POD can communicate with any other POD, we can set up network policies to limit this communication between the PODs. - RBAC (Role-based access control) to narrow down the permissions.

默认情况下,POD 可以与任何其他 POD 通信,我们可以设置网络策略来限制 POD 之间的通信。- RBAC(基于角色的访问控制)以缩小权限范围。
  • Use namespaces to establish security boundaries.
  • Set the admission control policies to avoid running the privileged containers.
  • Turn on audit logging.

336. What is the role of Load Balance in Kubernetes?

Kubernetes 中负载均衡的作用是什么?
  • 知识点: DevOps/云 (主题: kubernetes, containers, devops;标签: interviewbit, kubernetes, topic-specific, containers, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37b8358d557c902bb154d | 官方: 否 | 付费: 否

答案:

Load balancing is a way to distribute the incoming traffic into multiple backend servers, which is useful to ensure the application available to the users.

负载均衡是一种将传入流量分配到多个后端服务器的方式,这对于确保应用程序可供用户使用非常有用。

Load Balancer

负载均衡器

In Kubernetes, as shown in the above figure all the incoming traffic lands to a single IP address on the load balancer which is a way to expose your service to outside the internet which routes the incoming traffic to a particular pod (via service) using an algorithm known as round-robin. Even if any pod goes down load balances are notified so that the traffic is not routed to that particular unavailable node. Thus load balancers in Kubernetes are responsible for distributing a set of tasks (incoming traffic) to the pods

在Kubernetes中,如上图所示,所有传入流量都到达负载均衡器上的单个IP地址,这是一种将你的服务暴露到互联网之外的方式,它使用称为轮询的算法将传入流量路由到特定的Pod(通过服务)。即使任何Pod宕机,负载均衡器也会收到通知,以便流量不会路由到该不可用的节点。因此,Kubernetes中的负载均衡器负责将一组任务(传入流量)分配到各个Pod。

337. What’s the init container and when it can be used?

什么是初始化容器,它何时可以使用?
  • 知识点: DevOps/云 (主题: kubernetes, containers, devops;标签: interviewbit, kubernetes, topic-specific, containers, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37b8358d557c902bb1550 | 官方: 否 | 付费: 否

答案:

init containers will set a stage for you before running the actual POD.

初始化容器会在运行实际的Pod之前为你设置一个阶段。

Wait for some time before starting the app Container with a command like sleep 60.

在启动应用程序容器之前等待一段时间,例如使用命令 sleep 60。

Clone a git repository into a volume.

将Git仓库克隆到一个卷中。

338. What is PDB (Pod Disruption Budget)?

什么是PDB(Pod中断预算)?
  • 知识点: DevOps/云 (主题: kubernetes, containers, devops;标签: interviewbit, kubernetes, topic-specific, containers, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37b8358d557c902bb1553 | 官方: 否 | 付费: 否

答案:

A Kubernetes administrator can create a deployment of a kind: PodDisruptionBudget for high availability of the application, it makes sure that the minimum number is running pods are respected as mentioned by the attribute minAvailable spec file. This is useful while performing a drain where the drain will halt until the PDB is respected to ensure the High Availability(HA) of the application. The following spec file also shows minAvailable as 2 which implies the minimum number of an available pod (even after the election).

Kubernetes管理员可以创建一种类型为:PodDisruptionBudget的部署,以实现应用程序的高可用性,它确保运行中的Pod数量遵守minAvailable属性所规定的最小值。这在执行节点维护(drain)时很有用,因为维护会暂停直到PDB得到满足,以确保应用程序的高可用性。以下规格文件还显示minAvailable为2,这意味着可用Pod的最小数量(即使在选举之后)。

Example: YAML Config using minAvailable =>

示例:使用minAvailable的YAML配置 =>

apiVersion: policy/v1beta1

apiVersion: policy/v1beta1
kind: PodDisruptionBudget
kind: PodDisruptionBudget
metadata:
metadata:
name: zk-pdb
name: zk-pdb
spec:
spec:
minAvailable: 2
minAvailable: 2
selector:
选择器:
matchLabels:
匹配标签:
app: zookeeper
应用:zookeeper

339. What are the various K8's services running on nodes and describe the role of each service?

节点上运行的各种K8s服务有哪些,并描述每个服务的作用?
  • 知识点: DevOps/云 (主题: kubernetes, containers, devops;标签: interviewbit, kubernetes, topic-specific, containers, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37b8358d557c902bb1556 | 官方: 否 | 付费: 否

答案:

Mainly K8 cluster consists of two types of nodes, executor and master.

主要而言,K8集群由两种类型的节点组成,即执行节点和主节点。

Executor node: (This runs on master node) - Kube-proxy: This service is responsible for the communication of pods within the cluster and to the outside network, which runs on every node. This service is responsible to maintain network protocols when your pod establishes a network communication.

执行节点:(这运行在主节点上)- Kube-proxy:此服务负责集群内Pod之间以及与外部网络的通信,它在每个节点上运行。当您的Pod建立网络通信时,此服务负责维护网络协议。
  • kubelet: Each node has a running kubelet service that updates the running node accordingly with the configuration(YAML or JSON) file. NOTE: kubelet service is only for containers created by Kubernetes.
    Master services: - Kube-apiserver: Master API service which acts as an entry point to K8 cluster.

    主服务: - Kube-apiserver:主API服务,作为K8集群的入口点。
  • Kube-scheduler: Schedule PODs according to available resources on executor nodes.
  • Kube-controller-manager: is a control loop that watches the shared state of the cluster through the apiserver and makes changes attempting to move the current state towards the desired stable state

340. How do we control the resource usage of POD?

我们如何控制Pod的资源使用?
  • 知识点: DevOps/云 (主题: kubernetes, containers, devops;标签: interviewbit, kubernetes, topic-specific, containers, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37b8358d557c902bb1559 | 官方: 否 | 付费: 否

答案:

With the use of limit and request resource usage of a POD can be controlled.

通过使用限制和请求,可以控制Pod的资源使用。

Request: The number of resources being requested for a container. If a container exceeds its request for resources, it can be throttled back down to its request.

请求:为容器请求的资源数量。如果容器超出其资源请求,它可能会被限制回其请求水平。

Limit: An upper cap on the resources a single container can use. If it tries to exceed this predefined limit it can be terminated if K8's decides that another container needs these resources. If you are sensitive towards pod restarts, it makes sense to have the sum of all container resource limits equal to or less than the total resource capacity for your cluster.

限制:单个容器可以使用的资源上限。如果尝试超过此预设限制,当K8s决定另一个容器需要这些资源时,它可能会被终止。如果您对Pod重启敏感,将所有容器资源限制的总和设置为等于或小于集群的总资源容量是合理的。

Example:

示例:

apiVersion: v1

apiVersion: v1
kind: Pod
kind: Pod
metadata:
metadata:
name: demo
name: demo
spec:
spec:
containers:
containers:
  • name: example1
    image:example/example1

    镜像:example/example1
    resources:
    资源:
    requests:
    请求:
    memory: "_Mi"
    内存: "_Mi"
    cpu: "_m"
    中央处理器: "_m"
    limits:
    限制:
    memory: "_Mi"
    内存: "_Mi"
    cpu: "_m"
    中央处理器: "_m"

341. Why is Monitoring Java Garbage Collection Important?

为什么监控 Java 垃圾回收很重要?
  • 知识点: DevOps/云 / 编程语言基础 (标签: interviewbit, maq, company-specific)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: general
  • 公司: MAQ Software
  • id: 69b37bc758d557c902bb4585 | 官方: 否 | 付费: 否

答案:

Garbage collection can have unpredictable effects on Java app performance. As a result of frequent garbage collection, CPU loads may rise and application processing may slow down. As a result, end-users may experience a slower computing experience. As a result, a memory leak in the Java application can occur. In addition to CPU utilisation, garbage collection can also contribute to increased memory consumption. As a result, the greater garbage collection activity may be observed. Increased CPU utilisation may occur due to CPU overload caused by excessive garbage collection activity. A good Java app performance requires monitoring the GC usage. To achieve high app performance, an adequate GC should be used sparingly. GC usage should be kept to a minimum, typically less than 5% and the amount of CPU usage for garbage collection should be kept as low as possible (this allows application threads to use almost all the available CPU resources).

垃圾回收可能会对 Java 应用性能产生不可预测的影响。由于频繁的垃圾回收,CPU 负载可能会上升,应用处理可能会变慢。因此,最终用户可能会体验到较慢的计算体验。因此,Java 应用中可能会发生内存泄漏。除了 CPU 利用率之外,垃圾回收还可能导致内存消耗增加。因此,可能会观察到更多的垃圾回收活动。由于过多的垃圾回收活动导致 CPU 过载,可能会出现 CPU 利用率升高。良好的 Java 应用性能需要监控 GC 使用情况。为了实现高应用性能,应谨慎使用适当的 GC。GC 使用应保持在最低限度,通常低于 5%,并且用于垃圾回收的 CPU 使用量应尽可能低(这允许应用线程使用几乎所有可用的 CPU 资源)。

342. What is a Private Cloud in context of Cloud Computing?

在云计算的背景下,什么是私有云?
  • 知识点: DevOps/云 (标签: interviewbit, mphasis, company-specific)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: general
  • 公司: Mphasis
  • id: 69b37bd658d557c902bb4dc7 | 官方: 否 | 付费: 否

答案:

A private cloud (also termed as an internal cloud or corporate cloud) is a cloud computing environment wherein all hardware and software assets are devoted to a single client and only that customer has access to them. Private cloud combines the elasticity, scalability, and ease of service delivery of cloud computing with the access control, protection, and resource customization of on-premises infrastructure.

私有云(也称为内部云或企业云)是一种云计算环境,其中所有硬件和软件资产都专用于单个客户,并且只有该客户可以访问它们。私有云将云计算的弹性、可扩展性和易于服务交付与本地基础设施的访问控制、保护和资源定制相结合。

Since the private cloud is a more efficient (or the only) means to meet regulatory compliance standards, many enterprises prefer it to the public cloud (cloud computing services supplied over shared infrastructure by numerous clients). Others prefer the private cloud because their workloads contain confidential documents, proprietary information, personally identifiable information (PII), health records, financial information, or other sensitive data.

由于私有云是满足法规合规标准的更有效(或唯一)的手段,许多企业更倾向于它而不是公共云(由众多客户通过共享基础设施提供的云计算服务)。其他人更喜欢私有云,因为他们的工作负载包含机密文档、专有信息、个人身份信息(PII)、健康记录、财务信息或其他敏感数据。

When a company builds a private cloud architecture based on cloud-native principles, it offers itself the flexibility to shift workloads to the public cloud or run them in a hybrid cloud (mixed public and private cloud) environment when the time comes.

当公司基于云原生原则构建私有云架构时,它为自己提供了在时机成熟时将工作负载转移到公共云或在混合云(公共云和私有云的混合)环境中运行它们的灵活性。

Important Technical Interview Topics

重要的技术面试主题
  • Java Interview Questions
  • .NET Interview Questions
  • Software Engineering Interview Questions
  • Manual Testing Interview Questions
  • Automation Testing Interview Questions

343. What do you know about hyperconverged infrastructure? Why should the company consider it for its own infrastructure?

你对超融合基础设施了解多少?为什么公司应该考虑将其用于自己的基础设施?
  • 知识点: DevOps/云 (标签: interviewbit, nutanix, company-specific)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: general
  • 公司: Nutanix
  • id: 69b37c0258d557c902bb67c0 | 官方: 否 | 付费: 否

答案:

By integrating x86-based server resources with intelligent software in a unified software-defined solution, hyperconverged infrastructure simplifies the deployment, management, and scaling of data centre resources. To develop an agile data centre that scales with your business, separate servers, storage networks, and storage arrays can all be replaced with only a single hyperconverged system. It dismantles 3-tier infrastructure's outdated storage silos, reducing complexity and enabling better performance and resilience.

通过在统一的软件定义解决方案中将基于x86的服务器资源与智能软件集成,超融合基础设施简化了数据中心资源的部署、管理和扩展。为了构建随业务扩展的敏捷数据中心,独立的服务器、存储网络和存储阵列都可以用一个单一的超融合系统来替换。它拆除了三层基础设施过时的存储孤岛,降低了复杂性,并实现了更好的性能和弹性。

HCI is made up of only two main components: two planes. - The distributed plane distributes storage, virtualization, and networking capabilities to guest programs, whether they're VMs or container-based workloads, across a cluster of nodes.

HCI仅由两个主要组件组成:两个平面。- 分布式平面在节点集群中向客户程序分发存储、虚拟化和网络功能,无论它们是虚拟机还是基于容器的工作负载。
  • The management plane allows you to manage HCI resources from a single location with a single perspective. It removes the need for separate server, storage network, storage, and virtualization management systems.]
    The company should consider it for the following reasons: - Costs: Although HCI is a significant investment, it pales in comparison to the expenditures of maintaining and updating typical SAN infrastructures. With the installation of hyperconverged infrastructure, multiple suppliers and software licensing, paying for specialists, growing power and cooling costs, and the cost of providing storage can all be considerably reduced.

    公司应该考虑它,原因如下:- 成本:虽然HCI是一项重大投资,但与维护和更新典型SAN基础设施的支出相比,它显得微不足道。通过安装超融合基础设施,多个供应商和软件许可、支付专家费用、不断增长的电力与冷却成本以及提供存储的成本都可以大大降低。
  • Complexity: When it comes to datacenters and datacenter management, the list of silos, racks, servers, cables, distinct management interfaces, multiple suppliers, shelfware...the list is endless. HCI is a technique to "clean up" your datacenter by integrating critical pieces, lowering footprint, and administering your complete infrastructure from a single interface.
  • Cloudability: IT environments are becoming more multi-cloud, although the legacy infrastructure isn't designed to help businesses succeed in this context.
  • Putting an end to the famed 80/20 rule: Is it true that you spend 80% of your money on keeping the lights on and only 20% on innovation? That alters with HCI, which offers automation, self-service, growing on a pay-as-you-grow basis, and more time to concentrate on high-value business tasks.

344. What types of applications are available in the enterprise cloud?

企业云中有哪些类型的应用程序可用?
  • 知识点: DevOps/云 (标签: interviewbit, nutanix, company-specific)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: general
  • 公司: Nutanix
  • id: 69b37c0258d557c902bb67c3 | 官方: 否 | 付费: 否

答案:

From legacy software to new cloud-native apps provided on mobile devices, Enterprise Cloud is well-suited to run the applications that businesses have grown to rely on. The following are some of the most prevalent applications that run in the Enterprise Cloud: - Oracle databases and E-Business Suite, SAP Business Suite, Microsoft SQL Server, Microsoft Dynamics, IBM DB2, and many other business-critical applications

从传统软件到在移动设备上提供的新云原生应用,企业云非常适合运行企业所依赖的应用程序。以下是在企业云中运行的一些最常见的应用程序:- Oracle数据库和E-Business Suite、SAP Business Suite、Microsoft SQL Server、Microsoft Dynamics、IBM DB2以及许多其他业务关键型应用程序
  • Microsoft Exchange and SharePoint, as well as unified communication solutions like Cisco UC, Avaya Aura, and Microsoft Skype for Business, are examples of messaging and collaboration apps.
  • Multi-hypervisor compatibility for VMware ESXi, Microsoft Hyper-V, and Nutanix AHV virtualization for server virtualization and private clouds
  • Splunk, Hadoop, MongoDB, elastic, and other big data and cloud-native apps
  • Application virtualization and virtual desktop infrastructure (VDI)
  • Deployments of Remote Office and Branch Office (ROBO)
  • Puppet, Docker, and Chef are examples of development/testing apps.

Successful Tech Career for FREE!

免费开启成功的科技职业生涯!

Successful Tech Career!

成功的技术职业生涯!

Interview Process

面试流程

CTC & Designation

CTC与职位级别

Projects on the Job

工作项目

Referral System

推荐系统

Try It Out

试试看

2 Lakh+ Roadmaps Created

已生成20万+职业规划

345. Is the enterprise cloud software-based or hardware-based?

企业云是基于软件还是基于硬件?
  • 知识点: DevOps/云 (标签: interviewbit, nutanix, company-specific)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: general
  • 公司: Nutanix
  • id: 69b37c0258d557c902bb67c6 | 官方: 否 | 付费: 否

答案:

It's all about the software in this case! Multi-Cloud operations are made possible by the software. Regardless of the hardware you choose, whether it is Nutanix, HP, Dell, Cisco, Lenovo, or IBM, Enterprise Cloud software converges private, public, and distributed clouds, giving more simplicity to infrastructure and application management.

在这种情况下,一切都与软件有关!多云运营正是通过软件实现的。无论你选择何种硬件,无论是Nutanix、HP、Dell、Cisco、Lenovo还是IBM,企业云软件都能融合私有云、公有云和分布式云,从而让基础设施和应用管理更加简便。

346. What is the difference between a public cloud and an enterprise cloud?

公有云与企业云之间有什么区别?
  • 知识点: DevOps/云 (标签: interviewbit, nutanix, company-specific)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: general
  • 公司: Nutanix
  • id: 69b37c0258d557c902bb67c9 | 官方: 否 | 付费: 否

答案:

An enterprise cloud is a unified IT operating environment that combines private, public, and distributed clouds, allowing administrators to manage infrastructure and applications in any cloud from a single location. For both cloud operators and consumers of cloud-delivered services and apps, the enterprise cloud provides a consistent, high-performance, and seamless experience. The enterprise cloud is a concept for IT infrastructure and a platform service that combines the benefits of public cloud services with the value of private data centre settings for enterprise applications.

企业云是一种统一的IT运营环境,它将私有云、公有云和分布式云结合在一起,使管理员能够从一个位置管理任何云中的基础设施和应用。对于云运营商以及云交付服务和应用的消费者而言,企业云都能提供一致、高性能且无缝的体验。企业云是一种IT基础设施概念,也是一种平台服务,它将公有云服务的优势与企业应用的私有数据中心环境价值结合在一起。

347. What is OpenShift Dedicated?

什么是 OpenShift Dedicated?
  • 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c0458d557c902bb68d1 | 官方: 否 | 付费: 否

答案:

OpenShift Dedicated is a cloud service that provides a complete OpenShift cluster that is configured for high availability (HA) and dedicated to a single customer (single-tenant). Red Hat Operations manages OpenShift Dedicated, providing improved security and years of operational experience with OpenShift in development and production. OpenShift Dedicated also includes Red Hat Premium Support, which is available 24 hours a day, seven days a week.

OpenShift Dedicated 是一种云服务,提供完整配置为高可用性(HA)且专用于单一客户(单租户)的 OpenShift 集群。红帽运营团队管理 OpenShift Dedicated,提供增强的安全性和在开发及生产环境中多年的 OpenShift 运营经验。OpenShift Dedicated 还包括红帽高级支持,该支持全天候、每周七天可用。

On Amazon Web Services (AWS) and Google Cloud, Red Hat OpenShift Dedicated is a fully managed Red Hat OpenShift service. Reduce operational complexity and concentrate on developing and expanding solutions that will provide value to your company via OpenShift Dedicated. Monitoring cluster events, tracking usage, and capacity planning are all included with Red Hat OpenShift Dedicated.

在亚马逊网络服务(AWS)和谷歌云上,红帽 OpenShift Dedicated 是一项完全托管的红帽 OpenShift 服务。通过 OpenShift Dedicated 减少运营复杂性,并专注于开发和扩展能为您的公司带来价值的解决方案。监控集群事件、跟踪使用情况和容量规划均包含在红帽 OpenShift Dedicated 中。

348. What are the benefits of using DevOps tools?

使用 DevOps 工具的好处是什么?
  • 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c0458d557c902bb68d4 | 官方: 否 | 付费: 否

答案:

DevOps tool applications are perfect for increasing software delivery flexibility. DevOps tools also aid in increasing the frequency of deployments and lowering failure rates. DevOps tools also aid in quicker recovery and better time management in between fixes.

DevOps 工具应用程序非常适合提高软件交付灵活性。DevOps 工具还有助于增加部署频率并降低故障率。DevOps 工具还能加快修复之间的恢复速度,并更好地管理时间。

349. What are the most common OpenShift build strategies?

最常见的 OpenShift 构建策略有哪些?
  • 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c0458d557c902bb68d7 | 官方: 否 | 付费: 否

答案:

Docker strategy, custom strategy, Source to Image strategy, and pipeline strategy are the most frequent build strategies in OpenShift.

Docker 策略、自定义策略、源到镜像策略和管道策略是 OpenShift 中最常见的构建策略。

350. How is OpenStack different from OpenShift?

OpenStack 与 OpenShift 有何不同?
  • 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c0458d557c902bb68da | 官方: 否 | 付费: 否

答案:

The main distinction is that OpenStack offers Infrastructure as a Service (IaaS). OpenStack differs from OpenShift in that it provides object and block storage to a bootable virtual machine.

主要区别在于 OpenStack 提供基础设施即服务(IaaS)。OpenStack 与 OpenShift 的不同之处在于,它为可启动的虚拟机提供对象和块存储。

351. What are Init containers used for?

Init 容器用于什么?
  • 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c0458d557c902bb68dd | 官方: 否 | 付费: 否

答案:

Init containers, which run before application containers and can contain utilities or setup scripts not available in an app image, are provided by the OpenShift Container Platform. Before the rest of a pod is deployed, you can utilise an Init Container resource to conduct activities.

Init 容器在应用程序容器之前运行,可以包含应用镜像中不可用的实用工具或设置脚本,由 OpenShift 容器平台提供。在部署 Pod 的其余部分之前,您可以使用 Init 容器资源来执行活动。

In addition to application containers, a pod can have Init Containers. Setup scripts and binding code can be reorganised using init containers. An Init Container can do the following: - Contain and run utilities that, for security reasons, should not be included in the app Container image.

除了应用程序容器,Pod 还可以包含 Init 容器。可以使用 init 容器重新组织设置脚本和绑定代码。Init 容器可以执行以下操作:- 包含并运行出于安全原因不应包含在应用容器镜像中的实用工具。
  • Contains setup tools or custom code that isn't included in the app image. For example, using sed, awk, python, or dig during setup does not necessitate creating an image FROM another picture.
  • Use Linux namespaces to provide them different filesystem views than app containers, including access to secrets that app containers don't have.
    Before the next Init Container is started, the previous one must finish successfully. As a result, Init Containers make it simple to prevent or delay the launch of app containers until certain conditions are met.

    在下一个 Init 容器启动之前,上一个必须成功完成。因此,Init 容器使得在满足特定条件之前,轻松阻止或延迟应用程序容器的启动成为可能。

352. What are the different Red Hat Enterprise Linux CoreOS (RHCOS) tasks that you can perform as a cluster administrator?

作为集群管理员,您可以执行哪些不同的 Red Hat Enterprise Linux CoreOS (RHCOS) 任务?
  • 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c0458d557c902bb68e0 | 官方: 否 | 付费: 否

答案:

You can conduct the following Red Hat Enterprise Linux CoreOS (RHCOS) tasks as a cluster administrator: - Learn about the next generation of container operating system technology for single-purpose containers.

作为集群管理员,您可以执行以下 Red Hat Enterprise Linux CoreOS (RHCOS) 任务:- 了解用于单一用途容器的下一代容器操作系统技术。
  • Choose how you want Red Hat Enterprise Linux CoreOS (RHCOS) to be configured.
  • Select a deployment method for Red Hat Enterprise Linux CoreOS (RHCOS):
    Deployment that is pre-configured by the installer. Deployment based on user preferences.

    由安装程序预先配置的部署。基于用户偏好的部署。

The Ignition configuration files you'll need to deploy your cluster are created by the OpenShift Container Platform installation software. During the initial configuration of Red Hat Enterprise Linux CoreOS (RHCOS), Ignition is used to do basic disc functions such as partitioning, formatting, writing data, and configuring users. Ignition reads its configuration from the installation media or the place you provide on the first boot and applies it to the machines.

部署集群所需的 Ignition 配置文件由 OpenShift 容器平台安装软件创建。在 Red Hat Enterprise Linux CoreOS (RHCOS) 的初始配置期间,Ignition 用于执行基本磁盘功能,例如分区、格式化、写入数据和配置用户。Ignition 在首次启动时从安装介质或您指定的位置读取其配置,并将其应用到机器上。

You may learn how Ignition works, how to install a Red Hat Enterprise Linux CoreOS (RHCOS) server in an OpenShift Container Platform cluster, see Ignition configuration files, and alter Ignition configuration after it has been installed.

您可以学习 Ignition 的工作原理、如何在 OpenShift 容器平台集群中安装 Red Hat Enterprise Linux CoreOS (RHCOS) 服务器、查看 Ignition 配置文件,以及安装后修改 Ignition 配置。

353. Why should you use OpenShift?

为什么应该使用 OpenShift?
  • 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c0458d557c902bb68e3 | 官方: 否 | 付费: 否

答案:

OpenShift provides a standard platform for business units to host their apps on the cloud without having to worry about the operating system. This makes it very simple to use, build, and deploy cloud-based apps. It provides managed hardware and network resources for all types of development and testing, which is one of the essential characteristics. PaaS developers using OpenShift can construct their environment based on their needs.

OpenShift 为业务部门提供了一个标准平台,以便在云上托管其应用,而无需担心操作系统。这使得创建、构建和部署基于云的应用变得非常简单。它为所有类型的开发和测试提供托管的硬件和网络资源,这是其基本特征之一。使用 OpenShift 的 PaaS 开发人员可以根据其需求构建他们的环境。

354. What is the OpenShift Container Platform by Red Hat?

Red Hat 的 OpenShift 容器平台是什么?
  • 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c0458d557c902bb68e6 | 官方: 否 | 付费: 否

答案:

To design and deploy better apps quicker, a hybrid cloud, enterprise Kubernetes platform is needed. The Red Hat OpenShift Container Platform provides a unified hybrid cloud basis for developing and scaling containerized applications.

为了更快地设计和部署更好的应用,需要混合云、企业级 Kubernetes 平台。Red Hat OpenShift 容器平台为开发和扩展容器化应用提供了统一的混合云基础。

Red Hat's on-premises private platform as a service solution, OpenShift Container Platform, is based on Red Hat Enterprise Linux and built around a core of application containers powered by Docker, with orchestration and management provided by Kubernetes. Red Hat's experience in identifying and promptly providing solutions for vulnerabilities in both the platform and the containerized apps running on it will benefit the OpenShift Container Platform. Red Hat also has experience efficiently integrating new components with the OpenShift Container Platform as they become available, as well as modifying technology to meet the needs of individual customers.

Red Hat 的本地私有平台即服务解决方案 OpenShift 容器平台基于 Red Hat Enterprise Linux,并围绕由 Docker 驱动的应用程序容器核心构建,由 Kubernetes 提供编排和管理。Red Hat 在识别并及时为平台及其上运行的容器化应用中的漏洞提供解决方案方面的经验将使 OpenShift 容器平台受益。Red Hat 还拥有在新组件可用时将其高效集成到 OpenShift 容器平台,以及调整技术以满足个别客户需求的丰富经验。

The OpenShift Container Platform is intended to secure Kubernetes and combine it with a range of additional components. OpenShift Container Platform accomplishes this by leveraging the broad Red Hat ecosystem of open source technologies, which includes operating systems, authentication, storage, networking, development tools, base container images, and a variety of other components.

OpenShift 容器平台旨在保护 Kubernetes,并将其与一系列附加组件相结合。OpenShift 容器平台通过利用 Red Hat 广泛的开放源代码技术生态系统来实现这一点,其中包括操作系统、身份验证、存储、网络、开发工具、基础容器镜像以及各种其他组件。

355. What are deployment strategies?

什么是部署策略?
  • 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c0458d557c902bb68e9 | 官方: 否 | 付费: 否

答案:

A deployment strategy is a method of updating or changing an application. The goal is to implement the modification with little downtime so that the user doesn't notice any improvements.

部署策略是一种更新或更改应用程序的方法。其目标是以最小停机时间实施修改,以便用户不会注意到任何改进。

A blue-green deployment is the most typical strategy. Users continue to utilise the stable version while the new version (the blue version) is tested and evaluated (the green version). Users are converted to the blue version when they are ready. You can revert to the green version if a problem arises. An alternate technique is to employ A/B versions that are both live at the same time, with some users using one and others using the other. This can be used to collect customer feedback on modifications to the user interface and other features. It can also be used to check good operation in a production setting if only a small number of users are affected.

蓝绿部署是最典型的策略。用户继续使用稳定版本,而新版本(蓝色版本)在测试和评估时(绿色版本)。用户准备好后,会转换到蓝色版本。如果出现问题,您可以回退到绿色版本。另一种技术是采用 A/B 版本,两者同时活跃,一些用户使用一个,其他用户使用另一个。这可用于收集用户对界面和其他功能修改的反馈。如果只影响少量用户,也可用于在生产环境中检查正常运行。

Canary deployment is used to test the new version, but if a fault is discovered, it rapidly reverts to the previous version. Both of the aforementioned tactics can be used to accomplish this. The count of pods in the facilities is not scaled by route-based deployment options. The deployment configurations might have to be scaled to maintain acceptable performance characteristics.

金丝雀部署用于测试新版本,但如果发现故障,它会迅速回退到先前版本。上述两种策略均可用于实现此目的。基于路由的部署选项不会扩展设施中的 pod 数量。可能必须扩展部署配置,以维持可接受的性能特性。

Because the end-user typically gets the application via a router-managed route, the deployment strategy can concentrate on DeploymentConfig object or routing characteristics. All routes that use the application are affected by deployment strategies. Individual routes are targeted via strategies that leverage router features.

由于最终用户通常通过路由器管理的路由获取应用程序,因此部署策略可以集中于 DeploymentConfig 对象或路由特性。所有使用该应用程序的路由都受部署策略影响。利用路由器特性的策略针对各个路由。

The DeploymentConfig object supports many deployment strategies, and some extra strategies are provided by router features. When deciding on a deployment strategy, keep the following in mind:

DeploymentConfig 对象支持多种部署策略,路由器特性还提供一些额外策略。在决定部署策略时,请考虑以下事项:

Long-term connections must be managed with care. Database conversions are time-consuming and must be done in tandem with the application. Downtime may be necessary to complete the transition if the application is a hybrid of microservices and traditional components. To do this, you'll need the necessary infrastructure. You can break both new and old versions in a non-isolated test environment.

必须谨慎管理长期连接。数据库转换耗时,且必须与应用程序协同进行。如果应用程序是微服务和传统组件的混合体,则可能需要停机来完成转换。为此,您需要必要的基础设施。在非隔离测试环境中,新旧版本都可能发生故障。

A readiness check is used in a deployment strategy to see if a new pod is ready to use. The DeploymentConfig object retries to run the pod until it times out if a readiness check fails. TimeoutSeconds in dc.spec.strategy.*params sets the default timeout to 10m.

部署策略中使用就绪检查来确定新 pod 是否可用于使用。如果就绪检查失败,DeploymentConfig 对象会重试运行该 pod,直到超时。dc.spec.strategy.*params 中的 TimeoutSeconds 将默认超时设置为 10 分钟。

356. What exactly do you mean when you say "rolling deployments"?

当您说“滚动部署”时,具体是什么意思?
  • 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c0458d557c902bb68ec | 官方: 否 | 付费: 否

答案:

A rolling deployment gradually replaces instances of an application's prior version with instances of the new version. If no deployment strategy is given on a DeploymentConfig object, the rolling strategy is utilised by default.

滚动部署会逐渐用新版本的实例替换应用程序先前版本的实例。如果 DeploymentConfig 对象上未指定部署策略,则默认使用滚动策略。

Before scaling down the old components, a rolling deployment normally waits for fresh pods to become ready via a readiness check. If a major problem arises, the rolling deployment can be stopped.

在缩减旧组件之前,滚动部署通常会通过就绪检查等待新 pod 就绪。如果出现重大问题,可以停止滚动部署。

The rolling deployment should be used : - When you don't want to experience any downtime while updating an application.

应使用滚动部署: - 当您希望更新应用程序时避免任何停机。
  • When your application allows you to run both old and new code at the same time.
    You can have both old and new versions of your code running at the same time with a rolling deployment. This usually necessitates your application's ability to handle N-1 compatibility.

    通过滚动部署,您可以同时运行代码的旧版本和新版本。这通常要求您的应用程序能够处理 N-1 兼容性。

The rolling strategy supports the following: - Any pre-lifecycle hook is executed.

滚动策略支持以下内容: - 执行任何生命周期前钩子。
  • Based on the surge count, scales up the new replication controller.
  • The previous replication controller is scaled down according to the maximum unavailability count.
  • Scales the new replication controller until it reaches the target replica count and the old replication controller is scaled to zero.
  • Any post lifecycle hook is executed.

357. What exactly do you mean when you say "canary deployment"?

当您说“金丝雀部署”时,具体是什么意思?
  • 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c0458d557c902bb68ef | 官方: 否 | 付费: 否

答案:

In the OpenShift Container Platform, all rolling deployments are canary deployments, which means that a new version (the canary) is tested before all of the previous instances are replaced. The canary instance is removed and the DeploymentConfig object is automatically rolled back if the readiness check fails.

在 OpenShift Container Platform 中,所有滚动部署都是金丝雀部署,这意味着在替换所有先前实例之前,会先测试新版本(金丝雀)。如果就绪检查失败,金丝雀实例会被移除,DeploymentConfig 对象会自动回滚。

The readiness check is included in the application code and can be as complex as needed to guarantee that the new instance is ready to use. Consider designing a custom deployment or using a blue-green deployment method if you need to perform more complex application checks (such as passing real user workloads to the new instance).

就绪检查包含在应用程序代码中,其复杂程度可根据需要设定,以确保新实例已准备好使用。如果需要执行更复杂的应用程序检查(例如将真实用户工作负载传递给新实例),请考虑设计自定义部署或使用蓝绿部署方法。

358. What are cartridges in OpenShift?

OpenShift 中的 cartridge 是什么?
  • 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c0458d557c902bb68f2 | 官方: 否 | 付费: 否

答案:

Cartridges are the parts of an OpenShift Enterprise application that include the application code needed to run it. Programming languages, databases, monitoring services, and management are all supported by cartridges.

Cartridge 是 OpenShift Enterprise 应用程序的组成部分,包含运行应用程序所需的代码。编程语言、数据库、监控服务和管理功能都受 cartridge 支持。

Adding a cartridge to an application gives you the functionality you want without having to manage or maintain the incorporated feature. When a cartridge is added to an application, it is assigned to one or more gears based on its specifications. Other cartridges can be deployed across several gears of an application, whereas those that listen to incoming traffic are placed on one or more gears.

向应用程序添加 cartridge 可获得所需的功能,而无需管理或维护所集成的功能。当 cartridge 添加到应用程序时,它会根据其规范被分配到一个或多个 gear 上。其他 cartridge 可以部署在应用程序的多个 gear 上,而监听传入流量的 cartridge 则放置在一个或多个 gear 上。

Web cartridges are available for a variety of programming languages and frameworks, and every application needs at least one to listen for HTTP requests. When creating an application, the type of web framework cartridge must be selected. Other cartridges can be deployed across several gears of an application, whereas those that listen to incoming traffic are placed on one or more gears.

Web cartridge 适用于多种编程语言和框架,每个应用程序至少需要一个来监听 HTTP 请求。创建应用程序时,必须选择 Web 框架 cartridge 的类型。其他 cartridge 可以部署在应用程序的多个 gear 上,而监听传入流量的 cartridge 则放置在一个或多个 gear 上。

Following the creation of an application with the essential web framework cartridge, a variety of add-on cartridges, such as databases, scheduled jobs, and continuous integration, can be used to enhance the functionality and capabilities of the programme. Database Cartridges and Monitoring and Management Cartridges are other types of cartridges available.

在创建带有基本 Web 框架 cartridge 的应用程序后,可以使用各种附加 cartridge(如数据库、计划任务和持续集成)来增强程序的功能和能力。数据库 cartridge 和监控与管理 cartridge 是其他可用的 cartridge 类型。

Along with the supported standard OpenShift Enterprise cartridges, downloadable cartridges are available for new and existing applications. These are user-created cartridges or cartridges accessible from the OpenShift community. The URL to the manifest of the hosted downloadable cartridge is used to download and install these cartridges.

除了受支持的标准 OpenShift Enterprise cartridge 外,新应用程序和现有应用程序还可使用可下载的 cartridge。这些是用户创建的 cartridge 或可从 OpenShift 社区访问的 cartridge。托管可下载 cartridge 的清单 URL 用于下载和安装这些 cartridge。

359. What is the OpenShift Command Line Interface (CLI)?

什么是 OpenShift 命令行界面(CLI)?
  • 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c0458d557c902bb68f5 | 官方: 否 | 付费: 否

答案:

The OpenShift CLI tool is a command-line tool for managing OpenShift applications. We can manage the application's life cycle from start to finish using the OpenShift CLI. It provides basic and complex application setup features. It also has tools for managing, distributing, and adding new apps.

OpenShift CLI 工具是一个用于管理 OpenShift 应用程序的命令行工具。我们可以使用 OpenShift CLI 从头到尾管理应用程序的生命周期。它提供了基本和复杂的应用程序设置功能。它还具有管理、分发和添加新应用程序的工具。

You can create applications and manage OpenShift Container Platform projects from a terminal using the OpenShift command-line interface (CLI). After you've installed the CLI, you can use the oc command to access it. In the following scenarios, the OpenShift CLI is ideal: - Working directly with the source code of the project

您可以使用 OpenShift 命令行界面(CLI)从终端创建应用程序并管理 OpenShift Container Platform 项目。安装 CLI 后,可以使用 oc 命令进行访问。在以下场景中,OpenShift CLI 非常理想: - 直接使用项目的源代码
  • OpenShift Container Platform operations can be scripted.
  • Project management while bandwidth is limited and the web console is unavailable.
    A few of the major CLI commands are listed below: - Create a new project with the oc new-project command.

    下面列出了几个主要的 CLI 命令: - 使用 oc new-project 命令创建新项目。
  • Create a new application with the oc new-app command.
  • To see the pods for the current project, use the oc get pods command.
  • To access logs for a specific pod, use the oc logs command.
  • To see the current project, use the oc project command.
  • To get information about the current project, including as services, deployments, and build configs, use the oc status command.
  • The oc api-resources command displays a list of the server's supported API resources.
  • To see the description and fields for a specific resource, use the oc explain command.
  • To see a list and description of all available CLI commands, type oc help.

360. What distinguishes Docker from OpenShift?

Docker 与 OpenShift 有何区别?
  • 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c0458d557c902bb68f8 | 官方: 否 | 付费: 否

答案:

Container management and orchestration platforms Docker and OpenShift are both well-known. They both have distinct advantages and features that make them ideal options based on your needs. Let's compare and contrast the two.

容器管理和编排平台 Docker 和 OpenShift 都为众所周知。它们都有独特的优势和功能,使它们根据您的需求成为理想的选择。让我们对两者进行比较和对比。
  • OpenShift contains a runtime container as well as a REST API, coordination, and web interfaces for deploying and managing individual containers, whereas Docker only deploys projects using runtime containers.Cartridges, which are effectively hooks defined in shell scripts that get called during the invocation of a system call, are how OpenShift models functional units. Docker, on the other hand, achieves the same result by using docker images, but it requires a lot of human work behind the scenes.
  • Internally, OpenShift uses Kubernetes for container orchestration, whereas Docker uses Docker swarms.
  • Docker takes advantage of the AUFS concept for improved disc and file cloning as well as write-while-sharing. OpenShift, on the other hand, does not require it and is incompatible with such systems.
  • Some of the companies that use OpenShift include Hazeroid, Vungle, and Accenture whereas Twitter, Spotify, and Pinterest are just a few of the businesses that use Docker.

361. What are Red Hat OpenShift Pipelines?

什么是 Red Hat OpenShift Pipelines?
  • 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c0458d557c902bb68fb | 官方: 否 | 付费: 否

答案:

Red Hat OpenShift Pipelines is a Kubernetes-based cloud-native continuous integration and continuous delivery (CI/CD) system. It abstracts away the underlying implementation details by using Tekton building pieces to automate deployments across different platforms. For defining CI/CD pipelines, Tekton presents a set of standard custom resource definitions (CRDs) that are transferable between Kubernetes distributions.

Red Hat OpenShift Pipelines 是一个基于 Kubernetes 的云原生持续集成和持续交付(CI/CD)系统。它通过使用 Tekton 构建组件来抽象底层实现细节,从而在不同平台上自动化部署。为了定义 CI/CD 管道,Tekton 提供了一组标准的自定义资源定义(CRD),这些定义可在 Kubernetes 发行版之间传递。

The following are the features of Red Hat OpenShift Pipelines are: - Red Hat OpenShift Pipelines is a serverless CI/CD system that runs pipelines in isolated containers with all essential dependencies.

以下是 Red Hat OpenShift Pipelines 的功能:- Red Hat OpenShift Pipelines 是一个无服务器 CI/CD 系统,在隔离的容器中运行管道,并包含所有必要依赖项。
  • Pipelines from Red Hat OpenShift are built for dispersed teams working with microservice-based architecture.
  • Red Hat OpenShift Pipelines leverage standard CI/CD pipeline definitions that are simple to modify and integrate with existing Kubernetes tools, allowing for on-demand scaling.
  • You may utilise Red Hat OpenShift Pipelines to create images that are portable across any Kubernetes platform using Kubernetes capabilities like Source-to-Image (S2I), Buildah, Buildpacks, and Kaniko.
  • Create Tekton resources, examine pipeline run logs, and manage pipelines in your OpenShift Container Platform namespaces using the OpenShift Container Platform Developer console.

362. Explain the use of triggers in Red Hat OpenShift Pipelines.

解释 Red Hat OpenShift Pipelines 中触发器(triggers)的用途。
  • 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c0458d557c902bb68fe | 官方: 否 | 付费: 否

答案:

Create a full-fledged CI/CD system using Triggers and Pipelines, where Kubernetes resources define the complete CI/CD execution. External events, such as a Git pull request, are captured and processed by triggers, which extract critical pieces of information. When this event data is mapped to a set of specified parameters, a sequence of jobs are launched that can generate and deploy Kubernetes resources, as well as instantiate the pipeline.

使用触发器(Triggers)和管道(Pipelines)创建一个完整的 CI/CD 系统,其中 Kubernetes 资源定义整个 CI/CD 执行过程。外部事件(如 Git 拉取请求)由触发器捕获和处理,并提取关键信息。当此事件数据映射到一组指定参数时,会启动一系列作业,这些作业可以生成和部署 Kubernetes 资源,并实例化管道。

For example, you define a CI/CD pipeline for your application using Red Hat OpenShift Pipelines. For any new modifications in the application repository to take effect, the pipeline must be started. Triggers automate this process by capturing and processing any change event and starting a pipeline run that delivers the updated image.

例如,你使用 Red Hat OpenShift Pipelines 为应用程序定义了一个 CI/CD 管道。要使应用程序仓库中的任何新修改生效,必须启动管道。触发器通过捕获和处理任何更改事件,并启动管道运行以交付更新后的镜像来自动化此过程。

363. What OpenShift Virtualization can do for you?

OpenShift Virtualization 能为你做什么?
  • 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c0458d557c902bb6901 | 官方: 否 | 付费: 否

答案:

OpenShift Virtualization is an OpenShift Container Platform add-on that lets you run and manage virtual machine workloads alongside container workloads.

OpenShift Virtualization 是 OpenShift Container Platform 的一个附加组件,让你可以运行和管理虚拟机工作负载,同时处理容器工作负载。

To allow virtualization tasks, OpenShift Virtualization adds new objects to your OpenShift Container Platform cluster using Kubernetes custom resources. These responsibilities include: - Creating and controlling virtual machines in Linux and Windows

为了支持虚拟化任务,OpenShift Virtualization 使用 Kubernetes 自定义资源向 OpenShift Container Platform 集群添加新对象。这些职责包括:- 创建和控制 Linux 和 Windows 虚拟机
  • Using many consoles and CLI tools to connect to virtual machines
  • Existing virtual machines can be imported and cloned.
  • Managing virtual machines' network interface controllers and storage disks.
  • Virtual machines are being moved between nodes in real-time.
    Along with the OpenShift Container Platform cluster containers and infrastructure, an updated web console provides a graphical portal for managing these virtualized resources.

    除了 OpenShift Container Platform 集群容器和基础设施外,更新后的 Web 控制台还提供了一个图形门户,用于管理这些虚拟化资源。

OpenShift Virtualization has been tested with OpenShift Container Storage (OCS) and is optimised for use with OCS capabilities. You can utilise OVN-Kubernetes, OpenShift SDN, or one of the other certified default Container Network Interface (CNI) network providers specified in Certified OpenShift CNI Plug-ins with OpenShift Virtualization.

OpenShift Virtualization 已通过 OpenShift Container Storage (OCS) 测试,并针对 OCS 功能进行了优化。你可以结合 OpenShift Virtualization 使用 OVN-Kubernetes、OpenShift SDN,或认证 OpenShift CNI 插件中指定的其他认证默认容器网络接口 (CNI) 网络提供商。

364. Explain the concept of pods in OpenShift.

解释 OpenShift 中 pod 的概念。
  • 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c0458d557c902bb6904 | 官方: 否 | 付费: 否

答案:

The Kubernetes concept of a pod, which is one or more containers deployed on one host and the smallest compute unit that can be designed, deployed, and managed, is used by OpenShift Online.

OpenShift Online 使用 Kubernetes 的 pod 概念,即部署在一台主机上的一个或多个容器,且是可设计、部署和管理的最小计算单元。

Pods are the container's rough equivalent of a machine instance (physical or virtual). Containers within pods can share their local storage and networking because each pod has its internal IP address and so owns its own port space.

Pod 大致相当于容器环境的机器实例(物理或虚拟)。Pod 内的容器可以共享其本地存储和网络,因为每个 pod 都有自己的内部 IP 地址,并拥有自己的端口空间。

Pods have a life cycle in which they are defined, assigned to a node, and then operate until their container(s) exit or they are removed for some other reason. Pods may be removed after leaving or preserved to allow access to their containers' logs, depending on the policy and exit code.

Pod 有一个生命周期,在其中被定义、分配给节点,然后运行直到其容器退出或因其他原因被移除。根据策略和退出代码,pod 可能在退出后被移除或保留以允许访问其容器日志。

Changes to a pod specification can't be done while it's running in OpenShift Online because it's immutable. Changes are implemented in OpenShift Online by terminating an existing pod and re-creating it with the new configuration, base image(s), or both. Pods are also viewed as disposable, and their condition is not preserved when they are regenerated. As a result, rather than being managed directly by users, pods should normally be managed by higher-level controllers.

在 OpenShift Online 中运行时,pod 规范无法更改,因为它是不可变的。更改是通过终止现有 pod 并使用新配置、基础镜像或两者重新创建来实现的。Pod 也被视为可丢弃的,其状态在重新生成时不会保留。因此,Pod 通常应由更高级别的控制器管理,而不是直接由用户管理。

365. What are the features provided by Red Hat OpenShift?

Red Hat OpenShift 提供的功能有哪些?
  • 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c0458d557c902bb6907 | 官方: 否 | 付费: 否

答案:

The following features are provided by OpenShift: - Cluster services: A core Red Hat OpenShift functionality is automated installation on hybrid cloud infrastructures. OpenShift uses Kubernetes Operators to deliver immutable installation and updates across the platform. OpenShift also supports virtualization, allowing users to manage containers and virtual machines side by side in a single control plane.

OpenShift 提供以下功能:- 集群服务:Red Hat OpenShift 的核心功能是在混合云基础设施上实现自动化安装。OpenShift 使用 Kubernetes Operators 在整个平台上提供不可变的安装和更新。OpenShift 还支持虚拟化,允许用户在单一控制平面中并排管理容器和虚拟机。
  • Integrations that have been tested: Software-defined networking is included in Red Hat OpenShift, and it also verifies other common networking systems. For each release, Red Hat OpenShift additionally verifies many storage and third-party plug-ins.
  • Platform-related services: The application platform you select should make workload management easy. That means it must support essential cloud-native services used by developers, such as Service Mesh, Serverless, and Pipelines, which can be installed on-demand using Red Hat OpenShift.
  • Services for applications: A choice is important to developers. You must support the languages, database engines, and runtimes that bring their code to life because they want to select how they build and deploy apps. You can honour those choices with Red Hat OpenShift without sacrificing availability or security.
  • Security Benefits: The enterprise-grade features provided by OpenShift are one of the main reasons why corporate customers choose it over Kubernetes. As a result, there are typically increased expectations and obligations in terms of security and compliance.

366. What is the use of admission plug-ins?

准入插件有什么用途?
  • 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c0458d557c902bb690a | 官方: 否 | 付费: 否

答案:

Admission plug-ins can be used to control how the OpenShift Container Platform works. Admission plug-ins intercept resource requests sent to the master API after they have been authenticated and allowed to validate resource requests and guarantee that scaling regulations are followed. Security regulations, resource constraints, and configuration requirements are all enforced using admission plug-ins.

准入插件可用于控制OpenShift Container Platform的工作方式。准入插件在资源请求经过身份验证后拦截发送到主API的请求,并允许验证资源请求,确保遵循扩展规则。安全规则、资源约束和配置要求都通过准入插件强制执行。

367. What are the multiple identity providers supported by the OpenShift Container?

OpenShift Container支持哪些多种身份提供程序?
  • 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c0458d557c902bb690d | 官方: 否 | 付费: 否

答案:

Multiple identity providers are supported by the OpenShift Container Platform, including: - htpasswd

OpenShift Container Platform支持多种身份提供程序,包括:- htpasswd
  • Keystone
  • GitHub
  • GitLab
  • LDAP
  • Basic-authentication
  • request header
  • Google
  • OpenID

368. What is a route and how can you create a simple HTTP-based route to a web application?

什么是路由,如何为Web应用程序创建简单的基于HTTP的路由?
  • 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c0458d557c902bb6910 | 官方: 否 | 付费: 否

答案:

You can use a route to host your app at a public URL. Depending on your application's network security setup, it can be secure or insecure. An HTTP-based route is an unsecured route that provides a service on an unsecured application port and employs the fundamental HTTP routing protocol. Using the hello-openshift application as an example, the following technique explains how to construct a simple HTTP-based route to a web application.

您可以使用路由在公共URL上托管应用程序。根据应用程序的网络安全设置,路由可以是安全的或非安全的。基于HTTP的路由是一种非安全路由,它在非安全应用程序端口上提供服务,并采用基本的HTTP路由协议。以hello-openshift应用程序为例,以下技术解释了如何为Web应用程序构建简单的基于HTTP的路由。

Prerequisites: - You have the OpenShift CLI installed (oc).

前提条件:- 您已安装OpenShift CLI(oc)。
  • As an administrator, you are logged in.
  • You have a web application that exposes a port and a TCP endpoint that listens on the port for traffic.
    Procedure to create a simple HTTP-based route to a web application: - Make a project with the name hello-openshift.

    为Web应用程序创建简单的基于HTTP的路由的步骤:- 创建一个名为hello-openshift的项目。
  • In the project, make a pod.
  • Make an openshift service called hello-openshift.
  • Make an unsecured route to the hello-openshift app.

369. What is HTTP strict transport security?

什么是HTTP严格传输安全?
  • 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c0458d557c902bb6913 | 官方: 否 | 付费: 否

答案:

The HTTP Strict Transport Security (HSTS) policy is a security feature that informs the browser client that on the route host, only HTTPS traffic is permitted. HSTS also improves web traffic by notifying the need for HTTPS transport without the use of HTTP redirection. HSTS can let you engage with websites more quickly.

HTTP严格传输安全(HSTS)策略是一种安全功能,它告知浏览器客户端,在路由主机上只允许HTTPS流量。HSTS还通过通知需要HTTPS传输而不使用HTTP重定向来改善Web流量。HSTS可以让您更快速地与网站交互。

370. What is Openshift Online?

什么是OpenShift Online?
  • 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c0458d557c902bb6917 | 官方: 否 | 付费: 否

答案:

OpenShift Online is an OpenShift community service that allows you to quickly create, deploy and scale containerized applications in the cloud. This is Red Hat's public cloud platform for development and hosting, which enables automated provisioning, application scalability, and management, allowing developers to focus on the framework logic.

OpenShift Online是一项OpenShift社区服务,允许您在云中快速创建、部署和扩展容器化应用程序。这是Red Hat用于开发和托管的公共云平台,支持自动配置、应用程序可扩展性和管理,使开发人员能够专注于框架逻辑。

371. What is the web console for the OpenShift Container Platform?

OpenShift Container Platform的Web控制台是什么?
  • 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c0458d557c902bb691b | 官方: 否 | 付费: 否

答案:

The web console for the OpenShift Container Platform provides a user interface that can be accessed through a web browser. The web console allows developers to display, access, and manage project content. To use the web console, JavaScript must be enabled. Use a web browser that supports WebSockets for the best results.

OpenShift Container Platform的Web控制台提供了可通过Web浏览器访问的用户界面。Web控制台允许开发人员显示、访问和管理项目内容。要使用Web控制台,必须启用JavaScript。使用支持WebSockets的Web浏览器以获得最佳效果。

Before you build the supporting infrastructure for your cluster, look over the OpenShift Container Platform 4.x Tested Integrations page. On the master, the web console runs as a pod. The pod serves the static assets required to run the web console. After successfully installing OpenShift Container Platform using openshift-install create a cluster, look in the CLI output of the installation programme for the URL for the web portal and login credentials for your deployed cluster.

在为集群构建支持基础设施之前,请查看OpenShift Container Platform 4.x测试集成页面。在主节点上,Web控制台作为Pod运行。该Pod提供运行Web控制台所需的静态资源。成功使用openshift-install创建集群安装OpenShift Container Platform后,在安装程序的CLI输出中查找Web门户的URL和已部署集群的登录凭证。

To log in and access the web console, use those credentials. To access the web console URL for existing clusters that you did not install, run oc whoami —show console.

要登录并访问Web控制台,请使用这些凭证。要访问您未安装的现有集群的Web控制台URL,请运行oc whoami —show console。

372. What are services in OpenShift?

OpenShift 中的服务是什么?
  • 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c0458d557c902bb691e | 官方: 否 | 付费: 否

答案:

Services, like pods, are REST objects. An internal load balancer is provided by a Kubernetes service. It identifies a collection of replicated pods to which it will proxy connections received. Backing pods can be added or deleted from a service at any time while it stays consistently available, allowing anything that relies on it to refer to it at the same address. The default service clusterIP addresses come from OpenShift Online's internal network and are used to allow pods to communicate with one another.

服务与 Pod 一样,都是 REST 对象。Kubernetes 服务提供了一个内部负载均衡器。它标识一组复制的 Pod,并将接收到的连接代理到这些 Pod。支持性 Pod 可以随时从服务中添加或删除,而服务始终保持一致可用,允许依赖它的任何东西以相同地址引用它。默认的服务 clusterIP 地址来自 OpenShift Online 的内部网络,用于让 Pod 之间相互通信。

A replication controller keeps track of how many replicas of a pod are active at any given time. If a pod exits or is removed, the replication controller creates more up to the specified number. Similarly, if there are more running than wanted, it deletes as many as are required to meet the specified number. With the idea of deployments, OpenShift Online expands support for the software development and deployment lifecycle, building on replication controllers. A deployment just installs a new replication controller and allows it to start up pods in the most basic example. OpenShift Online deployments, on the other hand, allow you to transition from a current image deployment to a new one, as well as define hooks to run before or after the replication controller is created.

复制控制器跟踪在任何给定时间活跃的 Pod 副本数量。如果 Pod 退出或被移除,复制控制器会创建更多副本直到达到指定数量。同样,如果运行的副本数多于所需数量,它会删除多余部分以满足指定数量。借助部署的概念,OpenShift Online 在复制控制器的基础上扩展了对软件开发和部署生命周期的支持。在最基本的示例中,部署仅安装一个新的复制控制器并允许其启动 Pod。而另一方面,OpenShift Online 部署允许你从当前镜像部署过渡到新部署,并定义在复制控制器创建之前或之后运行的钩子。

When a service is accessed, it is given an IP address and port pair that redirects to the appropriate underlying pod. A label selector is used by a service to locate all running containers that provide a specific network service on a specific port.

当访问服务时,它会获得一个 IP 地址和端口对,该组合重定向到相应的底层 Pod。服务使用标签选择器来查找所有在特定端口上提供特定网络服务的运行容器。

373. Define labels.

定义标签。
  • 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c0458d557c902bb6921 | 官方: 否 | 付费: 否

答案:

API objects are organised, grouped, and selected using labels. Pods, for example, are "tagged" with labels, and services utilise label selectors to determine which pods to proxy to. This allows services to refer to groups of pods, even treating pods that may have distinct containers as linked entities.

API 对象使用标签进行组织、分组和选择。例如,Pod 被“标记”上标签,服务利用标签选择器来确定要代理到哪些 Pod。这允许服务引用 Pod 组,甚至将可能具有不同容器的 Pod 视为关联实体。

Labels can be included in the metadata of almost any object. As a result, labels can be used to group arbitrarily similar objects; for example, all of an application's pods, services, replication controllers, and deployment configurations can be grouped.

标签几乎可以包含在任何对象的元数据中。因此,标签可用于分组任意相似的对象;例如,应用程序的所有 Pod、服务、复制控制器和部署配置都可以被分组。

374. Define source-to-image strategy.

定义源到镜像策略。
  • 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c0458d557c902bb6928 | 官方: 否 | 付费: 否

答案:

S2I stands for source-to-image, and it's a tool for creating repeatable container images. By injecting the application source into a container image and building a new image, it creates ready-to-run images. The new image contains the base image, the builder, and the constructed source, and is ready to execute with the buildah run command. S2I allows you to create incremental builds that reuse previously downloaded dependencies, generated artefacts, and so on. Source-to-image (S2I) builds can be incremental, which implies it reuses artefacts from prior builds.

S2I 代表源到镜像,它是一种用于创建可重复容器镜像的工具。通过将应用程序源代码注入容器镜像并构建新镜像,它生成即用型镜像。新镜像包含基础镜像、构建器和构建的源代码,并准备好使用 buildah run 命令执行。S2I 允许你创建增量构建,复用先前下载的依赖项、生成的工件等。源到镜像(S2I)构建可以是增量的,这意味着它复用先前构建中的工件。

375. Define custom build strategy.

定义自定义构建策略。
  • 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c0458d557c902bb692b | 官方: 否 | 付费: 否

答案:

Developers can use the custom build strategy to specify a specific builder image that will be responsible for the full build process. You can tailor your build process by using your builder image.

开发人员可以使用自定义构建策略来指定一个特定的构建器镜像,该镜像将负责整个构建过程。通过使用你的构建器镜像,你可以定制构建流程。

A custom builder image is a conventional container image with build process logic incorporated in it, such as for creating RPMs or base images. Custom builds have a high level of privilege and are not accessible by default to users. Custom builds should only be accessible to users who can be trusted with cluster administration permissions. Custom strategies allow you to provide an arbitrary list of secrets to the builder pod in addition to the source and image secrets that may be added to all build types.

自定义构建器镜像是包含构建过程逻辑的常规容器镜像,例如用于创建 RPM 或基础镜像。自定义构建具有高权限级别,默认情况下用户无法访问。自定义构建应仅对可信用户开放,这些用户需具备集群管理权限。自定义策略允许你除了可能添加到所有构建类型的源代码和镜像密钥外,还向构建器 Pod 提供任意列表的密钥。

376. What is the procedure for adding secrets with a web console?

使用 Web 控制台添加密钥的过程是什么?
  • 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c0458d557c902bb6930 | 官方: 否 | 付费: 否

答案:

You can give your build configuration a secret to allow it to access a private repository. To enable access to a private repository from the OpenShift Container Platform web portal, add a secret to your build configuration: - Make a new project in the OpenShift Container Platform.

你可以为构建配置提供密钥,以允许其访问私有仓库。要从 OpenShift Container Platform Web 门户启用对私有仓库的访问,请将密钥添加到构建配置中:- 在 OpenShift Container Platform 中新建一个项目。
  • Make a secret with credentials for gaining access to a private source code repository.
  • Make a configuration for the construction.
  • Set the Source Secret on the web console's build configuration editor page or create an app from the builder image page.
  • Save the file.

377. You are provided an n-length height integer array. There are n vertical lines made using I 0) and as the two ends of the ith line (i, height[i]). Find two lines that, when joined with the x-axis, produce a container with the most water inside.

给定一个长度为 n 的高度整数数组。使用 (i, 0) 和 (i, height[i]) 作为第 i 条线的两个端点,共有 n 条垂直线。找出两条线,使它们与 x 轴一起构成一个能容纳最多水的容器。
  • 知识点: DevOps/云 (标签: interviewbit, qualcomm, company-specific)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: general
  • 公司: 高通
  • id: 69b37c2d58d557c902bb8141 | 官方: 否 | 付费: 否

答案:

Return the most water that a container can hold. Keep in mind that you cannot tilt the container.

返回容器能够容纳的最多水量。请记住,你不能倾斜容器。

Example 1:

示例1:
  • Input: height = [1,8,6,2,5,4,8,3,7]
  • Output: 49
  • Explanation: The above vertical lines are represented by an array [1,8,6,2,5,4,8,3,7]. In this case, the max area of water (blue section) the container can contain is 49.

Example 2:

示例2:
  • Input: height = [1,1]
  • Output: 1

The plan is to begin by setting a variable, fIdx = 0, at the beginning of the array and another, bIdx = height, at the rear. size() - 1.

该计划是先设置一个变量,fIdx = 0,放在数组开头,另一个变量 bIdx = height,放在末尾。size() - 1。
By multiplying the difference between the two index variables' lower heights, min(height[fIdx], height[bIdx]), we may first compute the maximum area (bIdx - fIdx). Next, we determine whether the computed area exceeds maxArea and, if so, update maxArea.
通过将两个索引变量较低高度之间的差值 min(height[fIdx], height[bIdx]) 相乘,我们可以首先计算出最大面积 (bIdx - fIdx)。接下来,我们判断计算出的面积是否超过 maxArea,如果超过,则更新 maxArea。

The biggest discrepancy between the index variables bIdx and fIdx is present in the beginning. Now, the disparity grows less if we raise fIdx or lower bIdx. This indicates that increasing the height is the only method to obtain a greater area than the existing maxArea.

索引变量 bIdx 和 fIdx 之间的最大差距出现在开始时。现在,如果我们增加 fIdx 或减小 bIdx,差距会变小。这表明增加高度是获得比现有 maxArea 更大面积的唯一方法。

Therefore, we determine which of the two heights, height[fIdx] or height[bIdx], is smaller and then either raise fIdx++ or reduce bIdx depending on whether height[fIdx] or height[bIdx] is greater.

因此,我们确定 height[fIdx] 或 height[bIdx] 这两个高度中哪个较小,然后根据 height[fIdx] 或 height[bIdx] 哪个更大来决定是增加 fIdx++ 还是减小 bIdx。

The next subsequent area is unquestionably smaller if height[fIdx] == height[bIdx], since the index difference bIdx - fIdx decrements by 1 and the height of the area either remains the same (if the modified index variable is now at an index with equal or bigger height) or is smaller.

如果 height[fIdx] == height[bIdx],那么接下来的面积无疑会更小,因为索引差 bIdx - fIdx 减少了 1,而面积的高度要么保持不变(如果修改后的索引变量现在处于高度相等或更大的索引处),要么变小。

class Solution {

class Solution {
public:
public:
int maxArea(vector& height) {
int maxArea(vector& height) {
int fIdx = 0;
int fIdx = 0;
int bIdx = height.size() - 1;
int bIdx = height.size() - 1;
int maxArea = 0;
int maxArea = 0;
while (fIdx < bIdx){
while (fIdx < bIdx){
maxArea = max(maxArea, min(height[fIdx], height[bIdx]) * (bIdx-fIdx));
maxArea = max(maxArea, min(height[fIdx], height[bIdx]) * (bIdx-fIdx));
if (height[fIdx] <= height[bIdx]){
if (height[fIdx] <= height[bIdx]){
fIdx++;
fIdx++;
} else{
} else{
bIdx--;
bIdx--;
}
}
return maxArea;
return maxArea;
}
};

378. What is Splunk used for?

Splunk 有什么用途?
  • 知识点: DevOps/云 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c5758d557c902bc7941 | 官方: 否 | 付费: 否

答案:

In general, machine data is difficult to understand and has an unstructured format (not arranged as per pre-defined data model), making it unsuitable for analysis and visualization of data. Splunk is the perfect tool for tackling such problems. Splunk is used to analyze machine data for several reasons:

一般来说,机器数据难以理解且具有非结构化格式(未按预定义数据模型排列),使其不适合进行数据分析和可视化。Splunk 是解决此类问题的理想工具。Splunk 用于分析机器数据的原因有以下几个:
  • Provides business insights: The Splunk platform analyzes machine data for patterns and trends, providing operational insights that assist businesses in making smarter decisions for the profitability of the organization.
  • Enhances operational visibility: Splunk obtains a comprehensive view of overall operations based on machine data and then aggregates it across the entire infrastructure.
  • Ensures proactive monitoring: Splunk employs a real-time analysis of machine data to discover system errors and vulnerabilities (external/internal breaches and intrusions).
  • Search and Investigation: Splunk uses machine data to pinpoint and fix problems by correlating events across numerous data sources and detecting patterns in large datasets.

379. Can you explain how Splunk works?

你能解释一下Splunk是如何工作的吗?
  • 知识点: DevOps/云 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c5758d557c902bc7944 | 官方: 否 | 付费: 否

答案:

In order to use Splunk in your infrastructure, you must understand how Splunk performs on the internal level. In general, Splunk processes data in three stages :

要在你的基础设施中使用Splunk,你必须理解Splunk在内部级别是如何运行的。总的来说,Splunk分三个阶段处理数据:
  • Data Input Stage: This stage involves Splunk consuming raw data not from a single, but from many sources, breaking it up into 64K blocks, and annotating each block with metadata keys. A metadata key includes the hostname, source, and source type of the data.
  • Data Storage Stage: In this stage, two different phases are performed, Parsing and Indexing.
    In the Parsing phase, Splunk analyzes the data, transforms it, and extracts only the relevant information. This is also called "event processing," since it breaks down the data sets into different events.

    在解析阶段,Splunk分析数据、转换数据,并提取出仅相关的信息。这也被称为“事件处理”,因为它将数据集分解为不同的事件。
    During the indexing phase, Splunk software writes the parsed events into the index queue. One of the main benefits of using this is to make sure the data is easily accessible for anyone during the search.
    在索引阶段,Splunk软件将解析后的事件写入索引队列。使用这一过程的主要好处之一是确保任何人都能在搜索时轻松访问数据。
  • Data Searching Stage: This stage usually controls how the index data is accessed, viewed, and used by the user. Reports, event types, dashboards, visualization, alerts, and other knowledge objects can be created based on the user's reporting requirements.

380. What are the main components of Splunk Architecture?

Splunk架构的主要组件是什么?
  • 知识点: DevOps/云 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
  • 类型: technical | 难度: easy | 子类型: system-design
  • 分类: fullstack
  • id: 69b37c5758d557c902bc7947 | 官方: 否 | 付费: 否

答案:

As shown below, Splunk Architecture is composed of three main components:

如下所示,Splunk架构由三个主要组件组成:
  • Splunk Forwarder: These are components that you use to collect machine data/logs. This is responsible for gathering and forwarding real-time data with less processing power to Indexer. Splunk forwarder performs cleansing of data depending on the type of forwarder used (Universal or Heavy forwarder).
  • Splunk Indexer: The indexer allows you to index i.e., transform raw data into events and then store the results data coming from the forwarder. Incoming data is processed by the indexer in real-time. Forwarder transforms data into events and stores them in indexes to enable search operations to be performed efficiently.
  • Search Head: This component is used to interact with Splunk. It lets users perform various operations like performing queries, analysis, etc., on stored data through a graphical user interface. Users can perform searches, analyze data, and report results.

381. Write different types of Splunk forwarder.

写出不同类型的Splunk转发器。
  • 知识点: DevOps/云 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c5758d557c902bc794a | 官方: 否 | 付费: 否

答案:

A forwarder is a Splunk instance or agent you deploy on IT systems, which collects machine logs and sends them to the indexer. You can choose between two types of forwarders: - Universal Forwarder: A universal forwarder is ideal for sending raw data collected at the source to an indexer without any prior processing. Basically, it's a component that performs minimal processing before forwarding incoming data streams to an indexer. Although it is faster, it also results in a lot of unnecessary information being forwarded to the indexer, which will result in higher performance overhead for the indexer.

转发器是你部署在IT系统上的Splunk实例或代理,它收集机器日志并将其发送到索引器。你可以选择两种类型的转发器:- 通用转发器:通用转发器理想用于将源端收集的原始数据不经任何预处理的发送到索引器。基本上,它是一种在将传入数据流转发到索引器之前执行最小化处理的组件。虽然它更快,但它也会导致大量不必要的信息被转发到索引器,这会给索引器带来更高的性能开销。
  • Heavy Forwarder: You can eliminate half of your problems using a heavy forwarder since one level of data processing happens at the source before forwarding the data to the indexer. Parsing and indexing take place on the source machine and only data events that are parsed are sent to the indexer.

382. What are the advantages of getting data into a Splunk instance through Forwarders?

通过转发器将数据获取到Splunk实例有什么优势?
  • 知识点: DevOps/云 / 行为与软技能 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
  • 类型: behavioral | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c5758d557c902bc794d | 官方: 否 | 付费: 否

答案:

Data entering into Splunk instances via forwarders has many advantages including bandwidth throttling, a TCP connection, and an encrypted SSL connection between the forwarder and indexer. By default, data forwarded to the indexers are also load-balanced, and if one indexer goes down for any reason, that data can always be routed to another indexer instance in a very short amount of time. Furthermore, the forwarder stores the data events locally before forwarding them, creating a temporary backup of the data.

通过转发器进入Splunk实例的数据有许多优势,包括带宽限制、TCP连接,以及转发器和索引器之间的加密SSL连接。默认情况下,转发到索引器的数据也会进行负载均衡,如果某个索引器因任何原因宕机,数据总能在非常短的时间内路由到另一个索引器实例。此外,转发器在转发前会在本地存储数据事件,从而创建数据的临时备份。
  • Data Science
  • All Events
  • My Events

383. What do you mean by Splunk Dashboards and write its type?

Splunk仪表板是什么意思,并写出其类型?
  • 知识点: DevOps/云 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c5758d557c902bc7950 | 官方: 否 | 付费: 否

答案:

In a dashboard, tables, charts, event lists, etc., are used to represent data visualizations, and they do so by using panels. Dashboard panels present or display chart data, table data, or summarized data visually in a pleasing manner. On the same dashboard, we can add multiple panels, and therefore multiple reports and charts. Splunk is a popular data platform with lots of customization options and dashboard options.

在仪表板中,表格、图表、事件列表等用于表示数据可视化,并通过面板来实现。仪表板面板以美观的方式视觉化地呈现或显示图表数据、表格数据或汇总数据。在同一个仪表板上,我们可以添加多个面板,从而添加多个报告和图表。Splunk是一个流行的数据平台,具有大量的自定义选项和仪表板选项。

There are three kinds of the dashboard you can create with Splunk: - Dynamic form-based dashboards: They allow Splunk users to change the dashboard data based on values entered in input fields without leaving the page. A dashboard can be customized by adding input fields (such as time, radio buttons, text boxes, checkboxes, dropdowns, and so on) that change the data, depending on the selection made. Dashboards of this type are useful for troubleshooting issues and analyzing data.

你可以用Splunk创建三种类型的仪表板:- 动态基于表单的仪表板:它们允许Splunk用户无需离开页面即可根据输入字段中输入的值更改仪表板数据。通过添加入输入字段(如时间、单选按钮、文本框、复选框、下拉列表等)来自定义仪表板,这些字段会根据所做的选择来更改数据。这类仪表板对于排查问题和分析数据非常有用。
  • Static Real-time Dashboards: They are often displayed on a large screen for constant viewing. It also provides alerts and indicators to prompt quick responses from relevant personnel.
  • Scheduled Dashboards: These dashboards can be downloaded as PDF files and shared with team members at predetermined intervals. There are times when active live dashboards can only be viewed by certain viewers/users only.
    Some of the Splunk dashboard examples include security analytics dashboard, patient treatment flow dashboard, eCommerce website monitoring dashboard, exercise tracking dashboard, runner data dashboard, etc.

    一些Splunk仪表板示例包括安全分析仪表板、患者治疗流程仪表板、电子商务网站监控仪表板、运动跟踪仪表板、跑步者数据仪表板等。

384. Explain Splunk Query.

解释Splunk查询。
  • 知识点: DevOps/云 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c5758d557c902bc7953 | 官方: 否 | 付费: 否

答案:

Splunk queries allow specific operations to be run on machine-generated data. Splunk queries communicate with a database or source of data by using SPL (Search Processing Language). This language contains many functions, arguments, commands, etc., that can be used to extract desired information from machine-generated data. This makes it possible for users to analyze their data by running queries. Similar to SQL, it allows users to update, query, and change data in databases.

Splunk查询允许对机器生成的数据执行特定操作。Splunk查询通过使用SPL(搜索处理语言)与数据库或数据源进行通信。该语言包含许多函数、参数、命令等,可用于从机器生成的数据中提取所需信息。这使得用户可以通过运行查询来分析其数据。与SQL类似,它允许用户更新、查询和更改数据库中的数据。

It is primarily used to analyze log files and extract reference information from machine-generated data. In particular, it is beneficial to companies that have a variety of data sources and need to process and analyze them simultaneously in order to produce real-time results.

它主要用于分析日志文件并从机器生成的数据中提取参考信息。尤其对于拥有多种数据源、需要同时处理和分析以产生实时结果的公司来说,它非常有益。

385. What are different types of Splunk License?

Splunk 许可证有哪些不同类型?
  • 知识点: DevOps/云 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c5758d557c902bc7956 | 官方: 否 | 付费: 否

答案:

A license is required for each Splunk instance. With Splunk, you receive a license that specifies which features you can use and how much data can be indexed. Various Splunk License types include: - The Splunk Enterprise license: Among all Splunk license types, Enterprise licenses are the most popular. These licenses give users access to all the features of Splunk Enterprise within a specified limit of indexed data or vCPU usage per day. These licenses include enterprise features such as authentication and distributed search. Several types of Splunk Enterprise licenses are available, including the Splunk for Industrial IoT license and Splunk Enterprise Trial license.

每个 Splunk 实例都需要许可证。使用 Splunk 时,您会收到一个许可证,它规定了您可以使用哪些功能以及可以索引多少数据。各种 Splunk 许可证类型包括: - Splunk Enterprise 许可证:在所有 Splunk 许可证类型中,Enterprise 许可证最受欢迎。这些许可证允许用户在指定的每日索引数据或 vCPU 使用量限制内访问 Splunk Enterprise 的所有功能。这些许可证包括身份验证和分布式搜索等企业功能。可用的 Splunk Enterprise 许可证类型有几种,包括 Splunk for Industrial IoT 许可证和 Splunk Enterprise 试用许可证。
  • The Free license: Under the Free license, Splunk Enterprise is completely free to use with limited functionality. Some features are not available under this license, such as authentication. Only a limited amount of data can be indexed.
  • The Forwarder license: A Forwarder license enables unlimited forwarding of data, as well as a subset of the Splunk Enterprise features that are required for authentication, configuration management, and sending data.
  • The Beta license: Each Splunk beta release requires a separate beta license, which cannot be used with other Splunk releases. With a beta license, Splunk Enterprise features are enabled for a specific beta release period.

386. What is the importance of License Master in Splunk? If the License Master is not reachable, what will happen?

Splunk 中 License Master 的重要性是什么?如果 License Master 不可达,会发生什么?
  • 知识点: DevOps/云 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c5758d557c902bc7959 | 官方: 否 | 付费: 否

答案:

It is the responsibility of the license master in Splunk to ensure that the limited amount of data is indexed. Since each Splunk license is based on the amount of data that is coming into the platform in 24 hours, it is essential to keep the environment within the limits of its purchased volume.

Splunk 中 license master 的责任是确保有限数量的数据被索引。由于每个 Splunk 许可证基于 24 小时内进入平台的数据量,因此必须将环境保持在购买容量的限制范围内。

Whenever the license master becomes unavailable, it is simply impossible to search the data. Therefore, only searching remains halted while the indexing of data continues. Data entering the Indexer won't be impacted. Your Splunk deployment will continue to receive data, and the Indexers will continue to index the data as usual. However, upon exceeding the indexing volume, you will receive a warning message on top of your Search head or web interface so that you can either reduce your data intake or purchase a larger capacity license.

每当 license master 不可用时,搜索数据就根本不可能实现。因此,只有搜索会停止,而数据索引会继续进行。进入 Indexer 的数据不会受到影响。您的 Splunk 部署将继续接收数据,Indexer 将继续照常索引数据。但是,一旦超过索引容量,您将在 Search Head 或 Web 界面上方收到警告消息,以便您减少数据摄入量或购买更大容量的许可证。

387. Explain License violation. How will you handle or troubleshoot a license violation warning?

解释许可证违规。您将如何处理或排查许可证违规警告?
  • 知识点: DevOps/云 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c5758d557c902bc795c | 官方: 否 | 付费: 否

答案:

License violations occur after a series of license warnings, and license warnings occur when your daily indexing volume exceeds the license's limit. Getting multiple license warnings and exceeding the maximum warning limit for your license will result in a license violation. With a Splunk commercial license, users can receive five warnings within a 30-day period before Indexer stops triggering search results and reports. Users of the free version, however, will only receive three warnings.

许可证违规发生在一系列许可证警告之后,而许可证警告在您的每日索引量超过许可证限制时发生。收到多次许可证警告并超过许可证的最大警告限制将导致许可证违规。使用 Splunk 商业许可证,用户可在 30 天期限内收到五次警告,之后 Indexer 将停止触发搜索结果和报告。然而,免费版用户只会收到三次警告。

Avoid License Warning: - Monitor your license usage over time and ensure that you have enough license volume to meet your daily needs.

避免许可证警告: - 随时监控您的许可证使用情况,确保有足够的许可证容量满足日常需求。
  • Viewing the license usage report in the license master can help troubleshoot index volume.
  • In the monitoring console, set up an alert to track daily license usage.
    Troubleshoot License Violation Warning: - Determine which index/source type recently received more data than usual.

    排查许可证违规警告: - 确定哪个索引/源类型最近接收的数据量比平时多。
  • Splunk Master license pool-wise quotas can be checked to identify the pool for which the violation occurred.
  • Once we know which pool is receiving more data, then we need to determine which source type is likely to be receiving more than normal data.
  • Having identified the source type, the next step is to find out which machine is sending so many logs and the reason behind it.
  • We can then troubleshoot the problem accordingly.

388. Write down some common Splunk ports.

写出一些常见的 Splunk 端口。
  • 知识点: DevOps/云 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c5758d557c902bc795f | 官方: 否 | 付费: 否

答案:

The following are common ports used by Splunk: - Web Port: 8000

Splunk 使用的常见端口如下: - Web 端口:8000
  • Management Port: 8089
  • Network port: 514
  • Index Replication Port: 8080
  • Indexing Port: 9997
  • KV store: 8191

389. Explain Splunk Database (DB) Connect.

解释 Splunk 数据库(DB)连接。
  • 知识点: DevOps/云 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c5758d557c902bc7966 | 官方: 否 | 付费: 否

答案:

Splunk Database (DB) Connect is a general-purpose SQL (Structured Query Language) database extension/plugin for Splunk that permits easy integration between database information and Splunk queries/reports. Splunk DB Connect is effectively used to combine structured data from databases with unstructured machine data, and Splunk Enterprise can then be used to uncover insights from the combined data.

Splunk 数据库(DB)连接是 Splunk 的通用 SQL(结构化查询语言)数据库扩展/插件,允许数据库信息与 Splunk 查询/报告之间轻松集成。Splunk DB Connect 有效地用于将数据库中的结构化数据与非结构化机器数据结合,然后可使用 Splunk Enterprise 从组合数据中发现洞察。

Some of the benefits of using Splunk Database Connect connect are as follows: - By using Splunk DB Connect, you are adding new data inputs for Splunk Enterprise, i.e., adding additional sources of data to Splunk Enterprise. Splunk DB Connect lets you import your database tables, rows, and columns directly into Splunk Enterprise, which then indexes them. Once that relational data is within Splunk Enterprise, you can analyze and visualize it the same way you would any other Splunk Enterprise data.

使用 Splunk Database Connect 的一些好处如下: - 通过使用 Splunk DB Connect,您为 Splunk Enterprise 添加了新的数据输入,即向 Splunk Enterprise 添加了额外的数据源。Splunk DB Connect 让您可以直接将数据库表、行和列导入 Splunk Enterprise,然后由后者进行索引。一旦这些关系数据进入 Splunk Enterprise,您就可以像处理任何其他 Splunk Enterprise 数据一样对其进行分析和可视化。
  • In addition, Splunk DB Connect enables you to write your Splunk Enterprise data back to your relational databases.
  • With DB Connect, you can reference fields from an external database that match fields in your event data, using the Database Lookup feature. This way, you can enrich your event data with more meaningful information.

Successful Tech Career for FREE!

免费开启成功的科技职业生涯!

Successful Tech Career!

成功的技术职业生涯!

Interview Process

面试流程

CTC & Designation

CTC与职位级别

Projects on the Job

工作项目

Referral System

推荐系统

Try It Out

试试看

2 Lakh+ Roadmaps Created

已生成20万+职业规划

390. What are different versions of the Splunk product?

Splunk 产品有哪些不同版本?
  • 知识点: DevOps/云 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c5758d557c902bc7969 | 官方: 否 | 付费: 否

答案:

Splunk products come in three different versions as follows: - Splunk Enterprise: A number of IT companies use Splunk Enterprise. This software analyzes data from diverse websites, applications, devices, sensors, etc. Data from your IT or business infrastructure can be searched, analyzed, and visualized using this program.

Splunk 产品有以下三个不同版本:- Splunk Enterprise:许多 IT 公司使用 Splunk Enterprise。该软件分析来自不同网站、应用程序、设备、传感器等的数据。来自您的 IT 或业务基础设施的数据可以使用该程序进行搜索、分析和可视化。
  • Splunk Cloud: It is basically a SaaS (Software as a Service) offering many of the same features as enterprise versions, including APIs, SDKs, etc. User logins, lost passwords, failed login attempts, and server restarts can all be tracked and sorted.
  • Splunk Light: This is a free version of Splunk which allows you to view, search, and edit your log data. This version has fewer capabilities and features than other versions.

391. Name some of the features that are not available in the Splunk free version.

说出一些 Splunk 免费版本中不可用的功能。
  • 知识点: DevOps/云 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c5758d557c902bc796c | 官方: 否 | 付费: 否

答案:

The free version of Splunk lacks the following features: - Distributed searching

Splunk 免费版本缺少以下功能:- 分布式搜索
  • Forwarding of data through HTTP or TCP (to non-Splunk)
  • Agile reporting and statistics based on a real-time architecture
  • Scheduled searches/alerts and authentication
  • Managing deployments.

392. Explain Splunk alerts and write about different options available while setting up alerts.

解释 Splunk 警报,并写出设置警报时可用的不同选项。
  • 知识点: DevOps/云 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c5758d557c902bc796f | 官方: 否 | 付费: 否

答案:

Splunk alerts are actions that get triggered when a specific criterion is met; these conditions are defined by the user. You can use Splunk Alerts to be notified whenever anything goes awry with your system. For instance, the user can set up Alerts so that an email notification will be sent to the admin when three unsuccessful login attempts are made within 24 hours.

Splunk 警报是在满足特定条件时触发的操作;这些条件由用户定义。您可以使用 Splunk 警报在系统出现任何问题时收到通知。例如,用户可以设置警报,以便在 24 小时内发生三次不成功的登录尝试时,向管理员发送电子邮件通知。

The following options are available when setting up alerts: - A webhook can be created to send messages to Hipchat or Github. With this email, you can send a message to a group of machines along with a subject, priority, and message body.

设置警报时可使用以下选项:- 可以创建 webhook 以向 Hipchat 或 Github 发送消息。通过此电子邮件,您可以向一组机器发送带有主题、优先级和消息正文的消息。
  • Results can be attached as .csv files, pdf files, or inline with the message body to ensure the recipient understands what alerts have been fired, at what conditions, and what actions have been taken.
  • You can also create tickets and control alerts based on conditions such as an IP address or machine name. As an example, if a virus outbreak occurs, you do not want every alert to be triggered as it will create a lot of tickets in your system, which will be overwhelming. Such alerts can be controlled from the alert window.

393. What do you mean by Summary Index in Splunk?

在 Splunk 中,Summary Index 是什么意思?
  • 知识点: DevOps/云 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c5758d557c902bc7972 | 官方: 否 | 付费: 否

答案:

Summary indexes store analyses, reports, and summaries computed by Splunk. This is an inexpensive and fast way to run a query for a long period of time. Essentially, it is the default index that Splunk Enterprise uses if there isn't another one specified by the user. Among the key features of the Summary Index is that you can retain the analytics and reports even after the data has gotten older.

Summary Index 存储由 Splunk 计算的分析、报告和摘要。这是长时间运行查询的一种廉价且快速的方式。本质上,如果用户未指定其他索引,它就是 Splunk Enterprise 使用的默认索引。Summary Index 的关键特性之一是,即使数据变旧,您也可以保留分析和报告。

394. What is the way to exclude certain events from being indexed by Splunk?

如何排除某些事件不被 Splunk 索引?
  • 知识点: DevOps/云 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c5758d557c902bc7975 | 官方: 否 | 付费: 否

答案:

In the case where you do not wish to index all of your events in Splunk, what can you do to prevent the entry of those events into Splunk? Debug messages are a good example of this in your application development cycle.

如果您不希望索引 Splunk 中的所有事件,可以做什么来防止这些事件进入 Splunk?调试消息是您应用程序开发周期中的一个很好的例子。

Such debug messages can be excluded by putting them in the null queue. This is achieved by specifying a regex that matches the necessary events and sending the rest to the NULL queue. Null queues are defined at the forwarder level in transforms.conf. Below is an example that drops all events except those containing the debug message.

可以通过将此类调试消息放入 null 队列来排除它们。这通过指定匹配必要事件的正则表达式并将其余事件发送到 NULL 队列来实现。Null 队列在 forwarder 级别的 transforms.conf 中定义。以下是一个示例,该示例丢弃所有事件,除非其中包含调试消息。

In props.conf

在 props.conf 中

[source::/var/log/foo]

[source::/var/log/foo]

By applying transforms in this order

events will be dropped to the floor

before being routed to the index processor

TRANSFORMS-set = setnull, setparsing

TRANSFORMS-set = setnull, setparsing
In transforms.conf
在 transforms.conf 中

[setnull]

[setnull]
REGEX = .
REGEX = .
DEST_KEY = queue
DEST_KEY = queue
FORMAT = nullQueue
FORMAT = nullQueue
[setparsing]
[setparsing]
REGEX = debugmessage
REGEX = debugmessage
DEST_KEY = queue
DEST_KEY = queue
FORMAT = indexQueue
FORMAT = indexQueue

395. Write the commands used to start/stop the Splunk service.

写出用于启动/停止 Splunk 服务的命令。
  • 知识点: DevOps/云 / 行为与软技能 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
  • 类型: behavioral | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c5758d557c902bc7978 | 官方: 否 | 付费: 否

答案:

The following commands can be used to start and stop Splunk services: - Start Splunk service ./splunk start

以下命令可用于启动和停止 Splunk 服务: - 启动 Splunk 服务 ./splunk start
  • Stop Splunk service ./splunk stop
  • Restart Splunk service ./splunk restart

396. What is the importance of time zone property in Splunk?

在 Splunk 中,时区属性的重要性是什么?
  • 知识点: DevOps/云 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c5758d557c902bc797b | 官方: 否 | 付费: 否

答案:

A time zone is a crucial factor to consider when searching for events from a fraud or security perspective. This is because Splunk uses the time zone defined by your browser. Your browser then picks up the time zone associated with the machine/computer system you're working on. So, you will not be able to find your desired event if you search for it in the wrong time zone. The timezone is picked up by Splunk when data is entered, and it is particularly important when you are searching and comparing data from different sources. You can, for instance, look for events coming in at 4:00 PM IST, for your London data centre, or for your Singapore data centre, etc. The timezone property is therefore vital when correlating such events.

从欺诈或安全角度搜索事件时,时区是一个关键因素。这是因为 Splunk 使用浏览器定义的时区。然后,你的浏览器会拾取与你所用机器/计算机系统关联的时区。因此,如果你在错误的时区中搜索,你将无法找到所需的事件。Splunk 在录入数据时拾取时区,这在搜索和比较来自不同来源的数据时尤为重要。例如,你可以查找伦敦数据中心或新加坡数据中心在印度标准时间下午 4:00 到达的事件。因此,在关联此类事件时,时区属性至关重要。

397. State difference between Splunk app and add-on.

说明 Splunk 应用程序与附加组件之间的区别。
  • 知识点: DevOps/云 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c5758d557c902bc797e | 官方: 否 | 付费: 否

答案:

Generally, Splunk applications and add-ons are separate entities, but both have the same extension, i.e., SPL files. - Splunk Apps: A Splunk app extends Splunk functionality with its own inbuilt user interface. Each of these apps are separate and serves a specific purpose. Each Splunk app consists of a collection of Splunk knowledge objects (lookups, tags, saved searches, event types, etc). They can also make use of other Splunk apps or add-ons. Multiple apps can be run simultaneously in Splunk. Several apps offer the option of restricting or limiting the amount of information a user can access. By controlling access levels, the user has access to only the information that is necessary for him and not the rest. You can open apps from the Splunk Enterprise homepage or through the App menu or in the Apps section of the Settings page. Example: Splunk Enterprise Security App, etc.

通常,Splunk 应用程序和附加组件是独立实体,但两者具有相同的扩展名,即 SPL 文件。- Splunk 应用程序:Splunk 应用程序通过自带的内置用户界面扩展 Splunk 功能。每个应用程序都是独立的,并服务于特定目的。每个 Splunk 应用程序由一组 Splunk 知识对象(查找、标签、已保存搜索、事件类型等)组成。它们还可以使用其他 Splunk 应用程序或附加组件。多个应用程序可以在 Splunk 中同时运行。许多应用程序提供限制或限定用户可访问信息量的选项。通过控制访问级别,用户只能访问其所需的信息,而无法访问其余信息。你可以从 Splunk Enterprise 主页、通过“应用程序”菜单或“设置”页面的“应用程序”部分打开应用程序。示例:Splunk Enterprise Security 应用程序等。
  • Splunk Add-on: These are types of applications that are built on top of the Splunk platform that add features and functionality to other apps, such as allowing users to import data, map data, save searches, macros. Add-ons typically do not run as standalone apps, rather they are reusable components that support other apps in different scenarios. Most of the time, it is used as a framework, where a team leverages its functionality to some extent and creates something new on top of it. As a rule, they do not have navigable user interfaces. You cannot open an Add-on from the Splunk Enterprise homepage or app menu. Examples: Splunk Add-on for Checkpoint OPSEC LEA, Splunk Add-on for EMC VNX or the Splunk Common Information Model Add-on.

398. Mention some important configuration files in Slunk.

提及 Splunk 中一些重要的配置文件。
  • 知识点: DevOps/云 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c5758d557c902bc7981 | 官方: 否 | 付费: 否

答案:

Configuration files that are of the utmost importance in Splunk are: - Props.conf: It configures indexing properties, such as timezone offset, pattern collision priority, custom source type rules, etc.

在 Splunk 中最至关重要的配置文件包括: - Props.conf:它配置索引属性,例如时区偏移、模式冲突优先级、自定义源类型规则等。
  • Indexes.conf: It configures and manages index settings.
  • Inputs.conf: It is used to set up data inputs.
  • Transforms.conf: It can be used to configure regex transformations to be performed on data inputs.
  • Server.conf: There are a variety of settings available for configuring the overall state of the Splunk Enterprise instance.

399. What is SRE?

什么是 SRE?
  • 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c6058d557c902bc7f57 | 官方: 否 | 付费: 否

答案:

  • SRE's full form is Site Reliability Engineer. A Site Reliability Engineer is a software engineer who specializes in building and maintaining a reliable system that can handle unexpected changes in the environment. They typically work on large web applications, but they also work with other types of software systems.
  • They are responsible for making sure that their system is able to handle all of the possible variations that might occur in the world. For example, if one server goes down, they need to make sure that their system can continue running without any problems. They also need to make sure that the site is secure against hackers and other attackers.
  • Many sites are built using a combination of technologies, such as web apps, databases, and other systems. A Site Reliability Engineer needs to be familiar with all of these different components so that they can make sure that everything is working properly together.
  • There are also DevOps engineers that sound similar to the work of site reliability engineers. But still, there are differences between them. So let’s understand the first DevOps and then we will understand the difference between these two in the follow-up questions.

Responsibilities of Site Reliability Engineer

站点可靠性工程师的职责
  • Site reliability engineers collaborate with other engineers, product owners, and customers to develop goals and metrics. This assists them in ensuring system availability. Once everyone has agreed on a system's uptime and availability, it is simple to determine the best moment to act.
  • Site Reliability Engineer implements error budgets to assess risk, balance availability, and drive feature development. When there are no unreasonable reliability expectations, a team has the freedom to make system upgrades and changes.
  • SRE is committed to decreasing labour. As a consequence, jobs that require a human operator to operate manually are automated.
  • A site reliability engineer should be well-versed in the systems and their interconnections.
  • The objective of site reliability engineers is to detect problems early in order to decrease the cost of failure.

400. SRE vs DevOps: What's the Difference Between Them?

SRE与DevOps:它们之间的区别是什么?
  • 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c6158d557c902bc7f5f | 官方: 否 | 付费: 否

答案:

  • DevOps and Site Reliability Engineer are the two terms used to describe a person who specializes in improving applications and services while they are being used.
  • DevOps and Site reliability engineering are both important roles in modern IT organizations. However, there is a big difference between them. Those are -
DevOpsSRE
DevOps involves the development of software that can be updated and modified while it is running.
DevOps涉及开发可在运行过程中更新和修改的软件。
Site reliability engineer, on the other hand, focuses on keeping an application or service up and running.
另一方面,站点可靠性工程师专注于保持应用程序或服务持续运行。
DevOps teams often use automation tools to improve their workflow.
DevOps团队通常使用自动化工具来改进其工作流程。
Site reliability engineers, on the other hand, work with both automation tools and humans to ensure service continues to operate smoothly.
另一方面,站点可靠性工程师与自动化工具和人员合作,以确保服务继续平稳运行。
DevOps deals with when and how software is built.
DevOps处理软件何时以及如何构建的问题。
The site reliability engineer focuses on what happens once it's built
站点可靠性工程师关注软件构建后发生的情况。

Refer to this blog for a more detailed understanding of the difference between SRE and DevOps.

参考此博客以更详细地了解SRE和DevOps之间的区别。

401. Can you explain data structures and also describe the physical data structure and logical data structure?

你能解释数据结构,并描述物理数据结构和逻辑数据结构吗?
  • 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c6158d557c902bc7f62 | 官方: 否 | 付费: 否

答案:

Data structures are a set of rules for organizing and storing data in a computer. Data structures are used to structure databases, manage memory, and organize data. Data structures allow for easy organization of data, easy retrieval of data, and efficient use of resources. - Physical Data Structures can be Arrays and Linked lists. We can call these two physical data structures because the data stored in the actual physical memory, are based on these two. An array is the collection of contiguous data elements of the same type. And the linked list is also the collection of the data elements but it may or may not be contiguous in memory. A linked list consists of nodes that store the data and also the pointer that is pointing to the next node in the memory.

数据结构是一组用于在计算机中组织和管理数据的规则。数据结构用于构建数据库、管理内存和组织数据。数据结构允许易于组织数据、轻松检索数据以及高效利用资源。- 物理数据结构可以是数组和链表。我们可以将这两种称为物理数据结构,因为存储在物理内存中的数据基于这两种结构。数组是相同类型连续数据元素的集合。链表也是数据元素的集合,但在内存中可能是连续的,也可能不是连续的。链表由存储数据的节点以及指向内存中下一个节点的指针组成。
  • Logical Data Structure can be considered as all the data structures that are constructed while using the two physical data structures. The logical data structures can be stack, queue, tree, graph, etc. These data structures have only the logic and based on this logic it defines a property and stores the data using arrays and linked lists in the memory.

402. What is cloud computing?

什么是云计算?
  • 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c6158d557c902bc7f65 | 官方: 否 | 付费: 否

答案:

  • Cloud computing is the delivery of IT services, such as servers, storage, and software as a service (SaaS), through network-connected cloud infrastructure. The term can refer to both private clouds, which are managed by a single organization and shared among internal users, and public clouds, which are owned by third parties (e.g., Amazon Web Services) that rent out computing power and storage capacity to companies or individuals on a subscription basis. Cloud computing has the potential to transform IT infrastructure and delivery models across industries but faces challenges in terms of security and regulation.
  • The “cloud” in “cloud computing” refers to the Internet itself and the networked computers and software that make up the Internet infrastructure. Cloud computing allows organizations to offload workloads from their data centers and focus more resources on applications and business processes. In addition, it enables them to create hybrid environments that combine elements of on-premises data centers with those hosted in cloud environments. This can be especially helpful for companies that need to scale quickly and want to reduce costs.
  • Cloud computing also has the potential to revolutionize IT operations by allowing organizations to deliver IT services through a flexible, scalable model that reduces costs while improving service quality. For example, it can allow organizations to integrate legacy systems with newer ones (such as mobile applications), reduce complexity and risk by automating routine tasks and streamline the management of remote assets. Cloud computing can also help organizations save money by reducing the costs of leasing or purchasing IT equipment compared to buying it outright.
  • Data Science
  • All Events
  • My Events

403. What is DHCP, and for what is it used?

什么是DHCP,它的用途是什么?
  • 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c6158d557c902bc7f68 | 官方: 否 | 付费: 否

答案:

DHCP stands for Dynamic Host Configuration Protocol . It is a protocol that allows networks to dynamically allocate IP addresses to hosts on the network. DHCP is used to assign IP addresses to devices such as PCs and routers. When a device is installed, it may need an IP address in order to access the Internet. So when a new device is installed, it will get an IP address from DHCP so that it can connect to the network.

DHCP代表动态主机配置协议。它是一种允许网络动态分配IP地址给网络主机的协议。DHCP用于为设备(如个人电脑和路由器)分配IP地址。当设备安装时,它可能需要一个IP地址才能访问互联网。因此,当新设备安装时,它会从DHCP获取一个IP地址,以便连接到网络。

When a device connects to a network, it needs an IP address first so that it can communicate with other hosts on the network. And since most networks have only one IP address assigned for each device, there must be some mechanism for dynamically allocating those addresses.

当设备连接到网络时,它首先需要一个IP地址,以便与网络上的其他主机通信。而且,由于大多数网络仅为每个设备分配一个IP地址,所以必须有某种机制来动态分配这些地址。

In order for a DHCP server to work, it must have at least two parts: an interface (usually Ethernet or WiFi) and some sort of database that stores information about connections and users. Since an interface is required for each device connected, this database must contain all of the information about those devices and how they are connected. All of this data is then pulled together when a connection is requested.

为了使DHCP服务器正常工作,它必须至少具备两个部分:一个接口(通常是以太网或WiFi)和某种存储连接和用户信息的数据库。由于每个连接设备都需要一个接口,该数据库必须包含所有这些设备及其连接方式的信息。当请求连接时,所有这些数据会被汇总在一起。

404. Explain DNS and its importance.

解释DNS及其重要性。
  • 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c6158d557c902bc7f6b | 官方: 否 | 付费: 否

答案:

DNS stands for Domain Name System . It is a system that maps hostnames to IP addresses so that you can find the correct server when you type in a website address in your browser. The DNS system associates each domain name with one or more IP addresses, which are called "resolvers."

DNS代表域名系统。它是一种将主机名映射到IP地址的系统,以便在浏览器中输入网站地址时能找到正确的服务器。DNS系统将每个域名与一个或多个IP地址相关联,这些IP地址被称为“解析器”。

When you type in a URL (e.g., www.google.com) into your browser, the computer sends a request to the DNS resolver for the IP address associated with that domain name. The DNS resolver then returns an IP address to the browser, which is either the IP address of a local computer or of another server that has been configured to return that particular IP address.

当你在浏览器中输入一个URL(例如www.google.com)时,计算机会向DNS解析器发送请求,以获取与该域名关联的IP地址。DNS解析器随后向浏览器返回一个IP地址,该地址可能是本地计算机的IP地址,或者是另一台被配置为返回该特定IP地址的服务器的IP地址。

Consider the below image for a better understanding -

请参考下图以更好地理解——

DNS is necessary because hosts on the Internet have only human-readable names like google.com and not machine-readable names like 111.222.333.444. Without DNS, you would need to know how to interpret a URL's human-readable name in order to find it on the Internet, which would be very difficult without a centralized authority like Google to help you out!

DNS是必要的,因为互联网上的主机只有像google.com这样人类可读的名称,而没有像111.222.333.444这样机器可读的名称。如果没有DNS,你需要知道如何解释URL的人类可读名称才能在互联网上找到它,而如果没有像Google这样的集中式权威机构来帮助你,这将非常困难!

405. Explain APR. Also, what are the stages of this?

解释APR。另外,它的阶段有哪些?
  • 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c6158d557c902bc7f6e | 官方: 否 | 付费: 否

答案:

In the context of Site Reliability Engineering, Accelerated Problem Resolution (APR) is crucial for quickly addressing and resolving issues that affect system performance and reliability. Here are five main points about APR in Site Reliability Engineering:

在站点可靠性工程的背景下,加速问题解决(APR)对于快速处理和解决影响系统性能和可靠性的问题至关重要。以下是关于站点可靠性工程中APR的五个要点:
  1. Monitoring and Alerting: Continuous monitoring is fundamental in APR. It involves actively observing system metrics to detect anomalies or performance degradation. When an anomaly is detected, alerts are generated to notify the Site Reliability Engineers. 2. Rapid Diagnosis: Speed is crucial in problem resolution to minimize downtime. SREs perform a quick initial assessment to understand the nature and severity of the issue. They gather data, logs, and other diagnostic information to pinpoint the root cause. 3. Issue Resolution and Mitigation: Once the root cause is identified, the SREs focus on resolving the issue. Depending on the nature of the problem, this can involve applying hotfixes, rerouting network traffic, or scaling resources. In addition to resolution, mitigation strategies might be used to reduce the impact of the issue on the system and users. 4. Post-mortem Analysis and Documentation: After resolving the issue, a thorough post-mortem analysis is conducted to understand the cause, how it was addressed, and the impact it had. This information is documented for future reference, learning, and improving response strategies. 5. Continuous Improvement: Insights from post-mortem analysis are used to improve the system and the incident response process. This includes implementing preventive measures, enhancing monitoring tools, improving alerting mechanisms, and refining protocols for quicker and more efficient resolution of future incidents.

    1. 监控和告警:持续监控是APR的基础。它涉及主动观察系统指标以检测异常或性能下降。当检测到异常时,会生成告警以通知站点可靠性工程师。2. 快速诊断:在问题解决中,速度对于最小化停机时间至关重要。站点可靠性工程师进行快速初步评估,以了解问题的性质和严重程度。他们收集数据、日志和其他诊断信息以查明根本原因。3. 问题解决和缓解:一旦确定根本原因,站点可靠性工程师专注于解决问题。根据问题的性质,这可能涉及应用热修复、重新路由网络流量或扩展资源。除了解决之外,可能还会使用缓解策略来减少问题对系统和用户的影响。4. 事后分析和文档记录:解决问题后,会进行彻底的事后分析,以了解原因、处理方式及其影响。这些信息将被记录以供将来参考、学习和改进响应策略。5. 持续改进:事后分析中的见解用于改进系统和事件响应流程。这包括实施预防措施、增强监控工具、改进告警机制以及优化协议,以便更快、更高效地解决未来事件。

406. Define Hardlink and Softlink.

定义硬链接和软链接。
  • 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c6158d557c902bc7f71 | 官方: 否 | 付费: 否

答案:

  • Hardlinks and soft links are two different types of file system links used to share files between directories.
  • Hardlinks create a single link to a file in two different locations, while soft links create a single pointer to the location of a file in one location.
  • When you create hardlinks, each link is the same size as the original file. Soft links, on the other hand, can be created with or without the original file and can be of variable sizes.
  • To create a hardlink, you must have the “write” permission for both the original and target file. To create a softlink, you must have the “write” permission for only the target file. If you try to write to the original file while you have the write permission for only one of the files, your attempt will fail and generate an error message. If you try to delete just one of the files while you have the write permission for both, it will also fail and generate an error message.

407. What is Multithreading? What are the benefits of this?

什么是多线程?它有哪些好处?
  • 知识点: DevOps/云 / 行为与软技能 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
  • 类型: behavioral | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c6158d557c902bc7f74 | 官方: 否 | 付费: 否

答案:

Multithreading is a programming technique that allows the execution of multiple tasks at the same time. To achieve this, each task is assigned its own processing unit or processor. By splitting up the workload across these processors, it is possible to process several tasks simultaneously. This can be helpful for processing large amounts of data, or when running short-lived tasks that have a high resource consumption.

多线程是一种编程技术,允许同时执行多个任务。为了实现这一点,每个任务都被分配了自己的处理单元或处理器。通过在这些处理器之间拆分工作负载,可以同时处理多个任务。这对于处理大量数据或运行资源消耗高但生命周期短的任务可能很有帮助。

Multithreading can be implemented in different ways, depending on the underlying technology used. For example, multithreading can be achieved by executing multiple tasks on separate processors, or by running those tasks in parallel on a single processor.

多线程可以根据所使用的底层技术以不同方式实现。例如,可以通过在单独的处理器上执行多个任务,或者通过在单个处理器上并行运行这些任务来实现多线程。

Multithreading has many benefits. It allows for increased performance and reduced execution time of long-running computations. Also, it can improve the responsiveness of applications and reduce latency. Multithreading can also be used to execute short-lived tasks that have a high resource consumption. As such, multithreaded applications are ideal for use in IoT environments where there is a constant network traffic and battery drain due to sensor readings and other processes being executed within the device.

多线程有许多好处。它允许提高性能并减少长时间运行计算任务的执行时间。此外,它可以改善应用程序的响应能力并降低延迟。多线程也可以用于执行资源消耗高但生命周期短的任务。因此,多线程应用程序非常适合在物联网环境中使用,因为那里存在持续的网络安全流量以及由于设备内正在执行的传感器读数和其他进程而导致的电池消耗。

408. What are the states that the process could be in?

进程可能处于哪些状态?
  • 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c6158d557c902bc7f77 | 官方: 否 | 付费: 否

答案:

Processes are the computer program that is going to be executed by the CPU. And during the execution cycle of the process, it does from various stages. That is the process state. So the process states are -

进程是要被CPU执行的计算机程序。在进程的执行周期中,它会经历各个阶段。这就是进程状态。所以进程状态如下——
  • New - A new process is a program that will be loaded into the main memory by the operating system.
  • Ready - When a process is formed, it immediately enters the ready state and waits for the CPU to be assigned. The operating system selects new processes from secondary memory and places them all in the main memory. Ready-state processes are processes that are ready for execution and sit in the main memory. Many processes may be present in the ready stage. They all can be aligned into the queue for getting a chance to execute.
  • Running - The OS will select one of the processes from the ready state based on the scheduling mechanism. As a result, if we only have one CPU in our system, the number of operating processes at any given time will always be one. If we have n processors in the system, we can run n tasks at the same time.
  • Block/Wait - Depending on the scheduling method or the inherent behavior of the process, a process can migrate from the Running state to the block or wait for the state.
  • When a process waits for a specific resource to be provided or for user input, the operating system moves it to the block or waits for the state and assigns the CPU to other processes.
  • Terminated - The termination state is reached when a process completes its execution. The process's context (Process Control Block) will likewise be removed, and the process will be terminated by the operating system.
  • Suspend Block/Wait - Rather than removing the process from the ready queue, it is preferable to delete the stalled process that is waiting for resources in the main memory. Because it is already waiting for a resource to become available, it is preferable if it waits in secondary memory to create a way for the higher priority process. These processes conclude their execution when the main memory becomes accessible and their wait is over.
  • Suspend Ready - A process in the ready state that is transferred to secondary memory from main memory owing to a shortage of resources (mostly primary memory) is referred to as being in the suspend ready state.If the main memory is full and a higher-priority process arrives for execution, the OS must free up space in the main memory by moving the lower-priority process to secondary memory. Suspend-ready processes are kept in secondary memory until the main memory becomes accessible.

409. What is RAID?

什么是RAID?
  • 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c6158d557c902bc7f7a | 官方: 否 | 付费: 否

答案:

  • “Redundant Array of Independent Disk” is a term used to describe a type of storage system that has more than one hard disk to provide more redundancy in case one disk fails. A redundant Array of Independent Disk is commonly used in networks and server farms.
  • Redundant Array of Independent Disk systems is routinely used in data centres; they provide a second disk drive on a single physical system so if the first disk fails, the user can continue working by accessing the second disk drive. This extra protection means users don’t have to worry about losing data if a drive fails.
  • Redundant Array of Independent Disk systems can be implemented as a single controller with multiple drives or as multiple controllers connected to each other with each controller housing a single drive. The resulting configuration can be optimized for throughput or for redundancy.
  • This type of storage system is available from many vendors and can be found in medium-sized or even large-scale enterprise environments, where it's essential for ensuring the availability of critical data.

Successful Tech Career for FREE!

免费开启成功的科技职业生涯!

Successful Tech Career!

成功的技术职业生涯!

Interview Process

面试流程

CTC & Designation

CTC与职位级别

Projects on the Job

工作项目

Referral System

推荐系统

Try It Out

试试看

2 Lakh+ Roadmaps Created

已生成20万+职业规划

410. What are Vertical and Horizontal Scaling? Which is more preferable? And list some advantages and disadvantages of Horizontal Scaling.

什么是垂直和水平扩展?哪个更可取?并列出水平扩展的一些优点和缺点。
  • 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c6158d557c902bc7f7d | 官方: 否 | 付费: 否

答案:

  • Vertical scaling is a process of increasing the size of a system by increasing its number of resources. This is often used to increase capacity, performance, and throughput. It generally involves adding more hardware or more servers on a single physical server. This process is also called Scale-up. Because the size of the system increases in this.
  • Horizontal scaling is a process of increasing the size of a system by adding multiple logical resources. This can be done by adding more virtual machines per host, or by adding containers per host. It can also be done by adding additional hosts altogether. This is also called Scale-out. Because it increases the number of systems.

Horizontal scaling is preferable. Because of the going time and load on the system. This can be scalable. There are several advantages to Horizontal Scaling (Scale-out): - It requires less upfront investment.

水平扩展更可取。因为考虑到未来的时间和系统负载,这是可扩展的。水平扩展(横向扩展)有几个优点:- 它需要较低的前期投资。
  • It reduces operational overhead and
  • It allows for easier scaling as demand increases.
    However, there are also some disadvantages: - Horizontal scaling requires careful planning and coordination between all parties involved, which can be a challenge in large multi-tenant environments where different tenants have different needs and requirements. Also, it can result in increased complexity and security risk if not done carefully.

    然而,也存在一些缺点:- 水平扩展需要所有相关方之间进行仔细的规划和协调,在多租户环境中,不同租户有不同的需求和要求,这可能是一个挑战。此外,如果处理不当,可能会导致复杂性和安全风险的增加。
  • Horizontal scaling can also lead to scalability problems if one component causes issues for multiple other components, so it’s important to monitor each component closely during the entire process from start to finish.

411. What do you know about Linux Shell? List Different types of Shell.

你对Linux Shell了解多少?列出不同类型的Shell。
  • 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c6158d557c902bc7f84 | 官方: 否 | 付费: 否

答案:

Linux Shell is an integral part of the Linux OS. The Linux OS is a free and open-source OS developed by Linus Torvalds. It is the most popular OS to run on servers and embedded devices. A Linux shell is a command line interface that allows the user to interact with the system. The command line interface (CLI) of Linux provides a text-based interface for executing commands, performing file management tasks, and issuing other system commands. There are two types of shells in Linux – - Interactive shell - It starts automatically when a user logs into their computer.

Linux Shell是Linux操作系统不可分割的一部分。Linux OS是由Linus Torvalds开发的免费开源操作系统。它是运行在服务器和嵌入式设备上最流行的操作系统。Linux Shell是一种命令行界面,允许用户与系统交互。Linux的命令行界面(CLI)提供基于文本的界面,用于执行命令、执行文件管理任务和发出其他系统命令。Linux中有两种类型的Shell——- 交互式Shell——当用户登录到计算机时自动启动。
  • Non-Interactive shell - It can be started manually for the execution of any program.
    These two types allow different users to have access to different sets of commands, depending on whether they are logged in or not. In most cases, non-interactive shells are used for administrative tasks such as managing user accounts and managing applications or services.

    这两种类型允许不同用户根据是否登录访问不同的命令集。在大多数情况下,非交互式Shell用于管理任务,如管理用户账户和管理应用程序或服务。

On a typical Linux system, the following shells are widely used: - KSH (Korn Shell)

在典型的Linux系统中,以下Shell被广泛使用:- KSH(Korn Shell)
  • BASH (Bourne Again Shell)
  • TCSH
  • CSH (C Shell)
  • Bourne Shell
  • ZSH

412. What is Linux Kill Command?

什么是Linux Kill命令?
  • 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c6158d557c902bc7f8b | 官方: 否 | 付费: 否

答案:

Linux kills command is an easy way to kill all running processes. With this command, you can kill a process, e.g., a program, a service, or a process that is not running on any Linux system. In other words, it will bring down or terminate any process running on the system. By using the Linux kill command, you can close down a malfunctioning application or stop a misbehaving service. You can also use the kill command to terminate misbehaving jobs in batch scripts.

Linux kill命令是终止所有正在运行的进程的简便方法。使用此命令,你可以终止一个进程,例如,一个程序、一个服务或一个不运行在任何Linux系统上的进程。换句话说,它将停止或终止系统上运行的任何进程。通过使用Linux kill命令,你可以关闭故障应用程序或停止行为异常的服务。你也可以使用kill命令终止批处理脚本中行为异常的作业。

Through this command, you can also reboot the server or halt it while shutting down the network connection and power off the server with one single command.

通过此命令,你还可以重启服务器或在关闭网络连接时停止它,并使用一条命令关闭服务器电源。

413. How can you use OOPs in designing a Server?

如何在设计服务器时使用OOPs?
  • 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c6158d557c902bc7f8e | 官方: 否 | 付费: 否

答案:

OOPs is a programming paradigm that encourages the creation of objects to represent real-world entities and these objects are then used to perform tasks. These can be useful in designing a Server because they allow you to break down the tasks into manageable chunks, which will help you to keep your Server under control. As well as this, OOPs allows you to create reusable code which will save time and money. When designing a Server using OOPs, it’s important to follow some basic design principles. - The first of these is the Single Responsibility Principle (SRP). This states that each object should have one and only one reason to exist. For example, if you’re creating an Order Repository, it should only be responsible for one thing -- processing orders. This will help ensure that your code is easy to read and maintain.

OOPs是一种编程范式,鼓励创建对象来表示现实世界实体,然后使用这些对象来执行任务。这些在设计服务器时很有用,因为它们允许你将任务分解为可管理的块,这有助于你保持对服务器的控制。此外,OOPs允许你创建可重用代码,这将节省时间和金钱。使用OOPs设计服务器时,遵循一些基本设计原则很重要。- 首先是单一职责原则(SRP)。这规定每个对象应该只有且仅有一个存在的理由。例如,如果你正在创建订单仓库,它应该只负责一件事——处理订单。这将有助于确保你的代码易于阅读和维护。
  • The second principle is the Open/Closed Principle (OCP), which states that an object should be either open for addition or closed for modification. For example, if you’re creating an Order Repository, it should be able to accept new orders but not modify existing ones.

414. Explain CDN.

解释CDN。
  • 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c6158d557c902bc7f91 | 官方: 否 | 付费: 否

答案:

A CDN (Content Delivery Network) is a network of servers that stores and distributes content to clients. These servers are typically located in data centres, and they can be used to improve performance by reducing latency, ensuring that the content is available at the right time, and ensuring that the content is delivered in a timely manner.

CDN(内容分发网络)是一个存储和向客户端分发内容的服务器网络。这些服务器通常位于数据中心,它们可以通过减少延迟、确保内容在正确时间可用以及确保及时分发内容来提高性能。

CDNs are most commonly used to store static content, such as images and videos, but they can also be used to store dynamic content, such as HTML or JavaScript. CDNs can also be used to deliver content from one location to another, such as from a website to a mobile device.

CDN最常用于存储静态内容,如图片和视频,但也可以用于存储动态内容,如HTML或JavaScript。CDN还可以用于将内容从一个位置传送到另一个位置,例如从网站传送到移动设备。

CDNs are an important part of the Internet infrastructure because they allow content to be stored and distributed in a more efficient way. They also allow content to be served from multiple locations, which can improve performance and reduce latency.

CDN是互联网基础设施的重要组成部分,因为它们允许以更高效的方式存储和分发内容。它们还允许从多个位置分发内容,这可以提高性能并减少延迟。

A CDN can be used in many different ways, including - Providing a central location for static content.

CDN可以用多种不同方式使用,包括- 为静态内容提供中心位置。
  • Providing a central location for dynamic content.
  • Providing a central location for content from multiple locations.
  • Providing a central location for content from multiple data centers.
  • Providing redundancy for critical infrastructure components such as servers and routers.
    CDNs are also an important part of the Internet infrastructure because they help to ensure that the Internet works well for everyone. They help to ensure that everyone has access to the same content at the same time, and equally prioritize access.

    CDN也是互联网基础设施的重要组成部分,因为它们有助于确保互联网对每个人都运行良好。它们有助于确保每个人都能同时访问相同内容,并平等地优先考虑访问。

415. What are the advantages and disadvantages of cloud computing?

云计算的优点和缺点是什么?
  • 知识点: DevOps/云 (主题: system-engineer;标签: interviewbit, system-engineer, topic-specific)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c6758d557c902bc8318 | 官方: 否 | 付费: 否

答案:

Cloud computing has the following advantages and disadvantages:

云计算有以下优点和缺点:

Advantages: - Ideal as a regular backup source of data storage due to its flexibility. You can recover data in case of accidental deletion, natural disaster, or a hard drive crash.

优点:- 由于灵活性,非常适合作为常规数据备份来源。在意外删除、自然灾害或硬盘故障情况下可恢复数据。
  • With the cloud, you save money in a variety of ways including zero investment in infrastructure; since you do not own the infrastructure; no management or staffing costs; as the cloud offers a pay-as-you-go model, so you only pay for resources that you need.
  • You have complete access to your cloud resources from anywhere, anytime and on any device.
  • Centralizes data from various projects and branches into one place, which means you can access the data without having to visit each location individually.
  • With cloud-based applications, the system can automatically be updated without users' involvement.
    Disadvantages: - Cloud deployments are not ideal for large-scale IoT deployments.

    缺点:- 云部署不适合大规模IoT部署。
  • The cloud requires high internet speeds and high bandwidth, so service outages are always possible, which can cause business downtime.
  • Because you don't own the cloud infrastructure, you have no control or limited access to it.
  • The cloud offers a wide range of services, but using them comes with several restrictions and limited flexibility.
  • Data security is a major concern for everyone. Using a public cloud could put you at risk for security breaches.

416. What is cloud computing and how does it differ from traditional IT infrastructure?

什么是云计算,它与传统IT基础设施有何不同?
  • 知识点: DevOps/云 (标签: interviewbit, tcs-digital, company-specific)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: general
  • 公司: Tata Consultancy Services
  • id: 69b37c6d58d557c902bc863f | 官方: 否 | 付费: 否

答案:

Cloud computing is a model of delivering computing resources and services over the internet, rather than using local servers or personal devices. Cloud computing allows users to access and use computing resources on demand, without the need to purchase and maintain expensive hardware and software.

云计算是一种通过互联网提供计算资源和服务的模式,而不是使用本地服务器或个人设备。云计算允许用户按需访问和使用计算资源,无需购买和维护昂贵的硬件和软件。

In the above image, you can see the high-level structure of cloud computing. You can see that we have different platforms installed and ready to serve via the network (INTERNET).

在上图中,您可以看到云计算的高层结构。您可以看到我们安装了不同的平台,并准备通过网络(INTERNET)提供服务。

Cloud computing architecture refers to the design of the various components and layers that make up a cloud computing system. It typically includes several layers such as the physical layer, infrastructure layer, platform layer, and application layer, each of which provides a different set of services to users.

云计算架构指的是构成云计算系统的各种组件和层次的设计。它通常包括几个层次,如物理层、基础设施层、平台层和应用层,每一层都向用户提供不同的服务集。

At the physical layer, cloud computing architecture includes the data centers, servers, storage devices, and networking equipment that form the backbone of the cloud infrastructure. The infrastructure layer provides the virtualization, automation, and orchestration capabilities that enable resources to be provisioned and managed efficiently.

在物理层,云计算架构包括构成云基础设施骨干的数据中心、服务器、存储设备和网络设备。基础设施层提供了虚拟化、自动化和编排能力,使资源能够被高效地配置和管理。

The platform layer includes the software and tools that developers use to build and deploy applications on the cloud infrastructure. This layer provides a range of services, such as application hosting, database management, and messaging services.

平台层包括开发人员用于在云基础设施上构建和部署应用程序的软件和工具。这一层提供了一系列服务,如应用程序托管、数据库管理和消息传递服务。

Finally, the application layer represents the cloud-based applications that end-users interact with. These applications can be web-based, mobile, or desktop applications that run on the cloud infrastructure and provide users with a range of services, such as file storage, communication, and collaboration tools.

最后,应用层代表了最终用户与之交互的基于云的应用程序。这些应用程序可以是基于Web的、移动的或桌面应用程序,它们在云基础设施上运行,并为用户提供一系列服务,如文件存储、通信和协作工具。

Overall, cloud computing architecture is designed to provide a scalable, flexible, and cost-effective platform for delivering IT services and applications to users, with the ability to rapidly provision and scale resources as needed.

总体而言,云计算架构旨在提供一个可扩展、灵活且具有成本效益的平台,用于向用户提供IT服务和应用程序,并能够根据需要快速配置和扩展资源。

Cloud computing has several advantages over traditional IT infrastructure, such as: - Cost: Cloud computing can be more cost-effective than traditional IT infrastructure, as it allows users to pay only for the resources they use and avoid the upfront costs of purchasing and maintaining hardware and software.

云计算相比传统IT基础设施有几个优势,例如:- 成本:云计算比传统IT基础设施更具成本效益,因为它允许用户仅为使用的资源付费,并避免购买和维护硬件及软件的前期成本。
  • Scalability: Cloud computing allows users to scale up or down their resources as needed, without the need to purchase additional hardware or software. This allows users to meet changing demands and workloads more easily.
  • Flexibility: Cloud computing allows users to access and use a wide range of resources and services, including storage, computing, networking, and software, from multiple providers. This allows users to choose the resources and services that best meet their needs and to easily switch between providers if needed.
  • Reliability: Cloud computing provides users with high availability and reliability, as the resources and services are managed by the provider and are typically redundant and backed up. This reduces the risk of downtime and data loss.
    Some examples of cloud providers are Amazon Web Services (AWS), Microsoft Azure, Google Cloud Platform, IBM Cloud, Oracle Cloud, Alibaba Cloud, Heroku, Digital Ocean, etc. Each of these providers offers its own set of services, pricing models, and benefits.

    一些云提供商的例子包括Amazon Web Services (AWS)、Microsoft Azure、Google Cloud Platform、IBM Cloud、Oracle Cloud、Alibaba Cloud、Heroku、Digital Ocean等。每个提供商都提供自己的一套服务、定价模型和优势。

417. What is a version control system and how do you use it in software development?

什么是版本控制系统,您如何在软件开发中使用它?
  • 知识点: DevOps/云 (标签: interviewbit, tcs-digital, company-specific)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: general
  • 公司: Tata Consultancy Services
  • id: 69b37c6d58d557c902bc8645 | 官方: 否 | 付费: 否

答案:

A version control system (VCS) is a tool that allows you to track changes to a set of files over time and manage different versions of the files. It is an essential part of the software development process, as it allows you to track the evolution of the codebase and collaborate with other developers.

版本控制系统(VCS)是一种工具,允许您跟踪一组文件随时间的变化,并管理文件的不同版本。它是软件开发过程的重要组成部分,因为它允许您跟踪代码库的演变,并与其他开发人员协作。

A VCS stores a history of changes to the files and allows you to view, compare, and revert to previous versions. It also allows you to work on the same codebase concurrently, without conflicts, and merge changes from multiple developers.

VCS存储文件变更的历史记录,允许您查看、比较和回退到以前的版本。它还允许您在同一代码库上并发工作,而不会产生冲突,并合并来自多个开发人员的更改。

There are many different version control systems, and the choice of system depends on the specific needs of the project and the preferences of the development team. Some popular version control systems include Git, Mercurial, and Subversion.

有许多不同的版本控制系统,系统的选择取决于项目的具体需求和开发团队的偏好。一些流行的版本控制系统包括Git、Mercurial和Subversion。

To use a version control system like git in software development, you need to create a repository for your codebase and check the code into the repository. A repository is a central location where the code is stored and managed by the VCS.

要在软件开发中使用像git这样的版本控制系统,您需要为您的代码库创建一个仓库,并将代码签入该仓库。仓库是代码由VCS存储和管理的中央位置。

To make changes to the code, you need to create a new branch, which is a separate copy of the codebase that you can work on without affecting the main codebase. When you are ready to merge your changes back into the main codebase, you need to create a pull request, which is a request to merge the changes from the branch into the main codebase.

要对代码进行更改,您需要创建一个新分支,这是代码库的一个独立副本,您可以在不影响主代码库的情况下对其进行操作。当您准备将更改合并回主代码库时,您需要创建一个拉取请求,这是一个将分支中的更改合并到主代码库的请求。

In the above image, we can see that several branches are created (colored purple and green). These branches can be merged into the main branch. Like, the Blue Node (main/master branch) has versions and the purple node is the child branch, and the green node is the sub-child branch of the master branch in which the enhancements/changes are done and can be merged with the main branch later. These branches state the changes made in the repository.

在上图中,我们可以看到创建了几个分支(紫色和绿色)。这些分支可以合并到主分支中。例如,蓝色节点(主/主分支)有版本,紫色节点是子分支,绿色节点是主分支的子子分支,在其中进行了增强/更改,并且稍后可以与主分支合并。这些分支说明了仓库中所做的更改。

418. Mention some of the version control tools supported by Terraform.

提及一些Terraform支持的版本控制工具。
  • 知识点: DevOps/云 (主题: terraform, iac, devops;标签: interviewbit, terraform, topic-specific, iac, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c7a58d557c902bc8c74 | 官方: 否 | 付费: 否

答案:

Some of the version control tools supported by Terraform are as follows:

Terraform支持的一些版本控制工具如下:
  • GitHub
  • GitLab CE
  • GitLab EE
  • Bucket Cloud

419. Explain the workflow of the core terraform.

解释核心Terraform的工作流程。
  • 知识点: DevOps/云 (主题: terraform, iac, devops;标签: interviewbit, terraform, topic-specific, iac, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c7a58d557c902bc8c78 | 官方: 否 | 付费: 否

答案:

Terraform's core workflow consists of three steps:

Terraform的核心工作流程包括三个步骤:
  • Write - Create infrastructure in the form of code.
  • Plan - Plan ahead of time to see how the changes will look before they are implemented.
  • Apply - Create a repeatable infrastructure.

420. What do you understand about providers in the context of Terraform?

在Terraform上下文中,你如何理解提供者?
  • 知识点: DevOps/云 (主题: terraform, iac, devops;标签: interviewbit, terraform, topic-specific, iac, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c7a58d557c902bc8c7b | 官方: 否 | 付费: 否

答案:

To interface with cloud providers, SaaS providers, and other APIs, Terraform uses plugins called "providers." Terraform configurations must specify the providers they need in order for Terraform to install and use them. Some providers also require setup (such as endpoint URLs or cloud regions) before they may be used. Terraform may manage a set of resource types and/or data sources that each provider contributes. A provider implements each resource type; Terraform would be unable to manage any infrastructure without them. The majority of service providers set up a specific infrastructure platform (either cloud or self-hosted). Local utilities, such as generating random numbers for unique resource names, can be offered by providers.

为了与云提供商、SaaS提供商和其他API交互,Terraform使用称为“提供者”的插件。Terraform配置必须指定所需的提供者,以便Terraform安装和使用它们。某些提供者在使用前还需要进行设置(如端点URL或云区域)。每个提供者可能贡献一组资源类型和/或数据源。提供者实现每种资源类型;没有它们,Terraform将无法管理任何基础设施。大多数服务提供者设置特定的基础设施平台(云或自托管)。提供者还可以提供本地实用工具,例如为唯一资源名称生成随机数。

421. What are the key features of Terraform?

Terraform的关键特性有哪些?
  • 知识点: DevOps/云 (主题: terraform, iac, devops;标签: interviewbit, terraform, topic-specific, iac, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c7a58d557c902bc8c7e | 官方: 否 | 付费: 否

答案:

Following are the key features of Terraform: - Infrastructure as Code: Terraform's high-level configuration language is used to describe your infrastructure in declarative configuration files that are human-readable. You may now generate a blueprint that you can edit, share, and reuse.

以下是Terraform的关键特性:- 基础设施即代码:Terraform的高级配置语言用于以可读的人类声明性配置文件描述你的基础设施。你现在可以生成可编辑、共享和复用的蓝图。
  • Execution Strategies: Before making any infrastructure modifications, Terraform develops an execution plan that describes what it will do and asks for your agreement. Before Terraform produces, upgrades, or destroys infrastructure, you can evaluate the changes.
  • Graph of Resources: Terraform develops or alters non-dependent resources while simultaneously building a resource graph. This allows Terraform to construct resources as quickly as possible while also providing you with more information about your infrastructure.
  • Automation of Change: Terraform can automate the application of complex changesets to your infrastructure with little to no human intervention. Terraform identifies what happened when you update configuration files and provides incremental execution plans that take dependencies into account.

422. Explain the command terraform version in the context of Terraform.

在Terraform上下文中,解释命令terraform version。
  • 知识点: DevOps/云 (主题: terraform, iac, devops;标签: interviewbit, terraform, topic-specific, iac, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c7a58d557c902bc8c81 | 官方: 否 | 付费: 否

答案:

The terraform version command shows the current Terraform version as well as any installed plugins.

terraform version命令显示当前Terraform版本以及任何已安装的插件。

Syntax:

语法:

terraform version [options]

terraform version [options]
Unless disabled, the version will display the Terraform version, the platform it's installed on, installed providers, and the results of upgrade and security checks with no extra arguments.
除非禁用,此版本将显示Terraform版本、安装平台、已安装的提供者以及升级和安全检查结果,无需额外参数。

There is one optional flag for this command:

此命令有一个可选标志:

If you specify -json, the version information is formatted as a JSON object, with no upgrade or security information.

如果指定 -json,则版本信息将以 JSON 对象格式输出,不包含升级或安全信息。
  • Data Science
  • All Events
  • My Events

423. Explain the command terraform apply in the context of Terraform.

在 Terraform 上下文中解释命令 terraform apply。
  • 知识点: DevOps/云 (主题: terraform, iac, devops;标签: interviewbit, terraform, topic-specific, iac, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c7a58d557c902bc8c84 | 官方: 否 | 付费: 否

答案:

The terraform apply command is used to carry out the tasks in a Terraform plan. The simplest method to use terraform apply is to run it without any arguments, in which case it will construct a new execution plan (as if you had run terraform plan) and then request you to accept it before doing the activities you specified. Another approach to use terraform apply is to supply it the filename of a saved plan file generated with terraform plan -out=..., in which case Terraform will apply the modifications to the plan without prompting for confirmation. This two-step process is most useful when using Terraform in an automated environment.

terraform apply 命令用于执行 Terraform 计划中的任务。使用 terraform apply 的最简单方法是无参数运行,此时它将构建一个新的执行计划(如同您运行了 terraform plan),并在执行您指定的操作前请求您接受。另一种使用 terraform apply 的方法是提供由 terraform plan -out=... 生成的已保存计划文件的文件名,在这种情况下,Terraform 将应用对计划的修改,而无需提示确认。这种两步流程在自动化环境中使用 Terraform 时最为有用。

Syntax:

语法:

terraform apply [options] [plan file]

terraform apply [选项] [计划文件]

424. Explain the command terraform validate in the context of Terraform.

在 Terraform 上下文中解释命令 terraform validate。
  • 知识点: DevOps/云 (主题: terraform, iac, devops;标签: interviewbit, terraform, topic-specific, iac, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c7a58d557c902bc8c87 | 官方: 否 | 付费: 否

答案:

The terraform validate command verifies the configuration files in a directory, focusing solely on the configuration and excluding any outside services such as remote state, provider APIs, and so on. Validate performs checks to see if a configuration is syntactically correct and internally consistent, regardless of any variables or current state. As a result, it's best used for general verification of reusable modules, such as ensuring that attribute names and value types are correct. This command can be executed automatically, for example as a post-save check in a text editor or as a test step for a reusable module in a continuous integration system.

terraform validate 命令验证目录中的配置文件,仅关注配置本身,排除任何外部服务,如远程状态、提供商 API 等。Validate 执行检查以确定配置是否在语法上正确且内部一致,不依赖任何变量或当前状态。因此,它最适合用于可重用模块的一般性验证,例如确保属性名称和值类型正确。此命令可自动执行,例如作为文本编辑器中的保存后检查,或作为持续集成系统中可重用模块的测试步骤。

Syntax: terraform validate [options]

语法:terraform validate [选项]

The following options are available with this command: - -json - Create output in the machine-readable JSON format, appropriate for integration with text editors and other automated systems. Color is always turned off.

此命令可用以下选项:- -json - 以机器可读的 JSON 格式创建输出,适合与文本编辑器和其他自动化系统集成。颜色始终关闭。
  • -no-color - If supplied, the output will be colourless.

425. Explain null resource in the context of Terraform.

在 Terraform 上下文中解释 null resource。
  • 知识点: DevOps/云 (主题: terraform, iac, devops;标签: interviewbit, terraform, topic-specific, iac, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c7a58d557c902bc8c8a | 官方: 否 | 付费: 否

答案:

The null resource is a resource that lets you set up provisioners that aren't directly linked to any current resource. Because a null resource behaves like any other resource, you can configure provisioners, connection details, and other meta-parameters just like any other resource. This gives you more precise control over when provisioners execute in the dependency graph.

空资源是一种资源,允许您设置与任何当前资源不直接关联的配置器。由于空资源的行为类似其他任何资源,您可以像配置其他资源一样配置配置器、连接详细信息和元参数。这使您能够在依赖图中更精确地控制配置器的执行时机。

426. What are some guidelines that should be followed while using Terraform modules?

使用 Terraform 模块时应遵循哪些指导原则?
  • 知识点: DevOps/云 (主题: terraform, iac, devops;标签: interviewbit, terraform, topic-specific, iac, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c7a58d557c902bc8c8d | 官方: 否 | 付费: 否

答案:

Following are some of the guidelines that should be followed while using Terraform modules : - To publish to the Terraform Cloud or Terraform Enterprise module registries, you must use this convention terraform--.

使用 Terraform 模块时应遵循以下一些指导原则:- 要发布到 Terraform Cloud 或 Terraform Enterprise 模块注册表,您必须使用此约定 terraform--。
  • Start thinking about modules as you write your setup. The benefits of using modules outweigh the time it takes to utilise them properly, even for somewhat complicated Terraform settings maintained by a single person.
  • To organise and encapsulate your code, use local modules. Even if you aren't using or publishing remote modules, structuring your configuration in terms of modules from the start will dramatically minimise the time and effort required to maintain and update your setup as your infrastructure becomes more complicated.
  • To identify useful modules, go to the Terraform Registry, which is open to the public. By relying on the efforts of others to create common infrastructure scenarios, you may implement your configuration more quickly and confidently.
  • Modules can be published and shared with your team. The majority of infrastructure is handled by a group of individuals, and modules are a vital tool for teams to collaborate on infrastructure creation and maintenance.

427. What are the benefits of using modules in Terraform?

在 Terraform 中使用模块有哪些好处?
  • 知识点: DevOps/云 (主题: terraform, iac, devops;标签: interviewbit, terraform, topic-specific, iac, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c7a58d557c902bc8c90 | 官方: 否 | 付费: 否

答案:

Following are the benefits of using modules in Terraform : - Organization of configuration: By grouping relevant portions of your configuration together, modules make it easier to access, understand, and change your configuration. Hundreds or thousands of lines of configuration can be required to establish even moderately complicated infrastructure. You can organise your configuration into logical components by utilising modules.

在 Terraform 中使用模块有以下好处:- 配置组织:通过将相关的配置部分分组,模块使访问、理解和更改配置变得更容易。建立甚至中等复杂的基础设施可能需要数百或数千行配置。通过利用模块,您可以将配置组织成逻辑组件。
  • Encapsulation of configuration: Another advantage of modules is that they allow you to separate configuration into logical components. Encapsulation can help you avoid unforeseen consequences, such as a change to one element of your configuration causing changes to other infrastructure, and it can also help you avoid basic mistakes like naming two resources with the same name.
  • Maintains consistency and ensures best practices: Modules can also help you maintain uniformity in your configurations. Consistency not only makes complex configurations easier to grasp, but it also ensures that best practices are followed in all of your settings. Cloud providers, for example, offer a variety of options for establishing object storage services like Amazon S3 or Google Cloud Storage buckets. Many high-profile security problems have occurred as a result of improperly secured object storage, and given the number of sophisticated configuration options involved, it's possible to misconfigure these services by accident.
  • Modules can aid in the reduction of errors: For example, you might design a module to define how all of your organization's public website buckets would be set, as well as a separate module for private logging buckets. In addition, if a configuration for a particular resource type needs to be altered, using modules allows you to do it in one place and have it applied to all scenarios where that module is used.
  • Aids in reusability: Setting up the configurations from scratch and writing all of your settings can be time-consuming and error-prone. By reusing configuration generated by yourself, other members of your team, or other Terraform practitioners who have published modules for you to utilise, you can save time and avoid costly errors. You can also share modules you've produced with your colleagues or the broader public, allowing them to profit from your efforts.

428. What do you understand about Terraform modules?

您对 Terraform 模块有何理解?
  • 知识点: DevOps/云 (主题: terraform, iac, devops;标签: interviewbit, terraform, topic-specific, iac, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c7a58d557c902bc8c93 | 官方: 否 | 付费: 否

答案:

A Terraform module is a single directory containing Terraform configuration files. Even a simple arrangement with a single directory having one or more files can be referred to as a module. The files have the extension .tf. This directory is referred to as the root module when Terraform commands are run directly from it. Terraform commands will only use the configuration files in one location: the current working directory. Your configuration, on the other hand, can employ module blocks to call modules from other directories. When Terraform comes across a module block, it loads and processes the configuration files for that module. A module that is called by another configuration is frequently referred to as that configuration's "child module."

Terraform 模块是包含 Terraform 配置文件的一个目录。即使是单个目录中有一个或多个文件的简单布局,也可以称为模块。这些文件的扩展名为 .tf。当直接从该目录运行 Terraform 命令时,此目录被称为根模块。Terraform 命令只会使用一个位置中的配置文件:当前工作目录。另一方面,您的配置可以使用模块块从其他目录调用模块。当 Terraform 遇到模块块时,它会加载并处理该模块的配置文件。被另一个配置调用的模块通常被称为该配置的“子模块”。

429. Explain the destroy command in the context of Terraform.

解释一下 Terraform 上下文中 destroy 命令的作用。
  • 知识点: DevOps/云 (主题: terraform, iac, devops;标签: interviewbit, terraform, topic-specific, iac, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c7a58d557c902bc8c96 | 官方: 否 | 付费: 否

答案:

The terraform destroy command is a simple way to eliminate all remote objects maintained by a Terraform setup. While you should avoid destroying long-lived objects in a production environment, Terraform is occasionally used to manage temporary infrastructure for development, in which case you can use terraform destroy to quickly clean up all of those temporary objects after you're done.

terraform destroy 命令是消除由 Terraform 设置维护的所有远程对象的一种简单方法。虽然您应该避免在生产环境中销毁长期存在的对象,但 Terraform 有时用于管理开发用的临时基础设施,在这种情况下,您可以在完成后使用 terraform destroy 快速清理所有这些临时对象。

Syntax: terraform destroy [options]

语法:terraform destroy [选项]

You may also execute the following command to build a speculative destroy plan to see what the effect of destroying might be:

您也可以执行以下命令来构建一个推测性的销毁计划,以查看销毁可能产生的影响:

terraform -destroy plan

terraform -destroy plan
This will launch Terraform Plan in destroy mode, displaying the proposed destroy changes but not allowing you to execute them.
这将在销毁模式下启动 Terraform Plan,显示建议的销毁更改,但不允许您执行它们。

Successful Tech Career for FREE!

免费开启成功的科技职业生涯!

Successful Tech Career!

成功的技术职业生涯!

Interview Process

面试流程

CTC & Designation

CTC与职位级别

Projects on the Job

工作项目

Referral System

推荐系统

Try It Out

试试看

2 Lakh+ Roadmaps Created

已生成20万+职业规划

430. What do you understand about Terraform Cloud?

您对 Terraform Cloud 有什么了解?
  • 知识点: DevOps/云 (主题: terraform, iac, devops;标签: interviewbit, terraform, topic-specific, iac, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c7a58d557c902bc8c99 | 官方: 否 | 付费: 否

答案:

Terraform Cloud is a collaboration tool for teams using Terraform. It offers easy access to shared state and secret data, access controls for approving infrastructure modifications, a private registry for sharing Terraform modules, full policy controls for managing the contents of Terraform configurations, and more. Terraform Cloud is a hosted service that can be found at https://app.terraform.io. Terraform allows small teams to connect to version control, share variables, run Terraform in a reliable remote environment, and securely save remote state for free. Paid tiers provide you with the ability to add more than five people, establish teams with varying levels of access, enforce policies before building infrastructure, and work more efficiently.

Terraform Cloud 是供使用 Terraform 的团队使用的协作工具。它提供对共享状态和秘密数据的轻松访问、用于批准基础设施修改的访问控制、用于共享 Terraform 模块的私有注册表、用于管理 Terraform 配置内容的完整策略控制等等。Terraform Cloud 是一种托管服务,可在 https://app.terraform.io 找到。Terraform 允许小团队免费连接到版本控制、共享变量、在可靠的远程环境中运行 Terraform,并安全地保存远程状态。付费层级使您能够添加超过五人、建立具有不同访问级别的团队、在构建基础设施之前实施策略,并更高效地工作。

Large businesses can utilise the Business tier to scale to multiple concurrent runs, establish infrastructure in private environments, manage user access using SSO, and automate infrastructure end-user self-service provisioning.

大型企业可以利用 Business 层级扩展到多次并发运行、在私有环境中建立基础设施、使用 SSO 管理用户访问,并自动化基础设施的最终用户自助服务配置。

431. Mention some of the major competitors of Terraform.

提及 Terraform 的一些主要竞争对手。
  • 知识点: DevOps/云 (主题: terraform, iac, devops;标签: interviewbit, terraform, topic-specific, iac, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c7a58d557c902bc8c9c | 官方: 否 | 付费: 否

答案:

Following are some of the major competitors of Terraform:

以下是 Terraform 的一些主要竞争对手:
  • Azure Management Tools.
  • Morpheus.
  • CloudHealth.
  • Turbonomic.
  • CloudBolt.
  • Apptio Cloudability
  • Ansible
  • Kubernetes
  • Platform9 Managed Kubernetes.

432. Why is Terraform preferred as one of the DevOps tools?

为什么 Terraform 被优选为 DevOps 工具之一?
  • 知识点: DevOps/云 (主题: terraform, iac, devops;标签: interviewbit, terraform, topic-specific, iac, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c7a58d557c902bc8c9f | 官方: 否 | 付费: 否

答案:

Following are the reasons that Terraform is preferred as one of the DevOps tools : - Terraform allows you to specify infrastructure in config/code, making it simple to rebuild, alter, and track infrastructure changes. Terraform is a high-level infrastructure description.

以下是 Terraform 被优选为 DevOps 工具之一的原因: - Terraform 允许您在配置/代码中指定基础设施,使得重建、更改和跟踪基础设施变更变得简单。Terraform 是一种高级基础设施描述。
  • While there are a few alternatives, they are all centred on a single cloud provider. Terraform is the only powerful solution that is totally platform-neutral and supports different services.
  • Terraform allows you to implement a variety of coding concepts, such as putting your code under version control, writing automated tests, and so on.
  • Terraform is the best tool for infrastructure management since many other solutions suffer from an impedance mismatch when attempting to use an API meant for configuring management to govern an infrastructure environment. Instead, Terraform is a perfect match for what you want to do because the API is built around how you think about infrastructure.
  • Terraform has a thriving community and is open source, so it's attracting a sizable following. Many people already use it, making it easy to discover individuals who know how to use it, as well as plugins, extensions, and expert assistance. Terraform is also evolving at a much faster rate as a result of this. They have a lot of releases.
  • Terraform's speed and efficiency are unrivalled. Terraform's plan command, for example, allows you to see what changes you're about to make before you do them. Terraform and its code reuse feature makes most modifications faster than similar tools like CloudFormation.

433. What do you mean by terraform init in the context of Terraform?

在 Terraform 上下文中,terraform init 是什么意思?
  • 知识点: DevOps/云 (主题: terraform, iac, devops;标签: interviewbit, terraform, topic-specific, iac, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c7a58d557c902bc8ca2 | 官方: 否 | 付费: 否

答案:

The terraform init command creates a working directory in which Terraform configuration files can be found. After creating a new Terraform configuration or cloning an old one from version control, run this command first. It is safe to use this command more than once. Despite the fact that successive runs may result in errors, this command will never overwrite your current settings or state.

terraform init 命令创建一个工作目录,其中可以找到 Terraform 配置文件。在创建新的 Terraform 配置或从版本控制克隆旧配置后,请首先运行此命令。多次使用此命令是安全的。尽管连续运行可能会导致错误,但此命令绝不会覆盖您当前的设置或状态。

Syntax:

语法:

terraform init [options]

terraform init [options]
The following options can be used in conjunction with the init command : - -input=true: This option is set to true if the user input is mandatory. If no user input is provided, an error will be thrown.
以下选项可与 init 命令结合使用:- -input=true:如果用户输入是强制性的,则此选项设置为 true。如果未提供用户输入,将抛出错误。
  • -lock=false: This option is used to disable the locking of state files during state-related actions.
  • -lock-timeout=: This option is used to override the time it takes Terraform to get a state lock. If the lock is already held by another process, the default is 0s (zero seconds), which results in an immediate failure.
  • -no-color: This option disables the color codes in the command output.
  • -upgrade: This option can be chosen to upgrade modules and plugins throughout the installation process.

434. Is it feasible to use Terraform on Azure with callbacks? Sending a callback to a logging system, a trigger, or other events, for example?

在 Azure 上使用带回调的 Terraform 是否可行?例如,向日志系统、触发器或其他事件发送回调?
  • 知识点: DevOps/云 (主题: terraform, iac, devops;标签: interviewbit, terraform, topic-specific, iac, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c7a58d557c902bc8ca5 | 官方: 否 | 付费: 否

答案:

Yes. Azure Event Hubs can be used to accomplish this. This capability is now accessible in the Terraform AzureRM provider. Terraform's Azure supplier provides users with simple functionality. Microsoft Azure Cloud Shell includes a Terraform occurrence that has already been setup.

是的。可以使用 Azure 事件中心来实现这一点。此功能现已可在 Terraform AzureRM 提供程序中访问。Terraform 的 Azure 供应商为用户提供简单的功能。Microsoft Azure Cloud Shell 包含一个已设置的 Terraform 实例。

435. What are the use cases of Terraform?

Terraform 的用例有哪些?
  • 知识点: DevOps/云 (主题: terraform, iac, devops;标签: interviewbit, terraform, topic-specific, iac, devops)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: fullstack
  • id: 69b37c7a58d557c902bc8caa | 官方: 否 | 付费: 否

答案:

Following are the use cases of Terraform: - Setting Up a Heroku App:

以下是 Terraform 的用例:- 设置 Heroku 应用:
Heroku is a prominent platform as a service (PaaS) for hosting web applications. Developers build an app first, then add add-ons like a database or an email service. The ability to elastically scale the number of dynos or workers is one of the nicest features. Most non-trivial applications, on the other hand, quickly require a large number of add-ons and external services. Terraform may be used to codify the setup required for a Heroku application, ensuring that all essential add-ons are present, but it can also go beyond, such as configuring DNSimple to set a CNAME or configuring Cloudflare as the app's CDN. Best of all, Terraform can achieve all of this without using a web interface in about 30 seconds.
Heroku 是一个著名的平台即服务(PaaS),用于托管 Web 应用程序。开发人员首先构建应用,然后添加数据库或电子邮件服务等附加组件。弹性扩展 dynos 或 workers 的数量是最佳功能之一。然而,大多数非平凡的应用很快需要大量附加组件和外部服务。Terraform 可用于对 Heroku 应用所需的设置进行编码,确保所有必要的附加组件存在,但它也可以更进一步,例如配置 DNSimple 设置 CNAME 或配置 Cloudflare 作为应用的 CDN。最棒的是,Terraform 可以在约 30 秒内实现所有这些,无需使用 Web 界面。
  • Clusters of Self-Service:
    A centralised operations team managing a huge and growing infrastructure becomes extremely difficult at a given organisational level. Making "self-serve" infrastructure, which allows product teams to manage their own infrastructure using tooling given by the central operations team, becomes more appealing.

    在特定组织层级,集中式运营团队管理庞大且不断增长的基础设施变得极其困难。实现“自助式”基础设施,允许产品团队使用中央运营团队提供的工具管理自己的基础设施,变得越来越有吸引力。
    Terraform configuration may be used to document knowledge about how to construct and scale a service. You may then publish these configurations across your business, allowing client teams to administer their services using Terraform.
    Terraform 配置可用于记录如何构建和扩展服务的知识。然后,您可以在企业中发布这些配置,使客户端团队能够使用 Terraform 管理其服务。
  • Quick Creation of Environments:
    It is usual to have both a production and staging or quality assurance environment. These environments are smaller clones of their production counterparts, and they're used to test new apps before they're released to the public. Maintaining an up-to-date staging environment gets increasingly difficult as the production environment grows larger and more complicated.

    通常会有生产环境和暂存或质量保证环境。这些环境是生产环境的较小副本,用于在应用向公众发布之前测试新应用。随着生产环境变得更大更复杂,维护最新的暂存环境变得越来越困难。
    Terraform may be used to codify the production environment, which can then be shared with staging, QA, and development. These settings can be used to quickly create new environments in which to test and then readily discarded. Terraform can help to reduce the challenge of sustaining parallel environments by making it possible to create and destroy them on the fly.
    Terraform 可用于对生产环境进行编码,然后将其共享给暂存、质量保证和开发环境。这些设置可用于快速创建新环境进行测试,然后轻松丢弃。Terraform 可以通过支持动态创建和销毁环境,帮助减少维护并行环境的挑战。
  • Deployment of Multiple Clouds:
    To boost fault tolerance, it's common to disperse infrastructure across different clouds. When only one region or cloud provider is used, fault tolerance is restricted by that provider's availability. When a region or an entire provider goes down, a multi-cloud strategy provides for more gentle recovery.

    为提高容错能力,通常会将基础设施分散在不同云中。当仅使用一个区域或云提供商时,容错能力受限于该提供商的可用性。当某个区域或整个提供商宕机时,多云策略可实现更温和的恢复。
    Because many existing infrastructure management solutions are cloud-specific, implementing multi-cloud installations can be difficult. Terraform is cloud-agnostic, allowing you to manage numerous providers and even cross-cloud dependencies with a single configuration. This helps operators develop large-scale multi-cloud infrastructures by simplifying management and orchestration.
    由于许多现有基础设施管理解决方案是特定于云的,实现多云安装可能很困难。Terraform 与云无关,允许您使用单一配置管理多个提供商,甚至跨云依赖关系。这有助于运营商通过简化管理和编排来构建大规模多云基础设施。
  • Applications with Multiple Tier Architecture:
    The N-tier architecture is a relatively popular structure. A pool of web servers with a database tier is the most popular 2-tier system. API servers, cache servers, routing meshes, and more levels are added. Because the stages can be scaled individually and provide a separation of concerns, this structure is used.

    N 层架构是一种相对流行的结构。带有数据库层的 Web 服务器池是最流行的 2 层系统。API 服务器、缓存服务器、路由网格等更多层级会被添加。由于各阶段可以独立扩展并实现关注点分离,因此采用此结构。
    Terraform is a great tool for creating and managing these types of infrastructures. Terraform will automatically handle the dependencies between each layer if you arrange resources in each tier together. Before provisioning the web servers, Terraform will check that the database layer is up and running, as well as that the load balancers are linked to the web nodes. The count configuration value can then be changed in Terraform to quickly scale each tier. Because resource creation and provisioning are codified and automated, elastic scaling in response to load is a breeze.
    Terraform 是创建和管理此类基础设施的绝佳工具。如果您将每层中的资源组织在一起,Terraform 将自动处理各层之间的依赖关系。在配置 Web 服务器之前,Terraform 将检查数据库层是否已启动并运行,以及负载均衡器是否已连接到 Web 节点。然后,可以在 Terraform 中更改 count 配置值以快速扩展每层。由于资源创建和配置已被编码和自动化,响应负载的弹性扩展变得轻而易举。
  • Schedulers of Resources:
    The static assignment of applications to computers in large-scale infrastructures becomes increasingly difficult. There are a variety of schedulers available to handle this problem, including Borg, Mesos, YARN, and Kubernetes. These may be used to schedule Docker containers, Hadoop, Spark, and a variety of other software tools on a dynamic basis.

    在大型基础设施中,应用程序静态分配到计算机变得越来越困难。有多种调度器可用于处理此问题,包括 Borg、Mesos、YARN 和 Kubernetes。这些可用于在动态基础上调度 Docker 容器、Hadoop、Spark 以及各种其他软件工具。
    Terraform isn't just for physical providers like Amazon Web Services. Terraform can request resources from resource schedulers because they can be treated as providers. This allows Terraform to work in layers, such as setting up the physical infrastructure that runs the schedulers and provisioning into the scheduled grid.
    Terraform 不仅适用于像 Amazon Web Services 这样的物理提供商。由于资源调度器可以被视为提供商,Terraform 可以向它们请求资源。这使得 Terraform 能够分层工作,例如设置运行调度器的物理基础设施,并将资源调配到调度的网格中。
  • Software-Defined Networking:
    SDN (Software Defined Networking) is becoming more common in data centers as it gives operators and developers more control over the network and allows the network to better support the applications running on top. A control layer and an infrastructure layer are common in SDN systems.

    SDN(软件定义网络)在数据中心中越来越常见,因为它让操作员和开发人员对网络有更多的控制权,并使网络能够更好地支持在其上运行的应用程序。控制层和基础设施层在 SDN 系统中很常见。
    Terraform may be used to codify software-defined network setup. By interacting with the control layer, Terraform may use this configuration to automatically set up and adjust settings. This makes it possible to version the settings and automate modifications. Terraform, for example, may be used to set up an AWS VPC.
    Terraform 可用于将软件定义的网络设置代码化。通过与控制层交互,Terraform 可以利用此配置自动设置和调整设置。这使得对设置进行版本控制和自动化修改成为可能。例如,Terraform 可用于设置 AWS VPC。
  • Demonstrations of software:
    Modern software is becoming increasingly networked and distributed. Although solutions such as Vagrant exist to create virtualized environments for demos, demonstrating software on real infrastructure that more closely resembles production environments remains difficult.

    现代软件正变得越来越网络化和分布式。尽管有诸如 Vagrant 之类的解决方案来创建用于演示的虚拟化环境,但在更接近生产环境的真实基础设施上演示软件仍然很困难。
    On cloud providers like AWS, software authors can give a Terraform configuration to develop, provision, and bootstrap a demo. End customers may simply demo the programme on their own infrastructure, and settings like cluster size can be tweaked to more thoroughly test tools at any scale.
    在像 AWS 这样的云提供商上,软件作者可以提供 Terraform 配置来开发、调配和引导演示。最终客户可以简单地在自己的基础设施上演示程序,并且可以调整集群大小等设置,以在任何规模下更彻底地测试工具。

436. What is the purpose of version control, and what are some popular version control systems?

版本控制的目的是什么,以及有哪些流行的版本控制系统?
  • 知识点: DevOps/云 (标签: interviewbit, tiger-analytics, company-specific)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: general
  • 公司: Tiger Analytics
  • id: 69b37c7d58d557c902bc8dcf | 官方: 否 | 付费: 否

答案:

Version control is a system for managing changes to code or other documents over time. It allows us to keep track of various versions of our files, collaborate with others, and undo changes as needed.

版本控制是一种用于管理代码或其他文档随时间变化的系统。它允许我们跟踪文件的各种版本,与他人协作,并根据需要撤销更改。

Some popular version control systems include:

一些流行的版本控制系统包括:
  1. Git: Git is a version control system that is widely used. Because Git is a distributed version control system, each developer has their own copy of the entire codebase. 2. Subversion(SVN): SVN is a centralized version control system, all developers work on the same codebase. 3. Mercurial: Mercurial is a distributed version control system, similar to Git. Mercurial is popular among developers who prefer a simpler, more streamlined workflow than Git. 4. Perforce: Perforce is a centralized version control system for large teams and enterprise-level projects. Perforce includes sophisticated features such as fine-grained access control and asset management.

    1. Git:Git 是一种被广泛使用的版本控制系统。由于 Git 是分布式版本控制系统,每个开发者都拥有整个代码库的自己的副本。 2. Subversion(SVN):SVN 是一种集中式版本控制系统,所有开发者都在同一个代码库上工作。 3. Mercurial:Mercurial 是一种分布式版本控制系统,类似于 Git。Mercurial 在喜欢比 Git 更简单、更精简工作流程的开发者中很受欢迎。 4. Perforce:Perforce 是一种面向大型团队和企业级项目的集中式版本控制系统。Perforce 包含诸如细粒度访问控制和资产管理等复杂功能。

437. Explain what you mean by Port-group.

解释一下您所说的端口组是什么意思。
  • 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: general
  • 公司: VMware
  • id: 69b37c8c58d557c902bc94ae | 官方: 否 | 付费: 否

答案:

As the name suggests, port groups are groups of virtual ports on our virtual switch. In general, the port group provides a stable anchor point for virtual machines connected to labeled networks by aggregating multiple ports into a single configuration. Every port group is assigned a network label, which is unique to the host. VLAN (Virtual Local Area Network) tags, for example, are shared by each port group member.

顾名思义,端口组是虚拟交换机上虚拟端口的组。一般来说,端口组通过将多个端口聚合为单一配置,为连接到带标签网络的虚拟机提供稳定的锚点。每个端口组都分配有一个网络标签,该标签对于主机是唯一的。例如,VLAN(虚拟局域网)标签由每个端口组成员共享。

438. Explain the different types of virtualization available.

解释可用的不同类型的虚拟化。
  • 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: general
  • 公司: VMware
  • id: 69b37c8c58d557c902bc94b1 | 官方: 否 | 付费: 否

答案:

Virtualization generally enables your organization to run many processes at once with fewer physical infrastructures, leading to greater efficiency and cost savings. VMware manages different types of virtualizations, each having different uses in the industry.

虚拟化通常使您的组织能够以更少的物理基础设施同时运行多个进程,从而提高效率并节省成本。VMware 管理不同类型的虚拟化,每种在行业中都有不同的用途。

Types of virtualization- - Server Virtualization: It is a type of virtualization where many virtual machines (VMs) run on one physical server. Since you do not have to buy new servers or expand your server room, you save floor space and money. Server virtualization is offered by a few well-known providers, such as vSphere, XenServer, Hyper-V, and RedHat.

虚拟化的类型——服务器虚拟化:这是一种虚拟化类型,其中许多虚拟机(VM)在一台物理服务器上运行。由于您不必购买新服务器或扩建服务器机房,因此可以节省占地面积和资金。服务器虚拟化由一些知名提供商提供,例如 vSphere、XenServer、Hyper-V 和 RedHat。
  • Network Virtualization: It refers to the process of combining all the physical network components into one virtual network. A virtual network can be composed of NICs, switches, VLANs, network storage devices, virtual network containers, and network media. This type of virtualization has the primary function of eliminating physical network device dependencies. One of its examples includes VMware NSX.
  • Application Virtualization: The process involves virtualizing and hosting applications on a server so that end users can have access to them on their devices such as laptops, smartphones, and tablets. The app can be accessed via any Internet-connected device, so you don't have to log in to a desktop at your office to use it. Its example includes VMware ThinApp, Citric XenApp, etc.
  • Desktop Virtualization: Often called OS virtualization or VDI (Virtual Desktop Infrastructure), desktop virtualization is the process that enables you to run or deploy multiple virtual desktop OS on a physical server. The user may access his or her virtual desktop from anywhere since it is stored on a remote server. In this way, the need for individual CPUs is eliminated. Its example includes VMware Horizon View, Citrix Xen Desktop, etc.
  • Storage Virtualization: Using storage virtualization, multiple network storage devices can be combined into a single storage device/array by pooling their physical storage. It provides an easy way to manage storage and ensure consistent performance. Its example includes vSAN.

439. Explain VMKernel and its importance.

解释 VMKernel 及其重要性。
  • 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: general
  • 公司: VMware
  • id: 69b37c8c58d557c902bc94b4 | 官方: 否 | 付费: 否

答案:

VMware's VMkernel is a high-performance operating system that runs directly on the ESXi host. VMkernel generally acts as an interface between VMs and the physical hardware of the system and is referred to as microkernel by VMware since it runs on bare metal, directly on VMware ESX hosts. In addition to providing hardware abstraction and operating system (OS) services, VMKernel allocates memory and schedules CPUs. In addition, it handles services such as vMotion, Fault Tolerance, NFS, and iSCSI. In order for VMs to communicate with ESXi, the VMKernel is vital.

VMware 的 VMkernel 是一种高性能操作系统,直接运行在 ESXi 主机上。VMkernel 通常充当虚拟机与系统物理硬件之间的接口,并且由于它运行在裸机上、直接运行在 VMware ESX 主机上,因此被 VMware 称为微内核。除了提供硬件抽象和操作系统(OS)服务外,VMKernel 还分配内存并调度 CPU。此外,它还处理诸如 vMotion、Fault Tolerance、NFS 和 iSCSI 等服务。为了让虚拟机与 ESXi 通信,VMKernel 至关重要。

440. Write four core elements of the VMkernel networking layer.

写出 VMkernel 网络层的四个核心要素。
  • 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: general
  • 公司: VMware
  • id: 69b37c8c58d557c902bc94b7 | 官方: 否 | 付费: 否

答案:

VMkernel networking enables vSphere to interact with the outside world. It consists of four core elements: - Virtual SAN

VMkernel 网络使 vSphere 能够与外部世界交互。它由四个核心要素组成:- Virtual SAN
  • Fault Tolerance
  • Science storage
  • VMotion

441. What do you mean by Hypervisor? Write its type.

您所说的 Hypervisor 是什么意思?写出它的类型。
  • 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: general
  • 公司: VMware
  • id: 69b37c8c58d557c902bc94ba | 官方: 否 | 付费: 否

答案:

Hypervisors, also known as VM monitors or VMMs, are software that creates and runs virtual machines (VMs) as well as also manages and allocates resources to them. By sharing its resources in virtual ways, such as memory and processing, a host computer can support multiple guest VMs. The special feature of a hypervisor allows several virtual machines to run on a single physical server. As a result, it reduces: - Space efficiency

虚拟机监控程序,也称为虚拟机监视器或VMM,是一种创建并运行虚拟机(VM)以及管理和分配资源给它们的软件。通过以虚拟方式共享其资源,如内存和处理能力,一台宿主机可以支持多个客户虚拟机。虚拟机监控程序的特殊功能允许在单个物理服务器上运行多个虚拟机。因此,它减少了:- 空间效率
  • Energy usage
  • Server maintenance requirements.
    Types of Hypervisor - - Type-1 Hypervisor (also known as Bare Metal or Native Hypervisor)

    虚拟机监控程序的类型 - - 类型1虚拟机监控程序(也称为裸机或本机虚拟机监控程序)
  • Type-2 Hypervisor (also known as Hosted Hypervisor)

442. What do you mean by ESXi?

你说的ESXi是什么意思?
  • 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: general
  • 公司: VMware
  • id: 69b37c8c58d557c902bc94bd | 官方: 否 | 付费: 否

答案:

ESXi ( Elastic Sky X Integrated ): ESXi (formerly ESX) is a virtualization platform developed by VMware for deploying and managing virtual machines. With ESXi, you get a very secure OS architecture that includes and integrates essential OS components like the Kernel. For efficiency, reliability, and performance, it's the leading choice. ESXi partitions hardware to consolidate applications and reduce costs by directly accessing and controlling underlying resources. It is a hypervisor that makes use of bare-metal virtualization technology.

ESXi(Elastic Sky X Integrated):ESXi(前身为ESX)是由VMware开发的用于部署和管理虚拟机的虚拟化平台。使用ESXi,您将获得一个非常安全的操作系统架构,其中包括并集成了如内核等基本操作系统组件。为了效率、可靠性和性能,它是首选。ESXi通过直接访问和控制底层资源来分区硬件以整合应用程序并降低成本。它是一个利用裸机虚拟化技术的虚拟机监控程序。

443. Explain NFS and VMFS.

解释NFS和VMFS。
  • 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: general
  • 公司: VMware
  • id: 69b37c8c58d557c902bc94c0 | 官方: 否 | 付费: 否

答案:

  • NFS (Network File System): ESXi hosts use this file-sharing protocol to share files with NAS devices. Storage devices such as NAS connect to networks and enable ESXi hosts to access files.
  • VMFS (Virtual Machine File System): In VMware vSphere, it is a block-level file system that stores virtual machine files. In vSphere 6.0, it can also store large files up to 64TB in size.

444. Explain the .vmdk file.

解释.vmdk文件。
  • 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: general
  • 公司: VMware
  • id: 69b37c8c58d557c902bc94c7 | 官方: 否 | 付费: 否

答案:

Virtual Machine Disk (VMDK) is an open file format by VMware which is used to store the content of virtual hard disks. In vSphere 5.5 and later versions, it can be up to 62 TB in size. Earlier, VMware products used the extension .dsk to store content or data or virtual disk files.

虚拟机磁盘(VMDK)是VMware的一种开放文件格式,用于存储虚拟硬盘的内容。在vSphere 5.5及更高版本中,其大小可达62 TB。早期,VMware产品使用扩展名.dsk来存储内容或数据或虚拟磁盘文件。

445. Name some of the VMware products.

列举一些VMware产品。
  • 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: general
  • 公司: VMware
  • id: 69b37c8c58d557c902bc94ca | 官方: 否 | 付费: 否

答案:

VMware offers the following products: - VMware Mirage

VMware提供以下产品:- VMware Mirage
  • VMware Pivotal Container
  • VMware Photon Platform
  • VMware Thinapp
  • VMware vCloud NFV
  • VMware vCloud NFV Openstack
  • VMware vRealize
  • VMware vRealize Operations, etc.

446. What are the VMware components?

VMware组件有哪些?
  • 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: general
  • 公司: VMware
  • id: 69b37c8c58d557c902bc94cd | 官方: 否 | 付费: 否

答案:

VMware infrastructure consists of the following components: - VMware ESX Server

VMware基础设施由以下组件组成:- VMware ESX Server
  • VirtualCenter Server
  • VMware Infrastructure Client (VI Client)
  • VMware Infrastructure Web Access (VI Web Access)
  • VMware Virtual Machine File System (VMFS)
  • VMware Virtual Symmetric Multi-Processing (SMP)
  • VMware VMotion and VMware Storage VMotion
  • VMware High Availability (HA)
  • VMware Distributed Resource Scheduler (DRS)
  • VMware Consolidated Backup (Consolidated Backup)
  • VMware Infrastructure SDK

447. Explain VMware DRS.

解释VMware DRS。
  • 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: general
  • 公司: VMware
  • id: 69b37c8c58d557c902bc94d0 | 官方: 否 | 付费: 否

答案:

DRS ( Distributed Resource Scheduler ), as the name suggests, provides a way to schedule and balance resources across a vSphere environment. Through the use of clusters and resource pools, virtual environments are able to automatically balance available resources across hosts. DRS uses VMware HA (High Availability) to move VMs from one host to another to ensure that resources are evenly distributed among them.

DRS(分布式资源调度器),顾名思义,提供了一种在 vSphere 环境中调度和平衡资源的方式。通过使用集群和资源池,虚拟环境能够自动平衡各主机之间的可用资源。DRS 使用 VMware HA(高可用性)将虚拟机从一台主机迁移到另一台主机,以确保资源在它们之间均匀分布。

448. What is the importance of virtualization?

虚拟化的重要性是什么?
  • 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: general
  • 公司: VMware
  • id: 69b37c8c58d557c902bc94d3 | 官方: 否 | 付费: 否

答案:

A virtualization process creates a virtual version of a physical device, such as a server, storage device, network device, on a physical host. On a single machine/server known as an ESXi (ESX integrated) host, several virtual machines, as well as multiple operating systems and applications, can be operated. It has the following advantages: - Increasing IT agility, flexibility, and scalability while reducing costs.

虚拟化过程在物理主机上创建物理设备(如服务器、存储设备、网络设备)的虚拟版本。在称为 ESXi(ESX integrated)主机的单台机器/服务器上,可以运行多个虚拟机以及多个操作系统和应用程序。它具有以下优势:- 提高 IT 敏捷性、灵活性和可扩展性,同时降低成本。
  • Increased workload mobility, performance, and resource availability.
  • Automated operations that save time.
  • Simplify IT management and make it less expensive to operate.

449. Write three port-groups that are configured in ESXi networking.

写出在 ESXi 网络中配置的三个端口组。
  • 知识点: DevOps/云 / 行为与软技能 (标签: interviewbit, vmware, company-specific)
  • 类型: behavioral | 难度: easy | 子类型: concept
  • 分类: general
  • 公司: VMware
  • id: 69b37c8c58d557c902bc94d6 | 官方: 否 | 付费: 否

答案:

The following are the three port-groups configured in ESXi networking: - Virtual Machine Port Group: They are used for Virtual Machine Network.

以下是在 ESXi 网络中配置的三个端口组:- 虚拟机端口组:它们用于虚拟机网络。
  • Service Console Port Group: They are used for Service Console Communications.
  • VMKernel Port Group: They are used for vMotion, iSCSI, NFS (Network File System) Communications.

450. Explain iSCSI storage.

解释 iSCSI 存储。
  • 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: general
  • 公司: VMware
  • id: 69b37c8c58d557c902bc94d9 | 官方: 否 | 付费: 否

答案:

Generally, iSCSI SANs consist of an iSCSI storage system, which houses one or more storage processors. Communication between the host and array occurs over TCP/IP protocol, and ESXi hosts are configured with an iSCSI initiator. Such an initiator is either hardware- or software-based. The hardware-based initiators can be dependent or independent; the software-based ones are called iSCSI software initiators.

通常,iSCSI SAN 由 iSCSI 存储系统组成,其中包含一个或多个存储处理器。主机与阵列之间的通信通过 TCP/IP 协议进行,ESXi 主机配置有 iSCSI 启动器。此类启动器要么基于硬件,要么基于软件。基于硬件的启动器可以是依赖型或独立型;基于软件的启动器称为 iSCSI 软件启动器。

451. What is the meaning of VVol?

VVol 的含义是什么?
  • 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: general
  • 公司: VMware
  • id: 69b37c8c58d557c902bc94dc | 官方: 否 | 付费: 否

答案:

vSphere 6.0 introduces the concept of Virtual Volume, also known as VVol, for managing virtual disks. Whenever a virtual disk is created in a virtual environment, VVol is automatically created. At the virtual disk level, it enables array-based operations.

vSphere 6.0 引入了虚拟卷(Virtual Volume)的概念,也称为 VVol,用于管理虚拟磁盘。每当在虚拟环境中创建虚拟磁盘时,VVol 会自动创建。在虚拟磁盘级别,它支持基于阵列的操作。

452. Explain Cluster.

解释集群。
  • 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: general
  • 公司: VMware
  • id: 69b37c8c58d557c902bc94df | 官方: 否 | 付费: 否

答案:

In VMware, the cluster is defined as a logical grouping of multiple ESXi hosts. It lets you add and remove hosts from a cluster. HA and DRS are also provided on the cluster.

在 VMware 中,集群被定义为多个 ESXi 主机的逻辑分组。它允许您向集群添加主机或从集群中移除主机。集群上还提供 HA 和 DRS。

453. Explain cold and hot migration?

解释冷迁移和热迁移?
  • 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: general
  • 公司: VMware
  • id: 69b37c8c58d557c902bc94e4 | 官方: 否 | 付费: 否

答案:

  • Cold Migration: This is the process of migrating a powered-off VM, including its configuration and data, from a single host to another. One can migrate VMs manually or set up a scheduled task to perform cold migration.
  • Hot Migration: This is the process of migrating a powered-on VM from a single host to another. It is also known as live migration because there is no need to shut down the VM.

454. What are the benefits of Hybrid Clouds in Cloud Computing?

混合云在云计算中有哪些好处?
  • 知识点: DevOps/云 (标签: interviewbit, wipro, company-specific)
  • 类型: technical | 难度: easy | 子类型: concept
  • 分类: general
  • 公司: Wipro
  • id: 69b37c9758d557c902bc9b5f | 官方: 否 | 付费: 否

答案:

A hybrid cloud is computing, storage, and service environment that combines on-premises infrastructure, private cloud services, and a public cloud (such as Amazon Web Services (AWS) or Microsoft Azure) with orchestration among the platforms. Hybrid cloud infrastructure is one that combines public clouds, on-premises computing, and private clouds in your cloud server.

混合云是一种计算、存储和服务环境,它结合了本地基础设施、私有云服务和公有云(如 Amazon Web Services (AWS) 或 Microsoft Azure),并在各平台之间进行编排。混合云基础设施是在您的云服务器中结合公有云、本地计算和私有云的基础设施。

The real value of cloud services comes from their ability to enable a fast-paced digital company to change. There are two agendas in every technology management organization: the IT agenda and the business transformation agenda. Traditionally, the IT agenda has been concentrated on cost-cutting. Digital business transformation plans, on the other hand, are concentrated on making money through investments.

云服务的真正价值来自于其使快节奏的数字公司能够变革的能力。每个技术管理组织中都有两个议程:IT 议程和业务转型议程。传统上,IT 议程一直专注于削减成本。另一方面,数字业务转型计划则专注于通过投资赚钱。

The main advantage of a hybrid cloud is its flexibility. To acquire the agility it requires for a competitive advantage, your company may desire (or need) to integrate public clouds, private clouds, and on-premises resources.

混合云的主要优势是其灵活性。为了获得竞争优势所需的敏捷性,您的公司可能希望(或需要)整合公有云、私有云和本地资源。

455. What is EUCALYPTUS in cloud computing? List some of its functionalities.

云计算中的 EUCALYPTUS 是什么?列出它的一些功能。
  • 知识点: DevOps/云 (标签: interviewbit, wipro, company-specific)
  • 类型: technical | 难度: easy | 子类型: coding
  • 分类: general
  • 公司: Wipro
  • id: 69b37c9758d557c902bc9b62 | 官方: 否 | 付费: 否

答案:

Eucalyptus is commercial and open-source computer software for creating private and hybrid cloud computing environments that are compatible with Amazon Web Services (AWS). It was created by the company Eucalyptus Systems. Eucalyptus stands for Elastic Utility Computing Architecture for Linking Your Programs To Useful Systems. Eucalyptus enables application workloads to be flexibly scaled up or down by pooling compute, storage, and network resources.

Eucalyptus 是一种商业和开源计算机软件,用于创建与 Amazon Web Services (AWS) 兼容的私有云和混合云计算环境。它由 Eucalyptus Systems 公司创建。Eucalyptus 代表 Elastic Utility Computing Architecture for Linking Your Programs To Useful Systems。Eucalyptus 通过池化计算、存储和网络资源,使应用程序工作负载能够灵活地扩展或缩减。

Some of its functionalities are: - Users can configure computing, network, and storage resources using the Eucalyptus User Console. Using built-in key management and encryption capabilities, development and test teams may control virtual instances.

它的一些功能包括: - 用户可以使用 Eucalyptus 用户控制台配置计算、网络和存储资源。借助内置的密钥管理和加密功能,开发和测试团队可以控制虚拟实例。
  • Eucalyptus can run a variety of virtual machine images, including Windows and Linux. Users can create a library of Eucalyptus Machine Images (EMIs) that are detached from infrastructure details, allowing them to run on Eucalyptus clouds.
  • Eucalyptus supports storage area network devices that use storage arrays to boost performance and reliability. Direct-attached storage is also supported by Eucalyptus.
  • New features for AWS compatibility have been added to Eucalyptus 3.3. Resource tagging, for example, allows application developers and cloud managers to add configurable metadata tags to resources like firewalls, load balancers, Web servers, and particular workloads to help them be more easily identified.
  • Maintenance Mode in Eucalyptus 3.3 allows cloud managers to do maintenance on Eucalyptus clouds with no interruption to instances or cloud applications.
  • Better image management and migrating tools, warm upgrade capabilities, a hybrid cloud user console to handle both Eucalyptus and AWS resources, Identity and Access Management (IAM) roles, and enhanced High Availability (HA) capabilities are among the new features in Eucalyptus 3.4.

456. What is the future of Google, and how is it positioning itself to remain competitive and innovative in the years to come?

Google 的未来是什么,它如何定位自己以在未来几年保持竞争力和创新性?
  • 知识点: DevOps/云 / 数据工程与数据科学/AI / 行为与软技能 (标签: google, ai, cloud, innovation, waymo)
  • 类型: behavioral | 难度: medium | 子类型:
  • 分类: general
  • id: 695b63eb2873cad90baba6b7 | 官方: 是 | 付费: 否

答案:

TL;DRGoogle is positioning itself through AI-first strategy, major cloud investments, autonomous driving (Waymo), and an innovation-focused culture.

简而言之:Google 正在通过 AI 优先战略、重大云投资、自动驾驶(Waymo)和以创新为核心的文化来定位自己。
Key strategic bets- AI-first: deep investment in AI for product and platform advantage
关键战略押注 - AI 优先:深度投资 AI 以获得产品和平台优势
  • Cloud: aim to remain a top cloud provider
  • Autonomous vehicles: Waymo as a transportation disruptor
    Culture of innovation- Diversity and inclusion

    创新文化 - 多元与包容
  • Encouraging experimentation and risk-taking
  • User-centered approach
  • Continuous improvement

457. 云计算(Cloud Computing)中的“EUCALYPTUS”是什么?

  • 知识点: DevOps/云 / 系统设计/架构 / UI/UX 设计 (主题: system-design;标签: Eucalyptus, Hybrid Cloud, Private Cloud)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: general
  • id: 6960ca490e32007ea0d2f11e | 官方: 是 | 付费: 否

答案:

核心答案“EUCALYPTUS” 是一个开源云计算基础设施(Cloud Infrastructure),用于部署云集群(Cloud Cluster)。原文给出的全称是:Elastic Utility Computing Architecture for Linking Your Programs To Useful Systems。
能做什么- 构建公有云(Public Cloud)、私有云(Private Cloud)与混合云(Hybrid Cloud)平台

  • 为组织搭建“自有云数据中心”能力

458. 为什么实现云需要虚拟化平台(Virtualization Platform)?

  • 知识点: DevOps/云 / 系统设计/架构 / UI/UX 设计 (主题: system-design;标签: Virtual Machines, Resource Sharing, Isolation)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: general
  • id: 6960ca4a0e32007ea0d2f1e1 | 官方: 是 | 付费: 否

答案:

核心答案虚拟化(Virtualization)让你可以创建存储(Storage)、操作系统(Operating System)、应用(Application)与网络(Network)等资源的“虚拟版本”,从而在同一套物理服务器(Physical Server)上运行多个应用与多个操作系统。
为什么重要- 提高资源利用率(Multi-tenancy/Multi-workload)

  • 隔离性更强(不同 VM 互相隔离)
  • 扩缩容更灵活(快速创建/销毁实例)
  • 增强基础设施可扩展性(在现有硬件上承载更多负载)

459. SaaS(Software as a Service,软件即服务)有哪些不同模式?

  • 知识点: DevOps/云 / 系统设计/架构 / UI/UX 设计 (主题: system-design;标签: Multi-tenancy, SaaS)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: general
  • id: 6960ca4a0e32007ea0d2f2a2 | 官方: 是 | 付费: 否

答案:

核心答案原文给出两种 SaaS(Software as a Service)模式:

  • Single Multi-Tenancy:资源独立,不与其他租户共享
  • Fine Grain Multi-Tenancy:资源在多个租户之间共享,但功能保持一致

460. 云计算(Cloud Computing)中弹性(Elasticity)与可扩展性(Scalability)有什么区别?

  • 知识点: DevOps/云 / 系统设计/架构 / UI/UX 设计 / 编程语言基础 (主题: system-design;标签: Scalability, Elasticity, Cost Optimization)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: general
  • id: 6960ca4a0e32007ea0d2f2ad | 官方: 是 | 付费: 否

答案:

核心答案可扩展性(Scalability)指提升系统处理更多工作负载的能力,可以通过增加服务器或提升现有服务器承载来实现。
弹性(Elasticity)指根据需求动态增加或减少虚拟机(Virtual Machine)/资源,避免资源浪费并降低成本。

461. Git 冲突(Conflict)该如何解决?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965f03bfa809e6d38883f08 | 官方: 是 | 付费: 否

答案:

Answer

答案
If we want to resolve a conflict in Git, then we need to edit the files for fixing the conflicting changes and then we can run “git add” to add the resolved files and after that we can run the ‘git commit’ for committing the repaired merge.
如果我们要解决 Git 中的冲突,那么我们需要编辑文件来修复冲突的更改,然后我们可以运行“git add”来添加已解决的文件,之后我们可以运行“git commit”来提交修复后的合并。

462. 什么是 Git 仓库(Repository)?常见的 Git 托管平台(Hosting Platform)有哪些?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965f03bfa809e6d38883f0b | 官方: 是 | 付费: 否

答案:

Answer

答案
Repositories contain a batch of files that are different versions of a project. These files are imported from the repositories into the local servers of users for further modifications and updates in the content.
存储库包含一批文件,这些文件是项目不同版本的文件。这些文件从存储库导入到用户的本地服务器中,以便对内容进行进一步的修改和更新。

A few popular Git hosting services are:

一些流行的 Git 托管服务有:
  • GitHub
  • GitLab
  • Bitbucket
  • SourceForge

463. 什么是 Git,什么是 GitHub(GitHub)?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965f03bfa809e6d38883f0f | 官方: 是 | 付费: 否

答案:

Answer

答案
Git is an open-source and free distributed version control system developed to handle projects of all sizes quickly and efficiently.
Git 是一个开源且免费的分布式版本控制系统,旨在快速高效地处理各种规模的项目。

GitHub uses Git to provide Internet hosting for version control and software development. It offers the functionality of distributed version control and source code management, which is found in Git, in addition to other unique features.

GitHub 使用 Git 为版本控制和软件开发提供互联网托管。它提供了 Git 中所具有的分布式版本控制和源代码管理功能,此外还有其他独特的功能。

464. Git 的 cherry-pick 是什么?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965f03bfa809e6d38883f12 | 官方: 是 | 付费: 否

答案:

Answer

答案
Git cherry-pick is a command that allows the picking of arbitrary Git commits by reference and adding them to the HEAD. Cherry-picking is the process of picking a commit from one branch and applying it to another. It helps in undoing changes.
Git cherry-pick 是一个命令,允许按引用挑选任意的 Git 提交并将它们添加到 HEAD。Cherry-pick 是从一个分支中挑选提交并将其应用到另一个分支的过程。它有助于撤销更改。

465. git fetch 和 git pull 有什么区别?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965f03bfa809e6d38883f15 | 官方: 是 | 付费: 否

答案:

Answer

答案
Git fetch retrieves new data from a remote repository but does not integrate it into our working files. It helps in checking if any changes happened in the remote repository. It does not manipulate or destroy anything in the process.
Git fetch 从远程仓库获取新数据,但不会将其整合到我们的工作文件中。它有助于检查远程仓库是否发生了任何更改。此过程不会操作或破坏任何内容。

Git pull, on the other hand, updates the HEAD with the latest changes from the remote server and directly integrates it into the working copy files. Using git pull can end in merge conflict as it tries to merge remote changes with the local ones.

另一方面,Git pull 使用远程服务器上的最新更改更新 HEAD,并直接将其整合到工作副本文件中。使用 git pull 可能会因尝试将远程更改与本地更改合并而导致合并冲突。

466. 解释一下 Git 的 git checkout 命令。

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965f03bfa809e6d38883f18 | 官方: 是 | 付费: 否

答案:

Answer

答案
Git checkout allows for the switching of the HEAD. It can be used to restore the historic versions of files as well. The command operates upon files, commits, and branches.
Git checkout 允许切换 HEAD。它也可用于恢复文件的历史版本。该命令作用于文件、提交和分支。

467. git rebase 会做什么?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965f03bfa809e6d38883f1b | 官方: 是 | 付费: 否

答案:

Answer

答案
Rebasing is the reapplying of commits on top of another base trip. A sequence of commits is applied from distinct branches into the final commit. It is a linear process of merging and an alternative to the git merge command. Rebasing makes it seem like one has created a branch from a different commit.
变基是将提交重新应用到另一个基线之上。一系列提交从不同分支被应用到最终提交中。这是一个线性的合并过程,是 git merge 命令的替代方法。变基使创建的分支看起来像是从不同的提交开始的。

468. Git 里的 revert 是什么?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965f03bfa809e6d38883f1e | 官方: 是 | 付费: 否

答案:

Answer

答案
The git revert command is a forward-moving undo operation. It is a safe way to undo changes as it will create a new commit that inverses the changes instead of deleting or orphaning commits in the commit history.
git revert 命令是一种向前移动的撤销操作。这是一种安全的撤销更改方式,因为它会创建一个反转更改的新提交,而不是删除或孤立提交历史中的提交。

469. git reset 和 git revert 有什么区别?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965f03bfa809e6d38883f21 | 官方: 是 | 付费: 否

答案:

Answer

答案
While git reset changes the state of the branch to a previous one by removing all of the states after the desired commit, git revert does it through the creation of new reverting commits and keeping the original one intact.
虽然 git reset 通过移除目标提交之后的所有状态来将分支状态更改回之前的某个状态,但 git revert 通过创建新的反向提交并保持原始提交不变来实现这一目的。

470. git remote 和 git clone 有什么区别?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965f03bfa809e6d38883f24 | 官方: 是 | 付费: 否

答案:

Answer

答案
Git remote adds a reference to a remote repository for further tracking. Git clone, like its name, clones an existing remote repository and builds a new one.
Git remote 添加对远程仓库的引用以便进一步跟踪。Git clone,如其名称所示,克隆现有的远程仓库并构建一个新的仓库。

471. 什么是 git stash(Git暂存)?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965f03bfa809e6d38883f27 | 官方: 是 | 付费: 否

答案:

Answer

答案
The Git stash will take the working directory in the current state and index it to put on the stack at a later stage so that what we get is a clean working directory.
Git stash 会取出当前状态下的工作目录并将其索引后放到栈中,以便稍后使用,从而得到的是一个干净的工作目录。

This means that if we are in the middle of some task and need to get a clean working directory and simultaneously we want to keep all our current edits, then we can use the Git stash.

这意味着,如果我们正在某项任务中并需要获得一个干净的工作目录,同时还想保留当前的所有编辑,那么可以使用 Git stash。

472. Fork、Branch、Clone 三者有什么区别?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965f03bfa809e6d38883f2a | 官方: 是 | 付费: 否

答案:

Answer

答案
Forking creates a copy of the original repository, and it remains in the GitHub account. Whereas, in cloning, the repository is copied to the local machine using Git. Forking is used to propose changes to the repository owners. In cloning, the changes are directly pushed to the original repository, provided the user has write access. A branch occurs within a repository and is a way to keep developing and modifying the software without affecting the main project.
Forking 会创建原始仓库的一个副本,并且该副本保留在 GitHub 账户中。而克隆则是使用 Git 将仓库复制到本地机器上。Forking 用于向仓库所有者提出更改建议。在克隆中,更改直接推送到原始仓库,前提是用户具有写权限。分支存在于仓库内部,是一种在不影响主项目的情况下继续开发和修改软件的方式。

473. git reflog(reference log)和 git log(commit log)有什么区别?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965f03bfa809e6d38883f2d | 官方: 是 | 付费: 否

答案:

Answer

答案
The git log is a public record of the commit history for a branch. Reflog, on the other hand, is a private one of the repository’s local commits.
git log 是分支提交历史的公开记录。而 Reflog 则是仓库本地提交的私有记录。

Unlike reflog, the git log is a part of the Git repository and is replicated after a push, fetch, or pull. A developer cannot access a local repository’s reflog without having access to the computer where it is located.

与 reflog 不同,git log 是 Git 仓库的一部分,在推送、拉取或抓取后会进行复制。开发者无法访问本地仓库的 reflog,除非他能访问存放该仓库的计算机。

474. 什么是 git stash drop(stash 删除操作)?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965f03bfa809e6d38883f30 | 官方: 是 | 付费: 否

答案:

Answer

答案
When we are finished with working on the stashed item or want to remove the list, we can use the Git stash drop. This will ensure that the item that is last added by default or any particular item can be removed from the argument.
当我们处理完暂存项或想要移除列表时,可以使用 Git stash drop。这可以确保默认最后添加的项或任何特定项从参数中移除。

475. 如何判断某个分支(branch)是否已合并进 master?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965f03bfa809e6d38883f33 | 官方: 是 | 付费: 否

答案:

Answer

答案
Git branch –merged master – shows all branches that are merged into master
Git branch –merged master – 显示所有已合并到 master 的分支

Git branch – merged – shows all branches that are merged into the head

Git branch – merged – 显示所有已合并到当前头部的分支

Git branch – no-merged –shows all the branches that are not merged

Git branch – no-merged – 显示所有未合并的分支

476. Git 和 SVN(Subversion)的主要区别是什么?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965f03bfa809e6d38883f36 | 官方: 是 | 付费: 否

答案:

Answer

答案
Here we list some of the most important differences between Git and SVN:
这里我们列出 Git 和 SVN 之间一些最重要的区别:
  • When it comes to handling large files, Git is not preferred but SVN can handle multiple projects in the same repository
  • Git does not have ‘commits’ across multiple branches but SVN lets you create the folders on any location in the repository layout
  • You cannot commit changes in Git but SVN lets you create a tag as a branch and you can create multiple revisions under a root tag

477. 在项目中使用 Pull Request(PR,拉取请求)有什么好处?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965f03bfa809e6d38883f39 | 官方: 是 | 付费: 否

答案:

Answer

答案
Teams can work on different parts of the system at the same time and then merge their changes together using the pull requests in a project. Therefore, this boosts team efficiency.
团队可以同时处理系统的不同部分,然后通过在项目中使用的拉取请求将他们的更改合并在一起。因此,这提升了团队效率。

478. 什么是 Git 的分离 HEAD(detached HEAD)状态?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965f03bfa809e6d38883f3c | 官方: 是 | 付费: 否

答案:

Answer

答案
A detached HEAD state occurs when the HEAD does not point to a branch but rather points toward a specific commit or the remote repository.
当 HEAD 不指向分支而是指向特定提交或远程仓库时,就会出现分离的 HEAD 状态。

479. 什么是 Git 的跟踪分支(tracking branch)?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965f03bfa809e6d38883f3f | 官方: 是 | 付费: 否

答案:

Answer

答案
Tracking branches are the local branches that are connected to a remote branch and have a direct relationship with them, allowing you to push or pull changes to remote branches easily.
跟踪分支是连接到远程分支并与之有直接关系的本地分支,使得您可以轻松地向远程分支推送或拉取更改。

480. 什么是 Git bundle(打包文件)?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965f03bfa809e6d38883f42 | 官方: 是 | 付费: 否

答案:

Answer

答案
A Git bundle is a file containing the entire history of a Git repository. This includes all the branches, tags, and commits. You can create a git bundle using the following command:
Git bundle 是一个包含 Git 仓库全部历史的文件,其中包括所有分支、标签和提交。您可以使用以下命令创建 Git bundle:

git bundle create <bundle_file>

git bundle create <bundle_file>

The <bundle_file> argument is the name of the file that the bundle will be saved to. The argument specifies which branches, tags, or commits are to be included in the bundle.

<bundle_file> 参数是将保存 bundle 的文件名。 参数指定要包含在 bundle 中的分支、标签或提交。

481. git show 命令的作用是什么?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965f03bfa809e6d38883f45 | 官方: 是 | 付费: 否

答案:

Answer

答案
git show command is used to show one or more objects. This can be blobs, trees, tags, and commits.
git show 命令用于显示一个或多个对象,这些对象可以是 blob、树、标签和提交。

482. git clone(克隆)命令有什么用?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965f03bfa809e6d38883f48 | 官方: 是 | 付费: 否

答案:

Answer

答案
The Git clone command lets us copy the existing Git repository. If we want to get a copy of the central repository then the best way to do it is using ‘cloning’.
Git clone 命令让我们复制现有的 Git 仓库。如果我们想获取中央仓库的副本,最好的方法是使用‘克隆’。

483. 什么是版本控制系统(VCS,Version Control System)?它有哪些类型?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965f03bfa809e6d38883f4b | 官方: 是 | 付费: 否

答案:

Answer

答案
A version control system (VCS) is a software tool used to create different project versions and store them in a repository. All modifications to the code are recorded and tracked by the VCS.
版本控制系统(VCS)是一种软件工具,用于创建不同的项目版本并将其存储在仓库中。所有对代码的修改都由 VCS 记录和跟踪。

Types of version control systems:

版本控制系统的类型:
  • Local version control systems have a database that maintains all the file changes on disk under revision control in a special format.
  • Centralized version control systems contain one repository, and each user gets their own working copy.
  • Distributed version control systems contain multiple repositories, each accessible to separate users with their own working copy.

484. Git 相比 SVN 有哪些优势?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965f03bfa809e6d38883f4f | 官方: 是 | 付费: 否

答案:

Answer

答案
Since Git is an open source version control system it lets us run multiple versions of our project so that it shows the changes that are made to the code over time and if needed we can keep track of the changes that we have made. This means that a large number of developers can make their own changes and upload those changes so that the changes can be attributed to the particular developers.
由于 Git 是一个开源版本控制系统,它允许我们运行项目的多个版本,以显示代码随时间的变化,如果需要,我们可以跟踪所做的更改。这意味着大量开发人员可以进行自己的更改并上传这些更改,以便将更改归因于特定的开发人员。

485. 在 Git 中管理大型二进制文件(binary file)有哪些策略?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965f03bfa809e6d38883f58 | 官方: 是 | 付费: 否

答案:

Answer

答案
To manage large binary files in Git effectively, one can consider these strategies:
要有效管理 Git 中的大型二进制文件,可以考虑以下策略:
  • Git Large File Storage (LFS)
  • Separate Large File Repository
  • Selective Cloning and Fetching
  • Binary File Compression

v) Optimize Storage Usage

v) 优化存储空间的使用

vi) Use External Storage Services

vi) 使用外部存储服务

vii) Archive Old Files

vii) 归档旧文件

486. git tag -a(annotated tag,注释标签)命令有什么用?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965f03cfa809e6d38883f5b | 官方: 是 | 付费: 否

答案:

Answer

答案
The git tag -a command is used to create an annotated tag in git. Annotated tags include the tagger name, email, and date, along with a tagging message.
git tag -a 命令用于在 git 中创建附注标签。附注标签包含打标签者的姓名、电子邮件和日期,以及一条标记信息。

Syntax: git tag -a -m "" []

语法:git tag -a -m "" []

git tag is the base command that is used to create tags in git.

git tag 是用于在 git 中创建标签的基础命令。
  • a stands for “annotated” and instructs git to create an annotated tag.

tagname: This is the name that you want to give to your tag.

tagname:这是您想为标签指定的名称。
  • m “message”: This is optional; you can include a message with “m” to describe the tag.

487. GitHub 里的 clone(克隆)是什么?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965f03cfa809e6d38883fa5 | 官方: 是 | 付费: 否

答案:

Answer

答案
Cloning in a git repository means you can create a local copy of the code provided by the developer. You can perform cloning with CLI.
在 git 仓库中克隆意味着您可以创建开发人员提供的代码的本地副本。您可以通过命令行界面执行克隆操作。

488. 你如何理解 GitHub 以及 GitHub 的 repository(仓库,仓库)?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965f03cfa809e6d38883fa8 | 官方: 是 | 付费: 否

答案:

Answer

答案
GitHub is a code-hosting platform for version control and collaboration. A repository is one of the elements of GitHub where you can store your code and files. A repository can have multiple collaborators and can be either public or private.
GitHub 是一个用于版本控制和协作的代码托管平台。仓库是 GitHub 的组成元素之一,您可以在其中存储代码和文件。仓库可以有多个协作者,并且可以是公开的或私有的。

489. 使用 GitHub(GitHub)相比其他平台有哪些好处?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965f03cfa809e6d38883fab | 官方: 是 | 付费: 否

答案:

Answer

答案
Below are some of the benefits of using GitHub:
以下是使用 GitHub 的一些好处:
  • Easy to use
  • Robust documentation and support
  • Collaboration

490. 如何在 Git(Git)中给某个分支增加/合入新功能?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965f03cfa809e6d38883fb6 | 官方: 是 | 付费: 否

答案:

Answer

答案
Users can enhance the functionality of a branch in Git by adding the desired feature to any of the branches using the Git merge command.
用户可以通过 Git merge 命令将所需功能添加到任意分支,从而增强 Git 中分支的功能。

491. 在 Git(Git)中如何处理/解决合并冲突(merge conflict)?

  • 知识点: DevOps/云 (主题: git, version-control, github;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965f80efa809e6d3889390b | 官方: 是 | 付费: 否

答案:

Answer

答案
  • Understand what happened: conflicts often occur when the same lines are edited differently, files are deleted/renamed, or changes overlap. Use git status to see conflicted files.
  • Fix the conflict: open the file(s) and resolve the sections marked by conflict markers like <<<<<<< HEAD, =======, and >>>>>>> other/branch. Keep the correct final content and remove the markers.
  • Stage and commit: run git add on resolved files, then complete the merge with git commit (or finish the rebase). After that, you can merge the current branch into master/main if needed.

492. 与其他 Git(Git)工作流相比,Forking workflow(Forking workflow)的优势有哪些?

  • 知识点: DevOps/云 (主题: git, version-control, github;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965f80efa809e6d3889390e | 官方: 是 | 付费: 否

答案:

Answer

答案
  • Decentralized contributions: every developer works in their own server-side fork instead of pushing to a single central repo.
  • Cleaner project history: maintainers control what gets merged into the official repository via pull requests, reducing noisy direct pushes.
  • Safer permissions model: contributors don’t need write access to the upstream repo; they push to their fork and open a PR.
  • Ideal for open source: scales well for public projects where many external contributors submit changes independently.
  • Clear review workflow: changes are published to the contributor’s fork, then proposed upstream through a pull request for review and integration.

493. 什么时候用 git rebase(git rebase)而不是 git merge(git merge)?两者核心区别是什么?

  • 知识点: DevOps/云 (主题: git, version-control, github;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965f80efa809e6d38893912 | 官方: 是 | 付费: 否

答案:

Answer

答案
git merge and git rebase both integrate changes from one branch into another, but they do it differently.
git merge 和 git rebase 都将一个分支的更改集成到另一个分支,但做法不同。
  • Merge: combines histories and creates a merge commit (unless fast-forward). It preserves the exact historical branching structure.
  • Rebase: rewrites history by replaying commits from your feature branch on top of a new base (e.g. the tip of master/main), producing a more linear history.

You typically use rebase to keep a clean, linear local feature history (especially before publishing), and use merge when you want to preserve true historical context and avoid rewriting shared history. Rebasing public/shared branches can create inconsistencies for collaborators.

通常使用 rebase 来保持干净、线性的本地功能历史(尤其是在发布之前),而在想要保留真实历史背景并避免重写共享历史时使用 merge。重写公共/共享分支可能会给协作者造成不一致。

494. 我把一个错误的 commit(commit)提交并且已经 push(push)到远端了,想撤回/回滚这个 commit(commit),该怎么做?

  • 知识点: DevOps/云 (主题: git, version-control, github;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965f80efa809e6d38893915 | 官方: 是 | 付费: 否

答案:

Answer

答案
If the bad commit is already public, the safest approach is to create a new commit that undoes it using git revert:
如果错误提交已经公开,最安全的方法是使用 git revert 创建一个新提交来撤销它:

git revert

git revert
This preserves history (no rewriting) while reversing the changes introduced by that commit. Git will open an editor for the revert commit message; after committing, push the new revert commit to the remote.
这会保留历史(不重写)同时撤销该提交引入的更改。Git 将打开编辑器用于 revert 提交消息;提交后,将新的 revert 提交推送到远程。

495. pom.xml(pom.xml)文件通常包含哪些核心组件?

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Basic, Q3, Maven)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965fd39fa809e6d3889b7a6 | 官方: 是 | 付费: 否

答案:

答案pom.xml(pom.xml)是 Maven(Maven)的项目配置文件,通常包含以下关键项:

  • groupId:组织/团队的唯一标识。
  • artifactId:项目产物标识(一般就是项目名)。
  • version:版本号。
  • dependencies:项目依赖的外部库与框架。
  • plugins:增强 Maven 能力的插件(编译、测试、打包等)。
  • build:构建配置,如编译器版本、源码目录、输出目录等。
  • reporting:生成质量/覆盖率/文档等报告的插件。
  • repositories:依赖查找的本地/远程仓库位置。

496. Maven(Maven)插件的作用是什么?通常有哪些类别?

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Basic, Q4, Maven)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965fd39fa809e6d3889b7ab | 官方: 是 | 付费: 否

答案:

答案Maven(Maven)插件的作用:

  • 扩展 Maven 能力(不止编译打包)
  • 自动化开发与构建流程
  • 提升静态分析与代码质量
  • 生成基于指标的项目报告
  • 简化分发与部署
  • 生成资源与代码(如源码生成)
  • 集成版本控制/源码管理流程
  • 支持部署编排与容器化相关流程

常见插件类别:

  • 构建任务(Build tasks)
  • 分析与代码质量(Analysis & Quality)
  • 报告(Reporting)
  • 分发与部署(Distribution & Deployment)
  • 代码生成(Code generation)
  • 源码管理(SCM)
  • 部署编排与容器化(Orchestration & Containerization)

497. 解释一下 Maven(Maven)的架构与工作机制。

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Basic, Q9, Maven)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965fd39fa809e6d3889b7c1 | 官方: 是 | 付费: 否

答案:

答案Maven(Maven)的架构以 POM(pom.xml)(POM(pom.xml)) 为核心,用 XML(XML)定义项目配置与依赖。它采用插件化设计,具体能力由插件完成;构建过程被组织成生命周期阶段(按顺序执行)。Maven(Maven)会自动进行依赖管理:从本地与远程/中央仓库下载并引入依赖;同时坚持“约定优于配置”,强制标准目录结构与命名。通过执行 mvn(mvn)命令即可自动完成编译、测试、打包等流程。

498. Maven(Maven)的 Clean Lifecycle(Clean Lifecycle)包含哪些阶段?

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Intermediate, Q11, Maven)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965fd39fa809e6d3889b7cc | 官方: 是 | 付费: 否

答案:

答案Clean(Clean)生命周期一般包含三阶段:

  • pre-clean:执行清理前的准备动作。
  • clean:删除上一次构建产生的文件/产物,确保干净环境。
  • post-clean:清理后可追加执行一些收尾任务(按需要)。

499. Maven(Maven)中 Convention(Convention)与 Configuration(Configuration)的区别是什么?

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Intermediate, Q12, Maven)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965fd39fa809e6d3889b7cf | 官方: 是 | 付费: 否

答案:

答案在 Maven 里,Convention(约定)指预设规则与默认值,Configuration(配置)指显式声明项目设置。

  • 约定:用统一标准简化开发,减少手工配置,提升一致性。
  • 配置:允许按项目需求覆盖/微调约定,提供更高灵活度与可控性。
  • 约定关注通用结构、命名与默认流程;配置用于精细化依赖、插件与构建参数。

500. Maven 中的 Goal(目标)是什么意思?

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Intermediate, Q13, Maven)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965fd39fa809e6d3889b7d2 | 官方: 是 | 付费: 否

答案:

答案在 Maven 术语里,Goal 是插件提供的一个具体任务(例如编译、运行测试、打包等)。Goal 通常会绑定在某个生命周期阶段(Phase)上,随着 Phase 的执行按顺序触发,从而完成构建生命周期中的一系列工作。

501. maven package 和 maven install 的区别是什么?

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Intermediate, Q15, Maven)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965fd39fa809e6d3889b7d8 | 官方: 是 | 付费: 否

答案:

答案mvn package 会把编译后的代码打包成可分发产物(通常是 JAR/WAR)。而 mvn install 在完成打包的基础上,还会把产物安装到本地仓库(local repo),这样其他项目就能通过依赖坐标直接引用该构件。

502. Maven 中 Snapshot(快照版本)是什么意思?

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Intermediate, Q17, Maven)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965fd39fa809e6d3889b7de | 官方: 是 | 付费: 否

答案:

答案Snapshot 表示开发中的“动态版本”,常用于未正式发布的迭代(WIP)。与固定发布版本不同,Snapshot 可能会在远程仓库不断更新;Maven 在构建时会按策略检查远程仓库是否有更新的 Snapshot,以便获取最新开发产物。

503. 如何在 Maven 中排除某个依赖?

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Intermediate, Q18, Maven)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965fd39fa809e6d3889b7e7 | 官方: 是 | 付费: 否

答案:

答案可以在 dependency 中使用 (exclusion 元素)排除传递依赖。这样做常用于避免版本冲突、兼容性问题或引入不必要的库,使依赖树更可控、更精简,减少构建与运行风险。

504. 在 Maven 中如何声明 Profiles?

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Advanced, Q21, Maven)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965fd39fa809e6d3889b7f0 | 官方: 是 | 付费: 否

答案:

答案Maven 的 Profiles 通常在 pom.xml 中通过 片段声明(也可在 settings.xml 中定义)。Profile 用于按环境/场景切换不同的依赖、插件或构建参数,实现“同一工程,多套构建配置”。

505. Maven 的 settings.xml 文件是什么?

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Advanced, Q24, Maven)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965fd39fa809e6d3889b800 | 官方: 是 | 付费: 否

答案:

答案settings.xml 用于配置 Maven 运行时的全局/用户级参数,帮助自定义 Maven 的执行行为。常见配置包括:

  • 代理(proxy)设置
  • 本地仓库路径(localRepository)
  • 远程仓库/镜像(remote repositories / mirrors)
  • 中央仓库相关访问配置(例如镜像到公司私服)

506. Maven 的 Transitive Dependency(传递依赖)是什么意思?

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Advanced, Q25, Maven)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965fd39fa809e6d3889b803 | 官方: 是 | 付费: 否

答案:

答案传递依赖指:当你依赖一个库时,Maven 会自动把该库所依赖的其他库也一并解析并引入,无需你手动逐个声明。比如 X 依赖 Y、Y 依赖 Z,那么 Maven 会让 X 同时获得 Y 与 Z(并按依赖调解规则处理版本冲突)。

507. Maven 的关键特性有哪些?

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Advanced, Q26, Maven)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965fd39fa809e6d3889b80e | 官方: 是 | 付费: 否

答案:

答案Maven(Maven)的主要特性包括:

  • 易用:基于最佳实践提供简化配置与标准结构。
  • 高效:快速创建新项目/模块,命令体系统一。
  • 学习成本低:跨项目用法相对一致,新成员上手更快。
  • 依赖管理强:自动解析版本、支持传递依赖与更新管理。
  • 多项目友好:便于同时管理多个项目/模块。
  • 生态丰富:拥有庞大的库与元数据仓库可直接复用。

508. 使用 Maven(Maven)的好处是什么?

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Advanced, Q27, Maven)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965fd39fa809e6d3889b81a | 官方: 是 | 付费: 否

答案:

答案Maven(Maven)能加快项目搭建与构建:相比 build.xml(build.xml)这类繁琐脚本,Maven(Maven)以 pom.xml(pom.xml)作为核心,集中声明依赖(dependency)与构建规则;随后自动从网络下载依赖(dependency)并缓存到本地/中央/远程仓库(repository)。这样不仅减少手动管理 jar(jar)的成本,还能让构建更可重复。对于 WAR(WAR)/EAR(EAR)等交付形式,把依赖(dependency)统一纳入仓库(repository)与打包流程,也能让后续安装/部署时更容易复用与追踪所需组件。

509. 为什么说 Maven(Maven)更偏好“约定优于配置”(convention over configuration)?

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Advanced, Q28, Maven)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965fd39fa809e6d3889b827 | 官方: 是 | 付费: 否

答案:

答案“约定优于配置”(convention over configuration)指 Maven(Maven)预先定义了标准的项目结构与默认构建流程,开发者不必为每一步构建细节都手动写配置。创建 Maven(Maven)项目后,它会自动生成目录结构;你只要把源码/资源放到约定的位置,Maven(Maven)就能按默认生命周期(lifecycle)完成编译、测试、打包等任务。只有当你的项目需求偏离默认约定时,才需要在 pom.xml(pom.xml)里显式补充或覆盖配置。

510. Maven(Maven)仓库(repository)有哪些类型?

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Advanced, Q30, Maven)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965fd39fa809e6d3889b838 | 官方: 是 | 付费: 否

答案:

答案Maven(Maven)仓库(repository)通常分三类:

  • Local(本地仓库):位于本机的目录,首次执行 Maven 命令时创建/使用,用于缓存项目依赖与插件等构件。
  • Central(中央仓库):由 Maven 社区维护的公共仓库,包含大量常用库;本地找不到依赖时会去中央仓库检索。
  • Remote(远程仓库):团队私服或其他远程仓库;当依赖在本地与中央都找不到且未配置可用远程仓库时,构建可能失败并报错。

511. Maven Surefire Plugin(Maven Surefire Plugin)的目的是什么?它如何帮助执行测试?

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Advanced, Q33, Maven)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965fd39fa809e6d3889b841 | 官方: 是 | 付费: 否

答案:

答案Maven Surefire Plugin(Maven Surefire Plugin)主要用于运行单元测试(unit test)。它会按照命名约定自动发现并执行测试类(例如以 Test 结尾或匹配 *Test),在控制台输出成功/失败结果,并生成完整的测试报告,便于持续集成(continuous integration)中追踪测试质量。

512. 如何在 Maven(Maven)构建过程中跳过单元测试(unit test)?

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Advanced, Q34, Maven)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965fd39fa809e6d3889b844 | 官方: 是 | 付费: 否

答案:

答案可以在命令行使用 -DskipTests(-DskipTests)或 -Dmaven.test.skip=true(-Dmaven.test.skip=true)来跳过测试执行。它们都会阻止测试运行(常用于快速构建或临时验证场景),但在正式发布流水线(pipeline)中通常仍建议保留测试以确保质量。

513. 在 Maven(Maven)项目中,如何覆盖 Parent POM(Parent POM)定义的 properties(properties)?

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Advanced, Q37, Maven)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965fd39fa809e6d3889b84d | 官方: 是 | 付费: 否

答案:

答案在子项目的 pom.xml(pom.xml)中重新定义同名 property(property)即可覆盖父 POM(Parent POM)的值。Maven(Maven)会优先使用子项目的 property(property),从而让子项目在继承公共配置的同时,按需进行差异化调整。

514. 为什么要做 SaaS(Software as a Service,软件即服务)(做 SaaS 的理由有哪些)?

  • 知识点: DevOps/云 / 安全 (主题: saas, product-strategy, security, pricing-models;标签: Basic, Q3, SaaS)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965fe98fa809e6d3889d953 | 官方: 是 | 付费: 否

答案:

答案做 SaaS(Software as a Service,软件即服务)的常见理由包括:

  • 更快迭代:通过云端交付可以高频发布新功能与修复(一天多次也可),成本与人力通常低于传统离线/本地软件模式。
  • 更强安全与可恢复:服务商可集中投入安全、备份与灾备,往往比分散的本地系统更稳定可靠。
  • 更简单易用:用户无需安装,随时联网访问;也更容易提供免费试用促进转化。
  • 避免昂贵自建:客户无需自建/购买/分发/维护整套软件与基础设施。
  • 按需付费:订阅/用量计费更贴合需求,兼顾灵活性与经济性。

515. 相比其他云计算模型(cloud computing model),SaaS(Software as a Service,软件即服务)有什么优势?请说明。

  • 知识点: DevOps/云 (主题: saas, iaas, paas, cloud-models;标签: Basic, Q4, SaaS)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965fe98fa809e6d3889d959 | 官方: 是 | 付费: 否

答案:

答案有。SaaS(Software as a Service)的核心优势在于“应用层交付”:服务商直接提供可用的软件应用,企业无需自己部署与运维整套软件栈。它通常具备快速扩展、按需付费与更高灵活性,并能减少硬件采购、软件安装升级与日常支持成本。由于由服务商集中管理,SaaS(Software as a Service)也更容易统一做安全、合规与版本更新,并在厂商生态内与其他应用进行集成。

516. 区分 IaaS(Infrastructure as a Service)和 PaaS(Platform as a Service)。

  • 知识点: DevOps/云 / 系统设计/架构 (主题: cloud-computing, iaas, paas, cloud-architecture;标签: Intermediate, Q6, SaaS)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965fe98fa809e6d3889d961 | 官方: 是 | 付费: 否

答案:

答案

  • IaaS(Infrastructure as a Service)提供计算/网络/存储等基础设施,企业对环境控制力更强,但也意味着需要更多运维与管理。
  • PaaS(Platform as a Service)提供更高层的平台能力(运行时、中间件、托管数据库等),开发者更专注做业务功能,平台替你屏蔽更多基础设施细节。
  • 总体上 IaaS 弹性与可控性更强但维护成本更高;PaaS 使用更简单、运维更省,但可定制性与迁移灵活度可能更受平台限制。

517. 请解释云计算的不同部署模型(Cloud deployment models)。

  • 知识点: DevOps/云 (主题: cloud-computing, public-cloud, private-cloud, hybrid-cloud;标签: Intermediate, Q8, SaaS)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965fe99fa809e6d3889da6c | 官方: 是 | 付费: 否

答案:

答案常见的云部署模型(Cloud deployment models)包括:

  • 公有云(Public Cloud):由第三方提供并通过互联网交付,资源对外开放共享。优点:随时随地访问、扩展快;缺点:共享资源带来更高的安全与隔离挑战。
  • 私有云(Private Cloud):仅服务于单一组织(内部/企业云),可自管或托管。优点:敏感数据不出私有基础设施,安全控制更强;缺点:通常只在组织内部使用,外部扩展受限。
  • 混合云(Hybrid Cloud):结合公有云与私有云,关键业务放私有云,非关键业务放公有云。优点:兼顾扩展性、安全与成本;缺点:跨环境治理与运维更复杂。

518. 什么是 S3(Amazon Simple Storage Service)?

  • 知识点: DevOps/云 (主题: aws, s3, cloud-storage, saas;标签: Advanced, Q11, SaaS)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965fe99fa809e6d3889da7d | 官方: 是 | 付费: 否

答案:

答案S3(Amazon Simple Storage Service)是一种对象存储服务,可用于存放海量数据(逻辑上可无限扩展)。其计费通常与存储量、请求次数与数据取回频率相关:频繁访问的数据会产生更多访问/取回成本,而低频访问数据的存储单价可能更低,但取回费用更高(具体取决于存储类型与访问策略)。

519. AMI(Amazon Machine Image)和 Instance(实例)的区别是什么?

  • 知识点: DevOps/云 (主题: aws, ami, ec2, cloud-compute;标签: Advanced, Q13, SaaS)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965fe99fa809e6d3889da83 | 官方: 是 | 付费: 否

答案:

答案AMI(Amazon Machine Image)可以理解为系统镜像模板(类似可安装的操作系统/预装软件镜像),用于创建服务器;Instance(实例)是用 AMI(Amazon Machine Image)启动出来的实际运行计算资源(“机器”)。实例有不同规格(instance types),对应不同的 CPU、内存、网络等硬件能力。

520. 系统管理员如何为 AWS(Amazon Web Services)管理控制台登录增加一层安全防护?

  • 知识点: DevOps/云 / 安全 (主题: aws, security, iam, mfa;标签: Advanced, Q15, SaaS)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965fe99fa809e6d3889daa4 | 官方: 是 | 付费: 否

答案:

答案启用多因素认证(MFA,Multi-Factor Authentication)。MFA(Multi-Factor Authentication)在用户名与密码之外增加第二因素(例如基于时间的一次性验证码),验证码通常周期性刷新(如每 30 秒)。可通过 Google Authenticator 等认证器 App 或兼容的第三方设备生成验证码,从而显著提升控制台登录安全性,降低密码泄露带来的风险。

521. Azure 里的 ARM(Azure Resource Manager)是什么?

  • 知识点: DevOps/云 (主题: azure, arm, resource-manager, infrastructure-as-code;标签: Advanced, Q17, SaaS)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965fe99fa809e6d3889daaa | 官方: 是 | 付费: 否

答案:

答案ARM(Azure Resource Manager)是 Azure 的资源部署与管理服务。它在 2014 年引入资源组(Resource Group)概念,支持对 Azure 资源进行集中化的部署、权限安全与管理治理。相较传统(classic)部署模型,ARM(Azure Resource Manager)模型更便于用模板化方式管理资源、统一权限与生命周期。

522. Azure 提供哪些类型的存储?

  • 知识点: DevOps/云 / 算法与数据结构 (主题: azure, storage, blob, queue, files, tables, disks;标签: Advanced, Q18, SaaS)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6965fe99fa809e6d3889dab1 | 官方: 是 | 付费: 否

答案:

答案文段中列出的 Azure 存储类型(Azure Storage types)包括:

  • Blobs:用于存储大量非结构化数据。
  • Queues:用于应用组件之间消息通信的队列存储。
  • Files:用于文件存储与共享,可在虚拟机之间作为共享磁盘使用。
  • Tables:NoSQL 表存储结构化数据,适合小型数据库场景。
  • Disks:用于创建虚拟机磁盘,适配高 I/O 或随机读写负载。

523. 协作在 DevOps(Development and Operations)中扮演什么角色?

  • 知识点: DevOps/云 / 行为与软技能 (主题: devops, culture, collaboration;标签: DevOps Core, Q18, DevOps)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 696601a5fa809e6d388a2ec4 | 官方: 是 | 付费: 否

答案:

答案协作是 DevOps(Development and Operations)的核心,因为它强调开发、运维以及其他团队之间的沟通与共同交付。通过信息共享与共同目标对齐,团队能打破“部门墙”,减少交接摩擦,让研发到上线的流程更顺畅、更可控。DevOps(Development and Operations)文化把协作视为第一原则:共享责任、透明反馈、共同复盘,才能让自动化与持续改进真正落地。

524. 持续反馈(Continuous Feedback)在 DevOps(Development and Operations)中为什么重要?

  • 知识点: DevOps/云 (主题: devops, feedback-loops, observability, continuous-improvement;标签: 2 Years Experience, Q22, DevOps)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 696601a5fa809e6d388a2f06 | 官方: 是 | 付费: 否

答案:

答案持续反馈(Continuous Feedback)能帮助团队更早发现与解决问题,从而提升交付速度与质量。通过在构建(Build)、测试(Test)、发布(Release)、运行(Run)等各阶段收集反馈,团队可以持续监控(Monitoring)应用与基础设施表现,并快速迭代优化。同时它确保软件更贴近用户需求,带来更高满意度与业务价值。持续反馈(Continuous Feedback)也是 DevOps(Development and Operations)文化的重要组成,推动持续学习(Continuous Learning)与持续改进(Continuous Improvement)。

525. 如何确保开发与运维团队共同采纳 DevOps(Development and Operations)实践?

  • 知识点: DevOps/云 (主题: devops, change-management, kpi, culture;标签: 2 Years Experience, Q23, DevOps)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 696601a5fa809e6d388a2f19 | 官方: 是 | 付费: 否

答案:

答案关键是目标对齐与跨团队协作机制落地。可采取:明确 DevOps(Development and Operations)目标与阶段性里程碑;推动沟通协作与共同交付;提供培训与资源;用指标(Metrics)/KPI(Key Performance Indicator)衡量进展并持续改进;营造持续学习(Continuous Learning)文化;强化成员的 Owner 意识与责任制;及时庆祝成果并分享复盘经验。这样能降低阻力,让 DevOps(Development and Operations)从“口号”变成“习惯”。

526. 如何确保 DevOps(Development and Operations)工具与技术保持最新且安全?

  • 知识点: DevOps/云 / 安全 (主题: devops-tools, patch-management, vulnerability-scanning, security;标签: 2 Years Experience, Q26, DevOps)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 696601a5fa809e6d388a2f58 | 官方: 是 | 付费: 否

答案:

答案核心是“持续关注 + 规律升级 + 自动化校验”。定期检查工具的更新与安全补丁(Security Patch),关注厂商公告/邮件列表/Release Notes(发布说明);把升级纳入发布节奏,避免长期欠债。配合漏洞扫描器(Vulnerability Scanner)、渗透测试工具(Penetration Testing Tool)等发现并修复安全问题;同时标准化工具配置并尽量自动化更新与合规校验,减少配置漂移(Configuration Drift)与暴露窗口。

527. 为什么监控(Monitoring)与日志(Logging)在 DevOps(Development and Operations)中很重要?

  • 知识点: DevOps/云 (主题: observability, monitoring, logging, incident-management;标签: Observability, Q29, DevOps)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 696601a6fa809e6d388a2fa0 | 官方: 是 | 付费: 否

答案:

答案监控(Monitoring)与日志(Logging)提供系统健康、性能与安全的可见性。监控(Monitoring)帮助在问题变“事故”前及时发现异常;日志(Logging)则记录事件与行为,便于排查与审计(Audit)。二者结合可以更快定位根因(Root Cause)、缩短修复时间并减少复发;同时还能洞察用户使用与业务模式,为优化与决策提供数据依据。

528. DevOps(Development and Operations)如何帮助降低软件产品的 Time-to-Market(上市时间)?

  • 知识点: DevOps/云 / 行为与软技能 (主题: devops, cicd, iac, agile;标签: DevOps Core, Q30, DevOps)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 696601a6fa809e6d388a2fa3 | 官方: 是 | 付费: 否

答案:

答案DevOps(Development and Operations)通过“自动化(Automation) + 协作(Collaboration) + 快速反馈(Fast Feedback)”缩短上市时间:CI/CD(持续集成/持续交付)自动化构建、测试与部署,减少人工步骤;跨团队协作减少交接等待并更快定位问题;结合敏捷迭代与 IaC(Infrastructure as Code,基础设施即代码),环境可以快速、可重复地创建与变更,从而实现小步快跑、更高频且更安全的发布。

529. 容器(Container)和虚拟机(VM,Virtual Machine)有什么区别?

  • 知识点: DevOps/云 (主题: containers, virtualization, docker, vm;标签: Containers, Q31, DevOps)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 696601a6fa809e6d388a2fa6 | 官方: 是 | 付费: 否

答案:

答案容器(Container)是轻量级的隔离运行环境,通常共享宿主机内核,通过进程隔离与依赖打包实现“到处可跑”;启动快、资源占用小。虚拟机(VM,Virtual Machine)在宿主机之上运行完整的客体操作系统(通过 Hypervisor,虚拟机监控器),资源开销更大但隔离更强、更接近“独立机器”。两者常在隔离强度、启动速度与资源成本之间权衡。

530. DevOps(Development and Operations)能算是一种敏捷(Agile)方法论吗?

  • 知识点: DevOps/云 / 行为与软技能 (主题: agile, devops, delivery-lifecycle;标签: Agile vs DevOps, Q37, DevOps)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 696601a7fa809e6d388a30d5 | 官方: 是 | 付费: 否

答案:

答案DevOps(Development and Operations)可以与 Agile(敏捷)互补,但并不等同。Agile(敏捷)主要聚焦在开发阶段的迭代交付与快速反馈;DevOps(Development and Operations)则把协作与持续改进扩展到全生命周期(开发、测试、发布、运维、监控),强调开发与运维一体化、自动化(Automation)与持续反馈(Continuous Feedback)。很多团队会“开发用敏捷、交付与运营用 DevOps(Development and Operations)”,两者结合效果最佳。

531. 云计算(Cloud Computing)在 DevOps(Development and Operations)中扮演什么角色?

  • 知识点: DevOps/云 (主题: cloud-computing, devops, infrastructure;标签: Cloud, Q39, DevOps)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 696601a7fa809e6d388a310c | 官方: 是 | 付费: 否

答案:

答案云计算(Cloud Computing)为 DevOps(Development and Operations)提供按需、可扩展且易管理的基础设施,使团队能快速申请与配置资源并自动化部署。通过虚拟机(VM,Virtual Machine)、容器(Container)、Serverless(无服务器)、托管数据库(Managed Database)等服务,团队可以更顺畅地实施 CI/CD(持续集成/持续交付)、自动化运维与协作交付。云平台也能加速发布周期、增强可扩展性,并通过按量付费与弹性伸缩降低基础设施成本。

532. DevOps(Development and Operations) 如何提升客户满意度并驱动业务增长?

  • 知识点: DevOps/云 (主题: devops, customer-satisfaction, continuous-delivery;标签: Business Value, Q40, DevOps)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 696601a7fa809e6d388a3129 | 官方: 是 | 付费: 否

答案:

答案DevOps(Development and Operations) 通过更快、更稳定地交付更好的软件来提升客户满意度。团队在协作、持续改进与用户反馈的驱动下能更快上线符合期待的功能,并减少故障与不一致体验。更高的交付效率与稳定性会带来更强的用户留存与口碑,最终推动业务增长。

533. DevOps(Development and Operations) 如何通过文化变革来改善业务?

  • 知识点: DevOps/云 / 行为与软技能 (主题: devops, culture-change, collaboration;标签: DevOps Culture, Q43, DevOps)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 696601a7fa809e6d388a3187 | 官方: 是 | 付费: 否

答案:

答案DevOps(Development and Operations) 通过推动团队协作、增强沟通与倡导持续学习/持续改进来促进文化变革。文化一旦从“各管一段”转向“共同交付”,组织就能更快、更可靠地交付产品与服务,并提升客户满意度。长期来看,这种强调适应力、创新与共同责任的文化会显著改善业务结果。

534. 作为管理者,为什么在 Agile(敏捷开发) 和 DevOps(Development and Operations) 之间更应该选择 DevOps(Development and Operations)?

  • 知识点: DevOps/云 / 行为与软技能 (主题: devops, agile, deployment-frequency, change-failure-rate, mttr;标签: Agile vs DevOps, Q44, DevOps)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 696601a7fa809e6d388a318a | 官方: 是 | 付费: 否

答案:

答案当下市场更强调“小步快跑”的高频发布与快速客户反馈,而不是一次性上线大而全的功能。DevOps(Development and Operations) 能在保证安全与可靠性的前提下提高部署频率、降低变更失败率,并缩短故障与 Bug(缺陷) 的修复时间。它覆盖从开发到运维的全生命周期,强调快速且稳定的交付;而 Agile(敏捷开发) 更多聚焦在开发阶段的迭代交付。

535. DevOps(Development and Operations) 与 Agile(敏捷开发) 方法论有什么不同?

  • 知识点: DevOps/云 / 行为与软技能 (主题: devops, agile, cicd, continuous-feedback;标签: Agile vs DevOps, Q45, DevOps)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 696601a7fa809e6d388a318e | 官方: 是 | 付费: 否

答案:

答案Agile(敏捷开发) 主要关注开发阶段的迭代式、增量式交付;DevOps(Development and Operations) 则关注开发与运维协作的文化与机制,目标是更快、更可靠地交付软件。DevOps(Development and Operations) 强调自动化、CI/CD(持续集成/持续交付) 与持续反馈,覆盖从规划、编码、测试到部署与运行的全生命周期;而 Agile(敏捷开发) 更集中在开发过程本身。

536. 配置管理(Configuration Management)在 DevOps(Development and Operations) 中的作用是什么?

  • 知识点: DevOps/云 (主题: configuration-management, devops, drift-control;标签: Configuration, Q46, DevOps)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 696601a7fa809e6d388a3191 | 官方: 是 | 付费: 否

答案:

答案配置管理(Configuration Management) 用于在多台系统/多环境中统一管理与标准化配置,减少配置漂移,简化集群与多服务器的运维管理。它让环境更一致、部署更可重复,从而提升交付可靠性,是 DevOps(Development and Operations) 稳定交付与可控运维的重要基础。

537. AWS(Amazon Web Services) 在 DevOps(Development and Operations) 中的作用是什么?

  • 知识点: DevOps/云 (主题: aws, devops, iam, scaling, automation;标签: Cloud, Q47, DevOps)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 696601a7fa809e6d388a319d | 官方: 是 | 付费: 否

答案:

答案AWS(Amazon Web Services) 作为云服务提供商,为 DevOps(Development and Operations) 团队提供:灵活可用的云资源与托管服务;按需扩容(可部署成千上万台机器);通过各种服务支持自动化;并提供 IAM(身份和访问管理) 等安全能力来保护部署与构建流程,从而加速交付并提升可靠性。

538. 采用 DevOps(Development and Operations) 方法开发项目时,前期准备应如何做?

  • 知识点: DevOps/云 (主题: devops, project-planning, automation, tooling;标签: Planning, Q49, DevOps)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 696601a7fa809e6d388a31c1 | 官方: 是 | 付费: 否

答案:

答案先明确项目目标、需求规格与交付期限,并把关键干系人纳入规划流程,建立有效沟通机制。随后推动协作文化落地,自动化关键流程(构建、测试、部署、监控等),并采用持续改进策略。最后根据项目目标与约束选择合适的工具与技术栈,确保流程可执行、可度量、可优化。

539. 版本控制系统中常见的分支策略有哪些?

  • 知识点: DevOps/云 (主题: git, version-control, branching-strategy, devops;标签: Version Control, Q50, DevOps)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 696601a8fa809e6d388a32cb | 官方: 是 | 付费: 否

答案:

答案常见分支策略包括:Trunk-based(主干开发)、Feature branching(按功能分支)、Release branching(按版本分支) 以及 Git-flow(Git流分支模型) (结构化的功能/发布/热修分支)。主干开发强调短分支与频繁合并;功能分支适合并行开发;发布分支便于多版本维护;Git-flow(Git流分支模型) 更强调流程与角色分工。选择哪种策略取决于团队规模、发布频率与风险偏好。

540. Chef 中为什么要使用 SSL 证书(SSL Certificate)?

  • 知识点: DevOps/云 / 安全 (主题: chef, configuration-management, ssl, security;标签: Chef, Q71, DevOps)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 696601a9fa809e6d388a33fb | 官方: 是 | 付费: 否

答案:

答案Chef 使用 SSL 证书(SSL Certificate)来在 Chef 组件与节点之间建立安全加密通信通道,验证 Chef Server(Chef 服务器)与节点的身份,防止敏感信息(如认证凭据、配置数据)在传输中被窃听或篡改,从而提升整个 Chef 基础设施的数据完整性与机密性。

541. Chef 部署的关键组件有哪些?

  • 知识点: DevOps/云 (主题: chef, cookbooks, recipes, configuration-management;标签: Chef, Q73, DevOps)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 696601a9fa809e6d388a3401 | 官方: 是 | 付费: 否

答案:

答案Chef 部署通常包含:Chef Server(Chef 服务器,集中存储配置数据与 Chef 代码的中心枢纽)、Chef Client(Chef 客户端,运行在各节点上,按定义应用配置)、Chef Workstation(Chef 工作站,编写与测试 Chef 代码并推送到 Server 的工作站)。此外还有 Cookbooks(食谱)、Recipes(配方)、Resources(资源)等,用于描述期望状态及实现该状态的动作。

542. 什么是 Puppet Manifest(清单文件)?

  • 知识点: DevOps/云 (主题: puppet, manifests, configuration-management;标签: Puppet, Q74, DevOps)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 696601a9fa809e6d388a3404 | 官方: 是 | 付费: 否

答案:

答案Puppet Manifest(清单文件)是用 Puppet 自身的 DSL(领域特定语言)编写的配置定义,通常保存在 Puppet Master(Puppet 主服务器)上,用于描述各 Puppet Node/Agent(Puppet 节点/代理)的期望配置状态。Manifest(清单文件)文件以 .pp 结尾。比如可以编写一个 Manifest(清单文件),让所有连接到 Master(主服务器)的 Agent(代理)自动创建文件并安装 Apache。

543. 什么是 Puppet Module?它与 Puppet Manifest 有什么区别?

  • 知识点: DevOps/云 (主题: puppet, modules, manifests;标签: Puppet, Q76, DevOps)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 696601a9fa809e6d388a340a | 官方: 是 | 付费: 否

答案:

答案Puppet Module(模块)是按固定目录结构组织的一组配置内容集合,包含 manifests(清单文件)以及相关数据(如 facts(事实)、files(文件)、templates(模板)),用于复用与管理 Puppet 代码。Puppet Manifest(清单文件)则是具体的 Puppet 程序代码文件,扩展名为 .pp。实践上通常把大部分 manifests(清单文件)组织进模块中,以提高可维护性与复用性。

544. Ansible 是如何工作的?

  • 知识点: DevOps/云 (主题: ansible, automation, ssh, playbook, inventory;标签: Ansible, Q79, DevOps)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 696601a9fa809e6d388a3414 | 官方: 是 | 付费: 否

答案:

答案Ansible 是开源自动化工具,通常由控制端(controlling machine)与被管理节点(nodes)组成。Ansible 安装在控制端,通过 SSH(安全外壳协议)管理远端节点,目标主机由 inventory(清单)定义。它是 agentless(无代理)的,不要求在远端节点安装常驻代理。自动化通常写成 YAML(一种数据序列化格式)格式的 Playbook(剧本),可在单机上批量编排多台主机的多项任务。

545. 在 Linux 上安装 Ansible 2.8 的前置条件是什么?

  • 知识点: DevOps/云 / 操作系统与网络 / 编程语言基础 (主题: ansible, linux, python, selinux;标签: Ansible, Q85, DevOps)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 696601a9fa809e6d388a3429 | 官方: 是 | 付费: 否

答案:

答案根据文段描述:安装 Ansible 2.8 需要启用 SELinux(Security-Enhanced Linux,安全增强型 Linux),并确保远端节点安装 Python 3。

546. 如何在不同节点之间共享/分发 Docker 容器?

  • 知识点: DevOps/云 (主题: docker, docker-swarm, clustering, orchestration;标签: Scenario, Q87, DevOps)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 696601a9fa809e6d388a3430 | 官方: 是 | 付费: 否

答案:

答案可以使用 Docker Swarm(Docker 集群管理工具)在多节点之间管理与分发容器。Swarm 通过集群方式组织节点(通常包含 manager(管理器)与 worker(工作节点)),把服务在集群中调度与运行,从而实现跨节点的容器部署与管理。

547. Docker 相比虚拟机有哪些优势?

  • 知识点: DevOps/云 (主题: docker, containers, vm, virtualization;标签: Scenario, Q88, DevOps)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 696601a9fa809e6d388a3435 | 官方: 是 | 付费: 否

答案:

答案相较虚拟机,Docker 容器(Docker Container)通常更轻量(占用更少内存/磁盘)、启动更快,且在同一容器引擎下运行更易保持一致性。容器更容易横向扩展、跨环境迁移更方便(可移植性强),并能通过数据卷(Data Volume)在多个容器之间复用数据。虚拟机(Virtual Machine)因运行完整 OS(操作系统)往往开销更大、启动更慢、迁移与扩容相对更重。

548. Nagios 里的 NRPE(Nagios Remote Plugin Executor)是什么?

  • 知识点: DevOps/云 / 操作系统与网络 (主题: nagios, nrpe, monitoring, linux;标签: Monitoring, Q91, DevOps)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 696601a9fa809e6d388a343e | 官方: 是 | 付费: 否

答案:

答案 NRPE(Nagios Remote Plugin Executor)是 Nagios Remote Plugin Executor 的缩写,用于在其他 Linux/Unix 机器上远程执行 Nagios 插件(Nagios Plugins),从而监控磁盘使用率、CPU 负载等指标。它也可配合 Windows 的代理(Agent)/插件扩展来监控 Windows 主机的指标与脚本检查。

549. 什么是 Nagios Log Server(Nagios 日志服务器)?

  • 知识点: DevOps/云 / 安全 (主题: nagios, logging, security, observability;标签: Monitoring, Q93, DevOps)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 696601a9fa809e6d388a3444 | 官方: 是 | 付费: 否

答案:

答案 Nagios Log Server(Nagios 日志服务器)用于集中化收集与管理日志数据,简化日志检索与分析。它支持告警与威胁通知、快速查询日志、审计等能力,把日志统一汇总到一个位置,帮助团队更快排查问题与做安全审计。

550. 为什么要用 Nagios 做 HTTP 监控(HTTP Monitoring)?

  • 知识点: DevOps/云 / 操作系统与网络 (主题: nagios, http, monitoring, availability;标签: Monitoring, Q94, DevOps)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 696601aafa809e6d388a3447 | 官方: 是 | 付费: 否

答案:

答案 Nagios 能对 HTTP 服务与相关协议进行监控,从而提升可用性与用户体验。它可以更快发现网络中断或协议故障,监控 Web 服务性能与 Web 事务(Web Transactions),跟踪 URL 可用性,并通过主动告警减少停机时间、提升整体稳定性。

551. Kubernetes(K8s)如何在 DevOps 环境中帮助容器编排(Container Orchestration)与部署?

  • 知识点: DevOps/云 (主题: kubernetes, orchestration, deployment, self-healing, autoscaling;标签: Kubernetes, Q97, DevOps)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 696601aafa809e6d388a3450 | 官方: 是 | 付费: 否

答案:

答案 Kubernetes(K8s)提供管理、扩缩容与自动化部署容器化应用的平台,使应用能在不同环境与基础设施中一致运行。它自动化负载均衡(Load Balancing)、水平扩缩容(Horizontal Scaling)、自愈(Self-Healing)等能力,减少人工操作与错误,并提升应用的可用性、可扩展性与韧性。

552. 在 DevOps 环境中使用 Maven 有哪些好处?

  • 知识点: DevOps/云 (主题: maven, cicd, build, dependency-management;标签: Build Tools, Q100, DevOps)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 696601aafa809e6d388a3459 | 官方: 是 | 付费: 否

答案:

答案 Maven 能为 DevOps 团队带来:集中化依赖管理(Dependency Management)、基于 POM(Project Object Model)的声明式构建配置(Declarative Build Configuration),以及与 CI/CD(Continuous Integration/Continuous Deployment)集成后的自动构建与部署能力。它支持模块化项目结构,便于组件独立开发与测试,并能在开发/测试/生产环境中提供一致、可复现的构建结果,从而提升交付效率与可靠性。

553. 如何给 WebLogic(WebLogic Server)指定大小的内存(Memory)?

  • 知识点: DevOps/云 / 编程语言基础 (主题: weblogic, java, jvm;标签: WebLogic, -Xms, -Xmx, MEM_ARGS)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 696700d8fa809e6d389eba92 | 官方: 是 | 付费: 否

答案:

答案在启动 WebLogic(WebLogic Server)的脚本中(位于所在 Domain(域)对应服务器目录下的 startServerName),增加 set MEM_ARGS=-Xms32m -Xmx200m,可以调整最小内存为 32M,最大 200M

554. 如何设定的 WebLogic(WebLogic Server)的热启动模式(开发模式)与产品发布模式?

  • 知识点: DevOps/云 / 编程语言基础 (主题: weblogic;标签: WebLogic, Production Mode, Development Mode)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 696700d8fa809e6d389eba96 | 官方: 是 | 付费: 否

答案:

答案可以在管理控制台(Administration Console)中修改对应服务器的启动模式为开发(Development)或产品(Production)模式之一。或者修改服务的启动文件或者 commEnv 文件,增加 set PRODUCTION_MODE=true。

555. 如何启动时不需输入用户名与密码?

  • 知识点: DevOps/云 / 编程语言基础 (主题: weblogic;标签: WebLogic, WLS_USER, WLS_PW, boot.properties)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 696700dafa809e6d389ebbb2 | 官方: 是 | 付费: 否

答案:

答案修改服务启动文件,增加 WLS_USER 和 WLS_PW 项。也可以在 boot.properties 文件中增加加密过的用户名和密码。

556. 在weblogic中发布ejb(Enterprise JavaBeans)需涉及到哪些配置文件

  • 知识点: DevOps/云 / 编程语言基础 (主题: weblogic, ejb;标签: EJB, Deployment, ejb-jar.xml, weblogic-ejb-jar.xml, weblogic-cmp-rdbms-jar.xml)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 696700dafa809e6d389ebbbf | 官方: 是 | 付费: 否

答案:

答案不同类型的EJB(Enterprise JavaBeans)涉及的配置文件不同,都涉及到的配置文件包括ejb-jar.xml(EJB部署描述符),weblogic-ejb-jar.xml(WebLogic EJB部署描述符)CMP(Container-Managed Persistence)实体Bean一般还需要weblogic-cmp-rdbms-jar.xml(WebLogic CMP关系数据库映射描述符)

557. 如何确认是否出现梯度爆炸(Gradient Explosion)?

  • 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: deep-learning, exploding-gradient, training-debugging;标签: Detection, NaN Loss, NaN Weights, Gradient Monitoring)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 6968890dbc0b9904d6b61160 | 官方: 是 | 付费: 否

答案:

答案训练过程中出现梯度爆炸会伴随一些细微的信号,如:1)模型无法从训练数据中获得更新(如低损失)。2)模型不稳定,导致更新过程中的损失出现显著变化。3)训练过程中,模型损失变成NaN(Not a Number)。如果你发现这些问题,那么你需要仔细查看是否出现梯度爆炸问题。以下是一些稍微明显一点的信号,有助于确认是否出现梯度爆炸问题。1)训练过程中模型梯度快速变大。2)训练过程中模型权重变成NaN值。3)训练过程中,每个节点和层的误差梯度值持续超过1.0。

558. 如何做分布式计数器(Distributed Counter)的可观测性与容量评估?关键指标有哪些?

  • 知识点: DevOps/云 / 系统设计/架构 / UI/UX 设计 (主题: distributed-systems, observability;标签: metrics, capacity planning, monitoring)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 696de6be623565038f405c23 | 官方: 是 | 付费: 否

答案:

答案可观测性要覆盖服务层与存储层:监控 counter service(计数器服务)的 QPS(Queries Per Second)、P95/P99延迟、错误率、WebSocket(网络套接字)在线连接数、心跳超时数量;监控 CRDT(Conflict-free Replicated Data Type)数据库的写入吞吐、复制延迟、合并耗时、内存/CPU、网络带宽;对热点 key(键)的分布做 top-N 统计。容量评估可通过压测/混沌测试找瓶颈,并以峰值并发、复制延迟上限、单节点吞吐为依据规划分片数与机房容量。

559. 微服务(Microservices)的构建与部署通常怎么做?CI/CD(持续集成/持续交付)在其中扮演什么角色?

  • 知识点: DevOps/云 / 系统设计/架构 / UI/UX 设计 (主题: cicd, docker, deployment)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 696deb6a623565038f4134c7 | 官方: 是 | 付费: 否

答案:

答案微服务强调独立交付:每个服务有自己的代码仓库/流水线/发布节奏。CI/CD 用于自动化构建、测试、镜像打包与多环境部署(集成/测试/预发/生产),确保频繁发布仍可控。

  • 实践要点:自动化测试分层(单元/契约/集成/端到端)、蓝绿/金丝雀发布、可回滚、基础设施即代码。

560. 部署微服务的两种常见模型是什么?各自优缺点?

  • 知识点: DevOps/云 / 系统设计/架构 / UI/UX 设计 (主题: docker, kubernetes, deployment)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 696deb76623565038f413d2b | 官方: 是 | 付费: 否

答案:

答案- 同一台主机/OS(操作系统)上部署多个微服务:节省主机与运维成本,但依赖冲突、资源争用、隔离差,难以独立升级与扩容。

  • 一服务一主机/OS(或一容器/Pod):隔离更好、依赖更独立、易扩缩容,但需要容器/编排平台降低成本与管理复杂度(Docker/Kubernetes)。

561. 为什么容器(Docker)比传统“多 VM(虚拟机) + Hypervisor(虚拟机监控器)”更适合微服务的部署隔离?

  • 知识点: DevOps/云 / 系统设计/架构 / UI/UX 设计 (主题: docker, virtualization)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 696deb76623565038f413d30 | 官方: 是 | 付费: 否

答案:

答案容器以 OS 级隔离为主,启动更快、资源开销更低,适合微服务“数量多、迭代快、弹性伸缩”的特点。相比之下,大量 VM 的 hypervisor 开销更高,镜像更重,启动更慢。
当然,容器需要配合镜像治理、运行时安全、编排与网络/存储插件,才能在大规模下稳定运行。

562. 你怎么看 Google(谷歌)的未来?它如何保持竞争力与创新?

  • 知识点: DevOps/云 / 数据工程与数据科学/AI / 行为与软技能 (主题: ai, cloud, strategy;标签: google, ai, cloud, innovation, strategy)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 696f112e120fcc1591157f65 | 官方: 是 | 付费: 否

答案:

答案我会从“核心护城河+增长曲线”说:护城河是规模化基础设施与信息分发入口(搜索/YouTube(视频平台)/Android(安卓)等);未来重点是把 AI(人工智能)能力更深地嵌入产品与开发者平台,同时在云与行业解决方案上提升企业渗透。保持竞争力的关键包括:持续研发投入、快速实验并产品化、用数据闭环优化体验,以及通过组织机制让创新可复制、可落地。

563. 你会如何在云环境中做“平滑部署(Rolling Deployment)”,尽量减少停机与风险?

  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: Deployment, Canary, Blue-Green)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • 公司: Carsales
  • id: 697042c5120fcc15913032c3 | 官方: 是 | 付费: 否

答案:

答案实践:CI/CD(Continuous Integration/Continuous Delivery)自动化(构建、测试、安全扫描、发布)、环境一致性(容器化(Containerization))、蓝绿/金丝雀发布(Blue-Green/Canary Deployment)、数据库迁移可回滚(Rollback)、Feature Flag(Feature Flag)控制曝光、发布后监控与自动回滚(Auto Rollback)。
核心:把发布变成“可重复、可观测、可回退”的工程流程。
AnswerPractices: CI/CD automation (build/test/security scans/deploy), containerization for consistency, blue-green/canary releases, reversible DB migrations, feature flags, post-deploy monitoring and automated rollback.

答案实践:CI/CD 自动化(构建/测试/安全扫描/部署)、容器化以保持一致性、蓝绿/金丝雀发布、可回滚的数据库迁移、特性开关、部署后监控和自动化回滚。
Goal: releases that are repeatable, observable, and reversible.
目标:可重复、可观察且可回滚的发布。

564. 请描述你对 DevOps(Development and Operations)的理解。

  • 知识点: DevOps/云 (主题: devops, ci-cd, iac;标签: devops, cicd, iac)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • 公司: Telstra
  • id: 69709b28120fcc15913a2d89 | 官方: 是 | 付费: 否

答案:

答题要点- 目标:缩短交付周期、提高质量与稳定性(DORA(DevOps Research and Assessment)指标)

  • 手段:自动化CI/CD、IaC、监控告警、持续反馈
  • 文化:Dev 与 Ops 协作,共同对线上结果负责
    示例回答我理解 DevOps(Development and Operations)是用自动化与协作把开发到上线的链路打通:代码提交后自动构建、测试、部署;基础设施用IaC(Infrastructure as Code)管理;线上用指标/日志/告警做闭环。这样能更快交付同时降低故障率。

565. 请描述你对云计算(Cloud Computing)的理解,以及你使用过的云服务。

  • 知识点: DevOps/云 (主题: cloud, aws, iac;标签: aws, terraform)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • 公司: Telstra
  • id: 69709b30120fcc15913a33d5 | 官方: 是 | 付费: 否

答案:

答题要点- 云的价值:弹性(Elasticity)、按需计费(Pay-as-you-go)、高可用(High Availability)、托管服务(Managed Services)减少运维

  • 常见服务:计算(EC2/VM)、存储(S3/Blob)、数据库(RDS)、无服务器(Lambda)、网络(VPC/VNet)
  • 工程实践:IaC、权限最小化、成本治理、可观测性
    示例回答云计算(Cloud Computing)是通过互联网按需提供计算资源,重点是弹性伸缩(Elastic Scaling)和托管能力(Managed Services)。我用过 AWS(Amazon Web Services)的 EC2(Elastic Compute Cloud)、S3(Simple Storage Service)、RDS(Relational Database Service)、Lambda 等服务来部署应用与数据存储,也用过 Terraform 做基础设施即代码(Infrastructure as Code),并结合 IAM(Identity and Access Management)与监控做安全与稳定性保障。

566. 解释 DevOps(Development and Operations)上下文中的基础设施即代码(IaC)概念。

  • 知识点: DevOps/云 (主题: devops, iac, automation;标签: IaC, Terraform, Config Drift)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 69772f97a39c9c5c3a8bc010 | 官方: 是 | 付费: 否

答案:

答案IaC(Infrastructure as Code)用代码/声明式配置(Declarative Configuration)来定义与管理基础设施(网络、主机、K8s(Kubernetes)资源等),通过版本控制(Version Control)、审查与自动化流水线(Automated Pipeline)实现可重复、可追溯的环境交付。它能减少手工配置带来的漂移(Configuration Drift)与错误,支持快速复制环境(dev/stage/prod 一致),并提升变更管理效率。常见工具有 Terraform、CloudFormation、Pulumi 等。

567. 配置管理工具(例如 Ansible、Puppet)在 DevOps(Development and Operations)中的作用是什么?

  • 知识点: DevOps/云 (主题: devops, configuration-management;标签: Ansible, Puppet, Idempotency)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 69772f97a39c9c5c3a8bc023 | 官方: 是 | 付费: 否

答案:

答案配置管理工具(Configuration Management Tools)用于自动化系统与应用配置的安装、更新与一致性维护,确保多环境配置可重复、可审计,减少人工操作与配置漂移(Configuration Drift)。它们支持批量变更、幂等执行(Idempotent Execution)与环境快速搭建,常用于主机配置、服务部署、基线加固与补丁管理。Ansible 偏推送式(Push-based)编排,Puppet/ Chef 常见拉取式(Pull-based)或声明式(Declarative)管理。

568. 解释基础设施即代码(IaC)的概念及其好处。

  • 知识点: DevOps/云 (主题: devops, iac;标签: IaC, Automation, Version Control)
  • 类型: technical | 难度: medium | 子类型:
  • 分类: fullstack
  • id: 69773006a39c9c5c3a8c4abc | 官方: 是 | 付费: 否

答案:

答案IaC(Infrastructure as Code)用可版本化的配置来描述基础设施并自动创建/变更资源,让环境交付可重复、可审计、可回滚。它的好处包括:减少人工错误与配置漂移(Configuration Drift)、提升交付速度、通过代码评审提升变更质量、便于多环境一致性与合规审计。与 CI/CD(Continuous Integration/Continuous Delivery)结合后,基础设施变更可以像应用代码一样发布与验证。

569. How is the Atlassian software engineer interview evolving, especially for AI-integrated platforms at scale?

Atlassian 的软件工程师面试正在如何演变,尤其是对于大规模 AI 集成平台?
  • 知识点: DevOps/云 / 系统设计/架构 / 行为与软技能 (主题: distributed-systems, mlops, cloud;标签: Atlassian, AI Platforms, Context)
  • 类型: behavioral | 难度: medium | 子类型: scenario
  • 分类: general
  • 公司: Atlassian
  • id: 6979de4fc8f1f94b6462c71f | 官方: 是 | 付费: 否

答案:

Atlassian 的 SWE(Software Engineer)面试正在更强调“AI + 平台化 + 大规模落地”的能力:不仅考算法与工程基础,还会看你是否理解分布式系统(Distributed Systems)、可观测性(Observability)、可靠性与成本权衡,以及如何把数据/ML(Machine Learning)流水线融入产品与基础设施。准备时要能讲清真实场景下的取舍、落地路径与跨团队协作方式。

570. Why pursue a software engineer role at Atlassian?

为什么要追求 Atlassian 的软件工程师职位?
  • 知识点: DevOps/云 / 系统设计/架构 / 行为与软技能 (主题: distributed-systems, developer-tools, cloud;标签: Motivation, Impact, Remote-first)
  • 类型: behavioral | 难度: medium | 子类型: behavioral
  • 分类: general
  • 公司: Atlassian
  • id: 6979de4fc8f1f94b6462c725 | 官方: 是 | 付费: 否

答案:

你会参与打造服务全球数百万用户的产品(Jira、Confluence 等),在 remote-first / Team Anywhere 的模式下工作,同时面对企业级云迁移与AI 驱动研发效率等硬核挑战。这里鼓励高质量工程实践、清晰的取舍与可衡量的影响力,适合想做“有规模、有难度、有长期价值”系统的工程师。

571. 解释 CI/CD(Continuous Integration/Continuous Delivery)流水线的核心概念和在Afterpay BNPL(Buy Now Pay Later)中的实践。

  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: afterpay, generated)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • 公司: Afterpay (Block)
  • id: 69b3791f58d557c902b977e8 | 官方: 是 | 付费: 是

答案:

思路分析从持续集成(Continuous Integration,CI)、持续交付(Continuous Delivery,CD)、持续部署(Continuous Deployment,CD)三个层次递进说明。
参考答案CI: 代码合并自动触发构建(Build)和测试(Testing)。CD: 自动化部署(Deployment)到各环境。关键实践:自动化测试(Automated Testing)、代码审查(Code Review)、蓝绿部署(Blue-Green Deployment)/金丝雀部署(Canary Deployment)、基础设施即代码(Infrastructure as Code,IaC)。
评分要点- CI/CD(Continuous Integration/Continuous Deployment)概念理解

  • 自动化测试策略
  • 部署策略选择
    常见追问- 如何实现零停机部署(Zero-Downtime Deployment)?
  • 如何处理回滚?

572. Install Nginx using Ansible playbook?

使用 Ansible playbook 安装 Nginx?
  • 知识点: DevOps/云 (主题: ansible, iac, devops;标签: interviewbit, ansible, topic-specific, iac, devops)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3793058d557c902b9879b | 官方: 否 | 付费: 否

答案:

The playbook file would be:

playbook 文件将是:
  • hosts: stagingwebservers
    gather_facts: False

    gather_facts: False
    vars:
    vars:
  • server_port: 8080
    tasks:

    任务:
  • name: install nginx
    apt: pkg=nginx state=installed update_cache=true

    apt:包=nginx 状态=已安装 更新缓存=是
  • name: serve nginx config
    template: src=../files/flask.conf dest=/etc/nginx/conf.d/

    模板:源=../files/flask.conf 目标=/etc/nginx/conf.d/
    notify:
    通知:
  • restart nginx
    handlers:

    处理器:
  • name: restart nginx
    service: name=nginx state=restarted

    服务:名称=nginx 状态=重启
  • name: restart flask app
    service: name=flask-demo state=restarted

    服务:名称=flask-demo 状态=重启
    ...
    In the above playbook, we are fetching all hosts of stagingwebservers group for executing these tasks. The first task is to install Nginx and then configure it. We are also taking a flask server for reference. In the end, we also defined handlers so that in case the state changes it will restart Nginx. After executing the above playbook we can verify whether Nginx is installed or not.
    在上述剧本中,我们获取stagingwebservers组中的所有主机来执行这些任务。第一个任务是安装Nginx,然后进行配置。我们还使用了一个flask服务器作为参考。最后,我们还定义了处理器,以便在状态发生变化时重启Nginx。执行完上述剧本后,我们可以验证Nginx是否已安装。

ps waux | grep nginx

ps waux | grep nginx

573. What is the ad-hoc command in Ansible?

Ansible中的临时命令是什么?
  • 知识点: DevOps/云 (主题: ansible, iac, devops;标签: interviewbit, ansible, topic-specific, iac, devops)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3793058d557c902b9879e | 官方: 否 | 付费: 否

答案:

Ad-hoc commands are like one-line playbooks to perform a specific task only. The syntax for the ad-hoc command is

临时命令就像单行剧本,仅用于执行特定任务。ad-hoc命令的语法是

ansible [pattern] -m [module] -a "[module options]"

ansible [模式] -m [模块] -a "[模块选项]"
For example, we need to reboot all servers in the staging group
例如,我们需要重启staging组中的所有服务器

ansible atlanta -a "/sbin/reboot" -u username --become [--ask-become-pass]

ansible atlanta -a "/sbin/reboot" -u 用户名 --成为 [--询问成为密码]

574. How do I access a variable name programmatically?

如何以编程方式访问变量名?
  • 知识点: DevOps/云 (主题: ansible, iac, devops;标签: interviewbit, ansible, topic-specific, iac, devops)
  • 类型: technical | 难度: medium | 子类型: coding
  • 分类: fullstack
  • id: 69b3793058d557c902b987a1 | 官方: 否 | 付费: 否

答案:

Variable names can be built by adding strings together. For example, if we need to get ipv4 address of an arbitrary interface, where the interface to be used may be supplied via a role parameter or other input, we can do it in this way.

变量名可以通过将字符串相加来构建。例如,如果我们需要获取任意接口的ipv4地址,其中要使用的接口可能通过角色参数或其他输入提供,我们可以这样做。

{{ hostvarsinventory_hostname'ipv4' }}

{{ hostvarsinventory_hostname'ipv4' }}

575. What is the difference between Ansible and Puppet?

Ansible 和 Puppet 有什么区别?
  • 知识点: DevOps/云 (主题: ansible, iac, devops;标签: interviewbit, ansible, topic-specific, iac, devops)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3793058d557c902b987a4 | 官方: 否 | 付费: 否

答案:

Management and Scheduling: In Ansible, the server pushes the configuration to the nodes on the other hand in puppet, the client pulls the configuration from the server. Also for scheduling, the puppet has an agent who polls every 30mins(default settings) to make sure all nodes are in a desirable state. Ansible doesn’t have that feature in the free version. Availability: Ansible has backup secondary nodes and puppet has more than one master node. So both try to be highly available. Setup: Puppet is considered to be harder to set up than ansible as it has a client-server architecture and also there’s a specific language called Puppet DSL which is its own declarative language.

管理与调度:在 Ansible 中,服务器将配置推送到节点,而在 Puppet 中,客户端从服务器拉取配置。对于调度,Puppet 有一个代理,每 30 分钟(默认设置)轮询一次,以确保所有节点处于期望状态。Ansible 的免费版本没有此功能。可用性:Ansible 有备份的辅助节点,Puppet 有多于一个主节点。因此两者都力求高可用性。设置:Puppet 被认为比 Ansible 更难设置,因为它具有客户端-服务器架构,并且还有一种名为 Puppet DSL 的特定语言,它是自己的声明式语言。

576. What is Ansible Tower and what are its features?

什么是 Ansible Tower,它有哪些特性?
  • 知识点: DevOps/云 (主题: ansible, iac, devops;标签: interviewbit, ansible, topic-specific, iac, devops)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3793058d557c902b987a7 | 官方: 否 | 付费: 否

答案:

Ansible Tower is an enterprise-level solution by RedHat. It provides a web-based console and REST API to manage Ansible across teams in an organization. There are many features such as - Workflow Editor - We can set up different dependencies among playbooks, or running multiple playbooks maintained by different teams at once

Ansible Tower 是 RedHat 提供的企业级解决方案。它提供了一个基于 Web 的控制台和 REST API,用于管理组织中跨团队的 Ansible。有许多特性,例如——工作流编辑器——我们可以在剧本之间设置不同的依赖关系,或同时运行由不同团队维护的多个剧本。
  • Real-Time Analysis - The status of any play or tasks can be monitored easily and we can check what’s going to run next
  • Audit Trail - Tracking logs are very important so that we can quickly revert back to a functional state if something bad happens.
  • Execute Commands Remotely - We can use the tower to run any command to a host or group of hosts in our inventory.
    There are other features also such as Job Scheduling, Notification Integration, CLI, etc.

    还有其他特性,如作业调度、通知集成、CLI 等。

577. Explain how you will copy files recursively onto a target host?

解释你将如何将文件递归复制到目标主机上?
  • 知识点: DevOps/云 (主题: ansible, iac, devops;标签: interviewbit, ansible, topic-specific, iac, devops)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3793058d557c902b987aa | 官方: 否 | 付费: 否

答案:

There’s a copy module that has a recursive parameter in it but there’s something called synchronize which is more efficient for large numbers of files.

有一个 copy 模块,其中包含递归参数,但还有一种叫做 synchronize 的东西,对于大量文件更高效。

For example:

例如:
  • synchronize:
    src: /first/absolute/path

    src: /first/absolute/path
    dest: /second/absolute/path
    dest: /second/absolute/path
    delegate_to: "{{ inventory_hostname }}"
    delegate_to: "{{ inventory_hostname }}"

578. What is the best way to make Content Reusable/ Redistributable?

使内容可重用/可再分发的最佳方式是什么?
  • 知识点: DevOps/云 (主题: ansible, iac, devops;标签: interviewbit, ansible, topic-specific, iac, devops)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3793058d557c902b987ad | 官方: 否 | 付费: 否

答案:

To make content reusable and redistributable Ansible roles can be used. Ansible roles are basically a level of abstraction to organize playbooks. For example, if we need to execute 10 tasks on 5 systems, writing all of them in the playbook might lead to blunders and confusion. Instead we create 10 roles and call them inside the playbook.

要使内容可重用和可再分发,可以使用 Ansible 角色。Ansible 角色基本上是一个抽象层次,用于组织剧本。例如,如果我们需要在 5 个系统上执行 10 个任务,将它们全部写在剧本中可能会导致错误和混乱。相反,我们创建 10 个角色并在剧本中调用它们。

579. What are handlers?

什么是 handlers?
  • 知识点: DevOps/云 (主题: ansible, iac, devops;标签: interviewbit, ansible, topic-specific, iac, devops)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3793058d557c902b987b0 | 官方: 否 | 付费: 否

答案:

Handlers are like special tasks which only run if the Task contains a “notify” directive.

Handlers 类似于特殊任务,只有任务包含“notify”指令时才会运行。

tasks:

任务:
  • name: install nginx
    apt: pkg=nginx state=installed update_cache=true

    apt:包=nginx 状态=已安装 更新缓存=是
    notify:
    通知:
  • start nginx
    handlers:

    处理器:
  • name: start nginx
    service: name=nginx state=started

    service: name=nginx state=started
    In the above example after installing NGINX we are starting the server using a start nginx handler.
    在上述示例中,安装NGINX后,我们使用start nginx处理器启动服务器。

580. How to generate encrypted passwords for a user module?

如何为用户模块生成加密密码?
  • 知识点: DevOps/云 (主题: ansible, iac, devops;标签: interviewbit, ansible, topic-specific, iac, devops)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3793058d557c902b987b4 | 官方: 否 | 付费: 否

答案:

Ansible has a very simple ad-hoc command for this

Ansible有一个非常简单的ad-hoc命令来实现这一点

ansible all -i localhost, -m debug -a "msg={{ 'mypassword' | password_hash('sha512', 'mysecretsalt') }}"

ansible all -i localhost, -m debug -a "msg={{ 'mypassword' | password_hash('sha512', 'mysecretsalt') }}"
We can also use the Passlib library of Python, e.g
我们还可以使用Python的Passlib库,例如

python -c "from passlib.hash import sha512_crypt; import getpass; print(sha512_crypt.using(rounds=5000).hash(getpass.getpass()))"

python -c "from passlib.hash import sha512_crypt; import getpass; print(sha512_crypt.using(rounds=5000).hash(getpass.getpass()))"
On top of this, we should also avoid storing raw passwords in playbook or host_vars, instead, we should use integrated methods to generate a hash version of a password.
除此之外,我们还应该避免在playbook或host_vars中存储原始密码,而应使用集成方法来生成密码的哈希版本。

581. How does dot notation and array notation of variables are different?

变量的点符号和数组符号有何不同?
  • 知识点: DevOps/云 (主题: ansible, iac, devops;标签: interviewbit, ansible, topic-specific, iac, devops)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3793058d557c902b987b7 | 官方: 否 | 付费: 否

答案:

Dot notation works fine unless we stump upon few special cases such as - If the variable contains a dot(.), colon(:), starting or ending with an underscore or any known public attribute.

点符号通常工作正常,除非遇到一些特殊情况,例如:如果变量包含点(.)、冒号(:)、以下划线开头或结尾,或任何已知的公共属性。
  • If there’s a collision between methods and attributes of python dictionaries.
  • Array notation also allows for dynamic variable composition.

582. How can looping be done over a list of hosts in a group, inside of a template?

如何在模板中对组中的主机列表进行循环?
  • 知识点: DevOps/云 (主题: ansible, iac, devops;标签: interviewbit, ansible, topic-specific, iac, devops)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3793058d557c902b987ba | 官方: 否 | 付费: 否

答案:

This can be done by accessing the “$groups” dictionary in the template, like so:

这可以通过在模板中访问“$groups”字典来实现,如下所示:

{% for host in groups['db_servers'] %}

{% for host in groups['db_servers'] %}
{{ host }}
{{ host }}
{% endfor %}
{% endfor %}
If we need to access facts also we need to make sure that the facts have been populated. For instance, a play that talks to db_servers:
如果我们需要访问事实(facts),还需要确保这些事实已被填充。例如,一个与 db_servers 通信的剧本:
  • hosts: db_servers
    tasks:

    任务:
  • debug: msg="Something to debug"
    Now, this can be used within a template, like so:

    现在,这可以在模板中使用,如下所示:

{% for host in groups['db_servers'] %}

{% for host in groups['db_servers'] %}
{{ hostvarshost'ipv4' }}
{{ hostvarshost'ipv4' }}
{% endfor %}.
{% endfor %}。

583. What is Ansible Vault?

什么是 Ansible Vault?
  • 知识点: DevOps/云 (主题: ansible, iac, devops;标签: interviewbit, ansible, topic-specific, iac, devops)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3793058d557c902b987bd | 官方: 否 | 付费: 否

答案:

Ansible vault is used to keep sensitive data such as passwords instead of placing it as plaintext in playbooks or roles. Any structured data file or any single value inside the YAML file can be encrypted by Ansible.

Ansible vault 用于保存敏感数据(如密码),而不是将其以明文形式放在剧本或角色中。任何结构化数据文件或 YAML 文件中的任意单个值都可以通过 Ansible 进行加密。

To encrypt a file

要加密文件

ansible-vault encrypt foo.yml bar.yml baz.yml

ansible-vault encrypt foo.yml bar.yml baz.yml
And similarly to decrypt
类似地,要解密

ansible-vault decrypt foo.yml bar.yml baz.yml

ansible-vault decrypt foo.yml bar.yml baz.yml

584. What is Ansible Inventory and its types?

什么是 Ansible Inventory 及其类型?
  • 知识点: DevOps/云 (主题: ansible, iac, devops;标签: interviewbit, ansible, topic-specific, iac, devops)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3793058d557c902b987c0 | 官方: 否 | 付费: 否

答案:

In Ansible, there are two types of inventory files: Static and Dynamic. - Static inventory file is a list of managed hosts declared under a host group using either hostnames or IP addresses in a plain text file. The managed host entries are listed below the group name in each line. For example

在 Ansible 中,有两种类型的库存文件:静态和动态。- 静态库存文件是托管主机的列表,在主机组下以主机名或 IP 地址的形式声明在纯文本文件中。托管主机条目按行列在组名下方。例如
[gatewayed]
[已网关化]
staging1 ansible_host=10.0.2.1
staging1 ansible_host=10.0.2.1
staging2 ansible_host=10.0.2.2 - Dynamic inventory is generated by a script written in Python or any other programming language or by using plugins(preferable). In a cloud setup, static inventory file configuration will fail since IP addresses change once a virtual server is stopped and started again. We create a demo_aws_ec2.yaml file for the config such as
staging2 ansible_host=10.0.2.2 - 动态清单是由Python或任何其他编程语言编写的脚本生成的,或通过使用插件(推荐)生成的。在云环境中,静态清单文件配置会失败,因为当虚拟服务器停止并重新启动时,IP地址会发生变化。我们为配置创建了一个demo_aws_ec2.yaml文件,例如:
plugin: aws_ec2 regions:
plugin: aws_ec2 regions:
ap-south-1 filters:
ap-south-1 filters:
tag:tagtype: testing
tag:tagtype: testing

Now we can fetch using this command

现在我们可以使用此命令获取

ansible-inventory -i demo_aws_ec2.yaml -graph

ansible-inventory -i demo_aws_ec2.yaml -graph

585. What are callback plugins in Ansible?

Ansible中的回调插件是什么?
  • 知识点: DevOps/云 (主题: ansible, iac, devops;标签: interviewbit, ansible, topic-specific, iac, devops)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3793058d557c902b987c3 | 官方: 否 | 付费: 否

答案:

Callback plugins basically control most of the output we see while running cmd programs. But it can also be used to add additional output. For example log_plays callback is used to record playbook events to a log file, and mail callback is used to send email on playbook failures. We can also add custom callback plugins by dropping them into a callback_plugins directory adjacent to play, inside a role, or by putting it in one of the callback directory sources configured in ansible.cfg.

回调插件基本上控制我们在运行命令行程序时看到的大部分输出。但它也可以用于添加额外的输出。例如,log_plays回调用于将playbook事件记录到日志文件中,而mail回调用于在playbook失败时发送电子邮件。我们还可以通过将自定义回调插件放入与play相邻的callback_plugins目录、角色内,或将其放入ansible.cfg中配置的回调目录源之一来添加自定义回调插件。

586. How to automate the password input in playbook using encrypted files?

如何使用加密文件自动化playbook中的密码输入?
  • 知识点: DevOps/云 (主题: ansible, iac, devops;标签: interviewbit, ansible, topic-specific, iac, devops)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3793058d557c902b987c6 | 官方: 否 | 付费: 否

答案:

To automate password input we can have a password file for all the passwords of encrypted files will be saved and ansible can make a call to fetch those when required.

为了自动化密码输入,我们可以有一个密码文件,所有加密文件的密码将保存在其中,Ansible可以在需要时调用获取这些密码。

ansible_ssh_common_args: '-o ProxyCommand="ssh -W %h:%p -q user@gateway.example.com"'

ansible_ssh_common_args: '-o ProxyCommand="ssh -W %h:%p -q user@gateway.example.com"'
This can also be achieved by having a separate script that specifies the passwords. But in this case, we need to print a password to stdout to work without annoying errors.
这也可以通过一个单独指定密码的脚本来实现。但在这种情况下,我们需要将密码打印到stdout,才能在没有烦人错误的情况下工作。

ansible-playbook launch.yml --vault-password-file ~/ .vault_pass.py

ansible-playbook launch.yml --vault-password-file ~/ .vault_pass.py

587. How to setup a jump host to access servers having no direct access?

如何设置跳板机来访问没有直接访问权限的服务器?
  • 知识点: DevOps/云 (主题: ansible, iac, devops;标签: interviewbit, ansible, topic-specific, iac, devops)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3793058d557c902b987c9 | 官方: 否 | 付费: 否

答案:

First, we need to set a ProxyCommand in ansible_ssh_common_args inventory variable, since any arguments specified in this variable are added to the sftp/scp/ssh command line when connecting to the relevant host(s). For example

首先,我们需要在清单变量 ansible_ssh_common_args 中设置一个 ProxyCommand,因为此变量中指定的任何参数在连接到相关主机时都会添加到 sftp/scp/ssh 命令行中。例如

[gatewayed]

[已网关化]
staging1 ansible_host=10.0.2.1
staging1 ansible_host=10.0.2.1
staging2 ansible_host=10.0.2.2
staging2 ansible_host=10.0.2.2
To create a jump host for these we need to add a command in ansible_ssh_common_args
要为这些主机创建跳板主机,我们需要在 ansible_ssh_common_args 中添加一条命令

ansible_ssh_common_args: '-o ProxyCommand="ssh -W %h:%p -q user@gateway.example.com"'

ansible_ssh_common_args: '-o ProxyCommand="ssh -W %h:%p -q user@gateway.example.com"'
In this way whenever we will try to connect to any host in the gatewayed group ansible will append these arguments to the command line.
这样一来,每当我们尝试连接到 gatewayed 组中的任何主机时,ansible 都会将这些参数附加到命令行中。

588. 解释 CI/CD 流水线(Pipeline)的核心概念和在ANZ Plus中的实践。

  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: anz, generated)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • 公司: 澳新银行
  • id: 69b3793a58d557c902b990ae | 官方: 是 | 付费: 是

答案:

思路分析从持续集成(Continuous Integration,CI)、持续交付(Continuous Delivery,CD)、持续部署(Continuous Deployment,CD)三个层次递进说明。
参考答案CI: 代码合并自动触发构建(Build)和测试(Testing)。CD: 自动化部署(Deployment)到各环境。关键实践:自动化测试(Automated Testing)、代码审查(Code Review)、蓝绿部署(Blue-Green Deployment)/金丝雀部署(Canary Deployment)、基础设施即代码(Infrastructure as Code,IaC)。
评分要点- CI/CD(Continuous Integration/Continuous Deployment)概念理解

  • 自动化测试策略
  • 部署策略选择
    常见追问- 如何实现零停机部署(Zero-Downtime Deployment)?
  • 如何处理回滚?

589. 解释 CI/CD 流水线的核心概念和在Jira中的实践。

  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: atlassian, generated)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: design
  • 公司: Atlassian
  • id: 69b3794b58d557c902b99e81 | 官方: 是 | 付费: 是

答案:

思路分析从持续集成(Continuous Integration,CI)、持续交付(Continuous Delivery,CD)、持续部署(Continuous Deployment,CD)三个层次递进说明。
参考答案CI: 代码合并自动触发构建(Build)和测试(Testing)。CD: 自动化部署(Deployment)到各环境。关键实践:自动化测试(Automated Testing)、代码审查(Code Review)、蓝绿部署(Blue-Green Deployment)/金丝雀部署(Canary Deployment)、基础设施即代码(Infrastructure as Code,IaC)。
评分要点- CI/CD(Continuous Integration/Continuous Deployment)概念理解

  • 自动化测试策略
  • 部署策略选择
    常见追问- 如何实现零停机部署(Zero-Downtime Deployment)?
  • 如何处理回滚?

590. 解释容器化(Docker)和容器编排(Kubernetes)的核心概念。

  • 知识点: DevOps/云 (主题: docker, kubernetes, devops;标签: atlassian, generated)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: design
  • 公司: Atlassian
  • id: 69b3794c58d557c902b99ec4 | 官方: 是 | 付费: 是

答案:

思路分析从容器(Container)vs 虚拟机(Virtual Machine)、Docker 核心概念、K8s(Kubernetes)架构和核心资源展开。
参考答案Docker: 镜像(Image)、容器(Container)、Dockerfile、层级存储(Layer Storage)。K8s: Pod、Service、Deployment、ConfigMap、Ingress。核心优势:一致的运行环境(Consistent Runtime Environment)、弹性伸缩(Elastic Scaling)、自动恢复(Self-healing)。
评分要点- 容器化原理理解(Containerization)

  • K8s 核心概念和使用经验
  • 生产环境实践
    常见追问- 如何设计 K8s 的资源限制(Resource Limits)和亲和性(Affinity)?
  • 有状态服务在 K8s 上如何运行?

591. You accidentally stopped an EC2 instance in a VPC with an associated Elastic IP. If you start the instance again, what will be the result?

您意外停止了一个带有关联弹性 IP 的 VPC 中的 EC2 实例。如果再次启动该实例,结果会是什么?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795958d557c902b9aa0b | 官方: 否 | 付费: 否

答案:

Elastic IP will only be disassociated from the instance if it’s terminated. If it’s stopped and started, there won’t be any change to the IP address, and the IP address will remain the same. However, elastic IP addresses, when disassociated or attached to a stop instance, are chargeable.

只有当实例被终止时,弹性 IP 才会与实例解除关联。如果实例被停止并重新启动,IP 地址不会发生任何变化,并且 IP 地址将保持不变。然而,弹性 IP 地址在解除关联或附加到已停止的实例时是收费的。
Transform Your Skills in Cloud Computing
转变您在云计算领域的技能

Your Cloud Computing Career Starts Here

您的云计算职业生涯从这里开始

Explore Program

探索课程

592. Your organization wants to send and receive compliance emails to its clients using its email address and domain. What service would you suggest for achieving the same easily and cost-effectively?

您的组织希望使用其电子邮件地址和域名向客户发送和接收合规性邮件。您会建议使用哪种服务来轻松且经济地实现这一目标?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795958d557c902b9aa0e | 官方: 否 | 付费: 否

答案:

Amazon Simple Email Service (Amazon SES), which is a cloud-based email-sending service, can be used for this purpose.

Amazon Simple Email Service (Amazon SES) 是一种基于云的电子邮件发送服务,可用于此目的。

593. Can you launch Amazon Elastic Compute Cloud (EC2) instances with predetermined private IP addresses? If yes, then with which Amazon service is it possible?

您可以使用预定的私有 IP 地址启动 Amazon Elastic Compute Cloud (EC2) 实例吗?如果可以,那么使用哪种 Amazon 服务可以实现这一点?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795958d557c902b9aa11 | 官方: 否 | 付费: 否

答案:

Yes. It is possible by using VPC (Virtual Private Cloud). In VPC, while creating subnets, it is possible to define a CIDR range for the private IP addresses. You can also specify the private IP address of the instance from this CIDR range while deploying the EC2.

是的。通过使用 VPC(虚拟私有云)可以实现这一点。在 VPC 中,创建子网时,可以为私有 IP 地址定义 CIDR 范围。在部署 EC2 时,您也可以在此 CIDR 范围内指定实例的私有 IP 地址。

594. If you launch a standby RDS, will it be launched in the same availability zone as your primary?

如果你启动一个备用RDS实例,它是否会与主实例在同一可用区启动?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795958d557c902b9aa14 | 官方: 否 | 付费: 否

答案:

No, standby instances are automatically launched in different availability zones than the primary, making them physically independent infrastructures. This is because the whole purpose of standby instances is to prevent infrastructure failure. So, in case the primary goes down, the standby instance will help recover all of the data.

不会,备用实例会自动在与主实例不同的可用区启动,使它们在物理上相互独立的基础设施。这是因为备用实例的全部目的在于防止基础设施故障。因此,如果主实例宕机,备用实例将帮助恢复所有数据。

595. Which Amazon solution will you use if you want to accelerate moving petabytes of data in and out of AWS using storage devices that are designed to be secure for data transfer?

如果你想使用设计用于安全数据传输的存储设备加速PB级数据进出AWS,你会使用哪种Amazon解决方案?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795958d557c902b9aa17 | 官方: 否 | 付费: 否

答案:

Amazon Snowball

Amazon Snowball
AWS Snowball is the data transport solution for large amounts of data that need to be moved into and out of AWS using physical storage devices. It can be useful when moving petabyte scale data because the cost of transporting the data physically via snowball devices is a lot cheaper than transferring them over the internet and is a faster tool.
AWS Snowball是用于通过物理存储设备将大量数据移入和移出AWS的数据传输解决方案。当移动PB级规模的数据时,它非常有用,因为通过Snowball设备物理传输数据的成本远低于通过互联网传输,而且速度更快。

596. If you are running your DB instance as a multi-AZ deployment, can you use standby DB instances along with your primary DB instance?

如果你以多可用区部署方式运行数据库实例,能否将备用数据库实例与主数据库实例一起使用?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795958d557c902b9aa1a | 官方: 否 | 付费: 否

答案:

No, the standby DB instance cannot be used along with the primary DB instances since the standby DB instances are supposed to be used only if the primary instance goes down.

不能,备用数据库实例不能与主数据库实例一起使用,因为备用数据库实例仅应在主实例宕机时使用。

597. Your organization is developing a new multi-tier web application in AWS. Being a fairly new and small organization, there’s limited staff. However, the organization requires high availability. This new application comprises complex queries and table joins. Which Amazon service will be the best solution for your organization’s requirements?

你的组织正在AWS中开发一个新的多层级Web应用。作为一个相当新且规模较小的组织,员工数量有限。然而,该组织要求高可用性。这个新应用包含复杂查询和表连接。哪个Amazon服务将是满足组织需求的最佳解决方案?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: medium | 子类型: system-design
  • 分类: fullstack
  • id: 69b3795a58d557c902b9aa1d | 官方: 否 | 付费: 否

答案:

Well, the best service that can help you in the above use case is Amazon RDS. Here are a few reasons for the same:

嗯,在上述用例中能帮助你最佳的服务是Amazon RDS。以下是一些原因:
  • Supports Complex Queries and Joins: Amazon RDS is a managed service that manages relational databases like MySQL, Postgres DB, etc. They are ideal for handling complex queries and table joins.
  • Automated Workflows: With limited staff in the company, you can still get things like automated backups, security patches, database maintenance, etc. All of these tasks, which ideally require a database team, are automatically managed by AWS.
  • High Availability and Fault Tolerance: AWS RDS has features like Multi-AZ deployment, Master-Slave Architecture, Multi-Master Architecture, etc. These architectures and features offer you high availability and fault tolerance.
  • Scalability: As your application grows, you can also scale the size of your DB instances.

598. Your organization has around 50 IAM users. Now, it wants to introduce a new policy that will affect the access permissions of an IAM user. How can it implement this without having to apply the policy at the individual user level?

你的组织约有50个IAM用户。现在,它想引入一项新策略,该策略将影响IAM用户的访问权限。如何在不按单个用户级别应用策略的情况下实现这一点?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: medium | 子类型: coding
  • 分类: fullstack
  • id: 69b3795a58d557c902b9aa20 | 官方: 否 | 付费: 否

答案:

It is possible to use AWS IAM groups by adding users to the groups as per their roles and by simply applying the policy to the groups.

可以使用AWS IAM组,根据用户的角色将用户添加到组中,并简单地将策略应用于组即可。

599. What do you understand by VPC?

你对VPC的理解是什么?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9aa88 | 官方: 否 | 付费: 否

答案:

VPC is the abbreviated form of Virtual Private Cloud. It is basically a virtual network service through which you can create logically isolated networks, sub-networks (subnets), firewalls (security groups), etc.

VPC是Virtual Private Cloud(虚拟私有云)的缩写。它基本上是一种虚拟网络服务,通过它你可以创建逻辑隔离的网络、子网络(子网)、防火墙(安全组)等。
It is highly customizable and can help you to isolate AWS resources in an effective way.
它具有高度可定制性,能帮助你以有效方式隔离AWS资源。

600. What are key pairs?

什么是密钥对?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9aa8b | 官方: 否 | 付费: 否

答案:

Key pairs, as the name suggests, are a pair of keys, namely a private key and a public key. Each public key matches with a unique private key. When we use AWS and deploy EC2 instances, the public key is stored on the EC2 instance, and the private key is available to the user. While connecting to the EC2 instance, we have to attach the private key in the auth request; if the private key matches the public key in the server, the user will get authenticated.

密钥对,顾名思义,是一对密钥,即私钥和公钥。每个公钥与一个唯一的私钥匹配。当我们使用AWS并部署EC2实例时,公钥存储在EC2实例上,而私钥由用户持有。当连接到EC2实例时,我们必须将私钥附加到认证请求中;如果私钥与服务器上的公钥匹配,用户将被认证。

601. What are policies, and what are the different types of policies?

什么是策略?策略有哪些不同类型?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9aa8e | 官方: 否 | 付费: 否

答案:

Policies define the permissions required to execute an operation, irrespective of the method used to perform it. AWS supports six types of policies:

策略定义了执行操作所需的权限,无论使用何种方法执行操作。AWS支持六种类型的策略:
  • Identity-based policies
  • Resource-based policies
  • Permissions boundaries
  • Organizations SCPs
  • ACLs
  • Session policies
  • Identity-based policies – These are JSON permissions policy documents that control what actions an identity can perform, under what conditions, and on which resources. These policies are further classified into 2 categories:
    • Managed Policies: These policies are standalone identity-based policies that can be attached to different users and groups in your AWS environment.
  • Inline policies: These policies are directly attached to a single user, group, or role. In situations where inline policies are used, a strict one-to-one relationship between a policy and an identity is maintained.
  • Resource-based policies – These policies are the ones attached to a resource such as an Amazon S3 bucket. They define which actions can be performed on the particular resource and under what circumstances.
  • IAM permissions boundaries – They refer to the maximum level of permissions that identity-based policies can grant to a specific entity.
  • Service Control Policies (SCPs) – SCPs are the maximum level of permissions for an organization or organizational unit.
  • Access Control lists – They define and control which principals in another AWS account can access the particular resource.
  • Session policies – They are advanced policies that are passed as a parameter when a temporary session is programmatically created for a role or federated user.

602. Which of the following is not an option in security groups? List of users Ports IP addresses List of protocols

以下哪项不是安全组的选项? 用户列表 端口 IP地址 协议列表
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9aa91 | 官方: 否 | 付费: 否

答案:

List of Users

用户列表

603. You launched a Windows 2019 IIS server in the Ohio region and deployed a dynamic website in this server. In addition, the webserver is also connected with a backend MS-SQL server to store and access data related to the application. Your users were able to access the website over the Internet. The next day your client informed you that they were able to access the website but weren’t able to ping the server from the internet. To ensure the ICMP rule in the Security Group, you checked, and the Security Group had allowed the rule from 0.0.0.0/0. Would you try to help troubleshoot the issue?

你在俄亥俄区域启动了一台Windows 2019 IIS服务器,并在该服务器上部署了一个动态网站。此外,该Web服务器还连接了一个后端MS-SQL服务器,用于存储和访问与应用程序相关的数据。你的用户能够通过互联网访问该网站。第二天,你的客户通知你,他们能够访问网站,但无法从互联网ping通该服务器。为确保安全组中的ICMP规则,你进行了检查,发现安全组已允许来自0.0.0.0/0的规则。你能否尝试帮助解决此问题?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: medium | 子类型: scenario
  • 分类: fullstack
  • id: 69b3795a58d557c902b9aa94 | 官方: 否 | 付费: 否

答案:

If the client can access the website from his/her end, it means the connection is perfect and there is no issue with connectivity, and the Security Group configuration also seems correct.

如果客户端能够从他们那边访问网站,这意味着连接正常,不存在连接问题,安全组配置看起来也是正确的。

We can check the internal firewall of the Windows 2019 IIS server. If it is blocking ICMP traffic, we should enable it.

我们可以检查Windows 2019 IIS服务器的内部防火墙。如果它阻止了ICMP流量,我们应该启用它。

604. What is AWS Glue?

什么是AWS Glue?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9aa97 | 官方: 否 | 付费: 否

答案:

AWS Glue is a data integration service offered by Amazon that makes it easy to discover, prepare, move, and transform your data for analytics and application development.

AWS Glue是亚马逊提供的一项数据集成服务,使得发现、准备、移动和转换数据用于分析和应用程序开发变得简单。

605. In AWS Glue, how do you enable and disable a trigger?

在AWS Glue中,如何启用和禁用触发器?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9aa9a | 官方: 否 | 付费: 否

答案:

You can execute the below commands to start or stop the trigger using the AWS CLI.

你可以使用AWS CLI执行以下命令来启动或停止触发器。
  • aws glue start-trigger –name MyTrigger
  • aws glue stop-trigger –name MyTrigger

606. What is a connection in AWS Glue?

AWS Glue中的连接是什么?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9aa9d | 官方: 否 | 付费: 否

答案:

Connection in AWS Glue is a service that stores information required to connect to a data source such as Redshift, RDS, S3, or DynamoDB.

AWS Glue中的连接是一种服务,存储用于连接到数据源(如Redshift、RDS、S3或DynamoDB)所需的信息。

607. How can you start an AWS Glue workflow run using AWS CLI?

如何使用AWS CLI启动AWS Glue工作流运行?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9aaa0 | 官方: 否 | 付费: 否

答案:

Using the start-workflow-run command of AWS CLI and passing the workflow name, one can start the Glue workflow.

使用AWS CLI的start-workflow-run命令并传递工作流名称,可以启动Glue工作流。

608. What data sources does AWS Glue support?

AWS Glue支持哪些数据源?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9aaa3 | 官方: 否 | 付费: 否

答案:

AWS Glue can integrate with more than 80 data sources on AWS, on-premises, and on other clouds. The service natively supports data stored in the following databases in your Amazon Virtual Private Cloud (Amazon VPC) running on Amazon Elastic Compute Cloud (Amazon EC2): - Amazon Aurora

AWS Glue 可以集成 AWS、本地数据中心及其他云上超过 80 种数据源。该服务原生支持存储在 Amazon Virtual Private Cloud(Amazon VPC)中、运行于 Amazon Elastic Compute Cloud(Amazon EC2)上的以下数据库中的数据:- Amazon Aurora
  • Amazon RDS for MySQL
  • Amazon RDS for Oracle
  • Amazon RDS for PostgreSQL
  • Amazon RDS for SQL Server
  • Amazon Redshift
  • Amazon DynamoDB
  • Amazon S3
  • MySQL, Oracle, Microsoft SQL Server, and PostgreSQL

609. What programming language can we use to write my ETL code for AWS Glue?

我们可以使用哪种编程语言来编写 AWS Glue 的 ETL 代码?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: medium | 子类型: coding
  • 分类: fullstack
  • id: 69b3795a58d557c902b9aaa6 | 官方: 否 | 付费: 否

答案:

We can use either Scala or Python.

我们可以使用 Scala 或 Python。

610. Can we write custom code in AWS Glue?

我们可以在 AWS Glue 中编写自定义代码吗?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: medium | 子类型: coding
  • 分类: fullstack
  • id: 69b3795a58d557c902b9aaa9 | 官方: 否 | 付费: 否

答案:

Yes. We can write your code using the AWS Glue ETL library.

可以。我们可以使用 AWS Glue ETL 库编写您的代码。

611. How do we monitor the execution of my AWS Glue jobs?

我们如何监控 AWS Glue 作业的执行情况?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9aaac | 官方: 否 | 付费: 否

答案:

AWS Glue provides the status of each job and pushes all notifications to CloudWatch.

AWS Glue 提供每个作业的状态,并将所有通知推送到 CloudWatch。

612. Explain what S3 is.

解释一下 S3 是什么。
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9aaaf | 官方: 否 | 付费: 否

答案:

S3 stands for Simple Storage Service. It is an object-based storage service on AWS. It is a pay-as-you-go service with the help of which you can store and extract any amount of data at any time from anywhere on the web.

S3 代表简单存储服务。它是 AWS 上一种基于对象的存储服务。这是一种按需付费的服务,借助它,您可以随时从网络上的任何地方存储和提取任意数量的数据。

613. What is the Replication Rule feature supported by AWS S3?

AWS S3 支持的复制规则功能是什么?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9aab2 | 官方: 否 | 付费: 否

答案:

Amazon S3 offers a lot of useful features. One of the features is the Replication Rule feature, which allows users to replicate the data to a secondary region.

Amazon S3 提供了许多有用的功能。其中一个功能是复制规则功能,它允许用户将数据复制到辅助区域。

614. What are the different ways to encrypt a file in S3?

在 S3 中加密文件有哪些不同方式?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9aab5 | 官方: 否 | 付费: 否

答案:

To encrypt a file in Amazon S3, users need to choose an appropriate encryption option. AWS S3 offers multiple encryption options such as: - Server-Side Encryption with Amazon S3 Managed Keys (SSE-S3)

要在 Amazon S3 中加密文件,用户需要选择合适的加密选项。AWS S3 提供多种加密选项,例如:- 使用 Amazon S3 托管密钥进行服务器端加密(SSE-S3)
  • Server-Side Encryption with AWS Key Management Service (SSE-KMS)
  • Server-Side Encryption with Customer-Provided Keys (SSE-C)
  • Client-Side Encryption

615. What is static website hosting in S3?

S3 中的静态网站托管是什么?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9aab8 | 官方: 否 | 付费: 否

答案:

Static website hosting in S3 is a feature that allows users to host static web content directly from an S3 bucket.

S3 中的静态网站托管是一种功能,允许用户直接从 S3 存储桶托管静态网页内容。

616. Is there any way to restore the deleted S3 objects?

有没有办法恢复已删除的 S3 对象?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9aabb | 官方: 否 | 付费: 否

答案:

Yes, you can restore the deleted S3 objects easily if you have a versioning enabled in the bucket.

是的,如果存储桶启用了版本控制,您可以轻松恢复已删除的 S3 对象。

617. What is an S3 general-purpose bucket?

什么是 S3 通用存储桶?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9aac2 | 官方: 否 | 付费: 否

答案:

A bucket is a container for objects stored in Amazon S3, and you can store any number of objects in a bucket. General purpose buckets are the original S3 bucket type, and a single general purpose bucket can contain objects stored across all storage classes except S3 Express One Zone. They are recommended for most use cases and access patterns.

存储桶是 Amazon S3 中存储对象的容器,您可以在一个存储桶中存储任意数量的对象。通用存储桶是原始的 S3 存储桶类型,一个通用存储桶可以包含存储在所有存储类别(S3 Express One Zone 除外)中的对象。它们被推荐用于大多数使用场景和访问模式。

618. How is Amazon S3 data organized?

Amazon S3 数据是如何组织的?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9aac5 | 官方: 否 | 付费: 否

答案:

Amazon S3 is a simple key-based object store. When you store data, you assign a unique object key that can later be used to retrieve the data. Keys can be any string, and they can be constructed to mimic hierarchical attributes. Alternatively, you can use S3 Object Tagging to organize your data across all of your S3 buckets and/or prefixes.

Amazon S3 是一种基于键的简单对象存储。当您存储数据时,会分配一个唯一的对象键,以后可用于检索数据。键可以是任何字符串,并且可以构建以模拟层次结构属性。或者,您可以使用 S3 对象标记来跨所有 S3 存储桶和/或前缀组织数据。

619. What is Amazon EC2?

什么是 Amazon EC2?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9aac8 | 官方: 否 | 付费: 否

答案:

Elastic Cloud Compute (EC2) is a cloud computing service provided by Amazon Web Services (AWS) that is used for hosting applications in the cloud.

弹性云计算(EC2)是 Amazon Web Services(AWS)提供的一种云计算服务,用于在云中托管应用程序。

620. What is a Security Group in Amazon EC2?

什么是 Amazon EC2 中的安全组?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9aacb | 官方: 否 | 付费: 否

答案:

Amazon Security Groups control both inbound and outbound traffic, acting like a virtual firewall for your EC2 instances.

Amazon 安全组控制入站和出站流量,充当 EC2 实例的虚拟防火墙。

621. Explain Stop vs. Terminate an Amazon EC2 instance.

解释停止与终止 Amazon EC2 实例的区别。
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9aace | 官方: 否 | 付费: 否

答案:

Both stopping and terminating the Amazon EC2 instance have their purpose and consequences.

停止和终止 Amazon EC2 实例都有各自的目的和后果。
FeatureStopTerminate
ActionHalts the EC2 instanceDeletes the instance
RestartPossibleNot possible
Use CaseTemporary pauseDeleting the Instance

622. What is the use of regions and availability zones in Amazon EC2 configuration?

在 Amazon EC2 配置中,区域和可用区的用途是什么?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9aad1 | 官方: 否 | 付费: 否

答案:

Regions are physical locations/ areas where AWS data centers are present. In regions there are multiple availability zones. Each availability zone has an AWS datacenter.

区域是 AWS 数据中心所在的物理位置/区域。在区域中有多个可用区。每个可用区都包含一个 AWS 数据中心。

To summarize, AWS regions have multiple availability zones. Each availability zone has an AWS datacenter.

总结来说,AWS 区域有多个可用区。每个可用区都包含一个 AWS 数据中心。

623. What is a placement group in EC2?

EC2 中的放置组是什么?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9aad4 | 官方: 否 | 付费: 否

答案:

By placing EC2 instances in a placement group, we can optimize the network performance and achieve higher levels of throughput. Placement groups can be created within a single AZ. The instances in a placement group are placed closer physically, which enables the high network performance and throughput.

通过将 EC2 实例放置在放置组中,我们可以优化网络性能并实现更高的吞吐量。放置组可以在单个可用区内创建。放置组中的实例在物理位置上放置得更近,这实现了高网络性能和高吞吐量。

624. You want to modify the security group rules while it is being used by multiple EC2 instances. Will you be able to do that? If yes, will the new rules be implemented on all previously running EC2 instances that were using that security group?

当安全组被多个 EC2 实例使用时,您是否可以修改其规则?如果可以,新规则是否会应用到之前所有使用该安全组的 EC2 实例上?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: medium | 子类型: coding
  • 分类: fullstack
  • id: 69b3795a58d557c902b9aad7 | 官方: 否 | 付费: 否

答案:

Yes, the security group that is being used by multiple EC2 instances can be modified. The changes will be implemented immediately and applied to all the previously running EC2 instances without restarting the instances.

可以,被多个 EC2 实例使用的安全组可以被修改。更改会立即生效并应用到所有之前运行的 EC2 实例,无需重启这些实例。

625. What is the difference between stateful and stateless filtering?

有状态过滤和无状态过滤的区别是什么?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9aaeb | 官方: 否 | 付费: 否

答案:

Stateful filtering evaluates the origin IP address for any request coming to your server, whereas stateless filtering evaluates both the origin and the destination IP address.

有状态过滤会评估发送到您服务器的任何请求的源 IP 地址,而无状态过滤则会评估源和目标 IP 地址。

626. What are the internet gateways in VPC?

VPC 中的互联网网关是什么?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9aaee | 官方: 否 | 付费: 否

答案:

Internet gateways are components that allow resources within your VPC to communicate to and from the Internet.

互联网网关是允许 VPC 内资源与互联网进行双向通信的组件。

627. What is an Elastic IP address?

什么是弹性 IP 地址?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9aaf1 | 官方: 否 | 付费: 否

答案:

Elastic IP addresses are static public IP addresses that are attached to an AWS instance so that its IP address doesn’t change. Usually, public IP addresses change after stopping the instance or terminating the instance. But when we create an Elastic IP address, even if AWS servers are terminated or stopped, these IP addresses are still available in the console and can be attached to other AWS servers.

弹性 IP 地址是附加到 AWS 实例上的静态公共 IP 地址,以确保其 IP 地址不会改变。通常,公共 IP 地址会在停止或终止实例后发生变化。但当我们创建弹性 IP 地址时,即使 AWS 服务器被终止或停止,这些 IP 地址仍然在控制台中可用,并且可以附加到其他 AWS 服务器上。

628. Can I monitor the network traffic in my VPC?

我可以监控 VPC 中的网络流量吗?
  • 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795a58d557c902b9aaf4 | 官方: 否 | 付费: 否

答案:

Yes. You can use Amazon VPC traffic mirroring and Amazon VPC flow logs features to monitor the network traffic in your Amazon VPC.

可以。您可以使用 Amazon VPC 流量镜像和 Amazon VPC 流日志功能来监控 Amazon VPC 中的网络流量。

Gain the knowledge and skills to excel in cloud operations with the AWS security course—secure your spot today!

通过 AWS 安全课程获取在云运维中脱颖而出的知识和技能——立即抢占您的名额!

Explore more about AWS

探索更多关于 AWS 的内容
What is AWS IoTAWS DevOps Certification

629. What is the best Azure solution for executing the code without a server?

在 Azure 中,无需服务器即可执行代码的最佳解决方案是什么?
  • 知识点: DevOps/云 (主题: azure, cloud;标签: interviewbit, azure, topic-specific, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795c58d557c902b9acde | 官方: 否 | 付费: 否

答案:

  • Azure Functions service can be used for executing the code without a server.
  • Serverless Azure Functions are used for simplifying complex orchestration and challenging resolutions. They are meant for being stateless and short-lived.
  • They help to connect with other services without the need for hard coding of the integrations thereby making the development process faster.
  • It helps the developer to write and concentrate on the business logic code thereby saving time and effort.
  • They also provide the features of monitoring and analyzing code performance by means of Azure Application Insights that help in identifying bottlenecks and failure points across the components of the application.

630. What is Azure Blob Storage?

什么是 Azure Blob 存储?
  • 知识点: DevOps/云 (主题: azure, cloud;标签: interviewbit, azure, topic-specific, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795c58d557c902b9ace1 | 官方: 否 | 付费: 否

答案:

  • Azure Blob storage is the object storage solution provided by Microsoft for the cloud. Blob stands for “Binary Large Object”. Blob-based storage is used to store massive unstructured data in terms of text or binary format. It is ideal for serving documents/images/audio/video/text directly to browser.
  • The data stored in the blob storage is accessible from anywhere in the world. The blobs are tied to user accounts by grouping them into containers. The Azure Blob Service has 3 components:
    Storage Account: This can be a General Storage Account or Blob Storage Account registered in Microsoft Azure.

    存储帐户:这可以是注册在 Microsoft Azure 中的通用存储帐户或 Blob 存储帐户。
    Container: Container is used for grouping blobs. We can store an unlimited number of blobs in a container. The name of the container should start in lowercase.
    容器:容器用于对 Blob 进行分组。我们可以在容器中存储无限数量的 Blob。容器的名称应以小写字母开头。
    Blob: A blob is a Binary Large Object like a file or document of any type and size. There are 3 kinds of Blobs supported by Azure:
    斑块(Blob):斑块是一种二进制大对象,类似于任何类型和大小的文件或文档。Azure 支持三种类型的斑块:
    Block blobs: These are intended for text and binary files and can support up to 195GB, i.e up to 50k blocks of up to 4MB each.
    块斑块(Block blobs):这些用于文本和二进制文件,最多可支持 195GB,即最多 5 万个块,每个块高达 4MB。
    Append blobs: These are used for appending operations like logging data in log files.
    追加斑块(Append blobs):这些用于追加操作,例如在日志文件中记录数据。
    Page blobs: These are meant for frequent read/write operations.
    页斑块(Page blobs):这些用于频繁的读/写操作。

Azure Blob Storage

Azure 斑块存储

631. Is it possible to get a public DNS or IP address for the Azure Internal Load Balancer?

是否可能为 Azure 内部负载均衡器获取公共 DNS 或 IP 地址?
  • 知识点: DevOps/云 (主题: azure, cloud;标签: interviewbit, azure, topic-specific, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795c58d557c902b9ace4 | 官方: 否 | 付费: 否

答案:

No! As the name itself says, Azure Internal Load Balancer supports only Private IP addresses, and hence the assignment of a public IP address or DNS name is not possible.

不可能!正如名称本身所述,Azure 内部负载均衡器仅支持私有 IP 地址,因此无法分配公共 IP 地址或 DNS 名称。

632. What would happen when the maximum failed attempts are reached during the process of Azure ID Authentication?

在 Azure ID 身份验证过程中达到最大失败尝试次数时会发生什么?
  • 知识点: DevOps/云 (主题: azure, cloud;标签: interviewbit, azure, topic-specific, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795c58d557c902b9ace7 | 官方: 否 | 付费: 否

答案:

In case of maximum failed attempts, the azure account would get locked and the method of locking is dependent on the protocol that analyzes the entered password and the IP addresses of the login requests.

在达到最大失败尝试次数的情况下,Azure 账户将被锁定,锁定方式取决于分析输入密码和登录请求 IP 地址的协议。

633. What are the differences between Azure Scale Sets and Availability Sets?

Azure 规模集和可用性集之间有什么区别?
  • 知识点: DevOps/云 (主题: azure, cloud;标签: interviewbit, azure, topic-specific, cloud)
  • 类型: technical | 难度: medium | 子类型: system-design
  • 分类: fullstack
  • id: 69b3795c58d557c902b9acea | 官方: 否 | 付费: 否

答案:

The main difference between Azure Scale Sets and Availability Sets are given below:

Azure 规模集和可用性集的主要区别如下所示:
Criteria
标准
Azure Scale Sets
Azure 规模集
Azure Availability Sets
Azure 可用性集
Definition
定义
They are a group of identically configured VMs that are spread across multiple fault domains.
它们是分布在多个故障域中、配置相同的虚拟机组成的组。
They are the group of discretely configured VMs that are spread across various fault domains.
它们是分布在多个故障域中、配置各异的虚拟机组成的组。
Default Domain
默认域
These have 5 fault domains and update domains by default.
默认具有 5 个故障域和更新域。
By default, these have 3 fault domains and 5 update domains.
默认具有 3 个故障域和 5 个更新域。
Workload Type
工作负载类型
These are used when there are unpredictable workloads that require the feature of auto scalability.
用于需要自动可扩展性的不可预测工作负载时。
These are used when there are predictable workload requirements.
用于可预测的工作负载需求时。
Configuration Style
配置风格
Here, the VMs are configured and created in the same manner from the same image.
此处,虚拟机从相同的映像以相同方式配置和创建。
Here, the VMs are created by making use of different images and configurations.
此处,虚拟机通过使用不同的映像和配置来创建。
VM Count
虚拟机数量
The number of VMs can be increased/decreased based on the demand or the pre-defined schedule.
虚拟机的数量可以根据需求或预定义的调度增加/减少。
A VM can be added to an availability set only at the time of the set’s creation.
虚拟机只能在可用性集创建时添加到该集中。
Distribution style
分布风格
Here, the VM scale sets can be distributed across multiple data centers or within a single data center.
此处,虚拟机规模集可以分布在多个数据中心或单个数据中心内。
Here, the VMs are automatically distributed in a data center.
此处,虚拟机在数据中心内自动分布。

634. Is it possible to login to a Linux Virtual Machine without using a password?

是否可以在不使用密码的情况下登录 Linux 虚拟机?
  • 知识点: DevOps/云 (主题: azure, cloud;标签: interviewbit, azure, topic-specific, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795c58d557c902b9aced | 官方: 否 | 付费: 否

答案:

Yes, it is possible by making use of the Key Vault mapping to any Admin VM, we can log in to another VM without the need for a password.

是的,通过将密钥保管库映射到任何管理员虚拟机,我们可以在无需密码的情况下登录另一个虚拟机。

635. What would be the best feature recommended by Azure for having a common file sharing system between multiple virtual machines?

对于多个虚拟机之间实现常见文件共享系统,Azure 推荐的最佳特性是什么?
  • 知识点: DevOps/云 (主题: azure, cloud;标签: interviewbit, azure, topic-specific, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795c58d557c902b9acf0 | 官方: 否 | 付费: 否

答案:

Azure provides a service called Azure File System which is used as a common repository system for sharing the data across the Virtual Machines configured by making use of protocols like SMB, FTPS, NFS, etc.

Azure 提供了一项名为 Azure 文件系统的服务,它用作常见存储库系统,通过使用诸如 SMB、FTPS、NFS 等协议在配置的虚拟机之间共享数据。

636. What is Azure Redis Cache?

什么是 Azure Redis 缓存?
  • 知识点: DevOps/云 (主题: azure, cloud;标签: interviewbit, azure, topic-specific, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795c58d557c902b9acf3 | 官方: 否 | 付费: 否

答案:

  • It is an open-source, in-memory Redis cache system provided and maintained by Azure.
  • It helps the web applications to improve the performance by fetching data from the backend database and storing it into the Redis cache for the first request and then fetching data from the Redis cache for all subsequent requests.
  • Azure Redis Cache provides powerful and secure caching mechanisms by making use of the Azure cloud.

Azure Redis Cache

Azure Redis 缓存

637. Define Azure virtual machine scale sets

定义 Azure 虚拟机规模集
  • 知识点: DevOps/云 (主题: azure, cloud;标签: interviewbit, azure, topic-specific, cloud)
  • 类型: technical | 难度: medium | 子类型: system-design
  • 分类: fullstack
  • id: 69b3795c58d557c902b9acf6 | 官方: 否 | 付费: 否

答案:

  • These are the Azure computation resources that can be used to deploy and manage sets of identical Virtual Machines (VMs).
  • These scale sets are configured in the same manner and are designed to support the autoscaling of the applications without the need for pre-provisioning of the VMs.
  • They help to build large-scale applications targeting big data and containerized workloads in an easier manner.

Azure virtual machine

Azure 虚拟机

638. What do you understand about the “Availability Set”?

您对“可用性集”有何理解?
  • 知识点: DevOps/云 (主题: azure, cloud;标签: interviewbit, azure, topic-specific, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795c58d557c902b9acf9 | 官方: 否 | 付费: 否

答案:

  • Availability Set is nothing but a logical grouping of VMs (Virtual Machines) that allows Azure cloud to understand how the application was developed for providing availability and redundancy.
  • Each VM in the availability set is assigned 2 kinds of domains by Azure:
    Fault Domain: These define the grouping of VMs that would share a common power source and common network switch. The VMs within availability sets are separated across up to 3 fault domains by default. This separation of VMs in fault domains helps our applications to be available by reducing impacts of network outages, power interruptions, and certain hardware failures.

    容错域:这些定义了共享公共电源和公共网络交换机的虚拟机分组。可用性集内的虚拟机默认分离到最多 3 个容错域中。虚拟机在容错域中的这种分离有助于我们的应用程序通过减少网络中断、电源故障和某些硬件故障的影响来保持可用性。
    Update Domain: These indicate the grouping of VMs and underlying hardware which are eligible to be rebooted at the same time. Only one update domain can be rebooted at a time, however, the order of reboot does not proceed in a sequential manner. Before the maintenance of another update domain, the previously rebooted domain is given a recovery time of 30 minutes to ensure that the domain is up.
    更新域:这些表示可以同时重启的虚拟机及其底层硬件的分组。一次只能重启一个更新域,但重启顺序不是按顺序进行的。在维护另一个更新域之前,先前已重启的域会获得 30 分钟的恢复时间,以确保该域正常运行。
  • Azure provides flexibility to configure up to 3 fault domains and 20 update domains for an availability set.

Availability Set

可用性集

639. What are the available options for deployment environments provided by Azure?

Azure 提供的部署环境有哪些可用选项?
  • 知识点: DevOps/云 (主题: azure, cloud;标签: interviewbit, azure, topic-specific, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795c58d557c902b9acfc | 官方: 否 | 付费: 否

答案:

Azure provides two deployment environments, they are: - Staging Environment: This environment is used for validating the changes of our application before making them live into the main environment.Here, the application is identified by means of GUID (Globally Unique Identifier) of Azure which has the URL as: GUID.cloudapp.net

Azure 提供两种部署环境,它们是:- 暂存环境:此环境用于在将应用程序的更改上线到主环境之前验证这些更改。在此,应用程序通过 Azure 的 GUID(全局唯一标识符)进行标识,其 URL 为:GUID.cloudapp.net
  • Production Environment: This is the main environment where our application goes live and can be accessed by the target audience which can be accessed by means of DNS friendly URL: appName.cloudapp.net

640. What do you need to do when drive failure occurs?

发生驱动器故障时您需要做什么?
  • 知识点: DevOps/云 (主题: azure, cloud;标签: interviewbit, azure, topic-specific, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795c58d557c902b9acff | 官方: 否 | 付费: 否

答案:

The following steps need to be performed when the drive failure occurs: - To make sure that the Azure Storage functions without fail, we need to ensure that the drive is not mounted.

发生驱动器故障时需要执行以下步骤:- 为了确保 Azure 存储无故障运行,我们需要确保驱动器未挂载。
  • Replace the drive so that the drive gets remounted and formatted.

641. Is it possible to design applications that handle connection failure in Azure?

在 Azure 中是否可能设计处理连接失败的应用程序?
  • 知识点: DevOps/云 (主题: azure, cloud;标签: interviewbit, azure, topic-specific, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795c58d557c902b9ad02 | 官方: 否 | 付费: 否

答案:

Yes, it is possible and is done by means of the Transient Fault Handling Block. There can be multiple causes of transient failures while using the cloud environment: - Due to the presence of more load balancers, we can see that the application to database connections fail periodically.

是的,这是可能的,并且通过瞬态故障处理块实现。在使用云环境时,瞬态故障可能有多种原因:- 由于存在更多负载均衡器,我们可以看到应用程序到数据库的连接会定期失败。
  • While using multi-tenant services, the calls get slower and eventually time out because other applications are using resources to hit the same resource heavily.
  • The last cause can be we ourselves as the user trying to hit the resource very frequently which causes the service to deliberately deny the connection to us to support other tenants in the architecture.
    Instead of showing errors to the user periodically, the application can recognize the errors that are transient and automatically try to perform the same operation again typically after some seconds with the hope of establishing the connection. By making use of the Transient Fault Handling Application Block mechanism, we can generate the retry intervals and make the application perform retries. In the majority of the cases, the error would be resolved on the second try and hence the user need not be made aware of these errors unnecessarily.

    与其定期向用户显示错误,应用程序可以识别瞬态错误,并自动尝试在几秒后再次执行相同操作,希望能建立连接。通过使用瞬态故障处理块机制,我们可以生成重试间隔并让应用程序执行重试。在大多数情况下,错误会在第二次尝试时解决,因此用户无需不必要地了解这些错误。

Following is the sample code that can be used for the retry policy. Here, if the connection is not successful, then the action is retried based on the retry policy defined. There are 3 retry strategies - Fixed Interval, Incremental Interval, Exponential Backoff Strategy.

以下是可用于重试策略的示例代码。在此,如果连接不成功,则根据定义的重试策略重试该操作。有 3 种重试策略 - 固定间隔、增量间隔、指数退避策略。

/*

  • Class to detect Transient Blocks - Here

    • 用于检测瞬态块的类 - 这里
  • OperationCancelledException is

    • 检测到OperationCancelledException异常,
  • detected and then the retry strategy is employed.

    • 然后采用重试策略。
      */
      internal class AppTransientDetection : ITransientErrorDetectionStrategy
      internal class AppTransientDetection : ITransientErrorDetectionStrategy
      {
      bool IsTransient(Exception exception) =>
      bool IsTransient(Exception exception) =>
      exception is OperationCanceledException;
      exception is OperationCanceledException;
      }

/*

  • Retry Strategy - Here Fixed Interval Strategy is employed and is retried for 5 times.

    • 重试策略 - 这里采用固定间隔策略,并重试5次。
      */
      RetryStrategy retryStrategy = new FixedInterval(retryCount: 5, retryInterval: TimeSpan.FromSeconds(2));
      RetryStrategy retryStrategy = new FixedInterval(retryCount: 5, retryInterval: TimeSpan.FromSeconds(2));

RetryPolicy retryPolicy = new RetryPolicy(new AppTransientDetection(), retryStrategy);

RetryPolicy retryPolicy = new RetryPolicy(new AppTransientDetection(), retryStrategy);
retryPolicy.ExecuteAction(() => {
retryPolicy.ExecuteAction(() => {
try {
try {
string commandText = @”USE FEDERATION User_Federation(ShardId =” + shardId + “) WITH RESET, FILTERING=ON”;
string commandText = @”USE FEDERATION User_Federation(ShardId =” + shardId + “) WITH RESET, FILTERING=ON”;
userEntity.Connection.Open();
userEntity.Connection.Open();
userEntity.ExecuteStoreCommand(commandText);
userEntity.ExecuteStoreCommand(commandText);
} catch (Exception e) {
} catch (Exception e) {
userEntity.Connection.Close();
userEntity.Connection.Close();
SqlConnection.ClearAllPools();
SqlConnection.ClearAllPools();
}
});

642. Define azure storage key.

定义Azure存储密钥。
  • 知识点: DevOps/云 (主题: azure, cloud;标签: interviewbit, azure, topic-specific, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795c58d557c902b9ad05 | 官方: 否 | 付费: 否

答案:

  • Azure storage key is used for authentication for validating access for the azure storage service to control access of data based on the project requirements.
  • 2 types of storage keys are given for the authentication purpose -
    Primary Access Key

    主访问密钥
    Secondary Access Key
    次访问密钥
  • The main purpose of the secondary access key is for avoiding downtime of the website or application.

643. What is cspack in Azure?

在 Azure 中什么是 cspack?
  • 知识点: DevOps/云 (主题: azure, cloud;标签: interviewbit, azure, topic-specific, cloud)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b3795c58d557c902b9ad08 | 官方: 否 | 付费: 否

答案:

It is a command-line tool that is used for generating service package files. The tool also helps in preparing the application for deployment in Microsoft Azure or compute emulator.

它是一个命令行工具,用于生成服务包文件。该工具还有助于准备应用程序,以便在 Microsoft Azure 或计算模拟器中部署。

Every project of cloud service type has the .cscfg file which is basically the cloud service configuration file that is generated by means of cspack tool and is primarily used to store: - The number of role instances for the deployment of each role in the project.

每个云服务类型的项目都有 .cscfg 文件,这基本上是云服务配置文件,由 cspack 工具生成,主要用于存储:- 项目中每个角色部署的角色实例数量。
  • The thumbprint of the certificates.
  • User-defined configuration and settings.

644. 解释 CI/CD(Continuous Integration/Continuous Delivery)流水线(Pipeline)的核心概念和在Mining Operations中的实践。

  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: bhp, generated)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • 公司: 必和必拓集团
  • id: 69b3797658d557c902b9c1b2 | 官方: 是 | 付费: 是

答案:

思路分析从持续集成(Continuous Integration,CI)、持续交付(Continuous Delivery,CD)、持续部署(Continuous Deployment,CD)三个层次递进说明。
参考答案CI: 代码合并自动触发构建(Build)和测试(Testing)。CD: 自动化部署(Deployment)到各环境。关键实践:自动化测试(Automated Testing)、代码审查(Code Review)、蓝绿部署(Blue-Green Deployment)/金丝雀部署(Canary Deployment)、基础设施即代码(Infrastructure as Code,IaC)。
评分要点- CI/CD(Continuous Integration/Continuous Deployment)概念理解

  • 自动化测试策略
  • 部署策略选择
    常见追问- 如何实现零停机部署(Zero-Downtime Deployment)?
  • 如何处理回滚?

645. 解释 CI/CD(Continuous Integration/Continuous Delivery)流水线的核心概念和在Buildkite Pipelines中的实践。

  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: buildkite, generated)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • 公司: Buildkite
  • id: 69b3799758d557c902b9d8f1 | 官方: 是 | 付费: 是

答案:

思路分析从持续集成(Continuous Integration,CI)、持续交付(Continuous Delivery,CD)、持续部署(Continuous Deployment,CD)三个层次递进说明。
参考答案CI: 代码合并自动触发构建(Build)和测试(Testing)。CD: 自动化部署(Deployment)到各环境。关键实践:自动化测试(Automated Testing)、代码审查(Code Review)、蓝绿部署(Blue-Green Deployment)/金丝雀部署(Canary Deployment)、基础设施即代码(Infrastructure as Code,IaC)。
评分要点- CI/CD(Continuous Integration/Continuous Deployment)概念理解

  • 自动化测试策略
  • 部署策略选择
    常见追问- 如何实现零停机部署(Zero-Downtime Deployment)?
  • 如何处理回滚?

646. 解释 CI/CD(Continuous Integration/Continuous Delivery)流水线(Pipeline)的核心概念和在Canva Editor中的实践。

  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: canva, generated)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • 公司: 可画
  • id: 69b379e758d557c902ba10d6 | 官方: 是 | 付费: 是

答案:

思路分析从持续集成(Continuous Integration,CI)、持续交付(Continuous Delivery,CD)、持续部署(Continuous Deployment,CD)三个层次递进说明。
参考答案CI: 代码合并自动触发构建(Build)和测试(Testing)。CD: 自动化部署(Deployment)到各环境。关键实践:自动化测试(Automated Testing)、代码审查(Code Review)、蓝绿部署(Blue-Green Deployment)/金丝雀部署(Canary Deployment)、基础设施即代码(Infrastructure as Code,IaC)。
评分要点- CI/CD(Continuous Integration/Continuous Deployment)概念理解

  • 自动化测试策略
  • 部署策略选择
    常见追问- 如何实现零停机部署(Zero-Downtime Deployment)?
  • 如何处理回滚?

647. 解释 CI/CD(持续集成/持续交付)流水线(Pipeline)的核心概念和在CommBank App中的实践。

  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: cba, generated)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • 公司: Commonwealth Bank of Australia
  • id: 69b37a0e58d557c902ba29cd | 官方: 是 | 付费: 是

答案:

思路分析从持续集成(Continuous Integration,CI)、持续交付(Continuous Delivery,CD)、持续部署(Continuous Deployment,CD)三个层次递进说明。
参考答案CI: 代码合并自动触发构建(Build)和测试(Testing)。CD: 自动化部署(Deployment)到各环境。关键实践:自动化测试(Automated Testing)、代码审查(Code Review)、蓝绿部署(Blue-Green Deployment)/金丝雀部署(Canary Deployment)、基础设施即代码(Infrastructure as Code,IaC)。
评分要点- CI/CD(Continuous Integration/Continuous Deployment)概念理解

  • 自动化测试策略
  • 部署策略选择
    常见追问- 如何实现零停机部署(Zero-Downtime Deployment)?
  • 如何处理回滚?

648. 设计一个类似 CDN(Content Delivery Network)的核心系统架构,需要支持高并发和低延迟。

  • 知识点: DevOps/云 / 系统设计/架构 / UI/UX 设计 (主题: system-design, distributed-systems;标签: cloudflare, generated)
  • 类型: technical | 难度: medium | 子类型: system-design
  • 分类: fullstack
  • 公司: Cloudflare
  • id: 69b37a1858d557c902ba309a | 官方: 是 | 付费: 是

答案:

思路分析从需求出发:用户量级(User Scale)、QPS 预估(QPS Estimation)、数据量(Data Volume)。然后设计整体架构、存储选型(Storage Selection)、缓存策略(Caching Strategy)、负载均衡(Load Balancing)。
参考答案分层架构(Layered Architecture):CDN(Content Delivery Network) → Load Balancer(负载均衡器) → API Gateway(API网关) → Microservices(微服务) → Database/Cache(数据库/缓存)。关键考虑:读写分离(Read-Write Separation)、分库分表(Database Sharding)、消息队列(Message Queue)解耦、缓存多级策略(Multi-level Caching Strategy)。
评分要点- 需求分析和容量估算(Capacity Estimation)

  • 合理的技术选型
  • 可扩展性和高可用设计
  • 数据一致性和分区容错权衡
    常见追问- 如何处理热点数据(Hot Data)?
  • 如何实现跨区域容灾?
  • 数据库如何水平扩展?

649. 解释 CI/CD(持续集成/持续交付)流水线(Pipeline)的核心概念和在Cochlear Implants中的实践。

  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: cochlear, generated)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • 公司: Cochlear
  • id: 69b37a2a58d557c902ba3c18 | 官方: 是 | 付费: 是

答案:

思路分析从持续集成(Continuous Integration,CI)、持续交付(Continuous Delivery,CD)、持续部署(Continuous Deployment,CD)三个层次递进说明。
参考答案CI: 代码合并自动触发构建(Build)和测试(Testing)。CD: 自动化部署(Deployment)到各环境。关键实践:自动化测试(Automated Testing)、代码审查(Code Review)、蓝绿部署(Blue-Green Deployment)/金丝雀部署(Canary Deployment)、基础设施即代码(Infrastructure as Code,IaC)。
评分要点- CI/CD(Continuous Integration/Continuous Deployment)概念理解

  • 自动化测试策略
  • 部署策略选择
    常见追问- 如何实现零停机部署(Zero-Downtime Deployment)?
  • 如何处理回滚?

650. 解释 CI/CD(持续集成/持续交付)流水线(Pipeline)的核心概念和在Coles Online中的实践。

  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: coles, generated)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • 公司: Coles Group
  • id: 69b37a4658d557c902ba4d75 | 官方: 是 | 付费: 是

答案:

思路分析从持续集成(Continuous Integration,CI)、持续交付(Continuous Delivery,CD)、持续部署(Continuous Deployment,CD)三个层次递进说明。
参考答案CI: 代码合并自动触发构建(Build)和测试(Testing)。CD: 自动化部署(Deployment)到各环境。关键实践:自动化测试(Automated Testing)、代码审查(Code Review)、蓝绿部署(Blue-Green Deployment)/金丝雀部署(Canary Deployment)、基础设施即代码(Infrastructure as Code,IaC)。
评分要点- CI/CD(Continuous Integration/Continuous Deployment)概念理解

  • 自动化测试策略
  • 部署策略选择
    常见追问- 如何实现零停机部署(Zero-Downtime Deployment)?
  • 如何处理回滚?

651. How will you convert a traditional project into a DevOps Project?

如何将传统项目转换为 DevOps 项目?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: intellipaat, devops, topic-specific, devops, ci-cd)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7158d557c902ba6b40 | 官方: 否 | 付费: 否

答案:

Here is a step-by-step guide on how to do this:

以下是关于如何执行此操作的分步指南:
  • Assess the state of the current project: Identify the dependencies between the processes, identify processes which do not need tweaking. Identify the dependencies which can be a bottleneck for the entire project, if they fail. Finally establish the Key Performance Indicators (KPIs) which you want to achieve once the Devops transition is complete.
  • Make the team ready for the transition: The aim of implementing Devops is increased collaboration, using agile methodologies and implement knowledge sharing practices. Therefore, the team should be ready to embrace this mindset.
  • Setup Version Control: This ideally should be there for your current project, if its not present, start with this.
  • Automate Continuous Integration (CI): Integrate CI tools like Jenkins, implement automated testing, and implement software builds with every commit
  • Implement Continuous Delivery and Continuous Deployment: Automate deployments, add rollback capabilities, also add approval gates for deployment.
  • Integrate Infrastructure as Code (IaC) and Configuration Management: Automate your infrastructure via code using tools like Terraform, CloudFormation etc. Also start working on Configuration Management using tools like Ansible, Puppet etc.
  • Implement Monitoring and Logging: The most important stage in a devops pipeline is monitoring, setup infrastructure monitoring and application monitoring using tools like Prometheus and Graffana.

652. I want to move or copy Jenkins from one server to another. Is it possible? If yes, how?

我想将 Jenkins 从一台服务器移动或复制到另一台服务器。这可能吗?如果可能,怎么做?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: intellipaat, devops, topic-specific, devops, ci-cd)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7158d557c902ba6bc8 | 官方: 否 | 付费: 否

答案:

I would suggest copying the Jenkins jobs directory from the old server to the new one. We can just move a job from one installation of Jenkins to another by copying the corresponding job directory.

我建议将 Jenkins 的 jobs 目录从旧服务器复制到新服务器。我们可以通过复制相应的 job 目录,将 job 从 Jenkins 的一个安装实例移动到另一个实例。

Or, we can also make a copy of an existing Jenkins job by making a clone of that job directory in a different name.

或者,我们也可以通过以不同名称克隆该 job 目录来复制现有的 Jenkins job。

Another way is that we can rename an existing job by renaming the directory. But, if you change the name of a job, you will need to change any other job that tries to call the renamed job.

另一种方法是,我们可以通过重命名目录来重命名现有 job。但是,如果您更改了 job 的名称,则需要更改任何试图调用该重命名 job 的其他 job。

653. I have 40 jobs in the Jenkins dashboard and I need to build them all at once. Is it possible?

我在 Jenkins 仪表板中有 40 个 job,我需要一次构建它们全部。这可能吗?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: intellipaat, devops, topic-specific, devops, ci-cd)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7158d557c902ba6bcb | 官方: 否 | 付费: 否

答案:

Yes, it is. With the help of a Jenkins plugin, we can build DevOps projects one after the other. If one parent job is carried out, then automatically other jobs are also run. We also have the option to use Jenkins Pipeline jobs for the same.

是的,可以。借助 Jenkins 插件,我们可以一个接一个地构建 DevOps 项目。如果一个父 job 被执行,那么其他 job 也会自动运行。我们也可以选择使用 Jenkins Pipeline 作业来实现相同目的。

654. How will you secure Jenkins?

如何保护 Jenkins?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: intellipaat, devops, topic-specific, devops, ci-cd)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7158d557c902ba6bcf | 官方: 否 | 付费: 否

答案:

The way to secure Jenkins is as follows: - Ensure that global security is on

保护 Jenkins 的方式如下:- 确保全局安全已开启
  • Check whether Jenkins is integrated with the company’s user directory with an appropriate plugin
  • Make sure that the Project matrix is enabled to fine-tune access
  • Automate the process of setting rights or privileges in Jenkins with a custom version-controlled script
  • Limit physical access to Jenkins data or folders
  • Periodically run security audits

655. Can you please tell me how to create a backup and copy files in Jenkins?

您能告诉我如何在 Jenkins 中创建备份和复制文件吗?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: intellipaat, devops, topic-specific, devops, ci-cd)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7158d557c902ba6bd2 | 官方: 否 | 付费: 否

答案:

To create a backup, all we need to do is periodically back up our JENKINS\_HOME directory. This contains all of the build configurations of our job, our slave node configurations, and our build history. To create a backup of our Jenkins setup, just copy this directory. We can also copy a job directory to clone or replicate a job or rename the directory.

要创建备份,我们只需定期备份 JENKINS\_HOME 目录即可。此目录包含我们作业的所有构建配置、从节点配置以及构建历史。要进行 Jenkins 设置的备份,只需复制该目录。我们还可以复制作业目录来克隆或复制作业,或重命名该目录。

656. What are Jenkins Pipeline and CI/CD Pipeline?

什么是 Jenkins 流水线和 CI/CD 流水线?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: intellipaat, devops, topic-specific, devops, ci-cd)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7158d557c902ba6bd6 | 官方: 否 | 付费: 否

答案:

Jenkins Pipeline can be defined as a suite of plugins supporting both the implementation and integration of Jenkins’ continuous delivery pipeline.

Jenkins 流水线可以定义为一套插件套件,支持 Jenkins 持续交付流水线的实现和集成。
Continuous integration or continuous delivery pipeline consists of build, deploy, test, and release. The pipeline feature is very time-saving. In other words, a pipeline is a group of build jobs that are chained and integrated in a sequence.
持续集成或持续交付流水线包括构建、部署、测试和发布。流水线功能非常节省时间。换句话说,流水线是一组按顺序链接和集成的构建作业。

657. How to launch a browser using WebDriver?

如何使用 WebDriver 启动浏览器?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: intellipaat, devops, topic-specific, devops, ci-cd)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7158d557c902ba6bda | 官方: 否 | 付费: 否

答案:

For Firefox:

对于 Firefox:

WebDriver driver = new FirefoxDriver();

WebDriver driver = new FirefoxDriver();
For Chrome:
对于 Chrome:




WebDriver driver = new ChromeDriver();
WebDriver driver = new ChromeDriver();
For Internet Explorer (IE):
对于 Internet Explorer (IE):
WebDriver driver = new InternetExplorerDriver();

WebDriver driver = new InternetExplorerDriver();

658. Explain the different Selenium components.

解释不同的 Selenium 组件。
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: intellipaat, devops, topic-specific, devops, ci-cd)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7158d557c902ba6bde | 官方: 否 | 付费: 否

答案:

The following are the different components of Selenium: - Selenium Integrated Development Environment (IDE) – The Selenium IDE consists of a simple framework and comes with a Firefox plug-in that can be easily installed. This Selenium component should be used for prototyping.

以下是 Selenium 的不同组件:- Selenium 集成开发环境 (IDE) – Selenium IDE 包含一个简单框架,并附带一个可轻松安装的 Firefox 插件。此 Selenium 组件应用于原型设计。
  • Selenium Remote Control (RC) – It is a testing framework for developers and QA that supports coding in any programming language like Java, PHP, C#, Perl, etc. This helps automate the UI testing process of web applications against any HTTP website.
  • Selenium WebDriver – It has a better approach to automating the testing process of web-based applications and does not rely on JavaScript. This web framework allows cross-browser tests to be performed.
  • Selenium Grid – This proxy server works with Selenium RC, and with the help of browsers, it is able to run parallel tests on different nodes or machines.

659. What are the testing types supported by Selenium?

Selenium 支持哪些测试类型?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: intellipaat, devops, topic-specific, devops, ci-cd)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7158d557c902ba6be2 | 官方: 否 | 付费: 否

答案:

Selenium supports regression testing and functional testing.

Selenium 支持回归测试和功能测试。

660. Are there any technical challenges with Selenium?

Selenium 存在哪些技术挑战?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: intellipaat, devops, topic-specific, devops, ci-cd)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7158d557c902ba6be6 | 官方: 否 | 付费: 否

答案:

  • It supports only web-based applications.
  • It does not support the Bitmap comparison.
  • No vendor support is available for Selenium compared to commercial tools like HP UFT.
  • As there is no object repository concept, the maintainability of objects becomes very complex.

661. When should I use Selenium Grid?

我何时应该使用 Selenium Grid?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: intellipaat, devops, topic-specific, devops, ci-cd)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7158d557c902ba6bea | 官方: 否 | 付费: 否

答案:

Selenium Grid can be used to execute the same or different test scripts on multiple platforms and browsers, concurrently, in order to achieve distributed test execution. It allows testing under different environments, remarkably saving execution time.

Selenium Grid 可用于在多个平台和浏览器上并发执行相同或不同的测试脚本,以实现分布式测试执行。它允许在不同环境下进行测试,显著节省执行时间。

662. Describe the difference between driver.close() and driver.quit().

请描述 driver.close() 和 driver.quit() 之间的区别。
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: intellipaat, devops, topic-specific, devops, ci-cd)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7158d557c902ba6bed | 官方: 否 | 付费: 否

答案:

The driver.close command closes the focused browser window. But, the driver.quit command calls the driver.dispose method which closes all browser windows and also ends the WebDriver session.

driver.close 命令用于关闭当前聚焦的浏览器窗口。而 driver.quit 命令调用 driver.dispose 方法,关闭所有浏览器窗口并结束 WebDriver 会话。

663. Can you tell me what a Puppet codedir is?

你能告诉我什么是 Puppet codedir 吗?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: intellipaat, devops, topic-specific, devops, ci-cd)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7158d557c902ba6c0c | 官方: 否 | 付费: 否

答案:

It is the main directory for code and data in Puppet. It consists of environments (containing manifests and modules), a global modules directory for all the environments, and your Hiera data.

它是 Puppet 中代码和数据的主目录。它包含环境(含有清单和模块)、一个供所有环境使用的全局模块目录,以及您的 Hiera 数据。

664. Sometimes, we use ad-hoc commands instead of Playbooks in Ansible. Can you tell me what’s the difference between Ansible Playbook and an ad-hoc command? Also, cite when to use them.

有时,我们在 Ansible 中使用 ad-hoc 命令而不是 Playbook。你能告诉我 Ansible Playbook 和 ad-hoc 命令之间的区别吗?同时,请说明何时使用它们。
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: intellipaat, devops, topic-specific, devops, ci-cd)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7158d557c902ba6c18 | 官方: 否 | 付费: 否

答案:

Ad-hoc commands are used to do something quickly, and they are mostly for one-time use. Whereas the Ansible Playbook is used to perform repeated actions. There are scenarios where we want to use ad-hoc commands to perform a non-repetitive activity.

Ad-hoc 命令用于快速执行某些操作,且主要用于一次性使用。而 Ansible Playbook 用于执行重复性操作。在某些场景下,我们使用 ad-hoc 命令来执行非重复性活动。

665. Have you heard about Ansible Galaxy? What does it do?

你听说过 Ansible Galaxy 吗?它是做什么的?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: intellipaat, devops, topic-specific, devops, ci-cd)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7258d557c902ba6c23 | 官方: 否 | 付费: 否

答案:

Yes, I have. Ansible Galaxy refers to the ‘Galaxy website’ by Ansible, where users share Ansible roles. It is used to install, create, and manage Ansible roles.

是的,我听说过。Ansible Galaxy 指的是 Ansible 的“Galaxy 网站”,用户在此分享 Ansible 角色。它用于安装、创建和管理 Ansible 角色。

666. How does AWS contribute to DevOps?

AWS 如何促进 DevOps?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: interviewbit, devops, topic-specific, ci-cd)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7258d557c902ba6c8e | 官方: 否 | 付费: 否

答案:

AWS stands for Amazon Web Services and it is a well known cloud provider. AWS helps DevOps by providing the below benefits: - Flexible Resources: AWS provides ready-to-use flexible resources for usage.

AWS 代表 Amazon Web Services,是一个知名的云服务提供商。AWS 通过提供以下优势来支持 DevOps:- 灵活的资源:AWS 提供可直接使用的灵活资源。
  • Scaling: Thousands of machines can be deployed on AWS by making use of unlimited storage and computation power.
  • Automation: Lots of tasks can be automated by using various services provided by AWS.
  • Security: AWS is secure and using its various security options provided under the hood of Identity and Access Management (IAM), the application deployments and builds can be secured.

667. Tell me something about Ansible work in DevOps

请谈谈 Ansible 在 DevOps 中的作用
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: interviewbit, devops, topic-specific, ci-cd)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7258d557c902ba6c97 | 官方: 否 | 付费: 否

答案:

It is a DevOps open-source automation tool which helps in modernizing the development and deployment process of applications in faster manner. It has gained popularity due to simplicity in understanding, using, and adopting it which largely helped people across the globe to work in a collaborative manner.

它是一个 DevOps 开源自动化工具,有助于以更快的方式现代化应用程序的开发与部署流程。由于其简单易懂、易用和易采用的特点,它在全球范围内广受欢迎,极大地帮助了人们进行协作。
AnsibleDevelopers
开发者
Operations
运维
QA
质量保证
Business/Clients
业务/客户
Challenges
挑战
Developers tend to focus a lot of time on tooling rather than delivering the results.
开发者往往在工具上花费大量时间,而非交付结果。
Operations team would require uniform technology that can be used by different skillset groups easily.
运维团队需要统一的技术,以便不同技能组的人员能轻松使用。
Quality Assurance team would require to keep track of what has been changed in the feature and when it has been changed.
质量保证团队需要追踪功能的变化内容及变化时间。
Clients worry about getting the products to the market as soon as possible.
客户担心能否尽快将产品推向市场。
Need
需求
Developers need to respond to new features/bugs and scale the efforts based on the demand.
开发者需要快速响应新功能/缺陷,并根据需求调整工作量。
Operation team need a central governing tool to monitor different systems and its workloads.
运维团队需要一个中央管理工具来监控不同系统及其工作负载。
Quality Assurance team need to focus on reducing human error risk as much as possible for bug-free product.
质量保证团队需要尽可能降低人为错误风险,确保产品无缺陷。
Clients need to create a competitive advantage for their products in the market.
客户需要为其产品在市场上创造竞争优势。
How does Ansible help?
Ansible 如何帮助?
Helps developers to discover bugs at an earlier phase, and assists them to perform faster deployments in a reliable manner.
帮助开发者在早期阶段发现缺陷,并协助他们以可靠的方式进行更快的部署。
Helps the Operations team to reduce their efforts on shadowing IT people and reduce the times taken for deployment. Also, Ansible assists them to perform automated patching.
帮助运维团队减少对 IT 人员的依赖,缩短部署时间。同时,Ansible 还协助他们执行自动补丁。
Helps QA team to establish automated test cases irrespective of the environments for achieving more reliable and accurate results. Helps to define identical security baselines and helps them reduce the burden of following traditional documentation.
帮助质量保证团队建立与环境无关的自动化测试用例,以取得更可靠、准确的结果。帮助定义一致的安全基线,减轻传统文档的负担。
Helps the Business team to ensure the IT team is on the right track. Also helps them to optimize the time taken for project innovation and strategising. Helps teams to collaborate in an effective manner.
帮助业务团队确保 IT 团队走在正确轨道上。同时,还帮助他们优化项目创新和战略规划的时间,并促进团队高效协作。

668. Can you say something about the DevOps pipeline?

你能谈谈DevOps流水线吗?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: interviewbit, devops, topic-specific, ci-cd)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7258d557c902ba6c9a | 官方: 否 | 付费: 否

答案:

A pipeline, in general, is a set of automated tasks/processes defined and followed by the software engineering team. DevOps pipeline is a pipeline which allows the DevOps engineers and the software developers to efficiently and reliably compile, build and deploy the software code to the production environments in a hassle free manner.

流水线,一般来说,是软件工程团队定义并遵循的一组自动化任务/流程。DevOps流水线是一种允许DevOps工程师和软件开发者以高效、可靠的方式编译、构建并将软件代码部署到生产环境中,且无需繁琐操作的流水线。

Following image shows an example of an effective DevOps pipeline for deployment.

下图展示了一个有效的DevOps部署流水线示例。

The flow is as follows: - Developer works on completing a functionality.

流程如下:- 开发者致力于完成一个功能。
  • Developer deploys his code to the test environment.
  • Testers work on validating the feature. Business team can intervene and provide feedback too.
  • Developers work on the test and business feedback in continuous collaboration manner.
  • The code is then released to the production and validated again.

669. Can you differentiate between continuous testing and automation testing?

你能区分持续测试和自动化测试吗?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: interviewbit, devops, topic-specific, ci-cd)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7258d557c902ba6c9d | 官方: 否 | 付费: 否

答案:

The difference between continuous testing and automation testing is given below:

持续测试和自动化测试的区别如下:
Continuous Testing
持续测试
Automation Testing
自动化测试
This is the process of executing all the automated test cases and is done as part of the delivery process.
这是执行所有自动化测试用例的过程,并作为交付流程的一部分完成。
This is a process that replaces manual testing by helping the developers create test cases that can be run multiple times without manual intervention.
这是一个通过帮助开发者创建无需人工干预即可多次运行的测试用例来替代手动测试的过程。
This process focuses on the business risks associated with releasing software as early as possible.
此过程侧重于与尽早发布软件相关的业务风险。
This process helps the developer to know whether the features they have developed are bug-free or not by having set of pass/fail points as a reference.
此过程通过设置一组通过/失败点作为参考,帮助开发者了解他们开发的功能是否无缺陷。

670. What is Resilience Testing?

什么是韧性测试?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: interviewbit, devops, topic-specific, ci-cd)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7258d557c902ba6ca2 | 官方: 否 | 付费: 否

答案:

Resilience Testing is a software process that tests the application for its behavior under uncontrolled and chaotic scenarios. It also ensures that the data and functionality are not lost after encountering a failure.

韧性测试是一种软件过程,用于测试应用程序在不可控和混乱场景下的行为。它还确保在遇到故障后数据和功能不会丢失。

671. What is CBD in DevOps?

DevOps中的CBD是什么?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: interviewbit, devops, topic-specific, ci-cd)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7258d557c902ba6ca7 | 官方: 否 | 付费: 否

答案:

CBD stands for Component-Based Development. It is a unique way for approaching product development. Here, developers keep looking for existing well-defined, tested, and verified components of code and relieve the developer of developing from scratch.

CBD代表基于组件的开发。这是一种独特的产品开发方法。在这里,开发者持续寻找已定义、测试和验证的现有代码组件,从而减轻开发者从头开发的负担。

672. Can you list down certain KPIs which are used for gauging the success of DevOps?

你能列出一些用于衡量DevOps成功的KPI吗?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: interviewbit, devops, topic-specific, ci-cd)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7258d557c902ba6caa | 官方: 否 | 付费: 否

答案:

KPIs stands for Key Performance Indicators. Some of the popular KPIs used for gauging the success of DevOps are: - Application usage, performance, and traffic

KPI代表关键绩效指标。用于衡量DevOps成功的一些流行KPI包括:- 应用程序使用情况、性能和流量
  • Automated Test Case Pass Percentage.
  • Application Availability
  • Change volume requests
  • Customer tickets
  • Successful deployment frequency and time
  • Error/Failure rates
  • Failed deployments
  • Meantime to detection (MTTD)
  • Meantime to recovery (MTTR)

673. What are the various branching strategies used in the version control system?

版本控制系统中使用的各种分支策略是什么?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: interviewbit, devops, topic-specific, ci-cd)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7258d557c902ba6cae | 官方: 否 | 付费: 否

答案:

Branching is a very important concept in version control systems like git which facilitates team collaboration. Some of the most commonly used branching types are:

分支是像git这样的版本控制系统中非常重要的概念,它促进了团队协作。一些最常用的分支类型包括:

Feature branching - This branching type ensures that a particular feature of a project is maintained in a branch.

功能分支 - 这种分支类型确保项目的特定功能在分支中维护。
  • Once the feature is fully validated, the branch is then merged into the main branch.
    Task branching - Here, each task is maintained in its own branch with the task key being the branch name.

    任务分支——在这里,每个任务维护在各自的分支中,分支名即为任务键。
  • Naming the branch name as a task name makes it easy to identify what task is getting covered in what branch.
    Release branching - This type of branching is done once a set of features meant for a release are completed, they can be cloned into a branch called the release branch. Any further features will not be added to this branch.

    发布分支——当一组面向某个发布的功能完成时,会进行这种类型的分支操作,它们可以被克隆到一个称为发布分支的分支中。任何进一步的功能将不会添加到该分支。
  • Only bug fixes, documentation, and release-related activities are done in a release branch.
  • Once the things are ready, the releases get merged into the main branch and are tagged with the release version number.
  • These changes also need to be pushed into the develop branch which would have progressed with new feature development.
    The branching strategies followed would vary from company to company based on their requirements and strategies.

    所采用的分支策略会根据各公司的需求和战略而有所不同。

674. Can you tell me something about Memcached?

你能告诉我一些关于Memcached的信息吗?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: interviewbit, devops, topic-specific, ci-cd)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7258d557c902ba6cb1 | 官方: 否 | 付费: 否

答案:

Memcached is an open-source and free in-memory object caching system that has high performance and is distributed and generic in nature. It is mainly used for speeding the dynamic web applications by reducing the database load.

Memcached是一个开源且免费的高性能内存对象缓存系统,具有分布式和通用性特点。它主要用于通过减少数据库负载来加速动态Web应用程序。

Memcached can be used in the following cases: - Profile caching in social networking domains like Facebook.

Memcached可用于以下情况:- 在社交网络领域(如Facebook)中进行个人资料缓存。
  • Web page caching in the content aggregation domain.
  • Profile tracking in Ad targeting domain.
  • Session caching in e-commerce, gaming, and entertainment domain.
  • Database query optimization and scaling in the Location-based services domain.
    Benefits of Memcached: - Using Memcached speeds up the application processes by reducing the hits to a database and reducing the I/O access.

    Memcached的优点:- 使用Memcached通过减少对数据库的访问和降低I/O访问来加速应用程序处理过程。
  • It helps in determining what steps are more frequently followed and helps in deciding what to cache.
    Some of the drawbacks of using Memcached are: - In case of failure, the data is lost as it is neither a persistent data store nor a database.

    使用Memcached的一些缺点是:- 在故障情况下,数据会丢失,因为它既不是持久化数据存储,也不是数据库。
  • It is not an application-specific cache.
  • Large objects cannot be cached.

675. Differentiate between Continuous Deployment and Continuous Delivery?

区分持续部署和持续交付?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: interviewbit, devops, topic-specific, ci-cd)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7258d557c902ba6cb4 | 官方: 否 | 付费: 否

答案:

The main difference between Continuous Deployment and Continuous Delivery are given below:

持续部署和持续交付的主要区别如下:
Continuous Deployment
持续部署
Continuous Delivery
持续交付
The deployment to the production environment is fully automated and does not require manual/ human intervention.
部署到生产环境是完全自动化的,不需要人工干预。
In this process, some amount of manual intervention with the manager’s approval is needed for deployment to a production environment.
在此过程中,部署到生产环境需要经理批准的一定程度的人工干预。
Here, the application is run by following the automated set of instructions, and no approvals are needed.
这里,应用程序通过遵循自动化指令集运行,无需任何批准。
Here, the working of the application depends on the decision of the team.
这里,应用程序的运行依赖于团队的决定。

Continuous Deployment and Continuous Delivery

持续部署和持续交付

676. Explain the different phases in DevOps methodology.

解释DevOps方法论中的不同阶段。
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: interviewbit, devops, topic-specific, ci-cd)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7258d557c902ba6cb7 | 官方: 否 | 付费: 否

答案:

DevOps mainly has 6 phases and they are:

DevOps主要有6个阶段,它们是:

Planning:

规划:

This is the first phase of a DevOps lifecycle that involves a thorough understanding of the project to ultimately develop the best product. When done properly, this phase gives various inputs required for the development and operations phases. This phase also helps the organization to gain clarity regarding the project development and management process.

这是DevOps生命周期的第一个阶段,涉及对项目的透彻理解,以最终开发出最佳产品。当正确执行时,此阶段为开发和运维阶段提供各种所需的输入。此阶段还帮助组织在项目开发和管理过程中获得清晰的认识。

Tools like Google Apps, Asana, Microsoft teams, etc are used for this purpose.

为此目的,常使用Google Apps、Asana、Microsoft Teams等工具。

Development:

开发:

The planning phase is followed by the Development phase where the project is built by developing system infrastructure, developing features by writing codes, and then defining test cases and the automation process. Developers store their codes in a code manager called remote repository which aids in team collaboration by allowing view, modification, and versioning of the code.

规划阶段之后是开发阶段,在此阶段通过开发系统基础设施、编写代码实现功能,并定义测试用例和自动化流程来构建项目。开发人员将代码存储在称为远程仓库的代码管理器中,这通过允许查看、修改和版本控制代码来促进团队协作。

Tools like git, IDEs like the eclipse, IntelliJ, and technological stacks like Node, Java, etc are used.

使用像git这样的工具,以及Eclipse、IntelliJ等IDE,和Node、Java等技术栈。

Continuous Integration (CI):

持续集成(CI):

This phase allows for automation of code validation, build, and testing. This ensures that the changes are made properly without development environment errors and also allows the identification of errors at an initial stage.

此阶段实现代码验证、构建和测试的自动化。这确保更改正确完成,没有开发环境错误,并允许在初始阶段识别错误。

Tools like Jenkins, circleCI, etc are used here.

这里使用Jenkins、CircleCI等工具。

Deployment:

部署:

DevOps aids in the deployment automation process by making use of tools and scripts which has the final goal of automating the process by means of feature activation. Here, cloud services can be used as a force that assists in upgrade from finite infrastructure management to cost-optimized management with the potential to infinite resources.

DevOps通过利用工具和脚本促进部署自动化过程,其最终目标是通过功能激活来自动化流程。在这里,云服务可以作为一股力量,帮助从有限的基础设施管理升级到具有无限资源潜力的成本优化管理。

Tools like Microsoft Azure, Amazon Web Services, Heroku, etc are used.

使用Microsoft Azure、Amazon Web Services、Heroku等工具。

Operations:

操作:

This phase usually occurs throughout the lifecycle of the product/software due to the dynamic infrastructural changes. This provides the team with opportunities for increasing the availability, scalability, and effective transformation of the product.

由于基础设施的动态变化,此阶段通常发生在产品/软件的整个生命周期中。这为团队提供了增加产品可用性、可扩展性和有效转型的机会。

Tools like Loggly, BlueJeans, Appdynamics, etc are used commonly in this phase.

在此阶段常用Loggly、BlueJeans、AppDynamics等工具。

Monitoring:

监控:

Monitoring is a permanent phase of DevOps methodology. This phase is used for monitoring and analyzing information to know the status of software applications.

监控是DevOps方法论的永久阶段。此阶段用于监控和分析信息,以了解软件应用的状态。

Tools like Nagios, Splunk, etc are commonly used.

常用Nagios、Splunk等工具。

677. How is DevOps different than the Agile Methodology?

DevOps与敏捷方法论有何不同?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: interviewbit, devops, topic-specific, ci-cd)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7258d557c902ba6cba | 官方: 否 | 付费: 否

答案:

DevOps is a practice or a culture that allows the collaboration of the development team and the operations team to come together for successful product development. This involves making use of practices like continuous development, integration, testing, deployment, and monitoring of the SDLC cycle.

DevOps是一种实践或文化,它允许开发团队和运维团队协作,共同实现成功的产品开发。这涉及到使用持续开发、集成、测试、部署以及监控SDLC周期等实践。

DevOps tries to reduce the gap between the developers and the operations team for the effective launch of the product.

DevOps试图缩小开发人员与运维团队之间的差距,以有效推出产品。

Agile is nothing but a software development methodology that focuses on incremental, iterative, and rapid releases of software features by involving the customer by means of feedback. This methodology removes the gap between the requirement understanding of the clients and the developers.

敏捷仅仅是一种软件开发方法论,它通过客户反馈参与,专注于软件功能的增量式、迭代式和快速发布。这种方法论消除了客户需求理解与开发人员之间的差距。

Agile Methodology

敏捷方法论

678. What can you say about antipatterns of DevOps?

关于DevOps的反模式,你能说些什么?
  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: interviewbit, devops, topic-specific, ci-cd)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a7258d557c902ba6cbd | 官方: 否 | 付费: 否

答案:

A pattern is something that is most commonly followed by large masses of entities. If a pattern is adopted by an organization just because it is being followed by others without gauging the requirements of the organization, then it becomes an anti-pattern. Similarly, there are multiple myths surrounding DevOps which can contribute to antipatterns, they are: - DevOps is a process and not a culture.

模式是一种被大量实体最常遵循的做法。如果一个组织仅仅因为其他人遵循而采用某种模式,而没有评估自身需求,那么它就变成了反模式。同样,围绕DevOps存在多个误解,这些误解可能导致反模式,它们是:- DevOps是一个过程,而非一种文化。
  • DevOps is nothing but Agile.
  • There should be a separate DevOps group.
  • DevOps solves every problem.
  • DevOps equates to developers running a production environment.
  • DevOps follows Development-driven management
  • DevOps does not focus much on development.
  • As we are a unique organization, we don’t follow the masses and hence we won’t implement DevOps.
  • We don’t have the right set of people, hence we cant implement DevOps culture.

679. What is the way to establish communication between docker host and Linux host?

如何在docker主机和Linux主机之间建立通信?
  • 知识点: DevOps/云 (主题: docker, containers, devops;标签: interviewbit, docker, topic-specific, containers, devops)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a9f58d557c902ba875a | 官方: 否 | 付费: 否

答案:

This can be done using networking by identifying the “ipconfig” on the docker host. This command ensures that an ethernet adapter is created as long as the docker is present in the host.

这可以通过网络实现,在docker主机上识别“ipconfig”命令。该命令确保只要主机上存在docker,就会创建一个以太网适配器。

680. What is the purpose of the volume parameter in a docker run command?

docker run命令中的volume参数有什么用途?
  • 知识点: DevOps/云 (主题: docker, containers, devops;标签: interviewbit, docker, topic-specific, containers, devops)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a9f58d557c902ba875d | 官方: 否 | 付费: 否

答案:

  • The syntax of docker run when using the volumes is: docker run -v host_path:docker_path
  • The volume parameter is used for syncing a directory of a container with any of the host directories. Consider the below command as an example: docker run -v /data/app:usr/src/app myappThe above command mounts the directory /data/app in the host to the usr/src/app directory. We can sync the container with the data files from the host without having the need to restart it.
  • This also ensures data security in cases of container deletion. This ensures that even if the container is deleted, the data of the container exists in the volume mapped host location making it the easiest way to store the container data.

681. Where are docker volumes stored in docker?

Docker卷在docker中存储在哪里?
  • 知识点: DevOps/云 (主题: docker, containers, devops;标签: interviewbit, docker, topic-specific, containers, devops)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a9f58d557c902ba8760 | 官方: 否 | 付费: 否

答案:

Volumes are created and managed by Docker and cannot be accessed by non-docker entities. They are stored in Docker host filesystem at /var/lib/docker/volumes/

卷由Docker创建和管理,非docker实体无法访问。它们存储在docker主机的文件系统/var/lib/docker/volumes/中。

682. What does the docker info command do?

docker info命令有什么作用?
  • 知识点: DevOps/云 (主题: docker, containers, devops;标签: interviewbit, docker, topic-specific, containers, devops)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a9f58d557c902ba8763 | 官方: 否 | 付费: 否

答案:

The command gets detailed information about Docker installed on the host system. The information can be like what is the number of containers or images and in what state they are running and hardware specifications like total memory allocated, speed of the processor, kernel version, etc.

该命令获取主机系统上安装的Docker的详细信息。信息可能包括容器或图像的数量及其运行状态,以及硬件规格,如分配的总内存、处理器速度、内核版本等。

683. Can you tell the what are the purposes of up, run, and start commands of docker compose?

你能告诉我docker compose的up、run和start命令的用途吗?
  • 知识点: DevOps/云 / 行为与软技能 (主题: docker, containers, devops;标签: interviewbit, docker, topic-specific, containers, devops)
  • 类型: behavioral | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a9f58d557c902ba8768 | 官方: 否 | 付费: 否

答案:

  • Using the up command for keeping a docker-compose up (ideally at all times), we can start or restart all the networks, services, and drivers associated with the app that are specified in the docker-compose.yml file. Now if we are running the docker-compose up in the “attached” mode then all the logs from the containers would be accessible to us. In case the docker-compose is run in the “detached” mode, then once the containers are started, it just exits and shows no logs.
  • Using the run command, the docker-compose can run one-off or ad-hoc tasks based on the business requirements. Here, the service name has to be provided and the docker starts only that specific service and also the other services to which the target service is dependent (if any).- This command is helpful for testing the containers and also performing tasks such as adding or removing data to the container volumes etc.
  • Using the start command, only those containers can be restarted which were already created and then stopped. This is not useful for creating new containers on its own.

684. What are the basic requirements for the docker to run on any system?

Docker在任何系统上运行的基本要求是什么?
  • 知识点: DevOps/云 (主题: docker, containers, devops;标签: interviewbit, docker, topic-specific, containers, devops)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a9f58d557c902ba876b | 官方: 否 | 付费: 否

答案:

Docker can run on both Windows and Linux platforms. - For the Windows platform, docker atleast needs Windows 10 64bit with 2GB RAM space. For the lower versions, docker can be installed by taking help of the toolbox. Docker can be downloaded from https://docs.docker.com/docker-for-windows/ website.

Docker 可以在 Windows 和 Linux 平台上运行。- 对于 Windows 平台,Docker 至少需要 Windows 10 64 位并具有 2GB RAM 空间。对于较低版本,可以借助工具箱安装 Docker。Docker 可以从 https://docs.docker.com/docker-for-windows/ 网站下载。
  • For Linux platforms, Docker can run on various Linux flavors such as Ubuntu >=12.04, Fedora >=19, RHEL >=6.5, CentOS >=6 etc.

685. Can you tell the approach to login to the docker registry?

你能告诉我登录 Docker 注册表的方法吗?
  • 知识点: DevOps/云 (主题: docker, containers, devops;标签: interviewbit, docker, topic-specific, containers, devops)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a9f58d557c902ba876e | 官方: 否 | 付费: 否

答案:

Using the docker login command credentials to log in to their own cloud repositories can be entered and accessed.

使用 docker login 命令凭据登录他们自己的云仓库可以输入并访问。

686. List the most commonly used instructions in Dockerfile?

列出Dockerfile中最常用的指令?
  • 知识点: DevOps/云 (主题: docker, containers, devops;标签: interviewbit, docker, topic-specific, containers, devops)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a9f58d557c902ba8772 | 官方: 否 | 付费: 否

答案:

  • FROM: This is used to set the base image for upcoming instructions. A docker file is considered to be valid if it starts with the FROM instruction.
  • LABEL: This is used for the image organization based on projects, modules, or licensing. It also helps in automation as we specify a key-value pair while defining a label that can be later accessed and handled programmatically.
  • RUN: This command is used to execute instructions following it on the top of the current image in a new layer. Note that with each RUN command execution, we add layers on top of the image and then use that in subsequent steps.
  • CMD: This command is used to provide default values of an executing container. In cases of multiple CMD commands the last instruction would be considered.

687. Can you differentiate between Daemon Logging and Container Logging?

你能区分守护进程日志和容器日志吗?
  • 知识点: DevOps/云 (主题: docker, containers, devops;标签: interviewbit, docker, topic-specific, containers, devops)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a9f58d557c902ba8775 | 官方: 否 | 付费: 否

答案:

  • In docker, logging is supported at 2 levels and they are logging at the Daemon level or logging at the Container level.
  • Daemon Level: This kind of logging has four levels- Debug, Info, Error, and Fatal.- Debug has all the data that happened during the execution of the daemon process.- Info carries all the information along with the error information during the execution of the daemon process.- Errors have those errors that occurred during the execution of the daemon process.- Fatal has the fatal errors that occurred during the execution.
  • Container Level:- Container level logging can be done using the command: sudo docker run –it /bin/bash- In order to check for the container level logs, we can run the command: sudo docker logs

688. Can you tell the differences between a docker Image and Layer?

你能告诉我 Docker 镜像和层之间的区别吗?
  • 知识点: DevOps/云 (主题: docker, containers, devops;标签: interviewbit, docker, topic-specific, containers, devops)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a9f58d557c902ba8779 | 官方: 否 | 付费: 否

答案:

Image: This is built up from a series of read-only layers of instructions. An image corresponds to the docker container and is used for speedy operation due to the caching mechanism of each step. Layer: Each layer corresponds to an instruction of the image’s Dockerfile. In simple words, the layer is also an image but it is the image of the instructions run. Consider the example Dockerfile below. FROM ubuntu:18.04 COPY . /myapp RUN make /myapp CMD python /myapp/app.py Importantly, each layer is only a set of differences from the layer before it. - The result of building this docker file is an image. Whereas the instructions present in this file add the layers to the image. The layers can be thought of as intermediate images. In the example above, there are 4 instructions, hence 4 layers are added to the resultant image.

镜像:这是由一系列只读的指令层构建而成的。镜像对应于 Docker 容器,并由于每一步的缓存机制而用于快速操作。层:每一层对应于镜像 Dockerfile 中的一条指令。简单来说,层也是一个镜像,但它是所运行指令的镜像。考虑下面的示例 Dockerfile:FROM ubuntu:18.04 COPY . /myapp RUN make /myapp CMD python /myapp/app.py 重要的是,每一层只是与前一层的差异集合。- 构建此 Docker 文件的结果是一个镜像。而此文件中存在的指令向镜像添加了层。这些层可以被视为中间镜像。在上面的示例中,有 4 条指令,因此向结果镜像添加了 4 层。

689. What is the best way of deleting a container?

删除容器的最佳方法是什么?
  • 知识点: DevOps/云 (主题: docker, containers, devops;标签: interviewbit, docker, topic-specific, containers, devops)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a9f58d557c902ba8783 | 官方: 否 | 付费: 否

答案:

We need to follow the following two steps for deleting a container: - docker stop - docker rm

我们需要遵循以下两个步骤来删除容器:- docker stop - docker rm

690. Can you tell the difference between CMD and ENTRYPOINT?

你能告诉我 CMD 和 ENTRYPOINT 之间的区别吗?
  • 知识点: DevOps/云 (主题: docker, containers, devops;标签: interviewbit, docker, topic-specific, containers, devops)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a9f58d557c902ba8786 | 官方: 否 | 付费: 否

答案:

  • CMD command provides executable defaults for an executing container. In case the executable has to be omitted then the usage of ENTRYPOINT instruction along with the JSON array format has to be incorporated.
  • ENTRYPOINT specifies that the instruction within it will always be run when the container starts. This command provides an option to configure the parameters and the executables. If the DockerFile does not have this command, then it would still get inherited from the base image mentioned in the FROM instruction.- The most commonly used ENTRYPOINT is /bin/sh or /bin/bash for most of the base images.
  • As part of good practices, every DockerFile should have at least one of these two commands.

691. Differentiate between virtualization and containerization.

区分虚拟化和容器化。
  • 知识点: DevOps/云 (主题: docker, containers, devops;标签: interviewbit, docker, topic-specific, containers, devops)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a9f58d557c902ba878a | 官方: 否 | 付费: 否

答案:

The question indirectly translates to explaining the difference between virtual machines and Docker containers.

这个问题间接地转化为解释虚拟机与 Docker 容器之间的区别。
Virtualization
虚拟化
Containerization
容器化
This helps developers to run and host multiple OS on the hardware of a single physical server.
这帮助开发者在单个物理服务器的硬件上运行和托管多个操作系统。
This helps developers to deploy multiple applications using the same operating system on a single virtual machine or server.
这帮助开发者在单个虚拟机或服务器上使用相同的操作系统部署多个应用程序。
Hypervisors provide overall virtual machines to the guest operating systems.
虚拟机监控程序为客户端操作系统提供整体虚拟机。
Containers ensure isolated environment/ user spaces are provided for running the applications. Any changes done within the container do not reflect on the host or other containers of the same host.
容器确保为运行应用程序提供隔离的环境/用户空间。容器内所做的任何更改不会反映到主机或同一主机的其他容器上。
These virtual machines form an abstraction of the system hardware layer this means that each virtual machine on the host acts like a physical machine.
这些虚拟机形成了系统硬件层的抽象,这意味着主机上的每个虚拟机都像一台物理机器一样运行。
Containers form abstraction of the application layer which means that each container constitutes a different application.
容器形成了应用程序层的抽象,这意味着每个容器构成一个不同的应用程序。

692. Differentiate between COPY and ADD commands that are used in a Dockerfile?

区分 Dockerfile 中使用的 COPY 和 ADD 命令?
  • 知识点: DevOps/云 (主题: docker, containers, devops;标签: interviewbit, docker, topic-specific, containers, devops)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a9f58d557c902ba878d | 官方: 否 | 付费: 否

答案:

Both the commands have similar functionality, but COPY is more preferred because of its higher transparency level than that of ADD . COPY provides just the basic support of copying local files into the container whereas ADD provides additional features like remote URL and tar extraction support.

这两个命令具有类似的功能,但 COPY 更受欢迎,因为其透明度高于 ADD。COPY 仅提供将本地文件复制到容器中的基本支持,而 ADD 提供额外功能,如远程 URL 和 tar 提取支持。

693. Can a container restart by itself?

容器能自行重启吗?
  • 知识点: DevOps/云 / 行为与软技能 (主题: docker, containers, devops;标签: interviewbit, docker, topic-specific, containers, devops)
  • 类型: behavioral | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37a9f58d557c902ba8790 | 官方: 否 | 付费: 否

答案:

  • Yes, it is possible only while using certain docker-defined policies while using the docker run command. Following are the available policies:1. Off: In this, the container won’t be restarted in case it's stopped or it fails.2. On-failure: Here, the container restarts by itself only when it experiences failures not associated with the user.3. Unless-stopped: Using this policy, ensures that a container can restart only when the command is executed to stop it by the user.4. Always: Irrespective of the failure or stopping, the container always gets restarted in this type of policy.These policies can be used as:docker run -dit — restart [restart-policy-value] [container_name]

694. What has to be run to squash multiple commits (last N) into a single commit?

要压缩多个提交(最后 N 个)为单个提交,需要运行什么?
  • 知识点: DevOps/云 (主题: git, version-control;标签: interviewbit, git, topic-specific, version-control)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37aff58d557c902babff6 | 官方: 否 | 付费: 否

答案:

Squashing multiple commits to a single one overwrites the history which is why it is recommended to be done using full caution. This step can be done by running the command: git rebase -i HEAD~{{N}} where {{N}} represents the number of commits needed to be squashed.

将多个提交压缩为一个会覆盖历史记录,因此建议极其谨慎地执行此操作。此步骤可通过运行命令:git rebase -i HEAD~{{N}} 完成,其中 {{N}} 表示需要压缩的提交数量。

695. How would you recover a branch that has already pushed changes in the central repository but has been accidentally deleted from every team member’s local machines?

如果一个分支已推送到中央仓库,但被意外地从所有团队成员本地机器上删除,你会如何恢复该分支?
  • 知识点: DevOps/云 (主题: git, version-control;标签: interviewbit, git, topic-specific, version-control)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37aff58d557c902babff9 | 官方: 否 | 付费: 否

答案:

We can recover this by checking out the latest commit of this branch in the reflog and then checking it out as a new branch.

我们可以通过在该分支的 reflog 中检出最新提交,然后将其作为新分支检出,从而恢复该分支。

696. Can you tell something about git reflog?

你能介绍一下 git reflog 吗?
  • 知识点: DevOps/云 (主题: git, version-control;标签: interviewbit, git, topic-specific, version-control)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37aff58d557c902babffc | 官方: 否 | 付费: 否

答案:

This command tracks every single change made in the repository references (that can be branches or tags) and also maintains the branches/tags log history that was either created locally or checked out. Reference logs such as the commit snapshot of when the branch was created or cloned, checked-out, renamed, or any commits made on the branch are maintained by Git and listed by the ‘reflog’ command. - This recovery of the branch is only possible when the branch was either created locally or checked-out from a remote repository in your local repository for Git to store its reference history logs.

此命令跟踪仓库引用(可以是分支或标签)中发生的每一次更改,并维护分支/标签的日志历史(无论是本地创建还是检出的)。诸如分支创建或克隆、检出、重命名时点的提交快照,或分支上的任何提交等引用日志,均由 Git 维护,并通过‘reflog’命令列出。- 仅当分支在本地仓库中是本地创建或从远程仓库检出时,Git 才会存储其引用历史日志,从而实现此分支恢复。
  • This command should be executed in the repository that had the lost branch.

697. What consists of a commit object?

一个提交对象由哪些内容组成?
  • 知识点: DevOps/云 (主题: git, version-control;标签: interviewbit, git, topic-specific, version-control)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37aff58d557c902babfff | 官方: 否 | 付费: 否

答案:

A commit object consists of the following components: - A set of files that represents the state of a project at a given point in time.

提交对象由以下组件组成:- 一组文件,代表项目在给定时间点的状态。
  • Reference to parent commit objects.
  • A 40 character string termed as SHA-1 name uniquely identifies the commit object.

698. Explain the levels in git config and how can you configure values using them?

解释 git config 中的级别,以及如何使用它们配置值?
  • 知识点: DevOps/云 (主题: git, version-control;标签: interviewbit, git, topic-specific, version-control)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37aff58d557c902bac002 | 官方: 否 | 付费: 否

答案:

  • In order to make git work, it uses a set of configurations that are pre-defined by default by means of configuration files (or config files). We can change the default behavior of git by just modifying these files which are basically text files. In order to do this, it is important to understand how git identifies these files. It does so by following the below steps:- Firstly, git searches for the config values in the system-wide gitconfig file stored in >/etc/gitconfig file that has settings defined and applied to every user of the system and all their repos. - In case you want git to search from this particular file and read/write on it, we can pass the option --system to git config command.- Next, git searches for the ~/.gitconfig file or ~/.config/git/config that has the scope specific to the user. - Git can be made to read/ write from this file specifically bypassing --global to the git config command.- Lastly, git searches for the config values in the git directory of the local repository that we are currently working on. - These config values are specific to that particular repository alone and can be accessed by passing --local to the git config command.This is the default config file that gets accessed and modified upon in case we do not specify any levels.

699. What is a detached HEAD and what causes this and how to avoid this?

什么是分离的 HEAD?导致其出现的原因是什么?如何避免?
  • 知识点: DevOps/云 (主题: git, version-control;标签: interviewbit, git, topic-specific, version-control)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37aff58d557c902bac005 | 官方: 否 | 付费: 否

答案:

Detached HEAD indicates that the currently checked-out repository is not a local branch. This can be caused by the following scenarios: - When a branch is a read-only branch and we try to create a commit to that branch, then the commits can be termed as “free-floating” commits not connected to any branch. They would be in a detached state.

分离的 HEAD 表示当前检出的仓库不是本地分支。这可能是由以下场景引起的:- 当分支是只读分支,我们尝试向该分支创建提交时,这些提交可称为“自由浮动”提交,不连接到任何分支。它们将处于分离状态。
  • When we checkout a tag or a specific commit and then we try to perform a new commit, then again the commits would not be connected to any branch. When we now try to checkout a branch, these new commits would be automatically placed at the top.In order to ensure that detached state doesn't happen, =instead of checking out commit/tag, we can create a branch emanating from that commit and then we can switch to that newly created branch by using the command: git checkout -b >. This ensures that a new branch is checkout out and not a commit/tag thereby ensuring that a detached state wouldn't happen.

700. What does git annotate command do?

git annotate 命令的作用是什么?
  • 知识点: DevOps/云 (主题: git, version-control;标签: interviewbit, git, topic-specific, version-control)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37aff58d557c902bac008 | 官方: 否 | 付费: 否

答案:

  • This command annotates each line within the given file with information from the commit which introduced that change. This command can also optionally annotate from a given revision.
  • Syntax: git annotate [] []
  • You can get to learn more about this command from the official git documentation here.

701. What is the difference between git stash apply vs git stash pop command?

git stash apply 和 git stash pop 命令有什么区别?
  • 知识点: DevOps/云 (主题: git, version-control;标签: interviewbit, git, topic-specific, version-control)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37aff58d557c902bac00b | 官方: 否 | 付费: 否

答案:

  • git stash pop command throws away the specified stash (topmost stash by default) after applying it.
  • git stash apply command leaves the stash in the stash list for future reuse. In case we wanted to remove it from the list, we can use the git stash drop command.

git stash pop = git stash apply + git stash drop

git stash pop = git stash apply + git stash drop

702. What do the git diff and git status commands do?

git diff 和 git status 命令分别做什么?
  • 知识点: DevOps/云 (主题: git, version-control;标签: interviewbit, git, topic-specific, version-control)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37aff58d557c902bac00e | 官方: 否 | 付费: 否

答案:

git diffgit status
This shows the changes between commits, working trees, etc.
此命令显示提交之间、工作树等之间的更改。
This shows the difference between the working directory and index that is essential in understanding git in depth.
此命令显示工作目录与索引之间的差异,这对于深入理解 git 至关重要。
- git diff works in a similar fashion to git status with the only difference of showing the differences between commits and also between the working directory and index.
- git diff 的工作方式与 git status 类似,唯一区别在于显示提交之间的差异以及工作目录与索引之间的差异。

703. Why is it considered to be easy to work on Git?

为什么认为在 Git 上工作很容易?
  • 知识点: DevOps/云 (主题: git, version-control;标签: interviewbit, git, topic-specific, version-control)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37aff58d557c902bac011 | 官方: 否 | 付费: 否

答案:

With the help of git, developers have gained many advantages in terms of performing the development process faster and in a more efficient manner. Some of the main features of git which has made it easier to work are: - Branching Capabilities:- Due to its sophisticated branching capabilities, developers can easily work on multiple branches for the different features of the project.- It also has an easier merge option along with an efficient work-flow feature diagram for tracking it.

借助 git,开发人员在更快、更高效地执行开发过程中获得了许多优势。git 的一些主要特性使其更易于工作,包括:- 分支能力:- 由于其复杂的分支能力,开发人员可以轻松地为项目的不同功能在多个分支上工作。- 它还具有更简单的合并选项以及用于跟踪的高效工作流功能图。
  • Distributed manner of development:- Git is a distributed system and due to this nature, it became easier to trace and locate data if it's lost from the main server.- In this system, the developer gets a repository file that is present on the server. Along with this file, a copy of this is also stored in the developer’s system which is called a local repository.- Due to this, the scalability of the project gets drastically improved.
  • Pull requests feature:- This feature helps in easier interaction amongst the developers of a team to coordinate merge-operations.- It keeps a proper track of the changes done by developers to the code.
  • Effective release cycle:- Due to the presence of a wide variety of features, git helps to increase the speed of the release cycle and helps to improve the project workflow in an efficient manner.

704. How will you create a git repository?

你将如何创建一个 git 仓库?
  • 知识点: DevOps/云 (主题: git, version-control;标签: interviewbit, git, topic-specific, version-control)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37aff58d557c902bac014 | 官方: 否 | 付费: 否

答案:

  • Have git installed in your system.
  • Then in order to create a git repository, create a folder for the project and then run git init.
  • Doing this will create a .git file in the project folder which indicates that the repository has been created.

705. Tell me something about git stash?

告诉我一些关于 git stash 的内容?
  • 知识点: DevOps/云 (主题: git, version-control;标签: interviewbit, git, topic-specific, version-control)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37aff58d557c902bac017 | 官方: 否 | 付费: 否

答案:

Git stash can be used in cases where we need to switch in between branches and at the same time not wanting to lose edits in the current branch. Running the git stash command basically pushes the current working directory state and index to the stack for future use and thereby providing a clean working directory for other tasks.

Git stash 可用于我们需要在分支之间切换且同时不想丢失当前分支编辑内容的情况。运行 git stash 命令基本上会将当前工作目录状态和索引推送到堆栈中以供将来使用,从而为其他任务提供干净的工作目录。

706. What is the command used to delete a branch?

用于删除分支的命令是什么?
  • 知识点: DevOps/云 (主题: git, version-control;标签: interviewbit, git, topic-specific, version-control)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37aff58d557c902bac01a | 官方: 否 | 付费: 否

答案:

  • To delete a branch we can simply use the command git branch –d [head].
  • To delete a branch locally, we can simply run the command: git branch -d
  • To delete a branch remotely, run the command: git push origin --delete
  • Deleting a branching scenario occurs for multiple reasons. One such reason is to get rid of the feature branches once it has been merged into the development branch.

707. What differentiates between the commands git remote and git clone?

git remote 和 git clone 命令之间有什么区别?
  • 知识点: DevOps/云 (主题: git, version-control;标签: interviewbit, git, topic-specific, version-control)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37aff58d557c902bac01d | 官方: 否 | 付费: 否

答案:

git remote command creates an entry in git config that specifies a name for a particular URL. Whereas git clone creates a new git repository by copying an existing one located at the URL.

git remote 命令在 git config 中创建一个条目,为特定 URL 指定一个名称。而 git clone 通过复制 URL 处已有的现有仓库来创建一个新的 git 仓库。

708. What does git stash apply command do?

git stash apply 命令的作用是什么?
  • 知识点: DevOps/云 (主题: git, version-control;标签: interviewbit, git, topic-specific, version-control)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37aff58d557c902bac020 | 官方: 否 | 付费: 否

答案:

  • git stash apply command is used for bringing the works back to the working directory from the stack where the changes were stashed using git stash command.
  • This helps the developers to resume their work where they had last left their work before switching to other branches.

709. Differentiate between git pull and git fetch.

区分 git pull 和 git fetch。
  • 知识点: DevOps/云 (主题: git, version-control;标签: interviewbit, git, topic-specific, version-control)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37aff58d557c902bac023 | 官方: 否 | 付费: 否

答案:

git pullgit fetch
This command pulls new changes from the currently working branch located in the remote central repository.
此命令从远程中央仓库中当前工作的分支拉取新的更改。
This command is also used for a similar purpose but it follows a two step process: 1. Pulls all commits and changes from desired branch and stores them in a new branch of the local repository. current2. For changes to be reflected in the current / target branch, git fetch should be followed by git merge command.
此命令也用于类似目的,但它遵循两步过程:1. 从所需分支拉取所有提交和更改,并将它们存储到本地仓库的新分支中。2. 要使更改反映到当前 / 目标分支,git fetch 后应跟 git merge 命令。

git pull = git fetch + git merge

git pull = git fetch + git merge

710. Can you give differences between “pull request” and “branch”?

你能给出“拉取请求”和“分支”之间的区别吗?
  • 知识点: DevOps/云 (主题: git, version-control;标签: interviewbit, git, topic-specific, version-control)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37aff58d557c902bac026 | 官方: 否 | 付费: 否

答案:

pull request
拉取请求
branch
分支
This process is done when there is a need to put a developer’s change into another person’s code branch.
当需要将开发人员的更改放入另一个人的代码分支时,会执行此过程。
A branch is nothing but a separate version of the code.
分支只不过是代码的一个单独版本。

711. Why do we not call git “pull request” as “push request”?

为什么我们不称 git “拉取请求”为“推送请求”?
  • 知识点: DevOps/云 (主题: git, version-control;标签: interviewbit, git, topic-specific, version-control)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37aff58d557c902bac029 | 官方: 否 | 付费: 否

答案:

  • “Push request” is termed so because it is done when the target repository requests us to push our changes to it.
  • “Pull request” is named as such due to the fact that the repo requests the target repository to grab (or pull) the changes from it.

712. Can you tell the difference between Git and GitHub?

你能告诉我 Git 和 GitHub 之间的区别吗?
  • 知识点: DevOps/云 (主题: git, version-control;标签: interviewbit, git, topic-specific, version-control)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37aff58d557c902bac02c | 官方: 否 | 付费: 否

答案:

GitGitHub
This is a distributed version control system installed on local machines which allow developers to keep track of commit histories and supports collaborative work.
这是一个安装在本地机器上的分布式版本控制系统,允许开发人员跟踪提交历史并支持协作工作。
This is a cloud-based source code repository developed by using git.
这是一个使用 git 开发的基于云的源代码仓库。
This is maintained by “The Linux Foundation”.
由“Linux 基金会”维护。
This was acquired by “Microsoft”
被“微软”收购。
SVN, Mercurial, etc are the competitors
SVN、Mercurial 等是竞争者。
GitLab, Atlassian BitBucket, etc are the competitors.
GitLab、Atlassian BitBucket 等是竞争者。
- GitHub provides a variety of services like forking, user management, etc along with providing a central repository for collaborative work.
- GitHub 提供各种服务,如分叉、用户管理等,同时为协作工作提供中央仓库。

713. 解释 CI/CD(持续集成/持续交付)流水线(Pipeline)的核心概念和在GitLab CI/CD(GitLab持续集成/持续交付)中的实践。

  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: gitlab, generated)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • 公司: GitLab
  • id: 69b37b0958d557c902bac661 | 官方: 是 | 付费: 是

答案:

思路分析从持续集成(Continuous Integration,CI)、持续交付(Continuous Delivery,CD)、持续部署(Continuous Deployment,CD)三个层次递进说明。
参考答案CI: 代码合并自动触发构建(Build)和测试(Testing)。CD: 自动化部署(Deployment)到各环境。关键实践:自动化测试(Automated Testing)、代码审查(Code Review)、蓝绿部署(Blue-Green Deployment)/金丝雀部署(Canary Deployment)、基础设施即代码(Infrastructure as Code,IaC)。
评分要点- CI/CD(Continuous Integration/Continuous Deployment)概念理解

  • 自动化测试策略
  • 部署策略选择
    常见追问- 如何实现零停机部署(Zero-Downtime Deployment)?
  • 如何处理回滚?

714. 设计 GitLab DevOps Platform(GitLab DevOps平台)的推荐系统(Recommendation System),支持实时个性化推荐(Real-Time Personalized Recommendation)。

  • 知识点: DevOps/云 / 数据工程与数据科学/AI / 系统设计/架构 / UI/UX 设计 (主题: system-design, machine-learning;标签: gitlab, generated)
  • 类型: technical | 难度: medium | 子类型: system-design
  • 分类: fullstack
  • 公司: GitLab
  • id: 69b37b1258d557c902bacb0c | 官方: 是 | 付费: 是

答案:

思路分析推荐系统(Recommender System)分为召回(Recall)、粗排(Coarse Ranking)、精排(Fine Ranking)、重排(Re-ranking)四个阶段。需要离线(Offline)和在线(Online)两条流水线(Pipeline)。
参考答案召回(Recall):协同过滤(Collaborative Filtering) + 内容匹配(Content Matching) + 向量检索(Vector Retrieval)。排序(Ranking):特征工程(Feature Engineering) + 深度学习模型(Deep Learning Model)(如 DeepFM)。实时层(Real-time Layer):用户最近行为的实时特征更新(Real-time Feature Update)。
评分要点- 推荐系统(Recommender System)整体架构(Architecture)

  • 冷启动问题处理
  • A/B 测试框架
  • 实时性和准确性的权衡
    常见追问- 如何解决推荐系统(Recommender System)的「信息茧房(Information Cocoon)」问题?
  • 如何评估推荐效果?

715. 解释 CI/CD(持续集成/持续交付)流水线(Pipeline)的核心概念和在HubSpot CRM(HubSpot客户关系管理)中的实践。

  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: hubspot, generated)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • 公司: HubSpot
  • id: 69b37b5158d557c902baefed | 官方: 是 | 付费: 是

答案:

思路分析从持续集成(Continuous Integration,CI)、持续交付(Continuous Delivery,CD)、持续部署(Continuous Deployment,CD)三个层次递进说明。
参考答案CI: 代码合并自动触发构建(Build)和测试(Testing)。CD: 自动化部署(Deployment)到各环境。关键实践:自动化测试(Automated Testing)、代码审查(Code Review)、蓝绿部署(Blue-Green Deployment)/金丝雀部署(Canary Deployment)、基础设施即代码(Infrastructure as Code,IaC)。
评分要点- CI/CD(Continuous Integration/Continuous Deployment)概念理解

  • 自动化测试策略
  • 部署策略选择
    常见追问- 如何实现零停机部署(Zero-Downtime Deployment)?
  • 如何处理回滚?

716. 解释 CI/CD(持续集成/持续交付)流水线(Pipeline)的核心概念和在Instacart Marketplace(Instacart市场)中的实践。

  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: instacart, generated)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • 公司: Instacart
  • id: 69b37b6158d557c902baf87f | 官方: 是 | 付费: 是

答案:

思路分析从持续集成(Continuous Integration,CI)、持续交付(Continuous Delivery,CD)、持续部署(Continuous Deployment,CD)三个层次递进说明。
参考答案CI: 代码合并自动触发构建(Build)和测试(Testing)。CD: 自动化部署(Deployment)到各环境。关键实践:自动化测试(Automated Testing)、代码审查(Code Review)、蓝绿部署(Blue-Green Deployment)/金丝雀部署(Canary Deployment)、基础设施即代码(Infrastructure as Code,IaC)。
评分要点- CI/CD(Continuous Integration/Continuous Deployment)概念理解

  • 自动化测试策略
  • 部署策略选择
    常见追问- 如何实现零停机部署(Zero-Downtime Deployment)?
  • 如何处理回滚?

717. What is Ingress Default Backend?

什么是Ingress默认后端?
  • 知识点: DevOps/云 (主题: kubernetes, containers, devops;标签: interviewbit, kubernetes, topic-specific, containers, devops)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37b8358d557c902bb155c | 官方: 否 | 付费: 否

答案:

It specifies what to do with an incoming request to the Kubernetes cluster that isn't mapped to any backend i.e what to do when no rules being defined for the incoming HTTP request If the default backend service is not defined, it's recommended to define it so that users still see some kind of message instead of an unclear error.

它指定了对发往Kubernetes集群但未映射到任何后端(即未为传入HTTP请求定义规则)的请求应如何处理。如果未定义默认后端服务,建议定义它,以便用户能看到某种消息,而不是不明确的错误。

718. What is GKE?

什么是GKE?
  • 知识点: DevOps/云 (主题: kubernetes, containers, devops;标签: interviewbit, kubernetes, topic-specific, containers, devops)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37b8358d557c902bb1560 | 官方: 否 | 付费: 否

答案:

GKE is Google Kubernetes Engine that is used for managing and orchestrating systems for Docker containers. With the help of Google Public Cloud, we can also orchestrate the container cluster.

GKE是Google Kubernetes Engine,用于管理和编排Docker容器的系统。借助Google公共云,我们还可以编排容器集群。

719. What is the purpose of operators?

操作符(Operator)的目的是什么?
  • 知识点: DevOps/云 (主题: kubernetes, containers, devops;标签: interviewbit, kubernetes, topic-specific, containers, devops)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37b8358d557c902bb1563 | 官方: 否 | 付费: 否

答案:

As compared to stateless applications, achieving desired status changes and upgrades are handled the same way for every replica, managing Kubernetes applications is more challenging. The stateful nature of stateful applications may require different handling for upgrading each replica, as each replica might be in a different state. Therefore, managing stateful applications often requires a human operator. This is supposed to be assisted by Kubernetes Operator. Moreover, this will pave the way for a standard process to be automated across several Kubernetes clusters.

与无状态应用程序相比,管理Kubernetes应用程序更具挑战性,因为对于每个副本,实现所需状态更改和升级的处理方式相同。有状态应用程序的有状态性质可能需要对每个副本进行不同的升级处理,因为每个副本可能处于不同状态。因此,管理有状态应用程序通常需要人工操作员。这应由Kubernetes操作符辅助完成。此外,这将为跨多个Kubernetes集群自动化标准流程铺平道路。

720. What is an Operator?

什么是操作符?
  • 知识点: DevOps/云 (主题: kubernetes, containers, devops;标签: interviewbit, kubernetes, topic-specific, containers, devops)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37b8358d557c902bb1566 | 官方: 否 | 付费: 否

答案:

As an extension to K8, the operator provides the capability of managing applications and their components using custom resources. Operators generally comply with all the principles relating to Kubernetes, especially those relating to the control loops.

作为K8的扩展,操作符提供使用自定义资源管理应用程序及其组件的能力。操作符通常遵守与Kubernetes相关的所有原则,特别是与控制循环相关的原则。

721. What service and namespace are referred to in the following file?

以下文件中引用的服务和命名空间是什么?
  • 知识点: DevOps/云 (主题: kubernetes, containers, devops;标签: interviewbit, kubernetes, topic-specific, containers, devops)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37b8358d557c902bb1569 | 官方: 否 | 付费: 否

答案:

apiVersion: v1

apiVersion: v1
kind: ConfigMap
kind: ConfigMap
metadata:
metadata:
name: some-configmap
name: some-configmap
data:
data:
some_url: silicon.chip
some_url: silicon.chip
It is clear from the above file that the service “silicon” is a reference to a namespace called “chip”.
从上述文件可以清楚地看出,服务“silicon”是对名为“chip”的命名空间的引用。

722. Why should namespaces be used? How does using the default namespace cause problems?

为什么应该使用命名空间?使用默认命名空间会引发哪些问题?
  • 知识点: DevOps/云 (主题: kubernetes, containers, devops;标签: interviewbit, kubernetes, topic-specific, containers, devops)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37b8358d557c902bb156c | 官方: 否 | 付费: 否

答案:

Over the course of time, using the default namespace alone is proving to be difficult, since you are unable to get a good overview of all the applications you can manage within the cluster as a whole. The namespaces allow applications to be organized into groups that make sense, such as a namespace for all monitoring applications and another for all security applications.

随着时间的推移,仅使用默认命名空间已被证明是困难的,因为你无法全面了解整个集群中所有可以管理的应用程序。命名空间允许将应用程序组织成有意义的组,例如一个用于所有监控应用程序的命名空间,另一个用于所有安全应用程序的命名空间。

Additionally, namespaces can be used for managing Blue/Green environments, in which each namespace contains its own version of an app as well as sharing resources with other namespaces (such as logging or monitoring). It is also possible to have one cluster with multiple teams using namespaces. The use of the same cluster by multiple teams may lead to conflict. Suppose they end up creating an app that has the same name, this means that one team will override the app created by the other team as Kubernetes prohibits two apps with the same name (within the same namespace).

此外,命名空间可用于管理蓝绿环境,其中每个命名空间包含应用自身的一个版本,并与其他命名空间共享资源(如日志或监控)。也可以让多个团队使用同一个集群,通过命名空间进行划分。多个团队使用同一个集群可能会导致冲突。假设他们最终创建了同名的应用程序,这意味着一个团队将覆盖另一个团队创建的应用程序,因为 Kubernetes 禁止在同一命名空间内存在两个同名应用。

723. How should TLS be configured with Ingress?

如何为 Ingress 配置 TLS?
  • 知识点: DevOps/云 (主题: kubernetes, containers, devops;标签: interviewbit, kubernetes, topic-specific, containers, devops)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37b8358d557c902bb156f | 官方: 否 | 付费: 否

答案:

Add tls and secretName entries.

添加 tls 和 secretName 条目。

spec:

spec:
tls:
tls:
  • hosts:
  • some_app.com
    secretName: someapp-secret-tls

    secretName: someapp-secret-tls

724. Complete the following configurationspec file to make it Ingress

完成以下配置 spec 文件,使其成为 Ingress 配置。
  • 知识点: DevOps/云 (主题: kubernetes, containers, devops;标签: interviewbit, kubernetes, topic-specific, containers, devops)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37b8358d557c902bb1572 | 官方: 否 | 付费: 否

答案:

metadata:

metadata:
name: someapp-ingress
name: someapp-ingress
spec:
spec:
Explanation -
解释 -

One of the several ways to answer this question.

这是一种回答该问题的几种方式之一。

apiVersion: networking.k8s.io/v1

apiVersion: networking.k8s.io/v1
kind: Ingress
kind: Ingress
metadata:
metadata:
name: someapp-ingress
name: someapp-ingress
spec:
spec:
rules:
规则:
  • host: my.host
    http:

    http:
    paths:
    路径:
  • backend:
    serviceName: someapp-internal-service

    服务名称:someapp-internal-service
    servicePort: 8080
    servicePort: 8080

725. How to turn the service defined below in the spec into an external one?

如何将下面规格中定义的服务转换为外部服务?
  • 知识点: DevOps/云 (主题: kubernetes, containers, devops;标签: interviewbit, kubernetes, topic-specific, containers, devops)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37b8358d557c902bb1575 | 官方: 否 | 付费: 否

答案:

spec:

spec:
selector:
选择器:
app: some-app
应用:某些应用
ports:
ports:
  • protocol: UDP
    port: 8080

    端口:8080
    targetPort: 8080
    targetPort: 8080
    Explanation -
    解释 -

Adding type: LoadBalancer and nodePort as follows:

添加类型:LoadBalancer 和 nodePort,如下所示:

spec:

spec:
selector:
选择器:
app: some-app
应用:某些应用
type: LoadBalancer
类型:负载均衡器
ports:
ports:
  • protocol: UDP
    port: 8080

    端口:8080
    targetPort: 8080
    targetPort: 8080
    nodePort: 32412
    节点端口:32412

726. 解释 CI/CD(持续集成/持续交付)流水线(Pipeline)的核心概念和在NAB App(NAB应用)中的实践。

  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: nab, generated)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • 公司: Nab
  • id: 69b37bf558d557c902bb5f6d | 官方: 是 | 付费: 是

答案:

思路分析从持续集成(Continuous Integration,CI)、持续交付(Continuous Delivery,CD)、持续部署(Continuous Deployment,CD)三个层次递进说明。
参考答案CI: 代码合并自动触发构建(Build)和测试(Testing)。CD: 自动化部署(Deployment)到各环境。关键实践:自动化测试(Automated Testing)、代码审查(Code Review)、蓝绿部署(Blue-Green Deployment)/金丝雀部署(Canary Deployment)、基础设施即代码(Infrastructure as Code,IaC)。
评分要点- CI/CD(Continuous Integration/Continuous Deployment)概念理解

  • 自动化测试策略
  • 部署策略选择
    常见追问- 如何实现零停机部署(Zero-Downtime Deployment)?
  • 如何处理回滚?

727. The Pacific and Atlantic oceans are both bordered by a m x n rectangle island. The Pacific Ocean hits the left and top corners of the island, while the Atlantic Ocean reaches the right and bottom edges.

太平洋和大西洋都以一个 m x n 的矩形岛屿为边界。太平洋触及岛屿的左侧和顶部边缘,而大西洋则延伸至右侧和底部边缘。
  • 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37c6158d557c902bc7fc1 | 官方: 否 | 付费: 否

答案:

The island is divided into square cells by a grid. You are provided a m x n integer matrix height, where heightsr reflect the cell's height above sea level (r, c).

岛屿由网格划分为正方形单元格。给你一个 m x n 的整数矩阵 height,其中 heightsr 反映了单元格(r, c)的海拔高度。
The island receives a lot of rain, and the rainwater can flow to nearby cells immediately north, south, east, and west if the height of the adjoining cell is less than or equal to the height of the present cell. Water can flow into an ocean from any cell close to one.
岛屿降雨量很大,如果相邻单元格的高度小于或等于当前单元格的高度,雨水可以立即流向北、南、东、西方向相邻的单元格。水可以从任何靠近海洋的单元格流入海洋。
Write an algorithm that returns the indices of (row, column) such that from this location, water can flow to both the pacific and Atlantic oceans. (Asked in LinkedIn Interview last month)
编写一个算法,返回(行、列)的索引,使得从该位置,水可以流向太平洋和大西洋。(上个月在 LinkedIn 面试中被问到)
Example -
示例 -
In the above image, the box colored is the mountain from where the water can flow to both the ocean so we need to return the list of the indices as - [[0,4],[1,3],[1,4],[2,2],[3,0],[3,1],[4,0]]
在上图中,彩色框标记的山脉是水可以流向两个海洋的地方,所以我们需要返回索引列表为 - [[0,4],[1,3],[1,4],[2,2],[3,0],[3,1],[4,0]]
This seems graph problem. And for solving this problem we need to keep track of the places for reaching both the Pacific and the Atlantic Oceans separately. So the steps that can be followed to solve this problem are - - Create two boolean matrices, one for reaching the Pacific and the other for reaching the Atlantic. And at the first identified the location from where it might reach the Pacific or Atlantic oceans.
这看起来是一个图问题。为了解决这个问题,我们需要分别跟踪到达太平洋和大西洋的位置。因此,可以遵循以下步骤来解决这个问题 - - 创建两个布尔矩阵,一个用于到达太平洋,另一个用于到达大西洋。并首先识别可能到达太平洋或大西洋的位置。
  • Then I performed a Breadth First Search on each of the positions from which it might reach the target.
  • Finally, it was tested in both matrices to see whether it could reach both oceans and was added to the response list.
    public List<List> pacificAtlantic(int[][] heights) {

    public List<List> pacificAtlantic(int[][] heights) {
    int m = heights.length, n = heights[0].length;
    int m = heights.length, n = heights[0].length;

//Grid that keep track of the mountain from where it can reach to

//网格,记录能从哪个山峰到达

//pacific Ocean.

//太平洋。
boolean[][] reachPacific = new booleanm;
boolean[][] reachPacific = new booleanm;

//Grid that keep track of the mountain from where it can reach to

//网格,记录能从哪个山峰到达

//atlantic Ocean.

//大西洋。
boolean[][] reachAtlantic = new booleanm;
boolean[][] reachAtlantic = new booleanm;

//Oueue that helps for breadth first traersal on matrix

//帮助在矩阵上进行广度优先遍历的队列
Queue<int[]> queuePacific = new LinkedList<>();
Queue<int[]> queuePacific = new LinkedList<>();
Queue<int[]> queueAtlantic = new LinkedList<>();
Queue<int[]> queueAtlantic = new LinkedList<>();

//Marking the row and column as true grom where we can reach to the

//标记行和列为true,从这里我们可以到达

//Pacific or atlantic ocean initially.

//最初是太平洋或大西洋。
for(int i = 0; i < m; i++){
for(int i = 0; i < m; i++){
reachPacifici = true;
reachPacifici = true;
queuePacific.add(new int[]{i,0});
queuePacific.add(new int[]{i,0});
reachAtlantici = true;
reachAtlantici = true;
queueAtlantic.add(new int[]{i, n-1});
queueAtlantic.add(new int[]{i, n-1});
}
for(int i = 0; i < n; i++){
for(int i = 0; i < n; i++){
reachPacific0 = true;
reachPacific0 = true;
queuePacific.add(new int[]{0,i});
queuePacific.add(new int[]{0,i});
reachAtlanticm-1 = true;
reachAtlanticm-1 = true;
queueAtlantic.add(new int[]{m-1,i});
queueAtlantic.add(new int[]{m-1,i});
}

//BFS on the grid to mark all the places from where it can traverse

//在网格上进行BFS,标记所有可以遍历的位置

//to the pacific ocean.

//前往太平洋。
while(queuePacific.size() > 0){
while(queuePacific.size() > 0){
int[] val = queuePacific.poll();
int[] val = queuePacific.poll();
int i = val[0], j = val[1];
int i = val[0], j = val[1];
if(i-1 >= 0 && !reachPacifici-1 && heightsi-1 >= heightsi){
if(i-1 >= 0 && !reachPacifici-1 && heightsi-1 >= heightsi){
reachPacifici-1 = true;
reachPacifici-1 = true;
queuePacific.add(new int[]{i-1, j});
queuePacific.add(new int[]{i-1, j});
}
if(i+1 < m && !reachPacifici+1 && heightsi+1 >= heightsi){
if(i+1 < m && !reachPacifici+1 && heightsi+1 >= heightsi){
reachPacifici+1 = true;
reachPacifici+1 = true;
queuePacific.add(new int[]{i+1, j});
queuePacific.add(new int[]{i+1, j});
}
if(j-1 >= 0 && !reachPacifici && heightsi >= heightsi){
if(j-1 >= 0 && !reachPacifici && heightsi >= heightsi){
reachPacifici = true;
reachPacifici = true;
queuePacific.add(new int[]{i, j-1});
queuePacific.add(new int[]{i, j-1});
}
if(j+1 < n && !reachPacifici && heightsi >= heightsi){
if(j+1 < n && !reachPacifici && heightsi >= heightsi){
reachPacifici = true;
reachPacifici = true;
queuePacific.add(new int[]{i, j+1});
queuePacific.add(new int[]{i, j+1});
}
}

//BFS on the grid to mark all the places from where it can traverse

//在网格上进行BFS,标记所有可以遍历的位置

//to the atlantic ocean.

//流向大西洋。
while(queueAtlantic.size() > 0){
while(queueAtlantic.size() > 0){
int[] val = queueAtlantic.poll();
int[] val = queueAtlantic.poll();
int i = val[0], j = val[1];
int i = val[0], j = val[1];
if(i-1 >= 0 && !reachAtlantici-1 && heightsi-1 >= heightsi){
if(i-1 >= 0 && !reachAtlantici-1 && heightsi-1 >= heightsi){
reachAtlantici-1 = true;
reachAtlantici-1 = true;
queueAtlantic.add(new int[]{i-1, j});
queueAtlantic.add(new int[]{i-1, j});
}
if(i+1 < m && !reachAtlantici+1 && heightsi+1 >= heightsi){
if(i+1 < m && !reachAtlantici+1 && heightsi+1 >= heightsi){
reachAtlantici+1 = true;
reachAtlantici+1 = true;
queueAtlantic.add(new int[]{i+1, j});
queueAtlantic.add(new int[]{i+1, j});
}
if(j-1 >= 0 && !reachAtlantici && heightsi >= heightsi){
if(j-1 >= 0 && !reachAtlantici && heightsi >= heightsi){
reachAtlantici = true;
reachAtlantici = true;
queueAtlantic.add(new int[]{i, j-1});
queueAtlantic.add(new int[]{i, j-1});
}
if(j+1 < n && !reachAtlantici && heightsi >= heightsi){
if(j+1 < n && !reachAtlantici && heightsi >= heightsi){
reachAtlantici = true;
reachAtlantici = true;
queueAtlantic.add(new int[]{i, j+1});
queueAtlantic.add(new int[]{i, j+1});
}
}

//List that stores all the indices of the places.

//存储所有位置索引的列表。
List<List> ans = new ArrayList<>();
List<List> ans = new ArrayList<>();

//Traversing on grid to check the place from where it can reach to

//遍历网格,检查可以从哪里到达

//both pacific and atlantic ocean and adding to the answer list.

//既能到达太平洋又能到达大西洋的地方,并添加到答案列表中。
for(int i = 0; i < m; i++)
for(int i = 0; i < m; i++)
for(int j = 0; j < n; j++)
for(int j = 0; j < n; j++)
if(reachAtlantici && reachPacifici)
if(reachAtlantici && reachPacifici)
ans.add(new ArrayList(Arrays.asList(i, j)));
ans.add(new ArrayList(Arrays.asList(i, j)));

return ans;

return ans;
}

The time complexity for the above algorithm is O(mn) because all the places in the matrix will be visited more than once. But the degree of the polynomial is mn, So it’s O(m*n) .

上述算法的时间复杂度为O(mn),因为矩阵中的所有位置会被访问多次。但多项式的次数是mn,所以是O(m*n)。

Conclusion

结论
All software fails, at some point in time. The question is when and where. Site reliability engineers ensure systems fail in an expected way and that they fail gracefully. They also ensure that they are resilient against failure.
所有软件都会在某个时间点失败。问题在于何时何地。站点可靠性工程师确保系统以预期的方式失败,并且优雅地失败。他们还确保系统对故障具有弹性。

The job of a site reliability engineer involves implementing automation tools to improve the workflow, while also working with people in order to ensure service continues to operate smoothly and successfully. You will also have to analyze data and make improvements based on it.

站点可靠性工程师的工作涉及实施自动化工具来改进工作流程,同时与人员合作,确保服务持续平稳且成功地运行。您还需要分析数据并基于数据做出改进。

Join the growing number of professionals who are finding success in careers in site reliability engineering. You will work with the latest technologies, collaborate with a team and your peers, and be rewarded financially for your efforts.

加入越来越多的在站点可靠性工程职业中取得成功的专业人士行列。您将使用最新技术,与团队和同行协作,并在努力中获得经济回报。

Additional Interview Resources

其他面试资源
For the role of SRE, you have to be aware of 50% of the Software Engineer and the other the Operations. So for better topic preparation for the position of Site Reliability Engineer, whether fresher or experienced. The materials listed below can assist you in better preparing for the SRE Interview. - Linux Interview Questions.
对于SRE角色,你需要了解软件工程师职责的50%,以及运维职责的另外50%。因此,为了更好地准备站点可靠性工程师职位的主题,无论是新人还是有经验者,下面列出的材料可以帮助你更好地准备SRE面试。- Linux面试问题。
  • Data Structures Interview Questions.
  • DevOps Interview Questions.
  • Operating System Interview Questions.
  • Computer Network Interview Questions.
  • System Design Interview Questions.
  • OOPs Interview Questions.

728. Write a program that returns the leftmost value in the final row of a binary tree given the root.

编写一个程序,给定二叉树的根节点,返回其最后一行中最左侧的值。
  • 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
  • 类型: technical | 难度: medium | 子类型: coding
  • 分类: fullstack
  • id: 69b37c6158d557c902bc7fc4 | 官方: 否 | 付费: 否

答案:

Example - In the below image, we can see that the leftmost node in the last row of the tree is 7. So we need to return that.

示例 - 在下图中,我们可以看到树最后一行中最左侧的节点是7。因此我们需要返回它。
We can solve this problem recursively by traversing to the last row and returning the leftmost node value. And because we are not aware of the final row of each sub-tree, so we can have a count of height that helps in obtaining the answer from the tree.
我们可以通过递归遍历到最后一行并返回最左侧节点的值来解决此问题。而且由于我们不知道每个子树最后一行的情况,所以我们可以维护一个高度计数器,这有助于从树中获取答案。

So the code of this approach will be -

因此,这种方法的代码如下 -

class Solution {

class Solution {
int maxHeight, ans;
int maxHeight, ans;
private void solution(TreeNode root, int height){
private void solution(TreeNode root, int height){
//Checking if it is the leaf node and also if it is the last row.
//检查它是否是叶节点,以及是否在最后一行。
//We are checking the last row based on the height of the tree.
//我们根据树的高度来检查最后一行。
if(root.left == null &&
if(root.left == null &&
root.right == null){
root.right == null){
if(height > maxHeight){
if(height > maxHeight){
maxHeight = height;
maxHeight = height;
ans = root.val;
ans = root.val;
}
return;
return;
}

//Recursively traversing for the final row if child exists.

//如果子节点存在,递归遍历以获取最后一行。
if(root.left != null)
如果(root.left != null)
solution(root.left, height+1);
解决方案(root.left, height+1);
if(root.right != null)
if(root.right != null)
solution(root.right, height+1);
解决方案(root.right, height+1);

}
public int findBottomLeftValue(TreeNode root) {

公共int findBottomLeftValue(TreeNode root) {
maxHeight = -1;
maxHeight = -1;
//Calling helper method that finds the leftmost node in the tree.
//调用辅助方法找出树中最左边的节点。
solution(root, 0);
解决方案(root, 0);
return ans;
return ans;
}
}
The Time complexity for the above approach is O(n) because we are traversing each node only once. And the space complexity can be O(n) because of the recursion.
上述方法的时间复杂度为O(n),因为我们只遍历每个节点一次。空间复杂度可能为O(n),因为使用了递归。

729. Given a root of the binary tree, a node X in the tree is called good if there are no nodes with values larger than X along the route from root to X.

给定二叉树的根节点,如果从根到节点X的路径上不存在比X值更大的节点,则称节点X为“好”节点。
  • 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37c6158d557c902bc7fc8 | 官方: 否 | 付费: 否

答案:

Write a program in which the number of good nodes in the binary tree should be returned.

编写一个程序,返回二叉树中“好”节点的数量。
Example - Consider the tree given below. The Nodes marked with yellow color are good nodes. Because no such nodes in between have a value greater than the current node up to the root. [7,8,9,7]
示例——考虑下面给出的树。标有黄色的节点是好节点。因为从根到该节点的路径上没有节点的值大于当前节点的值。 [7,8,9,7]
For solving this problem, we need to traverse every node by passing the current node value recursively. If on every node, the value passed from the parent node will be compared. If the node is found greater than the value from the parent node. Then the count will be incremented and we can update the value with the current node value and pass it to both the child recursively. So the code for this approach will be -
为了解决这个问题,我们需要通过递归传递当前节点值来遍历每个节点。在每个节点上,将与父节点传递的值进行比较。如果发现节点值大于父节点传递的值,则计数增加,并用当前节点值更新该值,然后递归传递给两个子节点。因此该方法的代码如下——

class Solution {

class Solution {
//Global variable that keeps count of the good nodes.
//用于记录好节点数量的全局变量。
int ans;
int ans;
private void solution(TreeNode root, int val){
私有void 解决方案(TreeNode root, int val){
//When found the node value greater than the value from parent
//当发现节点值大于父节点传递的值时
if(root.val >= val){
如果(root.val >= val){
ans++;
ans++;
val = root.val;
val = root.val;
}
//Recursively calling the solution if the child node exists.
//如果子节点存在,则递归调用解决方案。
if(root.left != null)
如果(root.left != null)
solution(root.left, val);
solution(root.left, val);
if(root.right != null)
if(root.right != null)
solution(root.right, val);
solution(root.right, val);
}
public int goodNodes(TreeNode root) {
public int goodNodes(TreeNode root) {
//Calling  helper method to count the good node.
//调用辅助方法来计算好节点。
solution(root, root.val);
solution(root, root.val);
return ans;
return ans;
}
}
The time complexity for the above approach will be O(n) because we have to traverse all the nodes at once. And we have used recursion so we can say that because of the call stack, the space complexity will be O(n) .
上述方法的时间复杂度为O(n),因为我们必须一次遍历所有节点。并且我们使用了递归,所以可以说,由于调用栈,空间复杂度为O(n)。

730. Create a simple version of Twitter in which users may submit tweets, follow/unfollow other users, and view the 10 most recent tweets in their news feed.

创建一个简单的Twitter版本,其中用户可以发布推文、关注/取消关注其他用户,并查看其新闻推送中最新的10条推文。
  • 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37c6158d557c902bc7fd2 | 官方: 否 | 付费: 否

答案:

Use the Twitter class as follows:

按如下方式使用Twitter类:

731. void unfollow(int followerId, int followeeId) The user with the ID followerId unfollowed the user with the ID followeeId.

void unfollow(int followerId, int followeeId) 具有ID followerId的用户取消关注了具有ID followeeId的用户。
  • 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37c6158d557c902bc7fd5 | 官方: 否 | 付费: 否

答案:

The classes and methods are already defined and we need to implement the logic. So we can use the Hashmap that points to every user. And each user can be represented as a node. So the user can be obtained in constant time. And similarly, we can use the node for each tweet that consists of the records of the tweets and the userId to whom the tweets belong. So the Solution can be -

类和方法已经定义好,我们需要实现逻辑。所以我们可以使用指向每个用户的Hashmap。每个用户可以被表示为一个节点。这样可以在常数时间内获取用户。类似地,我们可以为每条推文使用节点,其中包含推文记录和推文所属的userId。因此解决方案可以是 -

class Twitter {

class Twitter {
//This belongs to each individual user and his/her following.
//这属于每个单独用户及其关注的人。
private class User{
private class User{
int userID;
int userID;
HashMap<Integer, Boolean> followings;
HashMap<Integer, Boolean> followings;
User(int id){
User(int id){
userID = id;
userID = id;
followings = new HashMap<>();
followings = new HashMap<>();
}
}

//Every Individual tweet. And belongs to which user.

//每条单独的推文。并且属于某个用户。
private class Tweet{
private class Tweet{
int tweetID, userID;
int tweetID, userID;
Tweet(int userID, int tweetID){
Tweet(int userID, int tweetID){
this.tweetID = tweetID;
this.tweetID = tweetID;
this.userID = userID;
this.userID = userID;
}
}

//List that consists of every tweets.

//由所有推文组成的列表。
List tweets;
List tweets;

//Map to get the user details in constant time.

//用于在恒定时间内获取用户详细信息的映射。
HashMap<Integer, User> map;
HashMap<Integer, User> map;

public Twitter() {

public Twitter() {
map = new HashMap<>();
map = new HashMap<>();
tweets = new ArrayList<>();
tweets = new ArrayList<>();
}

public void postTweet(int userId, int tweetId) {

public void postTweet(int userId, int tweetId) {
//If user don't exist, so create user
//如果用户不存在,则创建用户
if(!map.containsKey(userId))
if(!map.containsKey(userId))
map.put(userId, new User(userId));
map.put(userId, new User(userId));

//adding the tweets in the list for particular user

//将推文添加到特定用户的列表中
tweets.add(new Tweet(userId, tweetId));
tweets.add(new Tweet(userId, tweetId));
}

public List getNewsFeed(int userId) {

public List getNewsFeed(int userId) {
List feeds = new ArrayList<>();
List feeds = new ArrayList<>();
int n = tweets.size()-1;
int n = tweets.size()-1;
int count = 0;
int count = 0;

//Loop that gives 10 recent tweets if it have otherwise

//循环获取最近10条推文,如果有的话;否则
//whatever less than 10 tweets of followed user.
//获取关注用户的少于10条推文。

while(n >= 0 && count < 10){

while(n >= 0 && count < 10){
int tweetID = tweets.get(n).tweetID;
int tweetID = tweets.get(n).tweetID;
int userID = tweets.get(n).userID;
int userID = tweets.get(n).userID;

//Checking if user followed the user for which the

//检查该用户是否关注了发布该推文的用户
//tweet belongs.
//(即该推文所属的用户)。
boolean exist = (map.get(userId)).followings.containsKey(userID);
boolean exist = (map.get(userId)).followings.containsKey(userID);
if(userId == userID || exist){
if(userId == userID || exist){
feeds.add(tweetID);
feeds.add(tweetID);
count++;
count++;
}
n--;
n--;
}
return feeds;
return feeds;
}

public void follow(int followerId, int followeeId) {

public void follow(int followerId, int followeeId) {

//Following user or followed user if not exist then

//如果关注者或关注对象不存在,则
//creating and adding to the following list.
//并将其添加到关注列表中。
if(!map.containsKey(followerId))
if(!map.containsKey(followerId))
map.put(followerId, new User(followerId));
map.put(followerId, new User(followerId));

if(!map.containsKey(followeeId))

if(!map.containsKey(followeeId))
map.put(followeeId, new User(followeeId));
map.put(followeeId, new User(followeeId));

(map.get(followerId)).followings.put(followeeId, true);

(map.get(followerId)).followings.put(followeeId, true);
}

public void unfollow(int followerId, int followeeId) {

public void unfollow(int followerId, int followeeId) {
//Following user or followed user if not exist then
//如果关注者或关注对象不存在,则
//removing from the following list if exist.
//如果存在,则从关注列表中移除。
if(!map.containsKey(followerId))
if(!map.containsKey(followerId))
map.put(followerId, new User(followerId));
map.put(followerId, new User(followerId));

if(!map.containsKey(followeeId))

if(!map.containsKey(followeeId))
map.put(followeeId, new User(followeeId));
map.put(followeeId, new User(followeeId));

(map.get(followerId)).followings.remove(followeeId);

(map.get(followerId)).followings.remove(followeeId);
}
}
The time complexity for the solution will be O(10) which is nothing but constant . It is because at most 10 tweets must be returned to the user.
该解决方案的时间复杂度为O(10),即常数时间。这是因为最多必须向用户返回10条推文。

732. Write a program to check If all asteroids can be eliminated, then return true. Return false otherwise.

编写一个程序来检查是否所有小行星都能被消除,如果可以则返回true,否则返回false。
  • 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
  • 类型: technical | 难度: medium | 子类型: coding
  • 分类: fullstack
  • id: 69b37c6158d557c902bc7fde | 官方: 否 | 付费: 否

答案:

You are given an integer mass that represents a planet's initial mass. You are also provided with an integer array called asteroids, where asteroids[i] represent the mass of the ith asteroid.

给定一个整数mass,表示行星的初始质量。还提供了一个整数数组asteroids,其中asteroids[i]表示第i个小行星的质量。
You may make the planet smash with the asteroids in whatever sequence you like. If the planet's mass is more than or equal to the asteroid's mass, the asteroid is destroyed and the planet obtains the asteroid's mass. Otherwise, the world will be destroyed.
你可以按任何顺序让行星与小行星相撞。如果行星的质量大于或等于小行星的质量,小行星被摧毁,行星获得小行星的质量。否则,世界将被摧毁。
One of the many solutions can be sorting the asteroid array. By sorting this, we can pick the smallest element such that it can gain the mass of the planet. And if the planet destroys (if planet's mass is less than asteroids) then we will return false. So the solution can be -
众多解决方案之一是排序小行星数组。通过排序,我们可以选择最小的元素,这样行星就能获得其质量。如果行星被摧毁(如果行星的质量小于小行星的质量),则返回false。因此解决方案可以是——

public boolean asteroidsDestroyed(int mass, int[] asteroids) {

public boolean asteroidsDestroyed(int mass, int[] asteroids) {
//Sorting the array
//排序数组
Arrays.sort(asteroids);
Arrays.sort(asteroids);
int n = asteroids.length;
int n = asteroids.length;
for(int i = 0; i < n; i++){
for(int i = 0; i < n; i++){
//Attacking the planet with asteroid
//用行星攻击小行星
if(mass >= asteroids[i])
if(mass >= asteroids[i])
mass += asteroids[i];
mass += asteroids[i];

//If the mass of the planet becomes greater than the largest

//如果行星的质量变得大于最大的小行星的质量
//asteroid then no need to check further, just return true.
//则无需进一步检查,直接返回true。
if(mass > asteroids[n-1])
if(mass > asteroids[n-1])
return true;
返回 true;
}
//If the planet is being destroyed by the asteroid
//如果行星被小行星摧毁
return false;
返回 false;
}
We have used sorting and sorting takes O(nlog n) times. So the time complexity of the solution will also be O(nlog n) .
我们使用了排序,排序需要 O(nlog n) 时间。因此,解决方案的时间复杂度也将是 O(nlog n)。

733. You have a single-tab browser in which you begin on the homepage and can navigate to another URL, go back in time a certain number of steps, or move ahead in time a certain number of steps.

你有一个单标签页的浏览器,从首页开始,可以导航到另一个 URL,向后回退一定步数,或向前前进一定步数。
  • 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37c6158d557c902bc7fe3 | 官方: 否 | 付费: 否

答案:

Implement the BrowserHistory class as follows:

按如下方式实现 BrowserHistory 类:

734. String forward(int steps) Take a step forward in time. If you can only go back x steps in history and steps > x, you will only go back x steps. At most steps, return the current URL after forwarding it in history.

String forward(int steps) 向前前进一步。如果历史记录中只能后退 x 步且 steps > x,则你只能后退 x 步。最多 steps 步,在历史中前进后返回当前 URL。
  • 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37c6158d557c902bc7fe6 | 官方: 否 | 付费: 否

答案:

Since we have been already given the classes and methods. We only need to implement the logic to achieve the desired result. So, we can use the stack to store the URL, and, on each move, we have to modify the stack behavior for achieving this result. So, the solution is -

由于我们已经给出了类和方法,我们只需要实现逻辑以达到预期结果。所以,我们可以使用栈来存储 URL,并且在每次移动时,我们必须修改栈的行为来实现此结果。因此,解决方案是——

class BrowserHistory {

class BrowserHistory {
//Stack that stores the URL.
//存储 URL 的栈。
String[] stack;
String[] stack;
//additional pointer curr, used to manage back and forward.
//额外的指针curr,用于管理后退和前进。
int top, curr;
int top, curr;
public BrowserHistory(String homepage) {
public BrowserHistory(String homepage) {
stack = new String[5001];
stack = new String[5001];
stack[top] = homepage;
stack[top] = homepage;
}

public void visit(String URL) {

public void visit(String URL) {
//Adjusting the stack with the value. And also pointers
//根据值调整栈,以及指针
stack[++curr] = URL;
stack[++curr] = URL;
top = curr;
top = curr;
}

public String back(int steps) {

public String back(int steps) {
//Adjusting the pointer while Going Backward.
//后退时调整指针。
while(curr > 0 && steps > 0){
while(curr > 0 && steps > 0){
curr--;
curr--;
steps--;
steps--;
}
return stack[curr];
return stack[curr];
}

public String forward(int steps) {

public String forward(int steps) {
//Adjusting the pointer while Going Forward.
//向前移动指针时进行调整。
while(curr < top && steps > 0){
while(curr < top && steps > 0){
curr++;
curr++;
steps--;
steps--;
}
return stack[curr];
return stack[curr];
}
}
The time complexity for the above solution is O(steps) because it has to move forward or backwards in the stack for almost step time.
上述解决方案的时间复杂度为O(steps),因为它需要几乎每次步进都在栈中向前或向后移动。

735. How do you prepare for an SRE interview?

你如何为SRE面试做准备?
  • 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37c6158d557c902bc7fe9 | 官方: 否 | 付费: 否

答案:

In the industry, the applicant seeking the post of SRE must have a fundamental understanding of programming as well as data structures and algorithms. Aside from that, the candidate must have a solid grasp of operating system ideas, networking concepts, and basic database concepts. If you are an experienced applicant, you must also be familiar with System Design ideas in addition to the competencies listed above. As a result, you must thoroughly prepare for these issues prior to attending the interview. The resources are freely accessible at InterviewBit.

在行业中,申请SRE职位的应聘者必须具备编程以及数据结构和算法的基本理解。除此之外,候选人还必须扎实掌握操作系统理念、网络概念和基本数据库概念。如果你是经验丰富的应聘者,除了上述能力外,还必须熟悉系统设计理念。因此,在参加面试之前,你需要全面准备这些问题。这些资源可在InterviewBit免费获取。

736. What is the salary of SRE?

SRE的薪资是多少?
  • 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37c6158d557c902bc7fec | 官方: 否 | 付费: 否

答案:

For freshers, site reliability engineer salaries in India might range from 6 LPA to 15 LPA. And for experienced applicants, it may change depending on the number of years of experience. For experienced applicants, the typical remuneration for SRE ranges from 13 LPA to 26 LPA.

对于应届生,印度的站点可靠性工程师薪资范围可能在6 LPA到15 LPA之间。对于经验丰富的应聘者,薪资可能会根据工作年限而变化。对于经验丰富的应聘者,SRE的典型薪酬范围从13 LPA到26 LPA。

737. What is the future of SRE?

SRE的未来是什么?
  • 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37c6158d557c902bc7fef | 官方: 否 | 付费: 否

答案:

Any system is not considered excellent if it is not trustworthy. So it is the Site Reliability Engineer's obligation to make the system dependable and efficient. And now, corporations are focused on the greatest available technology at the lowest possible cost. As a result, the SRE may have a fantastic opportunity to study and demonstrate their abilities.

如果系统不可靠,就不被认为是优秀的。因此,站点可靠性工程师有责任让系统可靠且高效。而现在,企业专注于以最低成本获得最佳可用技术。因此,SRE可能有绝佳的机会来学习和展示自己的能力。

738. Does SRE require coding?

SRE需要编码吗?
  • 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
  • 类型: technical | 难度: medium | 子类型: concept
  • 分类: fullstack
  • id: 69b37c6158d557c902bc7ff2 | 官方: 否 | 付费: 否

答案:

SRE does not code the entire system as software developers do. However, they must develop the code for the automation of specific operations. So, certainly, the SRE creates code, but it may not be for system development but for system automation.

SRE不像软件开发人员那样编写整个系统的代码。然而,他们必须开发代码以实现特定操作的自动化。所以,当然SRE会编写代码,但可能不是为了系统开发,而是为了系统自动化。

739. EJB(Enterprise JavaBeans,企业级Java组件)与JAVA BEAN(Java组件)的区别?

  • 知识点: DevOps/云 / 编程语言基础 (主题: java, ejb;标签: EJB, JavaBean, RMI, Container)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 6965e772fa809e6d388763ad | 官方: 是 | 付费: 否

答案:

答案Java Bean(Java组件)是可复用的组件(Reusable Component),对Java Bean(Java组件)并没有严格的规范,理论上讲,任何一个Java类都可以是一个Bean(组件)。但通常情况下,由于Java Bean(Java组件)是被容器(Container)所创建(如Tomcat)的,所以Java Bean(Java组件)应具有一个无参的构造器(No-Argument Constructor),另外,通常Java Bean(Java组件)还要实现Serializable(可序列化)接口用于实现Bean的持久性(Persistence)。Java Bean(Java组件)实际上相当于微软COM(组件对象模型)模型中的本地进程内COM组件(In-Process COM Component),它是不能被跨进程访问的。Enterprise Java Bean(企业级Java组件,EJB)相当于DCOM(分布式组件对象模型),即分布式组件(Distributed Component)。它是基于Java的远程方法调用(RMI,Remote Method Invocation)技术的,所以EJB(企业级Java组件)可以被远程访问(跨进程、跨计算机)。但EJB(企业级Java组件)必须被布署在诸如Webspere、WebLogic这样的容器(Container)中,EJB(企业级Java组件)客户从不直接访问真正的EJB(企业级Java组件)组件,而是通过其容器(Container)访问。EJB容器(企业级Java组件容器)是EJB(企业级Java组件)组件的代理(Proxy),EJB(企业级Java组件)组件由容器(Container)所创建和管理。客户通过容器(Container)来访问真正的EJB(企业级Java组件)组件。

740. git config(Git配置)命令的作用是什么?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 6965f03cfa809e6d38883f5e | 官方: 是 | 付费: 否

答案:

Answer

答案
The ‘Git config’ is a great way to configure our options for the Git installation. Using this command, we can define the repository behavior, preferences and user information.
“Git config”是配置Git安装选项的一个很好的方式。通过此命令,我们可以定义仓库行为、偏好和用户信息。

741. 提交对象(Commit Object)通常包含哪些组成部分?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 6965f03cfa809e6d38883f61 | 官方: 是 | 付费: 否

答案:

Answer

答案
  • the state of a project at a given point of time is contained in a set of files
  • Parent object commit references
  • A 40-character string that uniquely identifies the commit object called a SHAI name

742. Git 里的 HEAD(头指针)是什么?一个仓库能有多少个 HEAD(头指针)?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 6965f03cfa809e6d38883f64 | 官方: 是 | 付费: 否

答案:

Answer

答案
The reference to a commit object is called the HEAD. Every repository has a ‘Master’ which is the default head. There can be multiple heads in a repository.
对提交对象的引用称为HEAD。每个仓库都有一个默认的头部“Master”。仓库中可以有多个头部。

743. git pull origin master(从远程拉取并合并主分支)会做什么?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 6965f03cfa809e6d38883f67 | 官方: 是 | 付费: 否

答案:

Answer

答案
Git pull origin master pulls the master branch into your current branch from the remote called origin. It only affects your current branch, not your local master branch.
“Git pull origin master”会从名为origin的远程仓库将master分支拉取到当前分支。它只影响当前分支,不影响本地master分支。

744. 解释一下 git worktree(工作树)是什么。

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 6965f03cfa809e6d38883f6a | 官方: 是 | 付费: 否

答案:

Answer

答案
git-worktree is a command used to manage multiple working trees attached to the same repository.
git-worktree是用于管理附加到同一仓库的多个工作树的命令。

Commands:

命令:

add []: Create a worktree at and checkout into it.

add []:在处创建工作树,并将检出到其中。

list: List the details of each worktree. The main worktree is listed first, followed by each of the linked worktrees.

list:列出每个工作树的详情。主工作树首先列出,随后是每个链接的工作树。

move: Move a worktree to a new location.

move:将工作树移动到新位置。

remove: Remove a worktree.

remove: 移除一个工作树。

repair: Repair worktree administrative files, if possible.

repair: 尽可能修复工作树的管理文件。

745. 如何删除 Git 中所有未跟踪(Untracked)的文件?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 6965f03cfa809e6d38883f6d | 官方: 是 | 付费: 否

答案:

Answer

答案
There are multiple ways to remove all untracked files in Git.
在Git中有多种方法可以移除所有未跟踪的文件。
  • Discard all untracked files: git clean -f command will permanently remove all the untracked files from your working directory.
  • Remove specific untracked files: Use git clean -n to list all the untracked files without removing them, then identify the specific files you want to remove. Now, use git rm to remove the individual untracked files.

746. git log(Git日志)和 git reflog(引用日志)有什么区别?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 6965f03cfa809e6d38883f70 | 官方: 是 | 付费: 否

答案:

Answer

答案
Both git log and git reflog are used to keep track of the history of your repository, but they serve different purposes.
虽然 git log 和 git reflog 都用于跟踪仓库的历史记录,但它们的目的不同。

git log focuses on the public record of the commit history of the repository, whereas the git reflog focuses on private, local records of all references that have been updated in the repository.

git log 聚焦于仓库提交历史的公开记录,而 git reflog 聚焦于仓库中已更新的所有引用的私有本地记录。

747. 什么是 git stash(Git暂存)?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 6965f03cfa809e6d38883f74 | 官方: 是 | 付费: 否

答案:

Answer

答案
git stash temporarily shelves (or stashes) changes you’ve made to your working copy so you can work on something else, and then come back and work on them later.
git stash 会暂时搁置(或暂存)你对工作副本所做的更改,以便你可以处理其他事情,然后再回来继续处理这些更改。
  • When switching branches or tasks
  • Sharing code or working with others
  • Dealing with conflicts or errors

748. git merge --no-ff(非快进合并)和 git merge --squash(压缩合并)有什么区别?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 6965f03cfa809e6d38883f77 | 官方: 是 | 付费: 否

答案:

Answer

答案
git merge --no-ff will create a commit for the merge even if it could happen with fast forward, whereas git merge --squash will combine all the commits of the feature branch into one commit during the merge.
git merge --no-ff 即使在可以使用快进的情况下也会为合并创建一个提交,而 git merge --squash 在合并过程中会将特性分支的所有提交合并为一个提交。

749. git rebase -i(交互式变基(interactive rebase))怎么用?如何用它清理提交历史(commit history)?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 6965f03cfa809e6d38883f7a | 官方: 是 | 付费: 否

答案:

Answer

答案
git rebase -i allows interactively rewriting a series of commits by changing commit order, squashing commits together, splitting commits, editing messages, removing commits, etc.
git rebase -i 允许通过更改提交顺序、合并提交、拆分提交、编辑提交信息、移除提交等方式交互式地重写一系列提交。

Some ways git rebase --interactive can be used to clean up a commit history are as follows:

git rebase --interactive 可用于清理提交历史的一些方法如下:
  • Squash multiple small or repetitive commits into a single, larger commit to make the history more concise and readable.
  • Edit/reword commit messages that are unclear or poorly worded to improve readability of history.

750. 如何撤销(undo)一次 git rebase(变基)?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 6965f03cfa809e6d38883f7d | 官方: 是 | 付费: 否

答案:

Answer

答案
There are a few ways to revert or undo a git rebase:
有几种方法可以回退或撤销 git rebase:
  • Reset to the original branch tip commit:

git reflog

git reflog

find the commit hash before the rebase

git reset --hard

git reset --hard
  • New revert commit

git revert -m 1

git revert -m 1

This creates a new commit that undoes all the changes introduced in the rebase head commit. Preserves all previous commits.

这会创建一个新的提交,该提交撤销了 rebase 头部提交中引入的所有更改,并保留所有之前的提交。

751. git reflog(引用日志)命令的重要性是什么?它如何用于找回丢失的提交(commit)?

  • 知识点: DevOps/云 (主题: git, version-control;标签: Git, reflog, Recovery)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 6965f03cfa809e6d38883f80 | 官方: 是 | 付费: 否

答案:

Answer

答案
The git reflog command is used to show a log of all the references recorded in the local repository by Git. This includes commits, resets, rebases, merges, etc. The main significance of git reflog is that it allows us to recover lost commits.
git reflog 命令用于显示 Git 在本地仓库中记录的所有引用的日志,包括提交、重置、变基、合并等。git reflog 的主要意义在于它允许我们恢复丢失的提交。

Git reflog can recover lost commits:

Git reflog 可以恢复丢失的提交:
  • Git reflog shows when that branch tip commit was at HEAD when you accidentally deleted your feature branch.

752. 什么是 Git hooks(钩子)?举例说明如何在 commit(提交)/push(推送)前做代码质量检查(code quality check)?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 6965f03cfa809e6d38883f83 | 官方: 是 | 付费: 否

答案:

Answer

答案
Git hooks are scripts that run automatically when certain Git events occur, such as committing, pushing, merging, etc. They can be used to enforce project workflows and policies around the Git commit/push process.
Git 钩子是在特定 Git 事件(如提交、推送、合并等)发生时自动运行的脚本。它们可用于强制执行围绕 Git 提交/推送流程的项目工作流和策略。

753. git worktree(工作树)的用途是什么?它和分支(branch)有什么不同?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 6965f03cfa809e6d38883f86 | 官方: 是 | 付费: 否

答案:

Answer

答案
The git worktree command allows you to have multiple working directories tied to the same repository. Each working tree acts like a complete, isolated checkout, useful for working on different branches or tasks in parallel.
git worktree 命令允许你在同一个仓库中拥有多个工作目录。每个工作树就像一个完整、独立的检出,非常适合并行处理不同分支或任务。

With Git branches, you can switch context to different commits easily but have just a single view of files in the working directory.

使用 Git 分支,你可以轻松切换上下文到不同的提交,但在工作目录中只能看到一个文件视图。

754. How do you define a 'conflict' in git?

你如何定义 Git 中的“冲突”?
  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 6965f03cfa809e6d38883f89 | 官方: 是 | 付费: 否

答案:

Answer

答案
If we want to merge a commit there is a change in one place and the same change already exists then while merging the Git will not be able to predict which is the change that needs to be taken precedence.
如果我们想要合并一个提交,而某个位置有一处更改,且该更改已存在,那么在合并时,Git 将无法判断哪个更改需要优先采用。

755. Git 的常规分支策略(branching strategy)/分支方式是什么?

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 6965f03cfa809e6d38883f9c | 官方: 是 | 付费: 否

答案:

Answer

答案
The best way to create a branch in GIT is to have one ‘main’ branch and then create another branch for implementing the changes that we want to make. This is extremely useful when there are a large number of developers working on a single project.
在 GIT 中创建分支的最佳方式是拥有一个“main”分支,然后创建另一个分支来实现我们想要做出的更改。当有大量开发人员在一个项目上工作时,这极为有用。

756. 什么是 Git 子模块(submodules)?它如何工作?举个使用场景。

  • 知识点: DevOps/云 (主题: git, github, version-control;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 6965f03cfa809e6d38883fa2 | 官方: 是 | 付费: 否

答案:

Answer

答案
Git submodules allow you to embed external Git repositories inside a parent Git repository at a specific path. The parent repo records a fixed commit for the submodule. Updating the submodule commits requires an explicit update in parent.
Git 子模块允许您在父 Git 仓库的特定路径下嵌入外部 Git 仓库。父仓库会为子模块记录一个固定的提交。更新子模块的提交需要在父仓库中进行显式更新。

A good example:

一个很好的例子:
  • A large project relies on a common shared library called common-utils.
  • The utils library has a separate dev team that manages releases at its own pace.
  • The main app can embed common-utils as a submodule placed inside src/utils.
  • When common-utils has a new feature or fix, the main app repo can periodically absorb those by updating the recorded submodule commit.

757. 如何把最近 n 个 commit(提交)squash(压缩)成一个 commit(提交)?可以做到吗?

  • 知识点: DevOps/云 (主题: git, version-control, github;标签: Git, 面试题, Version Control)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 6965f80efa809e6d38893918 | 官方: 是 | 付费: 否

答案:

Answer

答案
Yes, it’s possible. The most common way is interactive rebase:
是的,这是可能的。最常见的方法是交互式变基:

git rebase -i HEAD~n

git rebase -i HEAD~n
In the editor, mark the first commit as pick and change the following commits to squash (or s), then save/exit. Git will combine those commits into one and let you edit the final commit message. Finally, if the branch was already pushed, you may need a force push (use with caution):
在编辑器中,将第一个提交标记为 pick,并把后续提交改为 squash(或 s),然后保存并退出。Git 会将那些提交合并为一个,并让您编辑最终的提交消息。最后,如果分支已经推送过,您可能需要强制推送(请谨慎使用):

git push --force-with-lease

git push --force-with-lease
Reference images from the original material:
来自原始材料的参考图片:

758. Maven 中的 System Dependency(系统依赖)是什么?

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Intermediate, Q14, Maven)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 6965fd39fa809e6d3889b7d5 | 官方: 是 | 付费: 否

答案:

答案System Dependency(系统依赖)指 scope(作用域)为 system(系统)的依赖类型(dependency type),用来告诉 Maven:某些依赖由 JDK(Java Development Kit)/VM(虚拟机)等运行环境提供(或以本地路径形式提供),不需要从仓库(repository)下载。它常用于处理“随 JDK/VM 提供的构件(artifact)”或必须使用本地文件路径的依赖,但一般不推荐在常规项目中大量使用。

759. 基于本地(硬盘)创建新项目的 Maven 命令是什么?

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Advanced, Q22, Maven)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 6965fd39fa809e6d3889b7fa | 官方: 是 | 付费: 否

答案:

答案常见做法是使用 mvn archetype:create(原型创建)(或更常见的 generate 相关命令)来基于 archetype(原型)模板创建新项目。其机制是读取模板的源文件/资源文件以及参数与属性值,生成一套标准项目结构与初始配置(configuration)。

760. 什么是 Maven 的 Super POM(超级 POM)?

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Advanced, Q23, Maven)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 6965fd39fa809e6d3889b7fd | 官方: 是 | 付费: 否

答案:

答案Super POM(超级 POM)是 Maven 的默认父 POM(Project Object Model,项目对象模型),提供一系列默认配置(如仓库(repository)、插件绑定(plugin binding)、生命周期(lifecycle)默认行为等)。项目的 POM(项目对象模型)可以继承自父 POM(Parent POM),而最终生效的配置会体现在 Effective POM(有效 POM)中。理解 Super POM(超级 POM)有助于你在最少显式配置的情况下,解释 Maven 的默认行为与构建结果(build result)。

761. mvn clean dependency:copy-dependencies package 会完成什么?

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Advanced, Q29, Maven)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 6965fd39fa809e6d3889b82a | 官方: 是 | 付费: 否

答案:

答案该命令会先执行 clean(清理)清理构建产物,然后运行 dependency:copy-dependencies(依赖复制)把依赖(dependency)复制到指定目录(常用于打包或离线分发场景),最后执行到 package(打包)阶段完成打包(即完成从编译(compile)、测试(test)到生成产物的流程,直到 package(打包)为止)。

762. 什么是 Maven Assembly Plugin(Maven 组装插件)?它在项目中如何工作?

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Advanced, Q31, Maven)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 6965fd39fa809e6d3889b83b | 官方: 是 | 付费: 否

答案:

答案Maven Assembly Plugin(Maven 组装插件)用于创建更完整的发行包(distribution),除了常规 JAR(Java 归档) / WAR(Web 应用归档) 之外,还可把配置文件、脚本、资源等一起打包。它常用于制作可直接部署/分发的包(例如包含启动脚本与默认配置的压缩包),满足“交付即运行”的场景需求。

763. 什么是 Maven Profiles(Maven 配置文件)?构建时如何启用某个 Profile(配置文件)?

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Advanced, Q32, Maven)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 6965fd39fa809e6d3889b83e | 官方: 是 | 付费: 否

答案:

答案Maven Profiles(Maven 配置文件)用于为不同环境/场景定义一组配置集合(例如 dev/test/prod 的依赖、插件参数或资源过滤规则)。在构建时可以通过命令行 -P 激活指定 profile(配置文件);也可以在 pom.xml(项目对象模型文件) 中配置激活条件(如系统属性、JDK(Java 开发工具包) 版本、操作系统等),让 Maven 在满足条件时自动启用。

764. 解释 Maven Parent POM(Maven 父项目对象模型) 的概念:它如何在多个项目之间共享配置?

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Advanced, Q35, Maven)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 6965fd39fa809e6d3889b847 | 官方: 是 | 付费: 否

答案:

答案Parent POM(父项目对象模型) 是作为“父项目”的 POM(项目对象模型),用于承载多个子项目可继承的公共配置。子项目通过 继承父 POM 后,可以共享依赖版本管理、插件配置、构建参数等,从而保证多项目/多模块的一致性,减少重复配置,也让升级依赖与统一规范更容易。

765. Maven Dependency Management Plugin(Maven 依赖管理插件) 用来做什么?如何帮助分析依赖?

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Advanced, Q36, Maven)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 6965fd39fa809e6d3889b84a | 官方: 是 | 付费: 否

答案:

答案该插件用于分析项目依赖及其传递依赖,可输出类似“依赖树”的结构,展示每个依赖的版本与潜在冲突,帮助你定位重复依赖、版本不一致或冲突来源,从而更快完成依赖问题的识别与修复。

766. 什么是 Maven Phases(Maven 生命周期阶段) 和 Goals(Maven 目标)?两者区别是什么?

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Advanced, Q38, Maven)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 6965fd39fa809e6d3889b850 | 官方: 是 | 付费: 否

答案:

答案Goal 是插件提供的具体动作(compile/test/package/install/deploy 等),每个 goal 归属于某个插件;Phase 是生命周期中的阶段,代表一组按顺序执行的步骤(如 validate、compile、test、package 等)。区别在于:Phase 是“流程节点”,Goal 是“具体任务”。通常 Goal 会绑定到某个 Phase 上,执行某个 Phase 时会触发相应的 Goal 来完成实际工作。

767. 如何创建自定义 Maven Archetype(Maven 原型) 用于生成项目?

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Advanced, Q39, Maven)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 6965fd39fa809e6d3889b854 | 官方: 是 | 付费: 否

答案:

答案可以使用 Maven Archetype Plugin(Maven 原型插件) 的 archetype:create-from-project 目标,从现有 Maven 项目生成 archetype 模板。生成后将其安装到本地或发布到远程仓库,就能像使用官方模板一样,用该 archetype 快速创建新项目,实现团队内标准化脚手架。

768. 解释 Maven Release Plugin(Maven 发布插件):它如何帮助发布项目版本?

  • 知识点: DevOps/云 / 编程语言基础 (主题: maven, java, build-tools, dependency-management, ci-cd;标签: Advanced, Q40, Maven)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 6965fd39fa809e6d3889b857 | 官方: 是 | 付费: 否

答案:

答案Maven Release Plugin(Maven 发布插件) 用于规范化版本发布流程,可自动完成版本号变更、提交到版本控制、创建 release tag(发布标签),并将构件部署到 Maven 仓库等操作。它能把“发布”从手工步骤变为可重复的自动化流程,降低漏步骤或版本不一致导致的发布风险,提升发布一致性与可靠性。

769. 停止(stop)和终止(terminate)云实例(云服务器实例) 有什么区别?

  • 知识点: DevOps/云 (主题: aws, ec2, cloud-compute, cost-management;标签: Advanced, Q12, SaaS)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 6965fe99fa809e6d3889da80 | 官方: 是 | 付费: 否

答案:

答案Stop(停止) 通常表示实例停止运行:计算资源释放回云平台,但磁盘/存储可能仍保留(因此仍可能产生存储费用)。Terminate(终止) 表示彻底销毁实例:实例与其关联存储会被删除并归还云平台,计费也随之停止(不再为该实例及其已删除存储付费)。在实际使用中要特别注意:Terminate(终止) 往往不可逆,可能导致数据丢失。

770. Microsoft Azure 实现了哪些角色(roles)?

  • 知识点: DevOps/云 (主题: azure, cloud-compute, paas, saas;标签: Advanced, Q16, SaaS)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 6965fe99fa809e6d3889daa7 | 官方: 是 | 付费: 否

答案:

答案文段中提到 Azure 的三种角色:

  • Web Role:提供前端 Web 解决方案(类似 ASP.NET 应用),并由平台提供 IIS 等 Web 托管能力。
  • Worker Role:用于后台服务与长耗时任务(例如日志处理等)。
  • Virtual Machine Role:让 Web/Worker 角色也可以在虚拟机中运行与执行。

771. Azure 平台的主要组成部分有哪些?

  • 知识点: DevOps/云 (主题: azure, compute, storage, service-fabric, cloud-platform;标签: Advanced, Q19, SaaS)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 6965fe99fa809e6d3889dab9 | 官方: 是 | 付费: 否

答案:

答案文段中提到 Azure 平台的三大组成:Compute(计算)、Storage(存储)、Fabric(服务编排/分布式平台能力)。

  • Azure Compute:提供 Web/Worker/VM 等角色的托管与计算服务环境。
  • Azure Storage:提供队列、表、Blob、磁盘等多类存储服务。
  • Azure Fabric:指 Azure Service Fabric 等分布式系统平台(PaaS),用于构建、维护与运行服务。

772. 列举一些 Azure Virtual Machine 不支持的角色或功能。

  • 知识点: DevOps/云 (主题: azure, virtual-machines, limitations, cloud-compute;标签: Advanced, Q20, SaaS)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 6965fe99fa809e6d3889dabc | 官方: 是 | 付费: 否

答案:

答案文段中给出的 Azure VM 不支持(或受限支持)的角色/功能包括:

  • DHCP Server(动态主机配置协议服务器)
  • Hyper-V(仅在特定系列如 EV3、DV3 等支持)
  • BitLocker 驱动器加密(操作系统盘限制;数据盘可能可用)
  • Network Load Balancing(网络负载均衡)
  • Wireless LAN Service(无线局域网服务)

773. 如何把安全测试集成到 DevOps 流水线中?

  • 知识点: DevOps/云 / 安全 (主题: devsecops, devops, sast, dast, cicd, iac-security;标签: DevSecOps, Q20, DevOps)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 696601a5fa809e6d388a2ee3 | 官方: 是 | 付费: 否

答案:

答案把安全测试“左移并自动化”:在 CI/CD 中集成自动安全工具,对代码与基础设施进行漏洞扫描。常见做法包括 SAST(静态代码安全扫描)与 DAST(动态应用安全测试),并配合依赖库扫描、IaC(基础设施即代码)扫描等。把检查放进构建/部署阶段,自动把结果反馈给开发;同时让安全专家尽早参与需求与设计评审,确保安全贯穿流水线每个阶段。

774. 自动化在 DevOps 环境的安全保障中起什么作用?

  • 知识点: DevOps/云 (主题: devsecops, automation, monitoring, policy-as-code;标签: DevSecOps, Q21, DevOps)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 696601a5fa809e6d388a2ef4 | 官方: 是 | 付费: 否

答案:

答案自动化让安全变成“持续且一致”的能力。自动化扫描与测试能更快发现并修复漏洞,并把安全策略以同样方式应用到各环境,降低人为操作失误。同时自动化还能支持持续监控与威胁检测,使团队能更快响应安全事件。总体来说,自动化让安全可重复、可度量、可融入交付流程,从而提升系统韧性。

775. 在 DevOps 环境中如何确保基础设施安全?

  • 知识点: DevOps/云 (主题: devsecops, rbac, patching, monitoring, incident-response;标签: 2 Years Experience, Q24, DevOps)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 696601a5fa809e6d388a2f2d | 官方: 是 | 付费: 否

答案:

答案可从“预防 + 检测 + 响应”三方面入手:在开发流程中落实安全最佳实践;引入自动化安全测试工具发现漏洞;持续监控基础设施以快速识别威胁;使用 RBAC(基于角色的访问控制)做权限隔离;定期更新补丁修复已知漏洞;同时建立事件响应与灾备方案,降低安全事件影响。通过体系化措施减少攻击面并提升恢复能力。

776. 请描述安全在 DevOps 环境中的角色。

  • 知识点: DevOps/云 / 安全 (主题: devsecops, security, compliance, sdlc;标签: 2 Years Experience, Q25, DevOps)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 696601a5fa809e6d388a2f42 | 官方: 是 | 付费: 否

答案:

答案在 DevOps 语境下,安全应贯穿整个软件生命周期(通常称为 DevSecOps),而不是上线前的“最后一步”。安全的目标是让软件在设计、开发、测试、部署到运维阶段都符合规则与合规要求,并能抵御潜在风险。DevOps 团队需要具备最新安全标准与威胁识别能力,把安全最佳实践前置落地,并在生产环境持续监测与防护。

777. 构建 DevOps 流水线时有哪些关键安全考虑?

  • 知识点: DevOps/云 / 安全 (主题: devsecops, cicd, secrets-management, least-privilege, supply-chain-security;标签: DevSecOps, Q27, DevOps)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 696601a5fa809e6d388a2f6f | 官方: 是 | 付费: 否

答案:

答案关键点包括:安全编码与代码审查;依赖库保持安全且及时更新;在流水线中集成安全测试与漏洞扫描;加强认证与访问控制(最小权限),并对密钥/凭据做安全管理与隔离;同时确保可审计(日志、变更记录)。最后要有明确的告警、响应与处置流程,让安全事件能被快速发现并标准化处理。

778. 请描述在 DevOps(Development and Operations)环境中如何加固应用容器的安全流程。

  • 知识点: DevOps/云 / 操作系统与网络 (主题: containers, devsecops, image-scanning, registry, network-segmentation;标签: DevSecOps, Q28, DevOps)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 696601a6fa809e6d388a2f87 | 官方: 是 | 付费: 否

答案:

答案一般从供应链到运行时分层加固:先选择可信的镜像仓库(Image Registry),并在 CI/CD(Continuous Integration/Continuous Deployment)中加入镜像漏洞扫描(Vulnerability Scanning)与镜像签名(Image Signing)(防篡改);上线后通过权限控制(Access Control)与网络隔离(Network Isolation)(分段)降低暴露面;再配合持续扫描、补丁更新、监控(Monitoring)与日志审计(Log Audit)来维持安全。目标是阻止不安全镜像进入生产,并在运行时持续发现与处置风险。

779. 请谈谈在 DevOps 环境中身份与访问管理(IAM,Identity and Access Management)的重要性。

  • 知识点: DevOps/云 / 安全 (主题: iam, security, least-privilege, devops;标签: Security, Q33, DevOps)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 696601a6fa809e6d388a2fc3 | 官方: 是 | 付费: 否

答案:

答案IAM 的核心作用是确保只有被授权的人与系统才能访问资源。它统一管理身份、权限与认证,使用户仅获得其岗位所需的最小权限(Least Privilege),并能验证、记录访问请求。这样既能预防未授权访问,也便于审计与合规,是 DevOps 环境安全治理的基础能力之一。

780. Chef 与 Puppet、Ansible 等配置管理工具(Configuration Management Tools)有什么不同?

  • 知识点: DevOps/云 (主题: chef, puppet, ansible, configuration-management, compliance;标签: Chef, Q72, DevOps)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 696601a9fa809e6d388a33fe | 官方: 是 | 付费: 否

答案:

答案文段中强调 Chef 在基础设施自动化上的差异:相较 Puppet/Ansible 更偏过程式的操作,Chef 更强调声明式(Declarative)(描述期望状态,由工具保证最终收敛到该状态)。同时 Chef 对测试与合规的关注较强,因此在对安全与合规要求严格的企业环境中较常见。

781. 在 DevOps 环境中管理 Kubernetes 集群有哪些常见挑战?如何应对?

  • 知识点: DevOps/云 / 安全 (主题: kubernetes, iac, observability, security, compliance;标签: Kubernetes, Q98, DevOps)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 696601aafa809e6d388a3453 | 官方: 是 | 付费: 否

答案:

答案常见挑战包括:配置管理复杂、监控与排障难度高,以及安全与合规的持续维护。应对策略可采用 IaC(Infrastructure as Code)与声明式配置(Declarative Configuration)(减少手工变更与漂移),通过 CI/CD 自动化常规操作;同时落地完善的监控与日志体系提升可见性与安全审计能力。配合最佳实践与标准化流程可显著提升集群可运维性。

782. 公司计划把部分应用迁移上云。你会如何制定迁移方案,同时兼顾安全、合规与成本优化?

  • 知识点: DevOps/云 / 安全 (主题: cloud-migration, security, compliance, cost-optimization, rbac;标签: Scenario, Q101, DevOps)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 696601aafa809e6d388a3565 | 官方: 是 | 付费: 否

答案:

答案我会围绕三条主线制定迁移方案:安全、合规、成本。安全方面:设计网络隔离与边界防护(防火墙/NSG,Network Security Group)、权限与身份体系(RBAC,Role-Based Access Control),确保只有授权人员访问;合规方面:梳理行业要求(如 HIPAA(Health Insurance Portability and Accountability Act)、PCI(Payment Card Industry)等)并在云上落地对应控制措施;成本方面:资源选型与规格右配、考虑预留/包年等优惠方案,并用自动伸缩按需付费。实施上先搭建云账号与治理基线、配置网络与访问控制,分阶段迁移(先从非生产/低风险开始验证),上线后持续监控、弹性扩缩容并做持续成本优化。

783. 新功能上线后出现 CPU 飙升、延迟变高、部分失败。你会如何排查?会用哪些技术与工具?

  • 知识点: DevOps/云 (主题: debugging, observability, metrics, logging, tracing, performance;标签: Scenario, Q102, DevOps)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 696601aafa809e6d388a3568 | 官方: 是 | 付费: 否

答案:

答案我会从“数据证据 → 缩小范围 → 复现验证”来排查:① 先看监控指标(CPU/内存/网络/请求量/错误率)在问题开始时间点是否出现异常峰值;② 查应用与 Web/系统日志,寻找报错、告警与重复模式;③ 使用分布式追踪(Distributed Tracing)定位慢请求与失败链路,找出瓶颈服务或接口;④ 对比上线前后的代码/配置/依赖变更,必要时做回滚或灰度对照以减少变量;⑤ 在测试环境做压测/性能复现,定位到具体代码路径、资源限制或配置问题。最终目标是用指标、日志、追踪与实验逐步排除可能性,锁定根因。

784. 应用迁移到 Kubernetes/容器后变得很慢。你会用哪些策略排查容器环境的性能问题?

  • 知识点: DevOps/云 / 操作系统与网络 (主题: kubernetes, performance, troubleshooting, resources, autoscaling, networking;标签: Scenario, Q103, DevOps)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 696601aafa809e6d388a356c | 官方: 是 | 付费: 否

答案:

答案我会先从集群与节点层面排查:节点 CPU/内存是否压力过大、是否存在资源争用(noisy neighbor),以及 Pod/节点之间网络吞吐与延迟是否异常。再看应用层:镜像是否过大导致启动慢;应用内部是否发生限流/错误/GC(Garbage Collection)压力;资源 requests/limits 是否设置不合理导致 CPU throttling(CPU 节流)或 OOM(Out of Memory)。接着检查 Kubernetes 调度与部署:Pod 分布是否均衡、是否出现调度不佳导致热点;HPA(Horizontal Pod Autoscaler)/自动伸缩在流量峰值时是否反应不及时。最后结合 K8s(Kubernetes)指标、日志、链路追踪与性能分析工具定位瓶颈,并通过资源调优、网络与配置优化逐步验证改进。

785. 说说weblogic中一个Domain的缺省目录结构?比如要将一个简单的helloWorld.jsp放入何目录下,然的在浏览器上就可打入http://主机:端口号//helloword.jsp就可以看到运行结果了? 又比如这其中用到了一个自己写的javaBean该如何办?

  • 知识点: DevOps/云 / 编程语言基础 (主题: weblogic, java, web;标签: Domain, applications, WEB-INF, classes, JSP, JavaBean)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 696700dafa809e6d389ebbbc | 官方: 是 | 付费: 否

答案:

答案Domain目录服务器目录applications,将应用目录放在此目录下将可以作为应用访问,如果是Web应用(Web Application),应用目录需要满足Web应用目录要求,jsp文件可以直接放在应用目录中,Javabean(JavaBean)需要放在应用目录的WEB-INF目录的classes目录中,设置服务器的缺省应用(Default Application)将可以实现在浏览器上无需输入应用名。

786. 如何在weblogic(WebLogic)中进行ssl(SSL)配置与客户端的认证(Authentication)配置或说说j2ee(J2EE)(标准)进行ssl(SSL)的配置

  • 知识点: DevOps/云 / 安全 (主题: weblogic, ssl, security;标签: SSL, Keystore, DemoIdentity.jks, DemoTrust.jks, Mutual TLS)
  • 类型: technical | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 696700dafa809e6d389ebbc2 | 官方: 是 | 付费: 否

答案:

答案缺省安装中使用DemoIdentity.jks(DemoIdentity.jks)和DemoTrust.jks(DemoTrust.jks) KeyStore(KeyStore)实现SSL(SSL),需要配置服务器使用Enable SSL(Enable SSL),配置其端口,在产品模式下需要从CA(CA)获取私有密钥和数字证书,创建identity(identity)和trust keystore(trust keystore),装载获得的密钥和数字证书。可以配置此SSL(SSL)连接是单向还是双向的。

787. 用 .NET Core(.NET Core) 写一个 Console App(Console App) 调用上面的 API(API),每小时生成一次报表,并且运行在 Docker(Docker) 容器里:你会怎么设计?

  • 知识点: DevOps/云 / 编程语言基础 (主题: dotnet, docker;标签: Console App, Docker, Scheduling)
  • 类型: technical | 难度: hard | 子类型: coding
  • 分类: fullstack
  • 公司: Carsales
  • id: 697042d4120fcc15913041ee | 官方: 是 | 付费: 否

答案:

答案设计:Console(Console) 里用 HttpClient(HttpClient) 调用 GET /cars(GET /cars),按需求生成报表(例如按 SellerType(SellerType)/品牌分组、统计数量与均价),输出到 stdout(stdout) 或写入挂载卷文件。
定时:容器内可用 cron(cron)/supercronic(supercronic),或让程序自己用 PeriodicTimer(PeriodicTimer) 每小时跑一次;生产更推荐用外部调度(K8s CronJob(K8s CronJob))。
Docker(Docker):多阶段构建(sdk build(SDK build) → runtime(runtime) 运行),并用环境变量配置 API(API) 地址。
AnswerDesign: use HttpClient to call GET /cars, compute aggregations (e.g., counts by seller type, avg price), output to stdout or to a mounted volume.

答案设计:使用 HttpClient 调用 GET /cars,计算聚合(例如,按卖家类型统计数量、平均价格),输出到标准输出或挂载的卷。
Scheduling: cron/supercronic inside container, or PeriodicTimer in-app; in production, prefer external schedulers (e.g., Kubernetes CronJob).
调度:容器内的 cron/supercronic,或应用内的 PeriodicTimer;在生产环境中,优先使用外部调度器(例如,Kubernetes CronJob)。
Docker: multi-stage build, configure API base URL via env vars.
Docker:多阶段构建,通过环境变量配置 API 基础 URL。

788. 你如何处理项目的紧急情况?

  • 知识点: DevOps/云 / 行为与软技能 (主题: incident-response, reliability;标签: incident, RCA)
  • 类型: behavioral | 难度: hard | 子类型: behavioral
  • 分类: fullstack
  • 公司: Telstra
  • id: 69709b3a120fcc15913a3d3b | 官方: 是 | 付费: 否

答案:

答题要点- 先止血:评估影响面,回滚/降级/限流,保护核心链路

  • 再定位:用日志/指标/链路追踪找到根因,记录时间线
  • 再修复:最小改动hotfix,验证与灰度发布
  • 复盘:RCA、行动项(监控、自动化、压测、流程)
    示例回答遇到线上事故我会先按影响优先级做止血,比如回滚或降级并保护核心业务。随后基于监控、日志和链路追踪定位根因,产出最小可行修复并灰度发布。事后做RCA(RCA)复盘,把监控、告警阈值、压测和发布流程补齐,降低再次发生的概率。

789. 如果你遇到性能瓶颈,你会如何排查和解决?

  • 知识点: DevOps/云 (主题: performance, observability;标签: profiling, tracing, metrics)
  • 类型: technical | 难度: hard | 子类型: concept
  • 分类: fullstack
  • 公司: Telstra
  • id: 69709b4e120fcc15913a50bd | 官方: 是 | 付费: 否

答案:

答题要点- 定位层级:客户端→网关/服务→数据库/缓存→外部依赖

  • 手段:指标(RED/USE)、Tracing、日志、Profiler、压测复现
  • 常见原因:慢SQL/锁、缓存失效、N+1、线程池耗尽、GC、热点代码
  • 修复:最小改动+灰度验证,补齐监控与容量规划
    示例回答我会先看监控指标确定瓶颈是在CPU(CPU)、内存、I/O(I/O)还是下游依赖,再用Tracing(Tracing)定位到具体接口与调用链,结合日志与Profiler(Profiler)确认根因。修复时优先做收益最大的改动(索引/查询、缓存、连接池、并发控制等),并通过压测与灰度发布验证,最后补齐告警与容量基线。

790. 你如何确保基于云的系统的高可用性和容错能力?

  • 知识点: DevOps/云 / 系统设计/架构 / 行为与软技能 (主题: cloud, reliability, sre;标签: High Availability, Failover, DR, Resilience)
  • 类型: behavioral | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 69773006a39c9c5c3a8c4ab4 | 官方: 是 | 付费: 否

答案:

答案我会用多可用区/多区域部署实现冗余,配合负载均衡与健康检查进行故障切换;对状态组件用复制与备份(多副本数据库、跨区复制),对无状态服务用自动扩缩与滚动发布;同时设计超时、重试(带退避)、熔断、限流与幂等,降低级联故障风险,并通过监控告警与演练(故障注入/灾备演练)验证韧性。

791. 你如何实施持续集成和持续部署(CI/CD(CI/CD))管道?

  • 知识点: DevOps/云 / 行为与软技能 (主题: devops, ci-cd, release-engineering;标签: Pipeline, Canary, Rollback, Quality Gates)
  • 类型: behavioral | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 69773006a39c9c5c3a8c4ac9 | 官方: 是 | 付费: 否

答案:

答案我会定义流水线阶段:代码检查(Lint(Lint)/SAST(SAST))→ 构建与制品版本化 → 自动化测试(单测/集成/端到端)→ 安全扫描(依赖/镜像)→ 部署到测试环境 → 通过门禁后发布生产。生产发布会采用蓝绿/金丝雀/滚动策略,并配合配置中心与特性开关、可观测性与自动回滚。工具可用 Jenkins(Jenkins)/GitLab CI(GitLab CI)/GitHub Actions(GitHub Actions)/CodePipeline(CodePipeline) 等,关键是标准化与可追踪。

792. 你如何处理云环境中的容器化(Containerization)和编排(Orchestration)?

  • 知识点: DevOps/云 / 行为与软技能 (主题: containers, kubernetes, cloud;标签: Kubernetes, Docker, GitOps, Helm)
  • 类型: behavioral | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 6977300ca39c9c5c3a8c527b | 官方: 是 | 付费: 否

答案:

答案我会用 Docker/OCI(Open Container Initiative) 镜像标准化应用交付(多阶段构建、最小化镜像、漏洞扫描),并用 Kubernetes(K8s)/托管编排服务管理部署、扩缩容与滚动升级。关键实践包括:声明式资源(Deploy/Service/Ingress)、健康检查与资源限制、配置与密钥管理、服务发现与网络策略、日志/指标/Tracing(链路追踪) 集成,以及用 Helm/Kustomize/GitOps 进行可追溯发布。

793. 你如何监控和解决基于云的系统中的性能问题?

  • 知识点: DevOps/云 / 行为与软技能 (主题: observability, sre, cloud;标签: Monitoring, SLO, Tracing, RCA)
  • 类型: behavioral | 难度: hard | 子类型:
  • 分类: fullstack
  • id: 69773013a39c9c5c3a8c5afd | 官方: 是 | 付费: 否

答案:

答案我会建立可观测性三件套:指标(CPU/内存/延迟/错误率/饱和度)、日志与链路追踪(Distributed Tracing),并基于 SLO(Service Level Objective)/告警阈值触发排障。排查时先看用户影响与时间窗口,再定位瓶颈(数据库慢查询、下游依赖、网络、资源限制、GC(Garbage Collection)/线程池等),结合仪表盘、Trace 采样与剖析工具做根因分析。最终通过容量规划、缓存、索引、异步化或限流降级等手段修复,并复盘防复发。

794. 解释 CI/CD(Continuous Integration/Continuous Delivery) 流水线的核心概念和在Airbnb Platform中的实践。

  • 知识点: DevOps/云 (主题: devops, ci-cd;标签: airbnb, generated)
  • 类型: technical | 难度: hard | 子类型: concept
  • 分类: fullstack
  • 公司: 爱彼迎
  • id: 69b3792158d557c902b97972 | 官方: 是 | 付费: 是

答案:

思路分析从持续集成(Continuous Integration,CI)、持续交付(Continuous Delivery,CD)、持续部署(Continuous Deployment,CD)三个层次递进说明。
参考答案CI: 代码合并自动触发构建(Build)和测试(Testing)。CD: 自动化部署(Deployment)到各环境。关键实践:自动化测试(Automated Testing)、代码审查(Code Review)、蓝绿部署(Blue-Green Deployment)/金丝雀部署(Canary Deployment)、基础设施即代码(Infrastructure as Code,IaC)。
评分要点- CI/CD(Continuous Integration/Continuous Deployment)概念理解

  • 自动化测试策略
  • 部署策略选择
    常见追问- 如何实现零停机部署(Zero-Downtime Deployment)?
  • 如何处理回滚?

795. How does Ansible synchronize module works?

Ansible 的 synchronize 模块如何工作?
  • 知识点: DevOps/云 / 行为与软技能 (主题: ansible, iac, devops;标签: interviewbit, ansible, topic-specific, iac, devops)
  • 类型: behavioral | 难度: hard | 子类型: concept
  • 分类: fullstack
  • id: 69b3793058d557c902b987cc | 官方: 否 | 付费: 否

答案:

Ansible synchronize is a module similar to rsync in Linux machines which we can use in playbooks. The features are similar to rsync such as archive, compress, delete, etc but there are few limitations also such as - Rsync must be installed on both source and target systems

Ansible synchronize 是一个类似于 Linux 机器上 rsync 的模块,我们可以在剧本中使用它。其功能与 rsync 类似,比如归档、压缩、删除等,但也有一些限制,例如——必须在源系统和目标系统上都安装 rsync。
  • Need to specify delegate_to to change the source from localhost to some other port
  • Need to handle user permission as files are accessible as per remote user.
  • We should always give the full path of the destination host location in case we use sudo otherwise files will be copied to the remote user home directory.
  • Linux rsync limitations related to hard links are also applied here.
  • It forces -delay-updates to avoid the broken state in case of connection failure
    An example of synchronize module is

    synchronize 模块的一个示例是

  • hosts: host-remote tasks:
  • name: sync from sync_folder
    synchronize:

    同步:
    src: /var/tmp/sync_folder dest: /var/tmp/
    源: /var/tmp/sync_folder 目标: /var/tmp/
    Here we are transferring files of /var/tmp/sync_folder folder to remote machine’s /var/tmp folder
    这里我们将 /var/tmp/sync_folder 文件夹中的文件传输到远程机器的 /var/tmp 文件夹

796. How does the Ansible firewalld module work?

Ansible firewalld 模块是如何工作的?
  • 知识点: DevOps/云 (主题: ansible, iac, devops;标签: interviewbit, ansible, topic-specific, iac, devops)
  • 类型: technical | 难度: hard | 子类型: concept
  • 分类: fullstack
  • id: 69b3793058d557c902b987cf | 官方: 否 | 付费: 否

答案:

Ansible firewalld is used to manage firewall rules on host machines. This works just as Linux firewalld daemon for allowing/blocking services from the port. It is split into two major concepts - Zones: This is the location for which we can control which services are exposed to or a location to which one the local network interface is connected.

Ansible firewalld 用于管理主机上的防火墙规则。它的工作方式类似于 Linux firewalld 守护进程,用于允许或阻止来自端口的服务。它分为两个主要概念 - 区域:这是我们可以控制哪些服务被暴露的位置,或者是本地网络接口所连接的位置。
  • Services: These are typically a series of port/protocol combinations (sockets) that your host may be listening on, which can then be placed in one or more zones
    Few examples of setting up firewalld are

    设置 firewalld 的一些示例是
  • name: permit traffic in default zone for https service
    ansible.posix.firewalld:

    ansible.posix.firewalld:
    service: https
    服务: https
    permanent: yes
    永久: 是
    state: enabled
    状态: 启用
  • name: do not permit traffic in default zone on port 8081/tcp
    ansible.posix.firewalld:

    ansible.posix.firewalld:
    port: 8081/tcp
    端口: 8081/tcp
    permanent: yes
    永久: 是
    state: disabled
    状态: 禁用

797. How is the Ansible set_fact module different from vars, vars_file, or include_var?

Ansible set_fact 模块与 vars、vars_file 或 include_var 有何不同?
  • 知识点: DevOps/云 (主题: ansible, iac, devops;标签: interviewbit, ansible, topic-specific, iac, devops)
  • 类型: technical | 难度: hard | 子类型: concept
  • 分类: fullstack
  • id: 69b3793058d557c902b987d2 | 官方: 否 | 付费: 否

答案:

In Ansible, set_fact is used to set new variable values on a host-by-host basis which is just like ansible facts, discovered by the setup module. These variables are available to subsequent plays in a playbook. In the case of vars, vars_file, or include_var we know the value beforehand whereas when using set_fact, we can store the value after preparing it on the fly using certain tasks like using filters or taking subparts of another variable. We can also set a fact cache over it.

在 Ansible 中,set_fact 用于按主机设置新的变量值,这类似于由 setup 模块发现的 ansible 事实。这些变量在 playbook 中可供后续的 play 使用。在 vars、vars_file 或 include_var 的情况下,我们事先知道值,而使用 set_fact 时,我们可以在使用某些任务(如使用过滤器或取另一个变量的子部分)动态准备后存储值。我们还可以在其上设置事实缓存。

set_fact variable assignment is done by using key-pair values where the key is the variable name and the value is the assignment to it. A simple example will be like below

set_fact 变量赋值通过使用键值对完成,其中键是变量名,值是其赋值内容。一个简单的示例如下
  • set_fact:
    one_fact: value1

    one_fact: value1
    second_fact:
    second_fact:
    value2
    value2

798. When is it unsafe to bulk-set task arguments from a variable?

何时从变量批量设置任务参数是不安全的?
  • 知识点: DevOps/云 (主题: ansible, iac, devops;标签: interviewbit, ansible, topic-specific, iac, devops)
  • 类型: technical | 难度: hard | 子类型: concept
  • 分类: fullstack
  • id: 69b3793058d557c902b987d5 | 官方: 否 | 付费: 否

答案:

All of the task's arguments can be dictionary-typed variables which can be useful in some dynamic execution scenarios also. However, Ansible issues a warning since it introduces a security risk.

所有任务的参数都可以是字典类型的变量,这在某些动态执行场景中也可能有用。然而,Ansible 会发出警告,因为这引入了安全风险。

vars:

vars:
usermod_args:
usermod_args:
name: testuser
name: testuser
state: present
state: present
update_password: always
update_password: always
tasks:
任务:
  • user: '{{ usermod_args }}'
    In the above example, the values passed to the variable usermod_args could be overwritten by some other malicious values in the host facts on a compromised target machine. To avoid this - bulk variable precedence should be greater than host facts.

    在上述示例中,传递给变量 usermod_args 的值可能被受攻击目标机器上的主机事实中的恶意值覆盖。为避免此问题 - 批量变量的优先级应高于主机事实。
  • need to disable INJECT_FACTS_AS_VARS configuration to avoid collision of fact values with variables.

799. Explain Ansible register.

解释 Ansible register。
  • 知识点: DevOps/云 (主题: ansible, iac, devops;标签: interviewbit, ansible, topic-specific, iac, devops)
  • 类型: technical | 难度: hard | 子类型: concept
  • 分类: fullstack
  • id: 69b3793058d557c902b987d8 | 官方: 否 | 付费: 否

答案:

Ansible register is used to store the output from task execution in a variable. This is useful when we have different outputs from each remote host. The register value is valid throughout the playbook execution so we can make use of set_fact to manipulate the data and provide input to other tasks accordingly.

Ansible register 用于将任务执行的输出存储在变量中。当每个远程主机产生不同输出时,这非常有用。register 值在整个 playbook 执行期间有效,因此我们可以利用 set_fact 来操作数据,并相应地提供输入给其他任务。
  • hosts: all tasks:
    name: find all txt files in /home shell: "find /home -name *.txt" register: find_txt_files

    name: find all txt files in /home shell: "find /home -name *.txt" register: find_txt_files
    debug:
    调试:
    var: find_txt_files
    变量:find_txt_files
    In the above example, we are searching for all .txt files in the remote host’s home folder and then capturing it in find_txt_files and displaying that variable.
    在上述示例中,我们正在远程主机的主目录中搜索所有 .txt 文件,然后将其捕获到 find_txt_files 变量中并显示该变量。

800. How can we delegate tasks in Ansible?

我们如何在 Ansible 中委派任务?
  • 知识点: DevOps/云 (主题: ansible, iac, devops;标签: interviewbit, ansible, topic-specific, iac, devops)
  • 类型: technical | 难度: hard | 子类型: concept
  • 分类: fullstack
  • id: 69b3793058d557c902b987db | 官方: 否 | 付费: 否

答案:

Task delegation is an important feature of Ansible since there might be use cases where we would want to perform a task on one host with reference to other hosts. We can do this using the delegate_to keyword.

任务委派是 Ansible 的一个重要功能,因为可能存在这样的情况:我们希望在一台主机上执行任务时参考其他主机。我们可以使用 delegate_to 关键字来实现这一点。

For example, if we want to manage nodes in a load balancer pool we can do:

例如,如果我们想管理负载均衡器池中的节点,我们可以这样做:
  • hosts: webservers
    serial: 5

    串行:5

tasks:

任务:
  • name: Take machine out of ELB pool
    ansible.builtin.command: /usr/bin/take_out_of_pool {{ inventory_hostname }}

    ansible.builtin.command: /usr/bin/take_out_of_pool {{ inventory_hostname }}
    delegate_to: 127.0.0.1
    delegate_to: 127.0.0.1
  • name: Actual steps would go here
    ansible.builtin.yum:

    ansible.builtin.yum:
    name: acme-web-stack
    名称:acme-web-stack
    state: latest
    状态:最新
  • name: Add machine back to ELB pool
    ansible.builtin.command: /usr/bin/add_back_to_pool {{ inventory_hostname }}

    ansible.builtin.command: /usr/bin/add_back_to_pool {{ inventory_hostname }}
    delegate_to: 127.0.0.1
    delegate_to: 127.0.0.1
    We are also defining serial to control the number of hosts executing at one time. There is another shorthand syntax called local_action which can be used instead of delegate_to.
    我们还定义了 serial 来控制一次执行的主机数量。还有一种称为 local_action 的简写语法,可以用来代替 delegate_to。

...
tasks:

任务:
  • name: Take machine out of ELB pool
    local_action: ansible.builtin.command /usr/bin/take_out_of_pool {{ inventory_hostname }}

    local_action: ansible.builtin.command /usr/bin/take_out_of_pool {{ inventory_hostname }}
    ...
    But there are few exceptions also such as include, add_host, and debug tasks that cannot be delegated.
    但也有一些例外,如 include、add_host 和 debug 任务,这些任务不能委派。
0

评论

博主关闭了当前页面的评论
EN