本段 328 题 | 来源:fullstack + general + design | 知识点:DevOps/云
801. 解释 CI/CD(Continuous Integration/Continuous Delivery) 流水线的核心概念和在iOS中的实践。
- 知识点: DevOps/云 (主题: devops, ci-cd;标签: apple, generated)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- 公司: 苹果
- id: 69b3793c58d557c902b99292 | 官方: 是 | 付费: 是
答案:
思路分析从持续集成(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)? - 如何处理回滚?
802. Your organization is using DynamoDB for its application. This application collects data from its users every 10 minutes and stores it in DynamoDB. Then every day, after a particular time interval, the data (respective of each user) is extracted from DynamoDB and sent to S3. Then, the application visualizes this data for the users. You are asked to propose a solution to help optimize the backend of the application for a low latency at a lower cost. What would you recommend?
您的组织正在为其应用程序使用 DynamoDB。该应用程序每10分钟从用户收集数据并将其存储在 DynamoDB 中。然后,每天在特定时间间隔后,从 DynamoDB 提取每个用户的数据并发送到 S3。接着,应用程序将这些数据可视化给用户。您被要求提出一个解决方案,以低成本优化应用程序后端,实现低延迟。您会推荐什么?
- 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795a58d557c902b9aa23 | 官方: 否 | 付费: 否
答案:
Since we want to reduce latency, we have to introduce a caching system. Amazon ElastiCache is a caching solution offered by Amazon that is cost-effective and has competitive costs. Below is the architecture for the same.
由于我们想降低延迟,必须引入缓存系统。Amazon ElastiCache 是 Amazon 提供的一种缓存解决方案,成本效益高且价格有竞争力。以下是相应的架构。
It can be used to store a cached version of the application in a region closer to users so that when requests are made by the users, the cached version of the application can respond, and hence latency will be reduced.
它可用于将应用程序的缓存版本存储在更靠近用户的区域,以便当用户发出请求时,缓存版本可以响应,从而降低延迟。
803. You created a web application with autoscaling. You observed that the traffic on the application is the highest on Wednesdays and Fridays between 9 AM and 7 PM. What would be the best solution for you to handle the scaling?
您创建了一个带自动扩缩容的 Web 应用程序。您观察到该应用程序的流量在每周三和周五上午9点至晚上7点之间最高。处理扩缩容的最佳解决方案是什么?
- 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795a58d557c902b9aa26 | 官方: 否 | 付费: 否
答案:
Configure a policy in autoscaling to scale as per the predictable traffic patterns.
在自动扩缩容中配置策略,根据可预测的流量模式进行扩缩容。
804. How would you handle a situation where the relational database engine crashes often whenever the traffic to your RDS instances increases, given that the replica of the RDS instance is not promoted as the master instance?
当流量增加导致您的 RDS 实例的关系数据库引擎频繁崩溃,且 RDS 实例的副本未被提升为主实例时,您会如何处理这种情况?
- 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
- 类型: technical | 难度: hard | 子类型: scenario
- 分类: fullstack
- id: 69b3795a58d557c902b9aa29 | 官方: 否 | 付费: 否
答案:
A bigger RDS instance type needs to be opted for handling large amounts of traffic and creating manual or automated snapshots to recover data in case the RDS instance goes down.
需要选择更大的 RDS 实例类型来处理大量流量,并创建手动或自动快照以在 RDS 实例宕机时恢复数据。
805. You have an application running on your Amazon EC2 instance. You want to reduce the load on your instance as soon as the CPU utilization reaches 80 percent. How will you do that?
您有一个在 Amazon EC2 实例上运行的应用程序。您希望在 CPU 利用率达到80%时立即减少实例负载。您将如何实现?
- 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795a58d557c902b9aa2c | 官方: 否 | 付费: 否
答案:
It can be done by creating an autoscaling group to deploy more instances when the CPU utilization exceeds 80 percent.
可以通过创建自动扩缩容组来实现,当 CPU 利用率超过80%时部署更多实例。
806. What would I have to do if I wanted to access Amazon Simple Storage buckets and use the information for access audits?
如果我想访问 Amazon Simple Storage 桶并使用该信息进行访问审计,我需要做什么?
- 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795a58d557c902b9aa2f | 官方: 否 | 付费: 否
答案:
AWS CloudTrail can be used in this case as it is designed for logging and tracking API calls, and it has also been made available for storage solutions.
在这种情况下可以使用 AWS CloudTrail,因为它专为日志记录和跟踪 API 调用而设计,并且也已适用于存储解决方案。
807. You created a key in the North Virginia region to encrypt my data in the Oregon region. You also added three users to the key and an external AWS account. Then, to encrypt an object in S3, when you tried to use the same key, it was not listed. Where did it go wrong?
您在北弗吉尼亚区域创建了一个密钥来加密我在俄勒冈区域的数据。您还向该密钥添加了三个用户和一个外部 AWS 账户。然后,在尝试使用同一密钥加密 S3 中的对象时,它未列出。哪里出错了?
- 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795a58d557c902b9aa32 | 官方: 否 | 付费: 否
答案:
The data and the key should be in the same region. That is, the data that has to be encrypted should be in the same region as the one in which the key was created. In this case, the data is in the Oregon region, whereas the key was created in the North Virginia region.
数据和密钥应位于同一区域。也就是说,要加密的数据应位于密钥创建时的相同区域。在这种情况下,数据位于俄勒冈区域,而密钥是在北弗吉尼亚区域创建的。
808. You have been onboarded as a Cloud Engineer recently in a company called XYZ. The current application setup was a monolithic application; it has two functions: image processing and general website hosting. You have segregated these applications into 2 applications based on the workload. Which Load Balancer will you use to distribute the traffic among servers based on the request being made? Classic Load Balancer Application Load Balancer * Network Load balancer
你最近作为云工程师入职一家名为 XYZ 的公司。当前应用程序设置是一个单体应用程序;它有两个功能:图像处理和通用网站托管。你已根据工作负载将这些应用程序划分为两个应用程序。你将使用哪种负载均衡器根据所发出的请求在服务器之间分配流量? 经典负载均衡器 应用程序负载均衡器 * 网络负载均衡器
- 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
- 类型: technical | 难度: hard | 子类型: coding
- 分类: fullstack
- id: 69b3795a58d557c902b9aa35 | 官方: 否 | 付费: 否
答案:
Application Load Balancer: It supports path-based routing of the traffic and hence helps in enhancing the performance of the application structured as smaller services.
应用程序负载均衡器:它支持基于路径的流量路由,因此有助于提升结构化为较小服务的应用程序的性能。
Using an application load balancer, the traffic can be routed based on the requests made. In this scenario, the traffic where requests are made for rendering images can be directed to the servers only deployed for rendering images, and the traffic where requests are made for computing can be directed to the servers deployed only for general computing purposes.
使用应用程序负载均衡器,可以根据发出的请求来路由流量。在此场景中,请求渲染图像的流量可以定向到仅为渲染图像而部署的服务器,而请求进行计算的流量可以定向到仅为通用计算目的而部署的服务器。
809. Suppose you create a subnet and launch an EC2 instance in the subnet with default settings. Which of the following options will be ready to use on the EC2 instance as soon as it is launched? Elastic IP Private IP Public IP Internet Gateway
假设你创建一个子网并在该子网中使用默认设置启动一个 EC2 实例。以下哪个选项在 EC2 实例启动后立即可用? 弹性 IP 私有 IP 公有 IP 互联网网关
- 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795a58d557c902b9aa38 | 官方: 否 | 付费: 否
答案:
Private IP
私有 IP
Private IP is mandatory while creating a subnet. Adding an internet gateway, public IP or elastic IP address, is optional. Hence, by default, any EC2 instance that will be deployed in a subnet with a default setting will have a private IP address inside them.
创建子网时私有 IP 是必需的。添加互联网网关、公有 IP 或弹性 IP 地址是可选的。因此,默认情况下,任何在具有默认设置的子网中部署的 EC2 实例内部都会有一个私有 IP 地址。
Get Certified in Cloud Computing
获得云计算认证
Cloud Computing Courses
云计算课程
Explore Program
探索课程
810. Your organization has four instances for production and another four for testing. You are asked to set up a group of IAM users that can only access the four production instances and not the other four testing instances. How will you achieve this?
你的组织有四个用于生产的实例和另外四个用于测试的实例。你被要求设置一组 IAM 用户,这些用户只能访问四个生产实例,而不能访问另外四个测试实例。你将如何实现这一点?
- 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795a58d557c902b9aa3b | 官方: 否 | 付费: 否
答案:
We can achieve this by defining tags on the test and production instances and then adding a condition to the IAM policy that allows access to specific tags.
我们可以通过在测试和生产实例上定义标签,然后在允许访问特定标签的 IAM 策略中添加条件来实现这一点。
811. Your organization wants to monitor the read-and-write IOPS for its AWS MySQL RDS instance and then send real-time alerts to its internal operations team. Which service offered by Amazon can help your organization achieve this scenario?
你的组织想要监控其 AWS MySQL RDS 实例的读写 IOPS,然后向其内部运维团队发送实时警报。Amazon 提供的哪种服务可以帮助你的组织实现此场景?
- 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
- 类型: technical | 难度: hard | 子类型: scenario
- 分类: fullstack
- id: 69b3795a58d557c902b9aa3e | 官方: 否 | 付费: 否
答案:
Amazon CloudWatch would help us achieve this. Since Amazon CloudWatch is a monitoring tool offered by Amazon, it’s the right service to use in the above-mentioned scenario.
Amazon CloudWatch 将帮助我们实现这一点。由于 Amazon CloudWatch 是 Amazon 提供的监控工具,它是上述场景中使用的合适服务。
812. Which of the following services can be used if you want to capture client connection information from your load balancer at a particular time interval? Enabling access logs on your load balancer Enabling CloudTrail for your load balancer * Enabling CloudWatch metrics for your load balancer
如果你想在特定时间间隔从负载均衡器捕获客户端连接信息,可以使用以下哪种服务? 在负载均衡器上启用访问日志 为负载均衡器启用 CloudTrail * 为负载均衡器启用 CloudWatch 指标
- 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795a58d557c902b9aa41 | 官方: 否 | 付费: 否
答案:
Enabling CloudTrail for your load balancer
为负载均衡器启用 CloudTrail
AWS CloudTrail is an inexpensive log monitoring solution provided by Amazon. It can provide logging information for load balancers or any other AWS resources. The provided information can be further used for analysis.
AWS CloudTrail 是 Amazon 提供的一种经济高效的日志监控解决方案。它可以为负载均衡器或任何其他 AWS 资源提供日志记录信息。提供的信息可进一步用于分析。
813. You have created a VPC with private and public subnets. In what kind of subnet would you launch the database servers?
您已创建了一个包含私有和公有子网的VPC。您会在哪种子网中启动数据库服务器?
- 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795a58d557c902b9aa44 | 官方: 否 | 付费: 否
答案:
Database servers should be ideally launched on private subnets. Private subnets are ideal for the backend services and databases of all applications since they are not meant to be accessed by the users of the applications, and private subnets are not routable from the internet.
数据库服务器理想情况下应启动在私有子网中。私有子网非常适合所有应用的后端服务和数据库,因为它们不打算被应用用户访问,并且私有子网不能从互联网路由访问。
814. Is it possible to switch from an instance-backed root volume to an EBS-backed root volume at any time?
是否有可能在任何时候从实例支持的根卷切换到EBS支持的根卷?
- 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795a58d557c902b9aa47 | 官方: 否 | 付费: 否
答案:
It’s not possible directly, but we can take a snapshot of the instance and create an AMI. Further, we will use this AMI to launch an instance that will have an EBS-backed root volume.
不能直接切换,但我们可以对实例进行快照并创建一个AMI。然后,我们将使用这个AMI来启动一个具有EBS支持的根卷的实例。
815. Can you change the instance type of the instances that are running in your application tier and are also using autoscaling? If yes, then how? (Choose one of the following) Yes, by modifying autoscaling launch configuration Yes, by modifying autoscaling tags configuration Yes, by modifying autoscaling policy configuration No, it cannot be changed
您能否更改应用层中正在运行并使用自动扩缩容的实例的实例类型?如果可以,如何更改?(选择以下之一) 可以,通过修改自动扩缩容启动配置 可以,通过修改自动扩缩容标签配置 可以,通过修改自动扩缩容策略配置 不可以,无法更改
- 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795a58d557c902b9aa4a | 官方: 否 | 付费: 否
答案:
Yes, the instance type of such instances can be changed by modifying the autoscaling launch configuration.
可以,可以通过修改自动扩缩容启动配置来更改此类实例的实例类型。
816. How can I directly connect my company’s data center to AWS servers without using the internet?
如何在不使用互联网的情况下直接将公司数据中心连接到AWS服务器?
- 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795a58d557c902b9aa4d | 官方: 否 | 付费: 否
答案:
Amazon Direct Connect
Amazon Direct Connect
It is an AWS networking service that acts as an alternative to using the Internet to connect customers in on-premise sites with AWS.
它是一种AWS网络服务,作为使用互联网连接本地站点客户与AWS的替代方案。
817. You have deployed multiple EC2 instances across multiple availability zones to run your website. You have also deployed a Multi-AZ RDS MySQL Extra Large DB Instance. The site performs a high number of small read and write operations per second. After some time, you observed that there is read contention on RDS MySQL. What would be your approach to resolving the contention and optimizing your website?
您已在多个可用区中部署了多个EC2实例来运行您的网站。您还部署了Multi-AZ RDS MySQL超大数据库实例。该站点每秒执行大量小型读写操作。一段时间后,您观察到RDS MySQL上存在读取争用。您解决争用并优化网站的方法是什么?
- 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795a58d557c902b9aa50 | 官方: 否 | 付费: 否
答案:
The read contention problem can be solved in various ways:
读取争用问题可以通过多种方式解决:
Read Replicas: Read replicas are copies of the database, but these replicas can only be used to read the data. There are multiple such replicas that can be deployed in various AZs. These can take the load off from the main server, where only write operations will be directed.
- 只读副本:只读副本是数据库的副本,但这些副本只能用于读取数据。可以在不同可用区中部署多个此类副本。它们可以减轻主服务器的负载,主服务器将只处理写操作。
Optimizing Database: Apart from read replicas, it will be helpful to optimize the database as well, following operations can be helpful:
- 优化数据库:除了只读副本,优化数据库也会有帮助,以下操作可能有帮助:
- Index Optimisation
- Query Optimisation
- Database Configuration Tuning
Implement a Caching Mechanism: You can use Amazon ElastiCache to create a caching mechanism that can further improve performance by caching frequently accessed data.
- 实施缓存机制:您可以使用Amazon ElastiCache创建缓存机制,通过缓存频繁访问的数据进一步提高性能。
818. Your company wants you to propose a solution so that the company’s data center can be connected to the Amazon cloud network. What would your proposal be?
您的公司希望您提出一个解决方案,以便将公司的数据中心连接到Amazon云网络。您的建议会是什么?
- 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795a58d557c902b9aa53 | 官方: 否 | 付费: 否
答案:
You can use AWS DirectConnect for this. DirectConnect allows you to directly connect to the Amazon Datacenter using a leased line. For this, you don’t require an internet connection.
您可以使用AWS DirectConnect来实现这一点。DirectConnect允许您使用租用线路直接连接到Amazon数据中心。为此,您不需要互联网连接。
819. Which service offered by Amazon will you choose if you want to collect and process e-commerce data for near real-time analysis? (Choose any two) DynamoDB Redshift Aurora SimpleDB
如果您想要收集和处理电子商务数据以进行近实时分析,您会选择亚马逊提供的哪项服务?(选择任意两项) DynamoDB Redshift Aurora SimpleDB
- 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795a58d557c902b9aa56 | 官方: 否 | 付费: 否
答案:
DynamoDB
DynamoDB
DynamoDB is a fully managed NoSQL database service that can be fed any type of unstructured data. Hence, DynamoDB is the best choice for collecting data from e-commerce websites. For near-real-time analysis, we can use Amazon Redshift.
DynamoDB是一项完全托管的NoSQL数据库服务,可以接收任何类型的非结构化数据。因此,DynamoDB是收集电子商务网站数据的最佳选择。对于近实时分析,我们可以使用Amazon Redshift。
820. If in CloudFront the content is not present at an edge location, what will happen when a request is made for that content?
如果在CloudFront中边缘位置不存在内容,当对该内容发起请求时会发生什么?
- 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795a58d557c902b9aa5c | 官方: 否 | 付费: 否
答案:
CloudFront will deliver the content directly from the origin server. It will also store the content in the cache of the edge location where the content was missing. Any further requests that come will be then routed to the edge location.
CloudFront将直接从源服务器交付内容。它还会将内容存储在缺失内容的边缘位置的缓存中。任何后续请求随后将被路由到该边缘位置。
821. Can you change the private IP address of an EC2 instance while it is running or in a stopped state?
在EC2实例运行中或处于停止状态时,能否更改其私有IP地址?
- 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795a58d557c902b9aa64 | 官方: 否 | 付费: 否
答案:
No, it cannot be changed. When an EC2 instance is launched, a private IP address is assigned to that instance at boot time. This private IP address is attached to the instance for its entire lifetime and can never be changed.
不能更改。当EC2实例启动时,会在引导时为该实例分配一个私有IP地址。此私有IP地址在整个生命周期内与实例绑定,且永远无法更改。
822. Which of the following options will you use if you have to move data over long distances using the Internet, from instances that are spread across countries to your Amazon S3 bucket? Amazon CloudFront Amazon Transfer Acceleration Amazon Snowball Amazon Glacier
如果您必须使用互联网将数据从分布在不同国家的实例传输到您的Amazon S3存储桶,跨越长距离移动数据,您会选择以下哪个选项? Amazon CloudFront Amazon Transfer Acceleration Amazon Snowball Amazon Glacier
- 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795a58d557c902b9aa67 | 官方: 否 | 付费: 否
答案:
Amazon Transfer Acceleration
Amazon Transfer Acceleration
It throttles the data transfer up to 300 percent using optimized network paths and Amazon Content Delivery Network. Snowball cannot be used here as this service does not support cross-region data transfer.
它使用优化的网络路径和Amazon内容交付网络将数据传输速度提升高达300%。此处不能使用Snowball,因为该服务不支持跨区域数据传输。
823. Which of the following services is a data storage system that also has a REST API interface and uses secure HMAC-SHA1 authentication keys? Amazon Elastic Block Store Amazon Snapshot * Amazon S3
以下哪项服务是数据存储系统,同时还具有REST API接口并使用安全的HMAC-SHA1认证密钥? Amazon Elastic Block Store Amazon Snapshot * Amazon S3
- 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795a58d557c902b9aa6a | 官方: 否 | 付费: 否
答案:
Amazon S3
Amazon S3
It gets various requests from applications, and it has to identify which requests are to be allowed and which are to be denied. Amazon S3 REST API uses a custom HTTP scheme based on a keyed HMAC for the authentication of requests.
它接收来自应用程序的各种请求,并且必须识别哪些请求应被允许、哪些应被拒绝。Amazon S3 REST API使用基于密钥HMAC的自定义HTTP方案来认证请求。
824. What are the native AWS security logging capabilities?
原生AWS安全日志记录功能有哪些?
- 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795a58d557c902b9aa6d | 官方: 否 | 付费: 否
答案:
The native AWS security logging capabilities include AWS CloudTrail, AWS Config, AWS detailed billing reports, Amazon S3 access logs, Elastic load balancing access logs, Amazon CloudFront access logs, Amazon VPC Flow logs, etc. To learn about native AWS security logging capabilities in detail, click here.
原生AWS安全日志记录功能包括AWS CloudTrail、AWS Config、AWS详细账单报告、Amazon S3访问日志、弹性负载均衡访问日志、Amazon CloudFront访问日志、Amazon VPC流日志等。要详细了解原生AWS安全日志记录功能,请点击此处。
825. What kind of IP address can you use for your customer gateway (CGW) address?
您可以为客户网关(CGW)地址使用哪种类型的IP地址?
- 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795a58d557c902b9aa70 | 官方: 否 | 付费: 否
答案:
We can use the Internet routable IP address, which is a public IP address of your NAT device.
我们可以使用Internet可路由的IP地址,即你的NAT设备的公有IP地址。
826. A company has a running web application server in the N. Virginia region, and the server has a large EBS volume of approximately 500 GB. The company needs to migrate the server from the current region to another AWS account’s Mumbai location. Which is the best way to migrate the server from the current location to the Mumbai region?
一家公司在N. Virginia区域运行着一个Web应用服务器,该服务器有一个约500 GB的大型EBS卷。公司需要将服务器从当前区域迁移到另一个AWS账户的孟买位置。将服务器从当前位置迁移到孟买区域的最佳方式是什么?
- 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795a58d557c902b9aa73 | 官方: 否 | 付费: 否
答案:
Following are the steps that you need to follow:
以下是你需要遵循的步骤:
- Open your EC2 console, where the web application server is present, and create an AMI from it.
- Then go to the AMI section in EC2 console and select your newly created AMI.
- Click on Actions > Modify Image Permissions
- Add the 12-digit destination AWS account ID to the list of accounts with launch permission of this AMI.
- Finally, click on Save.
Now, on the destination AWS account, open the Mumbai region and follow the below steps:
现在,在目标AWS账户上,打开孟买区域并遵循以下步骤:
- Open the AMIs section in the EC2 dashboard.
- Click on Private Images.
- Find and select the shared AMI from the previous AWS account.
- Copy the AMI.
- Use it to launch the EC2 instance.
827. In AWS, three different storage services are available, such as EFS, S3, and EBS. When should I use Amazon EFS vs. Amazon S3 vs. Amazon Elastic Block Store (EBS)?
在AWS中,有三种不同的存储服务可用,如EFS、S3和EBS。我应该在什么时候使用Amazon EFS与Amazon S3与Amazon Elastic Block Store(EBS)相比?
- 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795a58d557c902b9aa76 | 官方: 否 | 付费: 否
答案:
| EFS | S3 | EBS |
|---|---|---|
| EFS (Elastic File Storage) is a shared file system that can be mounted on both Linux and Windows machines. | S3 (Simple Storage Service) is an object storage solution that is designed to store and retrieve any amount of data from the internet. | EBS (Elastic Block Storage) is persistent block level storage that is used alongside EC2 instances. |
| It should be used when we want to share a drive between multiple systems. | Should be used when we want one central location to upload all our large blob files. | It is used as a hard drive for EC2 instances. |
| There is no fixed size for this; you will be charged on the basis of data stored. | There is no fixed size. | This has a fixed size. |
828. Which instance types support EBS Multi-Attach?
哪些实例类型支持EBS Multi-Attach?
- 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795a58d557c902b9aa79 | 官方: 否 | 付费: 否
答案:
The instance type should be EC2 Nitro-based instances and Provisioned IOPs io1 multi-attach EBS volumes.
实例类型应为基于EC2 Nitro的实例,以及预配置IOPS的io1 multi-attach EBS卷。
829. A company currently operates a web application backed by an Amazon RDS MySQL database. It has automated backups that are run daily and are not encrypted. A security audit requires future backups to be encrypted and unencrypted backups to be destroyed. The company will make at least one encrypted backup before destroying the old backups. What should be done to enable encryption for future backups?
一家公司目前运营着一个由Amazon RDS MySQL数据库支持的Web应用。该数据库具有每天运行的自动备份,且备份未加密。安全审计要求未来的备份必须加密,并且未加密的备份必须销毁。该公司将在销毁旧备份之前至少制作一个加密备份。应如何操作为未来的备份启用加密?
- 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795a58d557c902b9aa7c | 官方: 否 | 付费: 否
答案:
Since the current DB is not encrypted, we will have to re-launch the DB with the option of encryption enabled. Here is how you can do it.
由于当前数据库未加密,我们将不得不以启用加密选项的方式重新启动数据库。以下是操作方法。
- Take a snapshot of the current database.
- Go to the snapshot and select it, and click on Actions > Copy Snapshot.
- In the Copy Snapshot dialog box, select the Encryption option.
- Your new Snapshot will now be encrypted.
830. A company is going to launch one branch in the UK and needs to continue with its existing main branch in the USA. The company has almost 15 GB of data, which is stored in an S3 bucket in the Ohio region, and data is stored with the default storage class. The company wants to provide its updated and stored data in the London S3 bucket, also using one zone accessibility storage class to save storage costs. In addition, the company also wants the data to be updated automatically in S3’s London bucket if any data is modified or written in the S3 bucket in Ohio. How can this be achieved?
一家公司即将在英国开设一个分支机构,并需要继续其在美国的现有主要分支机构。该公司有近15 GB的数据,存储在俄亥俄区域的S3存储桶中,数据使用默认存储类存储。公司希望将其更新和存储的数据提供到伦敦的S3存储桶中,同时使用单可用区存储类以节省存储成本。此外,如果俄亥俄的S3存储桶中有任何数据被修改或写入,公司还希望数据自动更新到伦敦的S3存储桶中。如何实现这一点?
- 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795a58d557c902b9aa7f | 官方: 否 | 付费: 否
答案:
Configure the Cross Region Replication Rule in the Ohio region bucket and select the destination bucket in the London region to replicate the data and store it in the destination using one zone IA storage class to save cost.
在俄亥俄区域的存储桶中配置跨区域复制规则,并选择伦敦区域的目标存储桶来复制数据,使用单可用区IA存储类将其存储在目标位置以节省成本。
831. You have an application running on an EC2 instance. You need to reduce the load on your instance as soon as the CPU utilization reaches 80 percent. How will you accomplish the job?
你有一个在EC2实例上运行的应用程序。你需要在CPU利用率达到80%时尽快减轻实例的负载。你将如何完成这项工作?
- 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795a58d557c902b9aa82 | 官方: 否 | 付费: 否
答案:
It can be done by creating an autoscaling group to deploy more instances when the CPU utilization of the EC2 instance exceeds 80 percent and distributing traffic among instances by creating an application load balancer and registering EC2 instances as target instances.
可以通过创建自动扩缩组来实现,当EC2实例的CPU利用率超过80%时部署更多实例,并通过创建应用程序负载均衡器并将EC2实例注册为目标实例来在实例之间分配流量。
832. A client reports that they wanted to see an audit log of any changes made to AWS resources in their account. What can the client do to achieve this?
一家客户报告说,他们希望查看对其AWS账户中资源所做的任何更改的审计日志。客户应如何实现这一点?
- 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795a58d557c902b9aa85 | 官方: 否 | 付费: 否
答案:
Enable AWS CloudTrail logs to be delivered to an Amazon S3 bucket.
启用AWS CloudTrail日志以交付到Amazon S3存储桶。
833. What is AWS SNS?
什么是AWS SNS?
- 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795a58d557c902b9aada | 官方: 否 | 付费: 否
答案:
Amazon Simple Notification Service (SNS) is a fully managed push notification service that sends messages to mobile and other distributed systems.
Amazon Simple Notification Service (SNS) 是一项完全托管的推送通知服务,用于向移动设备和其他分布式系统发送消息。
834. What are the different types of load balancers in EC2?
EC2 中有哪些不同类型的负载均衡器?
- 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795a58d557c902b9aadd | 官方: 否 | 付费: 否
答案:
There are 4 types of load balancers in EC2.
EC2 中有 4 种类型的负载均衡器。
- Application Load Balancer (ALB)
- Network Load Balancer (NLB)
- Classic Load Balancer (CLB)
- Gateway Load Balancer (GWLB)
835. What is AWS CloudFormation?
什么是 AWS CloudFormation?
- 知识点: DevOps/云 (主题: aws, cloud;标签: intellipaat, aws, topic-specific, aws, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795a58d557c902b9aae0 | 官方: 否 | 付费: 否
答案:
AWS CloudFormation is an IaC (Infrastructure as Code) service offered by AWS so that you can deploy your infrastructure redundantly with the help of a code (JSON or YAML).
AWS CloudFormation 是 AWS 提供的一项 IaC(基础设施即代码)服务,使你可以借助代码(JSON 或 YAML)冗余部署你的基础设施。
836. What do you understand by Azure Scheduler?
你如何理解 Azure Scheduler?
- 知识点: DevOps/云 (主题: azure, cloud;标签: interviewbit, azure, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795c58d557c902b9ad0b | 官方: 否 | 付费: 否
答案:
Azure Scheduler helps us to invoke certain background trigger events or activities like calling HTTP/S endpoints or to present a message on the queue on any schedule.
Azure Scheduler 帮助我们按任何计划调用某些后台触发事件或活动,例如调用 HTTP/S 端点或在队列上呈现消息。
By using this Azure Schedule, the jobs present in the cloud call services present within and outside of the Azure to execute those jobs on-demand that are routinely on a repeated regular schedule or start those jobs at a future specified date.
通过使用此 Azure Schedule,云中的作业可以调用 Azure 内部和外部的服务,以按需执行那些例行定期重复的作业,或在未来的指定日期启动这些作业。
Azure Scheduler
Azure Scheduler
837. Is it possible to map the Windows machines running on two different port numbers, say 80 and 81, on an IIS Web Server to an Azure Load Balancer?
是否可以将运行在两个不同端口号(例如 80 和 81)上的 IIS Web Server Windows 机器映射到 Azure Load Balancer?
- 知识点: DevOps/云 (主题: azure, cloud;标签: interviewbit, azure, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795c58d557c902b9ad0e | 官方: 否 | 付费: 否
答案:
Yes, it can be done by defining a separate Load Balancer Role in Azure.
是的,可以通过在 Azure 中定义一个单独的 Load Balancer Role 来实现。
838. You have an application running on the On-Prem Server and have backup on Azure East US region. Now, On-Prem server application access fails. Is it possible to access the application via the Azure environment?
你有一个运行在本地服务器上的应用程序,并在 Azure East US 区域有备份。现在,本地服务器应用程序访问失败。是否可以通过 Azure 环境访问该应用程序?
- 知识点: DevOps/云 (主题: azure, cloud;标签: interviewbit, azure, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795c58d557c902b9ad11 | 官方: 否 | 付费: 否
答案:
Yes, it is totally possible by making use of the Site Recovery Service provided by Azure. It is capable of handling fail-over and fail-back scenarios between On-Prem Servers and Azure environments.
是的,通过使用 Azure 提供的 Site Recovery Service 完全可以实现。它能够处理本地服务器和 Azure 环境之间的故障转移和故障回复场景。
839. What feature of Azure can be used to stop the issue of high load on the application in cases of no man support on the flow?
在流程中无人支持的情况下,可以使用 Azure 的哪些功能来阻止应用程序上的高负载问题?
- 知识点: DevOps/云 (主题: azure, cloud;标签: interviewbit, azure, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795c58d557c902b9ad14 | 官方: 否 | 付费: 否
答案:
This issue can be stopped by making use of VM Scale sets by defining proper configuration and conditions to provision a new VM whenever the load to the application increases. - Azure VM Scale Sets lets the developer create and manage a group of VMs that are load balanced. The scale sets can be configured in such a way that the count of VMs can automatically be increased or decreased based on the application demand or based on a pre-defined schedule.
这个问题可以通过使用 VM Scale Sets 来阻止,方法是定义适当的配置和条件,以便在应用程序负载增加时预置新 VM。- Azure VM Scale Sets 让开发人员可以创建和管理一组负载均衡的 VM。可以将规模集配置为根据应用程序需求或基于预定义的计划自动增加或减少 VM 的数量。
- Usage of Scale Sets ensures high availability of the applications and allows the developers to manage, update and configure large VMs centrally and also help them support the development of large-scale applications supporting big data, big workloads, and compute loads.
- Azure scale sets can support up to 1,000 VMs. If the custom VM images are created and uploaded, then the limit is 600 VMs.
840. What are the types of storage services apart from blob storage provided by Azure?
除了 Azure 提供的 blob 存储之外,还有哪些类型的存储服务?
- 知识点: DevOps/云 (主题: azure, cloud;标签: interviewbit, azure, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795c58d557c902b9ad17 | 官方: 否 | 付费: 否
答案:
Azure provides overall 4 types of storage services - Blob Service, Table Storage, Queue Storage, and File Storage Services as shown in the figure below:
Azure 总共提供4种类型的存储服务——Blob服务、表存储、队列存储和文件存储服务,如下图所示:
Types of Storage Services - Azure Table Storage: This type of storage lets user deploy their applications with semi-structured data and a NoSQL-based key-value store.
存储服务类型 - Azure表存储:这种存储类型允许用户使用半结构化数据和基于NoSQL的键值存储来部署应用程序。
This is used when there is a need for applications that follow a flexible schema of data. Table Storage focuses on enterprise-level data and follows strongly consistent models. The data is represented in terms of Entities grouped under tables. - Azure Queue Storage: This storage provides a message queue system for handling large workloads by letting users develop and build flexible and modular applications.
当应用程序需要遵循灵活的数据模式时,会使用此功能。表存储专注于企业级数据,并遵循强一致性模型。数据以实体形式表示,分组到表中。- Azure队列存储:此存储提供消息队列系统,通过让用户开发和构建灵活且模块化的应用程序来处理大型工作负载。
This storage ensures that the application becomes less prone to failure of individual components and is scalable. With the help of message queues, it provides the queue monitoring feature for helping the application to ensure the user demands are met. - Azure File Storage: This storage type provides features of file sharing that are accessible using SMB (Server Message Block) Protocol. The data in this storage is protected by HTTPS and SMB 3.0 Protocol.
此存储确保应用程序不易受到单个组件故障的影响,并且具有可扩展性。借助消息队列,它提供队列监控功能,帮助应用程序确保满足用户需求。- Azure文件存储:此存储类型提供文件共享功能,可通过SMB(服务器消息块)协议访问。此存储中的数据受HTTPS和SMB 3.0协议保护。
They are used for improving the performance and capabilities of on-premise applications. The OS deployments and hardware management is taken by Azure itself.
它们用于提高本地应用程序的性能和功能。操作系统部署和硬件管理由Azure自身负责。
841. What are IaaS, PaaS and SaaS?
什么是IaaS、PaaS和SaaS?
- 知识点: DevOps/云 (主题: azure, cloud;标签: interviewbit, azure, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795c58d557c902b9ad1a | 官方: 否 | 付费: 否
答案:
IaaS: This stands for “Infrastructure as a Service” which provides a set of capabilities like OS, network connectivities, etc which are at the infrastructural level and are delivered as pay per use policy. The infrastructure is used for hosting applications. Examples include Azure VM, VNET, etc.
IaaS:代表“基础设施即服务”,提供一系列基础设施级别的功能,如操作系统、网络连接等,并按按需付费策略交付。该基础设施用于托管应用程序。示例包括Azure VM、VNET等。
PaaS: PaaS stands for “Platform as a Service” which is mostly about underlying infrastructure abstraction to the developers for enabling quicker development of the applications without the need for worry about hosting management. Examples include Azure web apps, Storage services, cloud services, etc.
PaaS:PaaS代表“平台即服务”,主要是将底层基础设施抽象给开发人员,以便更快地开发应用程序,而无需担心托管管理。示例包括Azure Web应用、存储服务、云服务等。
SaaS: SaaS stands for “Software as a Service” and are those applications which are delivered using the service delivery model where the applications are simply consumed and used by an organization. These applications are generally mobilized by making the organization pay for their usage or through ads. Examples include applications like Office 365, Gmail, SharePoint Online, and so on.
SaaS:SaaS代表“软件即服务”,是指通过服务交付模型交付的应用程序,组织只需消费和使用这些应用程序。这些应用程序通常通过让组织为使用付费或广告来实现商业化。示例包括Office 365、Gmail、SharePoint Online等应用程序。
The following table shows the difference between the On-Prem Service, IaaS, PaaS, and SaaS services. We can observe that as we go right, the level of control the developer or the user has over the application reduces.
下表显示了本地服务、IaaS、PaaS和SaaS服务之间的区别。我们可以观察到,越向右移动,开发人员或用户对应用程序的控制级别越低。
IaaS, PaaS and SaaS
IaaS、PaaS和SaaS
842. What are the differences between the Azure Table Storage and the Azure SQL service?
Azure表存储和Azure SQL服务之间有什么区别?
- 知识点: DevOps/云 (主题: azure, cloud;标签: interviewbit, azure, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795c58d557c902b9ad1d | 官方: 否 | 付费: 否
答案:
The main difference between Azure Table Storage and Azure SQL Service is given below:
Azure表存储和Azure SQL服务之间的主要区别如下所示:
| Table Storage Service 表存储服务 | Azure SQL Table Azure SQL表 |
|---|---|
| This follows a NoSQL type of storage on Azure. 这在Azure上遵循NoSQL类型的存储。 | This follows the relational storage structure on Azure. 这在Azure上遵循关系型存储结构。 |
| The data is stored in key-value format and is referred to as Entity. 数据以键值格式存储,称为实体。 | The data here is stored in rows and columns combination in the SQL table. 此处的数据以行和列的组合存储在SQL表中。 |
| The data schema is not enforced for storage. 存储不强制数据模式。 | The data schema is enforced for storing data and if the schema violation occurs, then it results in an error. 存储数据时强制数据模式,如果发生模式违规,则会导致错误。 |
| The relationship between tables is not possible. 表之间的关系不可能建立。 | Relationships between tables are defined by means of the foreign keys. 表之间的关系通过外键定义。 |
| The partition and row key combination are considered unique for each entity. 分区和行键组合被视为每个实体的唯一标识。 | Uniqueness can be defined by the user by means of a primary key or unique key. 用户可以通过主键或唯一键定义唯一性。 |
| This service can be used for storing log information or diagnostics data. 此服务可用于存储日志信息或诊断数据。 | This service is widely used for transaction-based applications. 此服务广泛用于基于事务的应用程序。 |
843. Consider a scenario where an application front end hosting is done on Azure but the customer needs the database hosting to be done on on-premise server due to security concerns. What are the ways to handle the connectivity in Azure for this scenario?
考虑一个场景:应用程序前端托管在Azure上,但客户出于安全考虑需要数据库托管在本地服务器上。在此场景中,有哪些方法可以处理Azure中的连接?
- 知识点: DevOps/云 (主题: azure, cloud;标签: interviewbit, azure, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795c58d557c902b9ad20 | 官方: 否 | 付费: 否
答案:
- Possibility 1: Azure VNET based “Point to Site” service can be a correct choice for this scenario of connecting one on-premise DB to an Azure-hosted app. “Point to Site” is valid for cases where the count of resources to be connected via VPN is very limited.
- Possibility 2: In case there is a large number of resources for connection, then “Site to Site” or “Express routes” are the other options that could be considered.There might be chances that using “Site to Site” might lead to network latency as VPN due to these work only via Internet (public infrastructure). In such cases, “Express Routes” are used as it provides dedicated leased line for overcoming latency issues.
- Possibility 3: In case the customer is not willing to work via VNET, then Windows Communication Foundation (WCF) service can be developed and hosted on-premise which would have CRUD operations meant only for the database hosted on-premise. This works by means of using the “Service bus relay” option for developing communication between the Azure-hosted app to the WCF service for database access.
844. What are the differences between the Azure Storage Queue and the Azure Service Bus Queue?
Azure存储队列和Azure服务总线队列之间有什么区别?
- 知识点: DevOps/云 (主题: azure, cloud;标签: interviewbit, azure, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795c58d557c902b9ad23 | 官方: 否 | 付费: 否
答案:
The main difference between Azure Storage Queue and the Azure Service Bus Queue is given below:
Azure 存储队列与 Azure 服务总线队列之间的主要区别如下:
| Azure Storage Queue Azure 存储队列 | Azure Service Bus Queue Azure 服务总线队列 |
|---|---|
| Here, the FIFO (First In First Out) ordering is not guaranteed. 此处不保证 FIFO(先进先出)排序。 | The FIFO order is guaranteed for the messages by means of sessions. 通过会话,消息的 FIFO 顺序得到保证。 |
| Sessions are not supported. 不支持会话。 | Sessions that are messaging level are supported here. 此处支持消息级别的会话。 |
| Here, only the “At Least Once delivery” model is supported. 此处仅支持“至少一次传递”模型。 | This supports “At least once”, “Atmost once” and “Exactly once” delivery models for the messages. 这支持消息的“至少一次”、“至多一次”和“恰好一次”传递模型。 |
| There is no automatic detection of duplicates here. 此处没有自动重复检测。 | Automatic duplicate detection is supported here. 此处支持自动重复检测。 |
| Does not support dead lettering. 不支持死信。 | Supports dead lettering. 支持死信。 |
| The size of the message is 64KB. 消息大小为 64KB。 | The size of the message is 256KB. 消息大小为 256KB。 |
| Supports one-to-one delivery of messages. 支持消息的一对一传递。 | Supports both one to one and one-to-many deliveries of messages. 支持消息的一对一和一对多传递。 |
| The transaction is not supported. 不支持事务。 | The transaction is supported here. 此处支持事务。 |
| This queue supports only batch receive. 此队列仅支持批量接收。 | This supports both batch send and batch receive of messages. 这支持消息的批量发送和批量接收。 |
| The behavior of receiving messages is non-blocking. 接收消息的行为是非阻塞的。 | The behavior can be either blocking or non-blocking based on the configuration. 根据配置,该行为可以是阻塞或非阻塞的。 |
845. What are the possible causes of the client application to be disconnected from the cache?
客户端应用程序与缓存断开连接的可能原因有哪些?
- 知识点: DevOps/云 (主题: azure, cloud;标签: interviewbit, azure, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795c58d557c902b9ad26 | 官方: 否 | 付费: 否
答案:
There can be 2 possible causes: - Client-side causes:
可能有 2 个原因: - 客户端侧原因:
The application might have been redeployed. The application might have just performed a scaling operation. The client-side networking layer has been changed. There might be transient errors in the client or the network between the client and the server. Another possible reason could be the bandwidth threshold limits have been crossed. - Server-side causes:
应用程序可能已被重新部署。应用程序可能刚刚执行了缩放操作。客户端网络层已被更改。客户端或客户端与服务器之间的网络可能存在暂时性错误。另一个可能原因是带宽阈值限制已被超过。 - 服务器端原因:
It might occur if the Azure Redis Cache service itself might undergo a failover from the primary to the secondary node. The server instance where the cache was deployed might have undergone patching or maintenance.
这可能发生在 Azure Redis 缓存服务本身从主节点故障转移到辅助节点时。缓存部署所在的服务器实例可能经历了修补或维护。
846. How can a VM be created by means of Azure CLI?
如何通过 Azure CLI 创建虚拟机?
- 知识点: DevOps/云 (主题: azure, cloud;标签: interviewbit, azure, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795c58d557c902b9ad29 | 官方: 否 | 付费: 否
答案:
az vm create `
az vm create `
--resource-group myResourceGroupName `
--resource-group myResourceGroupName `
--name myVM --image win2016datacenter `
--name myVM --image win2016datacenter `
--admin-username AzureuserNAME `
--admin-username AzureuserNAME `
--admin-password AzurePASSWORD
--admin-password AzurePASSWORD
Conclusion
结论
Microsoft Azure has proven itself to be the fastest-growing cloud platform due to its more than 200 service offerings and benefits with pay per use pricing strategy. The revenue generated by Microsoft Azure has been growing constantly from $880 million in 2015 to a whopping $14.6 billion in 2020.
由于提供了超过 200 项服务,并采用按使用量付费的定价策略,Microsoft Azure 已被证明是增长最快的云平台。Microsoft Azure 产生的收入从 2015 年的 8.8 亿美元持续增长到 2020 年的 146 亿美元。
This tremendous growth in Azure has paved the path to many businesses by creating lots of opportunities in both tech and non-tech domains thereby making it a very lucrative domain for building one’s career.
Azure 的巨大增长通过创造技术和非技术领域的众多机会,为许多企业铺平了道路,从而使其成为构建个人职业生涯的非常有利可图的领域。
Additional Resources - Learn Azure
其他资源 - 学习 Azure
- Practice Coding
- Terraform Interview
847. In the context of Azure Data Factory, what does the term "variables" mean?
在 Azure 数据工厂的上下文中,术语“变量”是什么意思?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9ad77 | 官方: 否 | 付费: 否
答案:
The variables that are used in the Azure Data Factory pipeline serve this storing function. Variables can be accessed within the pipeline in the same way that they can be used in any programming language because they are likewise available there.
Azure 数据工厂管道中使用的变量具有存储功能。管道内可以像在任何编程语言中一样访问变量,因为它们在管道中同样可用。
Changing or setting the values of variables can be accomplished through the use of the Set Variable and Add Variable actions, respectively. A data factory typically has both continuous and discrete variables in its database.
通过使用“设置变量”和“添加变量”操作,可以分别完成更改或设置变量值的任务。数据工厂的数据库中通常同时包含连续变量和离散变量。
These Azure Pipeline system variables are grouped together under the heading of System variables. The name, ID, and name of any Triggers that are used in Pipelines, etc. These are the things that you need in order to access the system information that might be relevant to the use case that you are working on. 2. The user variable is the second kind of variable, and it is the sort of variable that is defined explicitly in your code and is driven by the pipeline logic.
- 这些 Azure 管道系统变量归在“系统变量”标题下。其中包括管道中使用的任何触发器的名称、ID 和名称等。这些是你访问可能与当前用例相关的系统信息所需的内容。 2. 用户变量是第二种变量类型,它是在代码中显式定义并由管道逻辑驱动的变量类型。
848. What is a "data flow map"?
什么是“数据流映射”?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9ad7a | 官方: 否 | 付费: 否
答案:
Visual data transformations are referred to as mapping data flows when working in Azure Data Factory. Because of data flows, data engineers can construct logic for altering data without having to write any code at all. After the data flows have been generated, they are then implemented as activities inside of the scaled-out Apache Spark clusters that are contained within Azure Data Factory pipelines. The scheduling, control flow, and monitoring elements that are currently available in Azure Data Factory can be utilized to operationalize data flow operations.
在 Azure 数据工厂中,可视化数据转换被称为映射数据流。借助数据流,数据工程师无需编写任何代码即可构建用于修改数据的逻辑。数据流生成后,会被作为活动实现在 Azure 数据工厂管道中包含的扩展 Apache Spark 集群中。Azure 数据工厂中现有的计划、控制流和监控组件可用于实现数据流操作的运营化。
The method of data flow mapping is highly immersive visually and does away with the necessity for any form of scripting. The execution clusters in which the data flows are carried out are managed by the ADF, which enables the data to be processed in a manner that is massively parallel. Azure Data Factory is responsible for all of the coding tasks, including the interpretation of code, the optimization of pathways, and the execution of data flow operations.
数据流映射方法高度可视化,并且消除了对任何形式脚本编写的需求。执行数据流所使用的集群由 ADF 管理,这使得数据能够以大规模并行方式进行处理。Azure 数据工厂负责所有编码任务,包括代码解释、路径优化以及数据流操作的执行。
849. In the context of the Azure Data Factory, just what does it mean when it's referred to as "copy activity"?
在 Azure 数据工厂的上下文中,它被称为“复制活动”时究竟意味着什么?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9ad7d | 官方: 否 | 付费: 否
答案:
The copy operation is one of the most extensively used and generally popular operations in the Azure data factory. The procedure that is known as "lift and shift" is useful in situations in which it is necessary to copy information from one database to another. You can make modifications to the data as you copy it. For instance, before you transmit it to your target data source, you can decide to lower the number of columns in the source txt/csv file from 12 to 7. You can change it in such a way that the target database receives only the required number of columns after the transfer.
复制操作是 Azure 数据工厂中使用最广泛且普遍流行的操作之一。被称为“直接迁移”的过程在需要将信息从一个数据库复制到另一个数据库时非常有用。在复制数据时可以对其进行修改。例如,在将其传输到目标数据源之前,你可以决定将源 txt/csv 文件中的列数从 12 个减少到 7 个。你可以这样修改,以便目标数据库在传输后只接收所需数量的列。
850. Could you explain to me how I should go about planning a pipeline?
你能向我解释一下应该如何规划管道吗?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9ad80 | 官方: 否 | 付费: 否
答案:
You can set up a pipeline's schedule by utilizing either the time window trigger or the scheduler trigger. Pipelines can be programmed to run on a timed basis on a periodic basis or in cyclical patterns according to the wall-clock calendar schedule of the trigger (for example, on Mondays at 6:00 PM and Thursdays at 9:00 PM).
你可以通过使用时间窗口触发器或计划触发器来设置管道的计划。管道可以根据触发器的壁钟日历计划以定时方式定期运行或按循环模式运行(例如,周一晚上 6:00 和周四晚上 9:00)。
There are now three different kinds of triggers that can be utilized with the service, and they are as follows:
目前可以使用三种不同类型的触发器,如下所示:
A state-preserving periodic trigger, the tumbling window trigger is used in this game. 2. A time-based trigger that triggers a specified pipeline at a time that has been predetermined is referred to as a Schedule Trigger. 3. One category of triggers is known as "event-based," which indicates that they respond in some way to any occurrence that takes place, such as when a file is copied into a blob. Pipelines and triggers are mapped to one another in a way that is many-to-many (except for the tumbling window trigger). It is conceivable for a single trigger to launch many pipelines, or it is possible for numerous triggers to initiate a single pipeline. Both scenarios are viable.
- 一种保持状态的周期性触发器,翻滚窗口触发器用于此场景。 2. 一种基于时间的触发器,在预定时间触发指定管道,称为计划触发器。 3. 一类触发器被称为“基于事件的”,表示它们以某种方式对发生的任何事件做出响应,例如当文件被复制到 blob 中时。管道和触发器以多对多的方式相互映射(翻滚窗口触发器除外)。单个触发器启动多个管道是可能的,或者多个触发器启动单个管道也是可行的。这两种情况都是可行的。
851. In which situations does Azure Data Factory seem the best option?
在哪些情况下,Azure Data Factory 似乎是最佳选择?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9ad83 | 官方: 否 | 付费: 否
答案:
The utilization of the Data Factory is essential at this time.
此时使用 Data Factory 至关重要。
When dealing with massive amounts of data, it is likely required to implement a cloud-based integration solution such as ADF. This is because a data warehouse needs to be created. 2. Not everyone in the team is a coder, and some members may discover that graphical interfaces make it simpler to analyze and manipulate data. 3. When raw business data is located in many places, both on-premises and in the cloud, we need a unified analytics solution such as ADF to analyze it all in one place. 4. We would like to minimize the management of our infrastructure to a minimum by making use of methods that are widely utilized for the transportation of data and the processing of it. Because of this, going with a managed solution such as ADF is the choice that makes the most sense.
- 当处理海量数据时,可能需要实施基于云的集成解决方案(如 ADF),因为需要创建数据仓库。 2. 团队中并非所有人都是编码人员,某些成员可能会发现图形界面使数据分析和操作更简单。 3. 当原始业务数据分布在多个位置(既有本地又有云环境)时,我们需要统一的分析解决方案(如 ADF)在一个地方进行分析。 4. 我们希望使用广泛用于数据传输和处理的工具,将基础设施管理降至最低。因此,选择像 ADF 这样的托管解决方案是最合理的做法。
852. Do you have any tips on how to access the information you require by taking advantage of the other ninety dataset types that are accessible in the Data Factory?
您是否有任何关于如何利用 Data Factory 中可用的其他九十种数据集类型来访问所需信息的技巧?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9ad86 | 官方: 否 | 付费: 否
答案:
Data can originate from a wide variety of Azure services, including Azure SQL Database, Azure Synapse Analytics, delimited text files stored in an Azure storage account or Azure Data Lake Storage Gen2, and Parquet files stored in blob storage or Data Lake Storage Gen2. Source and sink data can be combined. In order to transform data coming from external connectors, first stage the data using the Copy action, and then perform an activity in the Data Flow category.
数据可以来自多种 Azure 服务,包括 Azure SQL Database、Azure Synapse Analytics、存储在 Azure 存储账户或 Azure Data Lake Storage Gen2 中的分隔文本文件,以及存储在 blob 存储或 Data Lake Storage Gen2 中的 Parquet 文件。源和接收器数据可以组合。为了转换来自外部连接器的数据,首先使用复制操作暂存数据,然后执行数据流类别中的活动。
853. Can the value of a new column in an ADF table be determined by using an existing mapping column?
ADF 表中新列的值可以由现有的映射列确定吗?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9ad89 | 官方: 否 | 付费: 否
答案:
The logic that we specify can be used to generate a new column, and this is done by deriving transformations within the mapping data flow. When developing a derived column, we have the option of creating a brand-new one from scratch or making changes to an existing one. You can recognise the new column by giving it a name in the textbox labelled Column.
我们指定的逻辑可以用来生成新列,这是通过映射数据流中的派生转换实现的。在开发派生列时,我们可以选择从零开始创建全新的列,或修改现有列。您可以通过在标有“列”的文本框中输入名称来识别新列。
If you choose a different column from the menu, the one you currently have selected will be removed from your schema. Select the textbox that corresponds to the derived column, and then press the Enter key on your keyboard to get started crafting an expression for it. You can either manually enter your reasoning or make use of the expression builder to construct it.
如果从菜单中选择不同的列,当前选定的列将从您的架构中移除。选择与派生列对应的文本框,然后按键盘上的 Enter 键开始为其编写表达式。您可以手动输入逻辑,或使用表达式构建器来构建它。
854. Where can I find more information on the benefits of using lookup operations 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 | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9ad8c | 官方: 否 | 付费: 否
答案:
In the ADF pipeline, the Lookup activity is typically utilized for configuration lookup most of the time due to the ready availability of the source dataset. 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 管道中,由于源数据集的可用性,查找活动大多数情况下通常用于配置查找。此外,活动的输出可用于从作为源的数据集中检索数据。在大多数情况下,查找操作的结果会通过管道发送回去,用作后续阶段的输入。
In order to retrieve data, the ADF pipeline makes heavy use of lookup operations. You may only utilize it in a manner that is appropriate for the process you are going through. You have the option of retrieving either the first row or all of the rows, depending on the dataset or query you choose.
为了检索数据,ADF 管道大量使用查找操作。您可能仅以与您正在进行的流程相匹配的方式使用它。根据您选择的数据集或查询,您可以选择检索第一行或所有行。
855. Please provide any more information that you have on the Azure Data Factory Get Metadata operation.
请提供您关于 Azure Data Factory 的获取元数据操作的任何更多信息。
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9ad8f | 官方: 否 | 付费: 否
答案:
The Get Metadata operation can be used to access the metadata associated with any piece of data that is contained within an Azure Data Factory or a Synapse pipeline. We can use the results from the Get Metadata activity in conditional expressions to validate or utilize the metadata in subsequent actions. This can be done by using the Get Metadata activity.
获取元数据操作可用于访问 Azure Data Factory 或 Synapse 管道中包含的任何数据相关的元数据。我们可以使用获取元数据活动的结果在条件表达式中验证或利用元数据进行后续操作,这可以通过使用该活动实现。
It takes a dataset as an input and then generates descriptive data based on that dataset as an output. The supported connectors and the metadata that may be retrieved for each one are outlined in the table that can be found below. It is possible to accept metadata returns that are up to 4 MB in size.
它接受一个数据集作为输入,然后根据该数据集生成描述性数据作为输出。下面提供的表格概述了支持的连接器以及可检索的元数据。可以接受大小最多为 4 MB 的元数据返回。
856. Where did you experience the most difficulty while attempting to migrate data from on-premises to the Azure cloud via Data Factory?
在尝试通过 Data Factory 将数据从本地迁移到 Azure 云时,您遇到的最大困难在哪里?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9ad92 | 官方: 否 | 付费: 否
答案:
Within the context of our ongoing transition from on-premises to cloud storage, the problems of throughput and speed have emerged as important obstacles. When we attempt to replicate the data from on-premises using the Copy activity, we do not achieve the throughput that we require.
在我们从本地到云存储的持续过渡过程中,吞吐量和速度的问题已成为重要的障碍。当我们尝试使用复制活动从本地复制数据时,无法达到所需的吞吐量。
The configuration variables that are available for a copy activity make it possible to fine-tune the process and achieve the desired results.
可用于复制活动的配置变量使得微调流程并实现预期结果成为可能。
If we load data from servers located on-premises, we should first compress it using the available compression option before writing it to cloud storage, where the compression will afterwards be erased. 2. After the compression has been activated, ii) it is imperative that all of our data be quickly sent to the staging area. Before being stored in the target cloud storage buckets, the data that was transferred might be uncompressed for convenience. 3. Copying Proportion, The use of parallelism is yet another alternative that offers the potential to make the process of transfer more seamless. This accomplishes the same thing as employing a number of different threads to process the data and can speed up the rate at which data is copied. 4. Because there is no one size those fits all, we will need to try out a variety of different values, such as 8, 16, and 32, to see which one functions the most effective. 5. It may be possible to hasten the duplication process by increasing the Data Integration Unit, which is roughly comparable to the number of central processing units.
- 如果我们从本地服务器加载数据,应首先使用可用的压缩选项将其压缩,然后再写入云存储,之后压缩将在那里被移除。 2. 压缩激活后,ii) 必须迅速将所有数据发送到暂存区域。在存储到目标云存储桶之前,所传输的数据为了方便可能会被解压。 3. 复制比例,使用并行性是另一种提供潜力的选项,可使传输过程更加顺畅。这等同于使用多个线程处理数据,并且可以加快数据复制的速率。 4. 因为没有一种万能解决方案,我们需要尝试各种不同的值,如8、16和32,以查看哪种效果最有效。 5. 通过增加数据集成单元(大致相当于中央处理器的数量),可能加快复制过程。
857. Do I have the ability to copy information simultaneously from many Excel sheets?
我能否同时从多个Excel工作表中复制信息?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9ad95 | 官方: 否 | 付费: 否
答案:
When using an Excel connector within a data factory, it is necessary to specify the sheet name from which the data is going to be loaded. This method is unobtrusive when dealing with data from just one or a few sheets, but when dealing with data from tens of sheets or more, it can become tiresome because the sheet name needs to be updated in the code each time.
在数据工厂中使用Excel连接器时,必须指定要从中加载数据的工作表名称。当处理仅来自一个或几个工作表的数据时,这种方法不显眼,但处理来自几十个或更多工作表的数据时,可能会变得繁琐,因为每次都需要在代码中更新工作表名称。
By utilizing a data factory binary data format connector and directing it to the Excel file, we can avoid having to manually insert the sheet names into the spreadsheet. Using the copy action, you will be able to simultaneously copy the information that is located on each of the sheets that are contained within the file.
通过利用数据工厂二进制数据格式连接器并将其指向Excel文件,我们可以避免手动将工作表名称插入电子表格。使用复制操作,您将能够同时复制文件内每个工作表中包含的信息。
858. Nesting of loops within loops in Azure Data Factory: yes or no?
在Azure数据工厂中循环嵌套:可以还是不可以?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9ad98 | 官方: 否 | 付费: 否
答案:
Nesting loops are not directly supported by any of the activities that use the for each or till looping structures in the data factory. On the other hand, we have the option of utilizing an execute pipeline activity that incorporates a for each/until loop activity. By carrying out the aforementioned steps, we will be able to successfully implement nested looping by having one loop activity call another loop activity.
数据工厂中使用for each或until循环结构的任何活动都不直接支持嵌套循环。另一方面,我们可以选择利用包含for each/until循环活动的执行管道活动。通过执行上述步骤,我们将能够通过让一个循环活动调用另一个循环活动来成功实现嵌套循环。
859. Are there any particular limitations placed on ADF members?
ADF成员是否有任何特定限制?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9ad9b | 官方: 否 | 付费: 否
答案:
Azure Data Factory provides superior tools for transmitting and manipulating data, and these tools can be found in its feature set. However, you should be aware that there are certain limitations as well.
Azure数据工厂在其功能集中提供了优越的数据传输和处理工具。但是,您应该注意也存在某些限制。
Because the data factory does not allow the use of nested looping activities, any pipeline that has such a structure will require a workaround in order to function properly. Here is where we classify everything that has a looping structure: actions involving the conditions if, for, and till respectively. 2. The lookup activity is capable of retrieving a maximum of 5000 rows in a single operation at its maximum capacity. To reiterate, in order to implement this kind of pipeline design, we are going to need to use some additional loop activity in conjunction with SQL with the limit. 3. It is not possible for a pipeline to have more than forty activities in total, and this number includes any inner activities as well as any containers. To find a solution to this problem, pipelines ought to be modularized with regard to the number of datasets, activities, and so on.
- 因为数据工厂不允许使用嵌套循环活动,任何具有此类结构的管道都需要变通方法才能正常运行。这里我们对所有具有循环结构的内容进行分类:分别涉及if、for和until条件的操作。 2. 查找活动在单次操作中最多可检索5000行。重申一下,为了实现这种管道设计,我们需要结合使用一些额外的循环活动以及带limit的SQL。 3. 一个管道的总活动数不能超过四十个,这个数字包括任何内部活动以及任何容器。要解决此问题,管道应在数据集、活动等方面进行模块化。
860. What is Data Flow Debug?
什么是数据流调试?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9ad9e | 官方: 否 | 付费: 否
答案:
It is possible to do data flow troubleshooting in Azure Data Factory and Synapse Analytics while simultaneously monitoring the real-time transformation of the data shape. The versatility of the debug session is beneficial to both the Data Flow design sessions as well as the pipeline debug execution.
可以在Azure数据工厂和Synapse Analytics中进行数据流故障排除,同时监控数据形状的实时转换。调试会话的多功能性有益于数据流设计会话以及管道调试执行。
Conclusion
结论
This article was created to aid you in getting ready for an interview with Azure Data Factory. It is a service that helps in the creation, storage, and management of data that is stored on the cloud. It functions similarly to a database, but much more quickly, and it can store significantly more information. Use it to organize and keep track of enormous data sets, such as photo albums or video collections, with its built-in organization and tracking features.
本文旨在帮助您为Azure数据工厂面试做好准备。它是一种有助于创建、存储和管理云上数据的服务。其功能类似于数据库,但速度更快,且能存储更多信息。利用其内置的组织和跟踪功能来整理和跟踪大型数据集,例如相册或视频集合。
You will need to have at least a fundamental familiarity with the Azure Data Factory before you can begin to make preparations for the interview. To get started, you have to become familiar with its inner workings. Second, you'll require experience in environmental construction. The final step entails the development and dissemination of your apps.
在开始准备面试之前,您需要对Azure数据工厂至少具备基本的熟悉度。首先,您必须熟悉其内部工作原理。其次,您需要环境构建方面的经验。最后一步涉及开发和部署您的应用。
Interview Resources
面试资源
- https://www.interviewbit.com/blog/azure-architecture/
- https://www.interviewbit.com/azure-databricks-interview-questions/
- https://www.interviewbit.com/blog/data-warehouse-architecture/
- https://www.interviewbit.com/data-warehouse-interview-questions/
- https://www.interviewbit.com/power-apps-interview-questions/
- https://www.interviewbit.com/data-engineer-interview-questions/
- https://www.interviewbit.com/ssis-interview-questions/
- https://www.interviewbit.com/optum-interview-questions/
- https://www.interviewbit.com/blog/aws-vs-azure/
861. Is it possible to use ADF to implement CI/CD, which stands for continuous integration and delivery?
是否可以使用ADF实施CI/CD(持续集成和交付)?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
- 类型: technical | 难度: hard | 子类型: coding
- 分类: fullstack
- id: 69b3795d58d557c902b9ada1 | 官方: 否 | 付费: 否
答案:
The Data Factory provides full support for CI and CD for your data pipelines by utilizing Azure DevOps and GitHub. As a consequence of this, you are able to construct and roll out new versions of your ETL procedures in stages before delivering the completed product. After the raw data has been converted into a form that a firm can utilize, it should be imported into an Azure Data Warehouse, Azure SQL Azure Data Lake, Azure Cosmos DB, or another analytics engine that your organization's BI tools can reference. This step should take place as soon as possible.
Data Factory通过利用Azure DevOps和GitHub,为数据管道提供了对CI和CD的全面支持。因此,您能够在交付最终产品之前,分阶段构建和部署ETL流程的新版本。原始数据被转换为公司可用的形式后,应尽快导入到Azure数据仓库、Azure SQL Azure Data Lake、Azure Cosmos DB或组织BI工具可引用的其他分析引擎中。
862. Which components of Data Factory's building blocks are considered to be the most useful ones?
Data Factory构建块中哪些组件被认为是最有用的?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9ada4 | 官方: 否 | 付费: 否
答案:
- Each activity inside the pipeline has the ability to use the @parameter construct in order to make use of the parameter value that has been provided to the pipeline.
By making use of the @coalesce construct within the expressions, we are able to deal with null values in a pleasant manner.
- 通过在表达式中使用@coalesce构造,我们能够以简洁的方式处理空值。
The @activity construct makes it possible to make use of the results obtained from one activity in another.
- @activity构造使得在一个活动中使用从另一个活动获得的结果成为可能。
863. Do you have any prior experience with the Execute Notebook activity in Data Factory? Does anybody have any idea how to configure the settings for a laptop task?
您对Data Factory中的执行笔记本活动有以往经验吗?有没有人知道如何为笔记本任务配置设置?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9adaa | 官方: 否 | 付费: 否
答案:
Through the use of the execute notebook activity, we can communicate with our data bricks cluster from within a notebook. We are able to send parameters to an activity within a notebook by utilizing the baseParameters attribute of that activity. In the event that the parameters are not explicitly defined or specified in the activity, the notebook's default settings are utilized.
通过使用执行笔记本活动,我们可以从笔记本内部与数据砖集群进行通信。我们能够通过使用该活动的baseParameters属性向笔记本内的活动发送参数。如果参数未在活动中明确定义或指定,则使用笔记本的默认设置。
864. Is it possible to communicate with a pipeline run by passing information along in the form of parameters?
是否可以通过以参数形式传递信息来与管道运行进行通信?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9adb1 | 官方: 否 | 付费: 否
答案:
In Data Factory, a parameter is handled just like any other fully-fledged top-level notion would be. The defining of parameters at the pipeline level enables the passage of arguments during on-demand or triggered execution of the pipeline.
在Data Factory中,参数就像任何其他完整的顶层概念一样被处理。在管道级别定义参数可以在按需或触发执行管道时传递参数。
865. Which activity should be performed if the goal is to make use of the results that were acquired by performing a query?
如果目标是利用通过执行查询获得的结果,应执行哪个活动?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9adb4 | 官方: 否 | 付费: 否
答案:
A lookup operation can be used to acquire the result of a query or a stored process. The end result might be a single value or an array of attributes that can be utilized in a ForEach activity or some other control flow or transformation function. Either way, it could be a single value.
可以使用查找操作来获取查询或存储过程的结果。最终结果可能是一个单值或一组属性,这些属性可以在ForEach活动或其他控制流或转换函数中使用。无论哪种方式,它都可能是一个单值。
866. How many individual steps are there in an ETL procedure?
ETL过程共有多少个单独步骤?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9adb7 | 官方: 否 | 付费: 否
答案:
The ETL (Extract, Transform, Load) technique consists of carrying out these four stages in the correct order.
ETL(提取、转换、加载)技术包括按正确顺序执行这四个阶段。
Establishing a link to the data source (or sources) is the initial stage. After that, collecting the information and transferring it to either a local database or a crowdsourcing database is the next step in the process. 2. Making use of computational services includes activities such as transforming data by utilizing HDInsight, Hadoop, Spark, and similar tools. 3. Send information to an Azure service, such as a data lake, a data warehouse, a database, Cosmos DB, or a SQL database. This step can also be accomplished by using the Publish API. 4. To facilitate pipeline monitoring, Azure Data Factory makes use of Azure Monitor, API, PowerShell, Azure Monitor logs, and health panels on the Azure site.
- 建立与数据源(或多个数据源)的连接是初始阶段。之后,收集信息并将其传输到本地数据库或众包数据库是过程的下一步。 2. 利用计算服务包括通过使用HDInsight、Hadoop、Spark及类似工具转换数据等活动。 3. 将信息发送到Azure服务,如数据湖、数据仓库、数据库、Cosmos DB或SQL数据库。此步骤也可以通过使用Publish API完成。 4. 为便于管道监控,Azure Data Factory利用Azure Monitor、API、PowerShell、Azure Monitor日志和Azure网站上的健康面板。
867. How well does Data Factory support the Hadoop and Spark computing environments when it comes to carrying out transform operations?
在执行转换操作时,Data Factory对Hadoop和Spark计算环境的支持程度如何?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9adba | 官方: 否 | 付费: 否
答案:
The following types of computer environments are able to carry out transformation operations with the assistance of a Data Factory:
以下类型的计算机环境能够在Data Factory的协助下执行转换操作:
The On-Demand Computing Environment provided by I ADF is a solution that is ready to use and includes full management. A cluster is created for the computation to carry out the transformation, and this cluster is afterwards removed once the transformation has been carried out. 2. Bring Your Own Equipment: If you already possess the computer gear and software required to deliver services on-premises, you can use ADF to manage your computing environment in this situation.
- I ADF提供的按需计算环境是一种即用型且完全管理的解决方案。为执行转换而创建计算集群,转换完成后该集群会被移除。 2. 自带设备:如果您已经拥有在本地交付服务所需的计算机硬件和软件,您可以在这种情况下使用ADF来管理您的计算环境。
868. How about discussing the three most important tasks that you can complete with Microsoft Azure Data Factory?
我们来讨论一下使用 Microsoft Azure 数据工厂可以完成的三项最重要任务,怎么样?
- 知识点: DevOps/云 / 数据工程与数据科学/AI / 行为与软技能 (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
- 类型: behavioral | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9adbd | 官方: 否 | 付费: 否
答案:
As was discussed in the previous section's third question, Data Factory makes it easier to carry out three processes: moving data, transforming data, and exercising control.
如上一节第三个问题所讨论的,数据工厂使三个过程更易于执行:移动数据、转换数据和控制流程。
The operations known as data movement do precisely what their name suggests, which is to say that they facilitate the flow of data from one point to another. For example, information can be moved from one data store to another using Data Factory's Copy Activity. Other data stores may also be used. 2. "Data transformation activities" are any operations that modify data as it is being loaded into its final destination system. Stored Procedures, U-SQL, Azure Functions, and so on are just a few examples. 3. Control (flow) activities, as their name suggests, are designed to help regulate the speed of any process that is going through a pipeline. For example, selecting the Wait action will result in the pipeline pausing for the amount of time that was specified.
- 被称为数据移动的操作正如其名称所示,即促进数据从一点流向另一点。例如,可以使用数据工厂的复制活动将信息从一个数据存储移动到另一个数据存储。其他数据存储也可以使用。2. “数据转换活动”是指在数据加载到最终目标系统时对其进行修改的任何操作。存储过程、U-SQL、Azure Functions 等只是其中几个例子。3. 控制(流程)活动,如其名称所示,旨在帮助调节管道中任何进程的速度。例如,选择等待操作将导致管道暂停指定的时间量。
869. What is meant by the term "ARM Templates" when referring to Azure Data Factory? Where do we plan to use them?
当提到 Azure 数据工厂时,“ARM 模板”一词是什么意思?我们计划在何处使用它们?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9adc0 | 官方: 否 | 付费: 否
答案:
An ARM template is a file that uses JavaScript Object Notation (JSON), and it is where all of the definitions for the data factory pipeline operations, associated services, and datasets are stored. Code that is analogous to the one used in our pipeline will be incorporated into the template.
ARM 模板是一个使用 JavaScript 对象表示法(JSON)的文件,其中存储了数据工厂管道操作、关联服务和数据集的所有定义。与我们的管道中使用的代码类似的代码将被合并到模板中。
Once we have determined that the code for our pipeline is operating as it should, we will be able to use ARM templates to migrate it to higher environments, such as Production or Staging, from the Development setting.
一旦我们确定管道代码按预期运行,我们将能够使用 ARM 模板将其从开发环境迁移到更高环境,如生产或暂存环境。
870. Is there a limit to the number of Integration Runtimes that may be built or is it unlimited?
可构建的集成运行时数量是否有限制,还是无限制?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9adc3 | 官方: 否 | 付费: 否
答案:
The default maximum for anything that may be contained within a Data Factory is 5000, and this includes a pipeline, data set, trigger, connected service, Private Endpoint, and integration runtime. You can file a request to increase this amount through the online help desk if you find that you require more.
数据工厂内可包含的任何内容的默认最大值为 5000,这包括管道、数据集、触发器、连接服务、专用端点和集成运行时。如果您发现需要更多,可以通过在线帮助台提交请求以增加此数量。
871. What are the prerequisites that need to be met before an SSIS package can be executed in Data Factory?
在数据工厂中执行 SSIS 包之前,需要满足哪些先决条件?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, data-factory, etl;标签: interviewbit, azure-data-factory, topic-specific, azure, data-factory, etl)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9adc6 | 官方: 否 | 付费: 否
答案:
Setting up an SSIS integration runtime and an SSISDB catalogue in an Azure SQL server database or an Azure SQL-managed instance is required before an SSIS package can be executed. This can be done in either of these locations.
在执行 SSIS 包之前,需要在 Azure SQL 服务器数据库或 Azure SQL 托管实例中设置 SSIS 集成运行时和 SSISDB 目录。这可以在其中任一位置完成。
872. Is the implementation of PySpark DataFrames entirely unique when compared to that of other Python DataFrames, such as Pandas, or are there similarities?
PySpark DataFrame 的实现与其他 Python DataFrame(如 Pandas)相比是完全独特的,还是存在相似之处?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
- 类型: technical | 难度: hard | 子类型: coding
- 分类: fullstack
- id: 69b3795d58d557c902b9ae24 | 官方: 否 | 付费: 否
答案:
Spark DataFrames are not the same as Pandas, despite the fact that they take inspiration from Pandas and perform in a similar manner. There is a possibility that a great number of Python experts place an excessive amount of faith in Pandas. It is recommended that you use DataFrames rather than Pandas in Spark at this time.
Spark DataFrame 与 Pandas 并不相同,尽管它们借鉴了 Pandas 并表现方式相似。许多 Python 专家可能对 Pandas 过于信任。目前建议在 Spark 中使用 DataFrame 而非 Pandas。
This is despite the fact that Databricks is actively working to improve Pandas. Users of Pandas and Spark DataFrames should think about adopting Apache Arrow to reduce the impact on performance caused by moving between the two frameworks. Bear in mind that the Catalyst engine will, at some point in the future, convert your Spark DataFrames into RDD expressions. Pandas are safe from predators in China, including bears.
尽管 Databricks 正在积极改进 Pandas,情况依然如此。Pandas 和 Spark DataFrame 的用户应考虑采用 Apache Arrow 来减少两个框架之间切换带来的性能影响。请记住,Catalyst 引擎将在未来某个时刻将你的 Spark DataFrame 转换为 RDD 表达式。Pandas 在中国免受捕食者(包括熊)的威胁。
873. What is Serverless Database Processing in Azure?
什么是 Azure 中的无服务器数据库处理?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9ae27 | 官方: 否 | 付费: 否
答案:
Depending on how the computer is set up, the location of the computer's code could either be on the server or on the user's end. Serverless computing, on the other hand, adheres to the properties of stateless code, in which the code functions independently of any physical servers that may be present.
根据计算机的设置方式,计算机代码的位置可能位于服务器上或用户端。然而,无服务器计算遵循无状态代码的属性,其中代码独立于可能存在的任何物理服务器运行。
The user is responsible for paying for any computing resources that are utilized by the program while it is being executed, even if this only lasts for a limited period of time. Users only pay for the resources that they really make use of, which results in a very cost-effective system.
用户需要为程序执行期间利用的任何计算资源付费,即使这仅持续有限的时间。用户只需为实际使用的资源付费,这导致了一个非常经济高效的系统。
874. In what ways does Azure SQL DB protect stored data?
Azure SQL DB 以哪些方式保护存储的数据?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9ae2a | 官方: 否 | 付费: 否
答案:
Azure SQL DB provides the following data protection options:
Azure SQL DB 提供以下数据保护选项:
Rules for the SQL Server Firewall in Azure Azure have two tiers of security. The first is a set of firewall rules for the Azure database server, which are kept in the SQL Master database. The second is security measures used to prevent unauthorized access to data, such as firewall rules at the database level. 2. Credit card numbers and other personal information saved in Azure SQL databases are safe from prying eyes thanks to Azure SQL Always Encrypted. 3. Data in an Azure SQL Database is encrypted using Transparent Data Encryption (TDE). Database and log file backups and transactions are encrypted and decrypted in real time using TDE. 4. Auditing for Azure SQL Databases: Azure's SQL Database service includes built-in auditing features. The audit policy can be set for the entire database server or for specific databases.
- Azure 中 SQL Server 防火墙规则:Azure 有两层安全。第一层是 Azure 数据库服务器的防火墙规则集合,存储在 SQL Master 数据库中。第二层是防止未经授权访问数据的安全措施,例如数据库级别的防火墙规则。 2. 存储在 Azure SQL 数据库中的信用卡号和其他个人信息通过 Azure SQL Always Encrypted 免遭窥探。 3. Azure SQL 数据库中的数据使用透明数据加密 (TDE) 进行加密。数据库和日志文件备份及事务使用 TDE 进行实时加密和解密。 4. Azure SQL 数据库审计:Azure 的 SQL 数据库服务包含内置审计功能。审计策略可以针对整个数据库服务器或特定数据库设置。
875. How does Microsoft Azure handle the redundant storage of data?
Microsoft Azure 如何处理数据的冗余存储?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9ae2d | 官方: 否 | 付费: 否
答案:
Azure stores several copies of your data at all times within its storage facilities in order to maintain a high level of data availability. Azure provides a number of different data redundancy solutions, each of which is tailored to the customer's specific requirements regarding the significance of the data being replicated and the length of time they require access to the replica.
Azure 在其存储设施中始终存储数据的多个副本,以维持高水平的数据可用性。Azure 提供了多种不同的数据冗余解决方案,每种方案都针对客户关于被复制数据重要性和访问副本所需时间的特定要求进行了定制。
The data is replicated in a number of different storage areas within the same data centre, which makes it extremely available. It is the most cost-effective method for ensuring that at least three independent copies of your data are stored elsewhere. 2. A function referred to as "Zone Redundant Storage" ensures that a copy of the data is kept in each of the primary region's three zones (ZRS). In the event that one or more of your zones becomes unavailable, Azure will promptly repoint your DNS servers. Following the repointing of the DNS, it is possible that the network settings of any programmes that are dependent on data access will need to be updated. 3. A "geographically redundant" (GRS) storage system stores a copy of the data in two distinct places in the event that one of the sites becomes unavailable. It is possible that the secondary region's data will not be accessible until the geo-failover process is finished. 4. A technology known as Read Access Geo Redundant Storage allows for the data stored in the secondary area to be read in the event that a failure occurs in the primary region (RA-GRS).
- 数据在同一个数据中心内的多个不同存储区域进行复制,这使得数据高度可用。这是确保你的数据至少有三份独立副本存储其他地方的最具成本效益的方法。 2. 一种称为“区域冗余存储”的功能确保在主区域的三个区域中的每一个都保留一份数据副本 (ZRS)。如果你一个或多个区域不可用,Azure 将迅速重新指向你的 DNS 服务器。在 DNS 重指向后,依赖数据访问的任何程序的网络设置可能需要更新。 3. 一份“地理冗余”(GRS)存储系统在两个不同的位置存储数据副本,以防其中一个站点不可用。在区域故障转移过程完成之前,次要区域的数据可能无法访问。 4. 一项称为“读取访问地理冗余存储”的技术允许在主区域发生故障时读取存储在次要区域的数据 (RA-GRS)。
876. What are some of the methods that data can be transferred from storage located on-premises to Microsoft Azure?
有哪些方法可以将数据从本地存储传输到 Microsoft Azure?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9ae30 | 官方: 否 | 付费: 否
答案:
When selecting a method for the transfer of data, the following are the most important considerations to make:
在选择数据传输方法时,以下是最重要的考虑因素:
Data Size 2. Data Transfer Frequency (One-time or Periodic) 3. The bandwidth of the Network
- 数据大小 2. 数据传输频率(一次性或定期) 3. 网络带宽
Solutions for the transportation of data can take the following forms, depending on the aforementioned factors:
根据上述因素,数据传输的解决方案可以采取以下形式:
Offline transfer: This is used for transferring large amounts of data in a single session. As a result, Microsoft is able to supply customers with discs or other secure storage devices; however, customers also have the option of sending Microsoft their own discs. The offline transfer options known as named data box, data box disc, data box heavy, and import/export (using the customer's own drives) are all available to choose from. 2. Transfer over a network: the following methods of data transfer can be carried out through a network connection:
- 离线传输:这用于在单次会话中传输大量数据。因此,微软能够向客户提供光盘或其他安全存储设备;然而,客户也有选择将自己的光盘发送给微软。离线传输选项包括名为数据盒、数据盒光盘、数据盒重型和导入/导出(使用客户自己的驱动器)等可供选择。 2. 通过网络传输:以下数据传输方法可以通过网络连接进行:
Graphical Interface: This is the best option when only a few files need to be transferred and there is no requirement for the data transfer to be automated. Azure Storage Explorer and Azure Portal are both graphical interface choices that are available.
图形界面:当只需要传输少量文件且不需要自动化数据传输时,这是最佳选择。Azure存储资源管理器和Azure门户都是可用的图形界面选项。
Programmatic Transfer AzCopy, Azure PowerShell, and Azure CLI are examples of some of the scriptable data transfer tools that are now accessible. SDKs for a number of other programming languages are also available.
编程式传输:AzCopy、Azure PowerShell和Azure CLI是当前可用的部分可脚本化数据传输工具示例。还提供了多种其他编程语言的SDK。
On-premises devices: A physical device known as the Data Box Edge and a virtual device known as the Data Box Gateway are deployed at the customer's location in order to maximize the efficiency of the data transmission to Azure.
本地设备:一种称为数据盒边缘的物理设备和一种称为数据盒网关的虚拟设备部署在客户现场,以最大化数据传输到Azure的效率。
Pipeline from the Managed Data Factory: Pipelines from the Azure Data Factory can move, transform, and automate frequent data transfers from on-premises data repositories to Azure.
托管数据工厂管道:Azure数据工厂的管道可以移动、转换并自动化从本地数据存储库到Azure的频繁数据传输。
877. What is the most efficient way to move information from a database that is hosted on-premises to one that is hosted on Microsoft Azure?
将数据从本地托管的数据库迁移到托管在Microsoft Azure上的数据库最有效的方法是什么?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9ae33 | 官方: 否 | 付费: 否
答案:
What is the most efficient way to move information from a database that is hosted on-premises to one that is hosted on Microsoft Azure?
将数据从本地托管的数据库迁移到托管在Microsoft Azure上的数据库最有效的方法是什么?
The following procedures are available through Azure for moving data from a SQL Server that is hosted on-premises to a database hosted in Azure SQL: - With the help of the Stretch Database functionality found in SQL Server, it is possible to move data from SQL Server 2016 to Azure.
Azure提供了以下程序,用于将数据从本地托管的SQL Server迁移到Azure SQL中托管的数据库: - 借助SQL Server中的Stretch Database功能,可以将数据从SQL Server 2016迁移到Azure。
- It is able to identify idle rows, also known as "cold rows," which are rows in a database that are rarely visited by end users and migrate those rows to the cloud. There is a reduction in the amount of time spent backing up databases that are located on premises.
- With Azure SQL Database, organizations are able to continue with a cloud-only approach and migrate their whole database to the cloud without interrupting their operations.
- Managed Instance of the Azure Database as a Service Available for SQL Server: It is compatible with a diverse range of configurations (DBaaS). Microsoft takes care of database administration, and the system is about 100 per cent compatible with SQL Server that has been installed locally.
- Customers that want complete control over how their databases are managed should consider installing SQL Server in a virtual machine. This is the optimal solution. It ensures that your on-premises instance will function faultlessly with no modifications required on your part.
- In addition, Microsoft provides clients with a tool known as Data Migration Assistant, which is designed to aid customers in determining the most suitable migration path by taking into account the on-premises SQL Server architecture they are already using.
878. Databases that support numerous models are precisely what they sound like?
支持多种模型的数据库正如其名所述是什么?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9ae36 | 官方: 否 | 付费: 否
答案:
The flagship NoSQL service that Microsoft offers is called Azure Cosmos DB. This database is the first of its kind to be supplied in the cloud, and it is a worldwide distributed multi-model database. Many suppliers are responsible for making this database available.
微软提供的旗舰NoSQL服务称为Azure Cosmos DB。这个数据库是首个在云中提供的同类数据库,它是一个全球分布的多模型数据库。许多供应商负责提供这个数据库。
It is utilized in a variety of storage formats, including column-family storage, key-value pair storage, document-based storage, and graph-based storage, amongst others. No matter which data model a customer chooses, they will continue to enjoy the same perks, like low latency, consistency, international distribution, and automatic indexing, regardless of which model they use.
它用于多种存储格式,包括列族存储、键值对存储、基于文档的存储和基于图的存储等。无论客户选择哪种数据模型,他们将继续享受相同的优势,如低延迟、一致性、国际分布和自动索引,而不管使用哪种模型。
879. Which kind of consistency models are supported by Cosmos DB?
Cosmos DB支持哪种一致性模型?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9ae39 | 官方: 否 | 付费: 否
答案:
Because consistency models and consistency levels are available, developers no longer have to choose between high availability and increased performance as their top priority.
因为一致模型和一致性级别可用,开发人员不再需要在高可用性和提高性能之间做出选择作为首要优先事项。
The following is a list of the several consistency models that are compatible with Cosmos DB:
以下是兼容 Cosmos DB 的多种一致性模型的列表:
Beneficial: Whenever a read operation is carried out, the most recent version of the data is retrieved. This happens automatically. This particular type of consistency has a higher reading operation cost when compared to other models of consistency. 2. Using the "bounded staleness" feature, you are able to set a restriction on the amount of time that has passed since you last read or write something. When availability and consistency are not of the first importance, it functions very well. 3. The session consistency level is the default for Cosmos DB, and it is also the consistency level that is used the most across all regions. When a user navigates to the exact same location where a write was executed, the most recent information will be given to them at that time. It has the highest throughput for reading and writing at any consistency level, and the throughput is the fastest. 4. When using Consistent Prefixes, users will never observe out-of-order writes; nevertheless, data will not be replicated across regions at a predetermined frequency. 5. There is no assurance that replication will take place within a predetermined amount of time or inside a predetermined version. Both the read latency and the dependability are of the highest possible quality.
- 有益:每当执行读取操作时,都会检索数据的最新版本。这是自动发生的。与其它一致性模型相比,这种特定类型的一致性具有更高的读取操作成本。 2. 使用“有界过期”功能,您可以设置自上次读取或写入以来经过的时间限制。当可用性和一致性不是首要考虑因素时,它运作得非常好。 3. 会话一致性级别是 Cosmos DB 的默认级别,也是所有区域中使用最广泛的一致性级别。当用户导航到执行写入的相同位置时,那时会向他们提供最新信息。在任何一致性级别中,它都具有最高的读写吞吐量,并且吞吐量是最快的。 4. 使用一致性前缀时,用户永远不会观察到乱序写入;但是,数据不会按预定频率跨区域复制。 5. 无法保证复制会在预定时间范围内或特定版本内发生。读延迟和可靠性都达到最高质量。
880. How does the ADLS Gen2 manage the encryption of data exactly?
ADLS Gen2 究竟是如何管理数据加密的?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9ae3c | 官方: 否 | 付费: 否
答案:
In contrast to its predecessor, ADLS Gen2 makes use of a comprehensive and intricate security mechanism. The following are some of the various layers of data protection offered by ADLS Gen2: - Azure Active Directory (AAD), Shared Key, and Shared Access Token are the three different methods of authentication that it provides to ensure that user accounts are kept secure (SAS).
与其前身相比,ADLS Gen2 使用了一种全面且复杂的安全机制。以下是 ADLS Gen2 提供的各种数据保护层: - Azure Active Directory (AAD)、共享密钥和共享访问令牌是它提供的三种不同身份验证方法,以确保用户帐户安全 (SAS)。
- Granular control over who can access which folders and files can be achieved through the use of ACLs and roles (ACLs).
- Administrators have the ability to allow or refuse traffic from specific VPNs or IP Addresses, which results in the isolation of networks.
- Encrypts data while it is being transmitted via HTTPS, providing protection for sensitive information.
- Protection from More Advanced Threats: Be sure to monitor any attempts that are made to break into your storage area.
- Every activity that is done in the account management interface is logged by the auditing capabilities of ADLS Gen2, which serve as the system's final line of defence.
881. In what ways does Microsoft Azure Data Factory take advantage of the trigger execution feature?
Microsoft Azure Data Factory 如何利用触发器执行功能?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9ae3f | 官方: 否 | 付费: 否
答案:
Pipelines created in Azure Data Factory can be programmed to run on their own or to react to external events.
在 Azure Data Factory 中创建的管道可以编程为自行运行或响应外部事件。
The following is a list of several instances that illustrate how Azure Data Factory Pipelines can be automatically triggered or executed: - This trigger is used to commence the execution of a pipeline at a predetermined time or on a predetermined schedule, such as once per week, once per month, etc. Examples of such schedules include "once per week," "once per month," etc.
以下是几个说明 Azure Data Factory 管道如何自动触发或执行的实例列表: - 此触发器用于在预定时间或按预定计划(例如每周一次、每月一次等)启动管道的执行。此类计划的示例包括“每周一次”、“每月一次”等。
- When the Tumbling Window Trigger is applied to an Azure Data Factory Pipeline, the pipeline begins its execution at a predetermined start time and continues at predetermined intervals thereafter without ever running again.
- An Azure Data Factory Pipeline's execution is kicked off whenever a particular event takes place, such as the addition of a new file to or deletion of an existing one from Azure Blob Storage.
882. What is a dataflow map?
什么是数据流映射?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9ae42 | 官方: 否 | 付费: 否
答案:
Mapping Data Flows is a data integration experience offered by Microsoft that does not need users to write any code. This is in contrast to Data Factory Pipelines, which is a more involved data integration experience. Data transformation flows can be designed visually. Azure Data Factory (ADF) activities are built from the data flow and operate as part of ADF pipelines.
映射数据流是 Microsoft 提供的一种数据集成体验,不需要用户编写任何代码。这与 Data Factory 管道不同,后者是一种更复杂的数据集成体验。数据转换流程可以进行可视化设计。Azure Data Factory (ADF) 活动基于数据流构建,并作为 ADF 管道的一部分运行。
883. When working in a team environment with TFS or Git, how do you manage the code for Databricks?
在与 TFS 或 Git 的团队环境中工作时,您如何管理 Databricks 的代码?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9ae45 | 官方: 否 | 付费: 否
答案:
The first issue is that Team Foundation Server (TFS) is not supported. You are only able to use Git or a repository system based on Git's distributed format. Despite the fact that it would be preferable to link Databricks to your Git directory of notebooks, you can consider Databricks to be a duplicate of your project even though this is not currently possible. The first thing you do is create a notebook, after which you will update it before submitting it to version control.
第一个问题是 Team Foundation Server (TFS) 不受支持。您只能使用 Git 或基于 Git 分布式格式的存储库系统。尽管将 Databricks 链接到您的 Git 笔记本目录会更理想,但即使目前这不可能,您也可以将 Databricks 视为项目的副本。您首先创建一个笔记本,然后更新它再提交到版本控制。
884. Does the deployment of Databricks necessitate the use of a public cloud service such as Amazon Web Services or Microsoft Azure, or can it be done on an organization's own private cloud?
Databricks 的部署是否需要使用公共云服务(例如 Amazon Web Services 或 Microsoft Azure),还是可以在组织自己的私有云上完成?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9ae48 | 官方: 否 | 付费: 否
答案:
On the contrary, this is true. AWS and Azure are the only two options available to you right now. On the other hand, Databricks makes use of open-source and free Spark. You could construct and run your own cluster in a private cloud; however, by doing so, you would not have access to the extensive capabilities and management that Databricks provides.
相反,这是正确的。AWS 和 Azure 是您现在可用的仅有两个选项。另一方面,Databricks 使用了开源且免费的 Spark。您可以在私有云中构建和运行自己的集群;但是,这样做您将无法访问 Databricks 提供的广泛功能和管理的便利。
885. Please explain what a CD is in detail (Continuous Delivery).
请详细解释什么是 CD(持续交付)。
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9ae4b | 官方: 否 | 付费: 否
答案:
Once development is finished, CD speeds up the process of distributing the code to a variety of environments, including QA and staging, among others. In addition to that, it was put to use in order to evaluate the dependability, efficiency, and safety of the most recent updates.
开发完成后,CD 加速了将代码分发到各种环境(包括 QA 和暂存等)的过程。此外,它还用于评估最新更新的可靠性、效率和安全性。
886. Is Apache Spark capable of distributing compressed data sources (.csv.gz) in a successful manner when utilizing it?
在使用 Apache Spark 时,它能否成功分发压缩数据源(.csv.gz)?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9ae4e | 官方: 否 | 付费: 否
答案:
When reading a zipped CSV file or another type of serialized dataset, the SINGLE-THREADED behaviour is assured as a matter of course. After the dataset has been read from the disc, it will be maintained in memory as a distributed dataset, despite the fact that the first read does not use a distributed format.
读取压缩的 CSV 文件或其他类型的序列化数据集时,单线程行为自然是得到保证的。数据集从磁盘读取后,尽管首次读取不使用分布式格式,它仍将在内存中作为分布式数据集维护。
This is a result of the fact that compressed files offer an extremely high level of safety. You are able to divide a file that is readable and chuckable into a number of different extents using Azure Data Lake or another Hadoop-based file system. If you split the file into numerous compressed files, you'll have one thread for each file, which could rapidly create a bottleneck depending on how many files you have. If you don't split the file, you'll have multiple threads for each file.
这是因为压缩文件提供了极高的安全性。您可以使用 Azure Data Lake 或另一个基于 Hadoop 的文件系统,将可读且可分割的文件划分为多个不同范围。如果将文件分割为多个压缩文件,每个文件将对应一个线程,这可能会根据文件数量迅速形成瓶颈。如果不分割文件,则每个文件会有多个线程。
887. What are the different applications for Microsoft Azure's table storage?
Microsoft Azure 的表存储有哪些不同的应用?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9ae51 | 官方: 否 | 付费: 否
答案:
It's a cloud storage service that specializes in archiving documents and other sorts of organized material like spreadsheets and presentations. Entities in tables serve a purpose analogous to that of rows in relational databases; they are the fundamental units of structured data. The following is a list of attributes that table entities have, where each entity stands for a different key-value pair:
它是一种云存储服务,专门用于归档文档和其他类型的结构化材料,如电子表格和演示文稿。表中的实体在功能上与关系数据库中的行类似;它们是结构化数据的基本单元。以下是表实体具有的属性列表,其中每个实体代表一个不同的键值对:
- The PartitionKey field of the table is where the entity's partition key is saved whenever it is needed.
- The RowKey attribute of an entity serves as a one-of-a-kind identifier within the partition.
- The timeStamp is a feature that remembers the date and time that an entity in a table was last modified.
888. Tell me about the primary benefits offered by Azure Databricks.
请告诉我 Azure Databricks 提供的主要优势有哪些?
- 知识点: DevOps/云 / 数据工程与数据科学/AI / 行为与软技能 (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
- 类型: behavioral | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9ae54 | 官方: 否 | 付费: 否
答案:
- Processing, manipulation, and analysis of enormous amounts of data can be facilitated through the use of machine learning models with the help of Azure Databricks, which is a cloud-based data management solution that is a leader in its sector. These are the kinds of questions that a recruiter for Databricks might ask you in order to evaluate the level of excitement you have for the company.
- You can demonstrate your technical understanding to the interviewer by discussing a handful of the most significant benefits and the significance of those benefits.
- Even though Azure Databricks was developed on Spark, it is compatible with a wide variety of programming languages, such as Python, R, and SQL. The back-end language conversion provided by Databricks' APIs made it possible for them to be used with Spark (APIs). Because of this, there is no requirement for end users to learn any new coding skills in order for them to be able to make use of distributed analytics. The procedure of carrying out distributed analytics is made less complicated by Azure Databricks on account of its adaptability and its user-friendliness.
- Databricks offers a unified workspace that promotes collaboration through a multi-user environment in order to assist teams in the development of cutting-edge Spark-based machine learning and streaming applications. This is done with the goal of assisting teams in creating cutting-edge applications.
- In addition to this, it has monitoring and recovery features, which make it possible to automate the failover and recovery of clusters. We are able to swiftly and easily install Spark in our cloud environments thanks to Databricks, which has allowed us to increase the cloud environments' security as well as their performance.
889. Explain the types of clusters that are accessible through Azure Databricks as well as the functions that they serve.
解释可通过 Azure Databricks 访问的集群类型及其功能。
- 知识点: DevOps/云 / 数据工程与数据科学/AI / 行为与软技能 (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
- 类型: behavioral | 难度: hard | 子类型: coding
- 分类: fullstack
- id: 69b3795d58d557c902b9ae57 | 官方: 否 | 付费: 否
答案:
By asking you questions of this nature, the interviewer will be able to determine how well you comprehend the concepts on which they are assessing your competence. Make sure that your response to this question includes an explanation of the four categories that are considered to be the most important. Azure Databricks provides users with a total of four unique clustering options. Occupational, interesting, and both low and high on the priority scale.
通过提出此类问题,面试官将能够确定您对评估您能力所依据的概念理解得有多透彻。确保您对此问题的回答包括对被认为最重要的四个类别的解释。Azure Databricks 总共为用户提供四种独特的集群选项。占用性、趣味性以及高优先级和低优先级。
For the purposes of ad hoc analysis and discovery, clusters that give users the ability to interact with the data are valuable. These clusters are distinguished by their high concurrency as well as their low latency. Job clusters are what we make use of while executing jobs in batches. The number of jobs in a cluster can be automatically increased or decreased to accommodate fluctuating demand. Although low-priority clusters are the most cost-effective choice, their performance is not as good as that of other types of clusters.
对于临时分析和探索,允许用户与数据交互的集群很有价值。这些集群以高并发和低延迟为特征。在执行批处理作业时,我们使用作业集群。集群中的作业数量可以根据波动的需求自动增加或减少。尽管低优先级集群是最具成本效益的选择,但其性能不如其他类型的集群。
These clusters are an excellent choice for low-demand applications and processes such as development and testing because of their low resource requirements. High-priority clusters offer the best performance, but at a cost that is significantly higher than other cluster types. On these clusters, production-level workloads are able to be processed and run.
由于这些集群资源需求低,因此非常适合低需求应用和开发测试等流程。高优先级集群提供最佳性能,但成本显著高于其他集群类型。在这些集群上,能够处理和运行生产级工作负载。
890. How do you handle the Databricks code when working with a collaborative version control system such as Git or the team foundation server (TFS)?
在使用协作式版本控制系统(如 Git 或团队基础服务器(TFS))时,如何处理 Databricks 代码?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795d58d557c902b9ae5a | 官方: 否 | 付费: 否
答案:
Both TFS and Git are well-known version control and collaboration technologies that simplify the management of huge volumes of code across several teams. The questions that are asked of you allow the person in charge of hiring to determine whether or not you have previous experience working with Databricks and to evaluate your capability of managing a code base. Please provide an overview of the core methods you use to maintain the Databricks code and highlight the most significant features of TFS and Git in your response. In addition, please highlight the most important aspects of TFS and Git.
TFS 和 Git 都是知名的版本控制和协作技术,可简化跨多个团队管理大量代码的工作。所问问题让招聘负责人判断您是否具有使用 Databricks 的经验,并评估您管理代码库的能力。请概述您用于维护 Databricks 代码的核心方法,并在回答中突出显示 TFS 和 Git 的最重要特性。此外,请突出显示 TFS 和 Git 的最重要方面。
Git is free and open-source software that has a capacity of over 15 million lines of code, while Microsoft's Team Foundation Server (TFS) has a capacity of over 5 million lines of code. Git is less secure than TFS, which allows users to provide granular rights such as read/write access. Read/write access is one example.
Git 是免费的开源软件,容量超过 1500 万行代码,而 Microsoft 的团队基础服务器(TFS)容量超过 500 万行代码。Git 的安全性不如 TFS,TFS 允许用户提供细粒度权限,如读写访问。读写访问就是一个例子。
Notebooks created with Azure Databricks may easily be connected with the version control systems Git, Bitbucket Cloud, and TFS. There may be variations in the particular processes that we take in order to integrate a particular service. Because of the merger, the code for Databricks works exactly the same as it would for a second copy of the project. In order to easily manage the Databricks code, I first build a notebook, then upload it to the repository, and last, I update it as necessary.
使用 Azure Databricks 创建的笔记本可以轻松与版本控制系统 Git、Bitbucket Cloud 和 TFS 集成。我们为集成特定服务所采取的具体流程可能存在差异。由于合并,Databricks 代码的工作方式与项目的第二个副本完全相同。为了轻松管理 Databricks 代码,我首先构建一个笔记本,然后将其上传到存储库,最后根据需要更新它。
891. What would you say were the most significant challenges you had to overcome when you were in your former position?
您认为在前职位中必须克服的最大挑战是什么?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795e58d557c902b9ae5d | 官方: 否 | 付费: 否
答案:
When it comes to a question like this, the only thing that should guide a person's response is their professional history. The person in charge of hiring wants to know all about the difficulties you have faced and how you have managed to prevail over them. In the event that you have past experience working with Azure Databricks, it is possible that you have encountered difficulties with the data or server management that hampered the efficiency of the workflow.
对于此类问题,个人回答的唯一指导应基于其职业历史。招聘负责人想了解您面临的所有困难以及如何成功克服它们。如果您过去有使用 Azure Databricks 的经验,可能遇到过阻碍工作流效率的数据或服务器管理困难。
Due to the fact that it was my first job, I ran into several problems in my former role as a data engineer. Improving the overall quality of the information that was gathered constituted a considerable challenge. I initially had some trouble, but after a few weeks of studying and developing efficient algorithms, I was able to automatically delete 80–90% of the data.
由于这是我的第一份工作,我在之前担任数据工程师的角色中遇到了几个问题。提高所收集信息的整体质量构成了相当大的挑战。我最初有些困难,但经过几周学习和开发高效算法后,我能够自动删除 80-90% 的数据。
Another significant issue was the ineffectiveness of the team's ability to work together. In the past, the company would process its data by first separating it across various servers, and then going offline to do so. The data-driven procedures as a whole saw a significant amount of slowdown, and a great number of errors were created. I was able to help centralize all the data collection on a single Azure server and connect Databricks, which streamlined the majority of the process and allowed us to receive real-time insights, despite the fact that it took me around two months to do so.
另一个重要问题是团队协作能力的不足。过去,公司处理数据时先将数据分散到各种服务器上,然后离线进行处理。整体数据驱动流程遭遇了显著的速度下降,并产生了大量错误。我能够帮助将所有数据收集集中到单个Azure服务器上,并连接Databricks,这简化了大部分流程并使我们能够获得实时洞察,尽管我花了大约两个月的时间才完成这一工作。
892. Explain the term "mapping data flows"?
请解释术语“映射数据流”?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795e58d557c902b9ae60 | 官方: 否 | 付费: 否
答案:
If the interviewer asks you a question that tests your technical knowledge, they will be able to evaluate how well you know this particular field of expertise. Your response to this inquiry will serve as evidence that you have a solid grasp of the fundamental principles behind Databricks. Kindly offer a concise explanation of the benefits that the workflow process gains from having data flow mapping implemented.
如果面试官问您一个测试技术知识的问题,他们就能评估您对这一专业领域的熟悉程度。您对这个问题的回答将证明您对Databricks基本原理有扎实的掌握。请简要说明工作流过程从实施数据流映射中获得的好处。
In contrast to data factory pipelines, mapping data flows are available through Microsoft and can be utilized for the purpose of data integration without the requirement of any scripting. It is a graphical tool that may be used to construct procedures that convert data. Following this step, ADF actions are possible to be carried out as a component of ADF pipelines, which is beneficial to the process of changing the flow of data.
与数据工厂管道相比,映射数据流可通过Microsoft提供,并可用于数据集成,而无需任何脚本编写。它是一种图形工具,可用于构建转换数据的程序。在此步骤之后,ADF操作可以作为ADF管道的一部分执行,这有助于改变数据流的过程。
893. Can Databricks be used in conjunction with a private cloud environment?
Databricks能否与私有云环境结合使用?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795e58d557c902b9ae63 | 官方: 否 | 付费: 否
答案:
This kind of question could be asked of you during the interview if the interviewer wants to evaluate how adaptable you are with Databricks. This is a fantastic opportunity for you to demonstrate your capacity for analysis and attention to detail. Include in your response a concise explanation of how to deploy it to a private cloud as well as a list of cloud server options.
如果面试官想评估您对Databricks的适应能力,可能会在面试中问您这类问题。这是您展示分析能力和对细节关注度的绝佳机会。在您的回答中要包含如何将其部署到私有云的简明说明,以及云服务器选项的列表。
Amazon Web Services (AWS) and Microsoft Azure are the only two cloud computing platforms that can currently be accessed. Databricks makes use of open-source Spark technology, which is readily available. We could create our own cluster and host it in a private cloud, but if we did so, we wouldn't have access to the extensive administration tools that Databricks provides.
目前仅可访问Amazon Web Services(AWS)和Microsoft Azure这两个云计算平台。Databricks使用开源Spark技术,该技术随时可用。我们可以创建自己的集群并将其托管在私有云中,但这样做的话,我们将无法使用Databricks提供的广泛管理工具。
894. What are the Benefits of Using Kafka with Azure Databricks?
使用Kafka与Azure Databricks结合有什么好处?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795e58d557c902b9ae66 | 官方: 否 | 付费: 否
答案:
Apache Kafka is a decentralized streaming platform that may be utilized for the construction of real-time streaming data pipelines as well as stream-adaptive applications. You will have the opportunity to demonstrate your acquaintance with the Databricks compatible third-party tools and connectors if the query is of this sort. If you are going to react, you ought to discuss the benefits of utilizing Kafka in conjunction with Azure Databricks for the workflow.
Apache Kafka是一个去中心化的流式平台,可用于构建实时流式数据管道以及流自适应应用程序。如果遇到此类问题,您将有机会展示您对Databricks兼容的第三方工具和连接器的熟悉程度。如果您要回答,应当讨论在工作流中使用Kafka与Azure Databricks结合的好处。
Azure Databricks makes use of Kafka as its platform of choice for data streaming. It is helpful for obtaining information from a wide variety of different sensors, logs, and monetary transactions. Kafka makes it possible to perform processing and analysis on the streaming data in real-time.
Azure Databricks使用Kafka作为其数据流平台。它有助于从各种不同的传感器、日志和货币交易中获取信息。Kafka使得能够对实时流式数据进行处理和分析。
895. Do I have the freedom to use various languages in a single notebook, or are there significant limitations? Would it be available for usage in further phases if I constructed a DataFrame in my python notebook using a%Scala magic?
我是否可以自由地在单个笔记本中使用多种语言,还是存在重大限制?如果我在Python笔记本中使用%Scala魔术命令构建了一个DataFrame,它是否可用于后续阶段?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795e58d557c902b9ae69 | 官方: 否 | 付费: 否
答案:
It is possible to generate a Scala DataFrame, which may then be used as a reference in Python. There are many things in the world that have the potential to harm this in some way. If you can, write your programme in Scala or Python. On occasion, however, you will have to coordinate your efforts with others.
可以生成一个Scala DataFrame,然后在Python中作为引用使用。世界上有许多事情可能以某种方式损害这一点。如果可能的话,请用Scala或Python编写您的程序。但有时,您需要与他人协调工作。
Mixtures are utilized in the production of the things that are made nowadays. The most perfect scenario would be for us both to make use of the same. Having said that, there is a catch. When creating a notebook that contains code written in many languages, it is important to remember to show consideration for the developer who will come after you to try to debug your code.
如今生产的产品中使用了混合物。最理想的情况是我们两者使用相同的东西。话虽如此,但有一个问题。创建包含多种语言代码的笔记本时,重要的是要记住考虑后来尝试调试代码的开发者。
896. Is it possible to write code with VS Code and take advantage of all of its features, such as good syntax highlighting and intellisense?
是否可以使用VS Code编写代码并利用其所有功能,例如良好的语法高亮和IntelliSense?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
- 类型: technical | 难度: hard | 子类型: coding
- 分类: fullstack
- id: 69b3795e58d557c902b9ae6c | 官方: 否 | 付费: 否
答案:
Sure, VSCode includes a smattering of IntelliSense, and you can use it to scribble down some Python or Scala code, even if you would be doing so in the form of a script rather than a notebook. One of the other responses also mentioned Databricks connect. It is acceptable in any scenario. I would like to suggest that you start a new project in Scala by using DBConnect. In this approach, you will be able to carry out critical activities that we have been putting off, such as conducting unit tests.
当然,VSCode包含一些IntelliSense功能,您可以使用它来编写一些Python或Scala代码,即使您以脚本形式而非笔记本形式编写。另一个回答中也提到了Databricks connect。在任何场景下都是可以接受的。我建议您使用DBConnect在Scala中启动一个新项目。通过这种方法,您将能够执行我们一直推迟的关键活动,例如进行单元测试。
897. To run Databricks, do you need a public cloud provider such as Amazon Web Services or Microsoft Azure, or is it possible to install it on a private cloud?
运行Databricks是否需要像Amazon Web Services或Microsoft Azure这样的公共云提供商,还是可以将其安装到私有云上?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795e58d557c902b9ae6f | 官方: 否 | 付费: 否
答案:
If this is the case, how does it compare to the PaaS solution that we are presently utilizing, such as Microsoft Azure?
如果是这种情况,它与我们目前使用的 PaaS 解决方案(例如 Microsoft Azure)相比如何?
The answer to this problem is glaringly evident. Actually, the answer is no; it's not. At this time, your only real options are with Amazon Web Services (AWS) or Microsoft Azure. Databricks, on the other hand, makes use of open-source and cost-free Spark. Even if it is feasible to set up your own cluster and run it locally or in a private cloud, you will not have access to the more advanced capabilities and levels of control that are provided by Databricks.
这个问题的答案非常明显。实际上,答案是否定的;不是这样。目前,你真正唯一的选择是 Amazon Web Services (AWS) 或 Microsoft Azure。然而,Databricks 使用的是开源且免费的 Spark。即使你可以搭建自己的集群并在本地或私有云中运行,你也无法获得 Databricks 提供的更高级功能和更高级别的控制。
898. Is it possible to use Azure Key Vault as an acceptable replacement for Secret Scopes?
是否可以将 Azure Key Vault 用作 Secret Scopes 的可接受替代方案?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795e58d557c902b9ae72 | 官方: 否 | 付费: 否
答案:
You have the ability to select that alternative. However, it does require a little bit of time and work to get ready. We suggest beginning your search here. Create a key with restricted access that you may save in the Azure Key Vault. If the value of the secret needs to be changed in any way, it is not necessary to update the scoped secret. There are a lot of benefits associated with doing so, the most crucial one being that it might be a headache to keep track of secrets in numerous different workplaces at the same time.
你可以选择该替代方案。但是,准备好确实需要一些时间和精力。我们建议从这里开始搜索。创建一个具有受限访问权限的密钥,并将其保存在 Azure Key Vault 中。如果密钥值需要以任何方式更改,则无需更新作用域内的密钥。这样做有很多好处,最重要的是,同时跟踪多个不同工作区中的密钥可能是一件令人头疼的事情。
899. Is there any way we can stop Databricks from establishing a connection to the internet?
有没有办法阻止 Databricks 建立互联网连接?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795e58d557c902b9ae75 | 官方: 否 | 付费: 否
答案:
You should be able to peer the parent virtual network with your own virtual network (VNet) and define the necessary policies for incoming and outgoing traffic, but this will depend on the policies of the parent virtual network. The workspace is always online, but you can adjust the degree to which separate clusters are connected to one another.
你应该能够将父虚拟网络与你的自建虚拟网络 (VNet) 对等,并定义必要的入站和出站流量策略,但这将取决于父虚拟网络的策略。工作区始终在线,但你可以调整各个集群之间的连接程度。
And in the same way that there is no mechanism to force a connection with the Azure portal, I do not believe there is a means to force a connection with the Databricks portal when using Express-route. However, you may control what data each cluster receives by erecting a firewall around the code that is now being performed. This gives you more control over the situation. Vnet Injection gives you the ability to restrict access to your storage accounts and data lakes, making them available only to users within your Virtual Network (VNet) via service endpoints. This is an excellent security feature.
同样,就像没有机制强制与 Azure 门户建立连接一样,我认为当使用 ExpressRoute 时,也没有办法强制与 Databricks 门户建立连接。但是,你可以通过在当前执行的代码周围建立防火墙来控制每个集群接收的数据。这让你对情况有更多控制。VNet 注入使你可以限制对存储账户和数据湖的访问,使其仅可通过服务端点供虚拟网络 (VNet) 内的用户使用。这是一个出色的安全功能。
900. To the untrained eye, notebooks seem to be arranged in a progression that makes sense, but I have a feeling that's not actually the case.
对于未经培训的人来说,笔记本似乎按合理的顺序排列,但我感觉实际上并非如此。
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795e58d557c902b9ae78 | 官方: 否 | 付费: 否
答案:
The question that needs to be answered is how one would go about first loading a warehouse with twenty or more dimensions, and then populating the fact.
需要回答的问题是如何首先加载具有二十个或更多维度的仓库,然后填充事实表。
When an action is invoked on a DataFrame, the DataFrame will determine the most time- and resource-effective sequence in which to apply the transformations that you have queued up; hence, the actions themselves are sequential. In most cases, I'll start by making a new notebook for each data entity, as well as one for each dimension, and then I'll use an application developed by a third party to execute both of those notebooks concurrently.
当在 DataFrame 上调用操作时,DataFrame 将确定应用你排队转换的最节省时间和资源的顺序;因此,操作本身是顺序执行的。在大多数情况下,我会首先为每个数据实体创建一个新笔记本,以及为每个维度创建一个笔记本,然后使用第三方开发的应用程序同时执行这两个笔记本。
You could, for instance, put up a data factory pipeline that does queries for a collection of notebooks and simultaneously executes all of those notebooks. To manage orchestration and parallelism, I would much rather utilize an external tool because it is more visible and flexible than embedding "parent notebooks" that handle all of the other logic. Embedding "parent notebooks" is the alternative.
例如,你可以设置一个数据工厂管道,该管道查询一组笔记本并同时执行所有这些笔记本。为了管理编排和并行性,我更愿意使用外部工具,因为它比嵌入处理所有其他逻辑的“父笔记本”更可见和灵活。嵌入“父笔记本”是另一种选择。
901. In what ways can Databricks and Data Lake make new opportunities for the parallel processing of datasets available?
Databricks 和 Data Lake 以什么方式为数据集的并行处理提供新的机会?
- 知识点: DevOps/云 / 数据工程与数据科学/AI (主题: azure, databricks, data-engineering;标签: interviewbit, azure-databricks, topic-specific, azure, databricks, data-engineering)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b3795e58d557c902b9ae7b | 官方: 否 | 付费: 否
答案:
Is it viable, for instance, to make use of such technologies in order to construct a large number of new (calculated) columns on a dataset all at once, as opposed to needing to generate each column one at a time, as would be required in a database table?
例如,是否可以利用这些技术一次性在数据集上构造大量新的(计算)列,而不是像数据库表中那样需要逐一生成每列?
After you have aligned the data, called an action to write it out to the database, and the engine has finished the task, the catalyst engine will figure out the best way to manage the data and do the transformations. It will do this after the engine has finished the work. If a large number of transactions include narrow transformations that utilize the same partitioning feature, the engine will make an effort to finish them all at the same time.
在你排列好数据、调用操作将其写入数据库并且引擎完成任务后,catalyst 引擎将找出管理数据和执行转换的最佳方式。它会在引擎完成工作后执行此操作。如果大量事务包含使用相同分区特性的窄转换,引擎将尝试同时完成所有这些转换。
Conclusion
结论
The cloud platform with the most users is Microsoft Azure, and employers are always looking for qualified employees to fill open positions. We have developed this list of frequently asked questions (and answers) for the position of Azure Data Engineer with the intention of supporting you in your search for employment.
用户最多的云平台是 Microsoft Azure,雇主总是在寻找合格的员工来填补空缺职位。我们为 Azure 数据工程师职位编写了这份常见问题(和答案)列表,旨在支持你的求职过程。
You can use the questions and answers that are provided in this article as a resource when you are looking for a job that is related to Azure Databricks. If you respond to all of these questions, you will show potential employers that you have thought about everything that they might possibly ask about in their interview process.
在寻找与 Azure Databricks 相关的工作时,你可以使用本文中提供的问答作为资源。如果你回答了所有这些问题,你将向潜在雇主表明你已考虑过他们可能在面试过程中问到的所有内容。
Learning Resources
学习资源
- Azure Architecture
- Apache Spark Architecture
- Power BI Interview Questions
- Spark Interview Questions
- Interview Questions on Azure Data Factory
- Technical Interview Questions Guide
- Interview Preparation Guide
902. 解释 CI/CD(持续集成/持续交付)流水线(Pipeline)的核心概念和在Baidu Search(百度搜索)中的实践。
- 知识点: DevOps/云 (主题: devops, ci-cd;标签: baidu, generated)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- 公司: 百度
- id: 69b3796958d557c902b9b734 | 官方: 是 | 付费: 是
答案:
思路分析从持续集成(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)? - 如何处理回滚?
903. 解释 CI/CD(Continuous Integration/Continuous Delivery) 流水线的核心概念和在Square POS中的实践。
- 知识点: DevOps/云 (主题: devops, ci-cd;标签: block, generated)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- 公司: Block(原 Square)
- id: 69b3798658d557c902b9ccac | 官方: 是 | 付费: 是
答案:
思路分析从持续集成(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)? - 如何处理回滚?
904. 解释 CI/CD(Continuous Integration/Continuous Delivery) 流水线的核心概念和在Booking.com中的实践。
- 知识点: DevOps/云 (主题: devops, ci-cd;标签: booking, generated)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- 公司: Booking.com
- id: 69b3798e58d557c902b9d2c3 | 官方: 是 | 付费: 是
答案:
思路分析从持续集成(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)? - 如何处理回滚?
905. 解释 CI/CD(持续集成/持续交付)流水线(Pipeline)的核心概念和在TikTok中的实践。
- 知识点: DevOps/云 (主题: devops, ci-cd;标签: bytedance, generated)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- 公司: 字节跳动
- id: 69b379b358d557c902b9edbf | 官方: 是 | 付费: 是
答案:
思路分析从持续集成(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)? - 如何处理回滚?
906. Describe Chef?
描述一下Chef是什么?
- 知识点: DevOps/云 (主题: ci-cd, devops;标签: interviewbit, ci-cd, topic-specific, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a1158d557c902ba2be9 | 官方: 否 | 付费: 否
答案:
Chef is essentially an automation platform for turning infrastructure into code. A chef is a tool used to automate processes with scripts. There are three main components of Chef that can be categorized as follows: - Chef Workstation: The workstation is the computer system on which the administrator sits. This system generates code for configuring and managing infrastructure, known as recipes (written in Ruby). A cookbook consists of multiple recipes. In order to upload cookbooks to the server, the Knife command line tool is used.
Chef本质上是一个将基础设施转化为代码的自动化平台。厨师是一个用于通过脚本自动化流程的工具。Chef有三个主要组件,可以分类如下:- Chef工作站:工作站是管理员所在的计算机系统。该系统生成用于配置和管理基础设施的代码,称为配方(用Ruby编写)。一本烹饪书由多个配方组成。为了将烹饪书上传到服务器,使用Knife命令行工具。
- Chef Server: Second, a server resides between a workstation and its nodes, which stores the cookbooks. Servers provide the tools necessary to enable node configurations, and they may be locally or remotely hosted.
Chef Node: The final component is the node, which requires configuration. You can have a number of Chef nodes that collect information about the current state of a node. The server then compares this information with the configuration files to determine if any new configuration is needed.
Conclusion结论
It is undeniable that interviews are stressful. Nevertheless, knowing what to expect and doing your research will significantly increase your chances of landing your dream position. Experience, however, cannot be replaced by knowledge. It would be helpful if you tested a few CI/CD platforms as part of your preparation. Semaphore CI/CD, for example, is simple to use; just browse the getting started the tour, which includes ready-to-use demo projects in the most popular languages.
不可否认,面试是压力很大的。然而,知道预期内容并进行研究将显著增加你获得理想职位的机会。但是,经验不能用知识来替代。作为准备的一部分,测试几个CI/CD平台会很有帮助。例如,Semaphore CI/CD易于使用;只需浏览入门导览,其中包含最流行语言的即用演示项目。
If you aren't adequately prepared, you may find it difficult to answer simple interview questions. We have put together a comprehensive list of frequently asked CI/CD interview questions to make the process of interviewing for a manager or engineer position easier. Microsoft, Google, IBM, Apple, and other tech companies typically ask these questions. You can also gain an edge over your competitors if you conduct thorough research. Prior to your interview, learn about the history and culture of the company. The interview should be a reflection of your honesty.
如果你准备不足,可能会觉得难以回答简单的面试问题。我们整理了一份全面且常被问到的CI/CD面试问题列表,以使经理或工程师职位的面试过程更加容易。微软、谷歌、IBM、苹果等科技公司通常会问这些问题。如果你进行彻底研究,也能在竞争对手中获得优势。在面试前,了解公司的历史和文化。面试应反映你的诚实。
Important Interview Resources
重要的面试资源
- DevOps Interview Questions
- Jenkins Interview Questions
- Top DevOps Principles
- Top DevOps Projects
907. What do you mean by Rolling Strategy?
你所说的滚动策略是什么意思?
- 知识点: DevOps/云 (主题: ci-cd, devops;标签: interviewbit, ci-cd, topic-specific, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a1158d557c902ba2bec | 官方: 否 | 付费: 否
答案:
Rolling deployments update running instances of an application with new releases as they are released. The process involves replacing old versions of an application over time with new versions of the application by replacing the entire infrastructure on which the application is run.
滚动部署会随着新版本的发布,更新正在运行的应用程序实例。该过程涉及通过替换应用程序运行的整个基础设施,随时间推移将应用程序的旧版本替换为新版本。
908. Explain OpenShift Container Platform.
解释OpenShift容器平台。
- 知识点: DevOps/云 (主题: ci-cd, devops;标签: interviewbit, ci-cd, topic-specific, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a1158d557c902ba2bef | 官方: 否 | 付费: 否
答案:
OpenShift Container Platform is a PAAS service offered by RedHat, formerly called OpenShift Enterprises. Additionally, Open Shift offers auto-scaling, self-healing, and highly available applications without the need to manually set them up in a traditional environment, even if they're on-premises or in the cloud. The OpenShift platform supports a wide variety of open-source programming languages, giving developers a polyglot choice.
OpenShift容器平台是由RedHat提供的PAAS服务,以前称为OpenShift Enterprises。此外,OpenShift提供自动缩放、自愈和高可用性应用程序,无需在传统环境中手动设置,即使是在本地或云端。OpenShift平台支持多种开源编程语言,为开发者提供了多语言选择。
909. Can you tell me about the serverless model?
你能告诉我无服务器模型吗?
- 知识点: DevOps/云 / 行为与软技能 (主题: ci-cd, devops;标签: interviewbit, ci-cd, topic-specific, devops)
- 类型: behavioral | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a1158d557c902ba2bf2 | 官方: 否 | 付费: 否
答案:
There is a cloud-native approach to development known as serverless development, which allows developers to develop and run applications without requiring the management of servers. The server still exists serverless, but it is abstracted from application development.
有一种云原生的开发方法称为无服务器开发,它允许开发者开发和运行应用程序而无需管理服务器。服务器仍然存在于无服务器中,但它被抽象化于应用程序开发之外。
910. What are some of the deployment strategies?
有哪些部署策略?
- 知识点: DevOps/云 (主题: ci-cd, devops;标签: interviewbit, ci-cd, topic-specific, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a1158d557c902ba2bf5 | 官方: 否 | 付费: 否
答案:
- Regular release/deployment: Through a single release, the software is made available to the public.
- Canary releases: These releases are intended to reduce the risk of failure by exposing a small fraction of the user base (around 1%) to the release. As part of a canary release, developers gradually transition users to the new release in a controlled manner.
- Blue-green releases: Essentially, it involves running two instances of an application simultaneously; one is the current stable version, and the other is the most recent version. An immediate switch is made from the old version to the new one. If there is a problem, users can immediately revert to the previous version, which is safer than regular or big-bang releases.
911. How do DevOps tools work together?
DevOps 工具如何协同工作?
- 知识点: DevOps/云 (主题: ci-cd, devops;标签: interviewbit, ci-cd, topic-specific, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a1158d557c902ba2bf8 | 官方: 否 | 付费: 否
答案:
A generic logical flow is shown below that automates it to ensure smooth delivery. Organizations may follow different flows depending on their needs. - Developers create code, and a version control system, such as Git, manages the source code.
下面展示了一个通用逻辑流程,用于自动化流程以确保顺畅交付。组织可能根据其需求遵循不同的流程。- 开发人员编写代码,版本控制系统(如 Git)管理源代码。
- Any modifications made to this code are committed to the Git repository by developers.
- Jenkins extracts the code from the repository and builds it using software such as Ant or Maven using the Git plugin.
- Puppet is used to deploy and configure test environments, and Jenkins releases this code to the test environment so that testing can be conducted using Selenium tools.
- Jenkins deploys the code once it has been tested on the production server (even the production servers are managed by resources like a puppet).
- Nagios, for example, continuously monitors it after deployment.
- Using Docker containers, we can test the build features in a controlled environment. Learn More.
912. What are the top testing tools in continuous testing?
持续测试中顶级的测试工具有哪些?
- 知识点: DevOps/云 (主题: ci-cd, devops;标签: interviewbit, ci-cd, topic-specific, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a1158d557c902ba2bfb | 官方: 否 | 付费: 否
答案:
An essential part of the CI/CD pipeline is continuous testing (CT). The developers are buffered by it, as it squashes bugs in a timely manner. This ensures that no matter how many releases take place, the end-user experience remains uncompromised. Despite accelerated processes, CT serves as a safety net that preserves the end-user experience. It must be seamlessly integrated into the software delivery pipeline since it is a continuous process. The following are the top testing tools used in continuous testing: - Testsigma
CI/CD 管道的一个关键部分是持续测试(CT)。它为开发人员提供了缓冲,因为它能及时消除缺陷。这确保了无论发布多少次,最终用户体验都不会受到影响。尽管流程加速,CT 作为安全网保护最终用户体验。由于它是一个持续过程,必须无缝集成到软件交付管道中。以下是持续测试中使用的顶级测试工具:- Testsigma
- Selenium
- IBM Rational Functional Tester
- Tricentis Tosca
- UFT (Unified Functional Testing)
913. Why is Automated Testing essential for CI/CD?
为什么自动化测试对 CI/CD 至关重要?
- 知识点: DevOps/云 (主题: ci-cd, devops;标签: interviewbit, ci-cd, topic-specific, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a1158d557c902ba2bfe | 官方: 否 | 付费: 否
答案:
In order to ensure code quality, automation is an important characteristic of the CI/CD pipeline. The test automation process is used throughout the software development pipeline to identify dependencies and other issues, push changes to the different environments, and deploy applications into production. As part of its quality control role, the automation will assess everything from API usage and performance to security. In this manner, all changes made by team members are integrated comprehensively and implemented correctly. - With automated testing, we can run tests simultaneously across multiple servers/containers, resulting in a faster testing process.
为了确保代码质量,自动化是 CI/CD 管道的一个重要特征。测试自动化过程贯穿软件开发管道,用于识别依赖项和其他问题,将更改推送到不同环境,并将应用程序部署到生产环境。作为其质量控制角色的一部分,自动化将评估从 API 使用、性能到安全性的所有内容。这样,团队成员所做的所有更改都会被全面集成并正确实施。- 通过自动化测试,我们可以在多个服务器/容器上同时运行测试,从而加快测试过程。
- Automated testing provides more consistency. Software automation eliminates human errors, and bias, and assures that it behaves as expected.
- To meet changing demands, tools and frameworks in a CI/CD pipeline need to be adjusted quickly. Keeping up with updates and being agile is difficult with manual testing. However, most configurations are done automatically when you have automated tests. This allows you to migrate quickly to new environments.
- Maximizing the workforce is crucial to a successful development project. Test automation frees engineers to work on other high-value tasks.
- CI/CD pipelines require all the testing effort when small changes are made. Validating minor changes continuously is easier with automated testing.
914. In what way does testing fit into continuous integration? Is automated testing always a good idea?
测试如何融入持续集成?自动化测试总是一个好主意吗?
- 知识点: DevOps/云 (主题: ci-cd, devops;标签: interviewbit, ci-cd, topic-specific, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a1158d557c902ba2c01 | 官方: 否 | 付费: 否
答案:
The testing process is inextricably linked to continuous integration. Continuous feedback is the main benefit of CI for teams. Code developers test their code in the CI to ensure that it behaves as expected. Without testing, there would be no feedback loop to determine whether the application is release-ready.
测试过程与持续集成密不可分。持续反馈是 CI 对团队的主要好处。代码开发人员在 CI 中测试代码以确保其行为符合预期。没有测试,就没有反馈循环来确定应用程序是否准备好发布。
915. Explain some common practices of CI/CD.
解释一些 CI/CD 的常见实践。
- 知识点: DevOps/云 (主题: ci-cd, devops;标签: interviewbit, ci-cd, topic-specific, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a1158d557c902ba2c04 | 官方: 否 | 付费: 否
答案:
To help you establish an efficient pipeline for CI/CD, here are some best practices: - Embrace the DevOps culture.
为了帮助你建立一个高效的 CI/CD 管道,以下是一些最佳实践:- 拥抱 DevOps 文化。
- Ensure continuous integration is implemented and utilized.
- Ensure the same deployment process is followed for every environment.
- In the event that your pipeline fails, restart it.
- Version control should be applied.
- Incorporate the database into the pipeline.
- Keep an eye on your continuous delivery pipeline.
- Get your CD pipeline up and running.
916. In CI/CD, does security play an important role? How does it get secured?
在 CI/CD 中,安全是否发挥重要作用?它是如何确保安全的?
- 知识点: DevOps/云 (主题: ci-cd, devops;标签: interviewbit, ci-cd, topic-specific, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a1158d557c902ba2c07 | 官方: 否 | 付费: 否
答案:
There are many factors that affect the security of CI/CD pipelines. These include: - The importance of unit testing cannot be overstated when it comes to the testing of multiple unit-testable distributed components. It is therefore important to unit test your code properly.
影响 CI/CD 管道安全的因素有很多。这些包括:- 单元测试的重要性不容低估,特别是在测试多个可单元测试的分布式组件时。因此,正确地对代码进行单元测试非常重要。
- Static analysis security testing (SAST) scans your code for security vulnerabilities and the libraries you use. To ensure SAST scanning, all modern tools integrate well with the CD pipeline.
- DAST (dynamic analysis security testing) is a tool for securing your application by dynamically scanning for security vulnerabilities. It simulates the actions of an attacker by performing the tests outside the application.
917. What is the difference between a hosted and a cloud-based CI/CD platform?
托管和基于云的 CI/CD 平台有什么区别?
- 知识点: DevOps/云 (主题: ci-cd, devops;标签: interviewbit, ci-cd, topic-specific, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a1158d557c902ba2c0a | 官方: 否 | 付费: 否
答案:
Hosted and Cloud-based CI/CD platforms differ in the following ways:
托管和基于云的 CI/CD 平台在以下方面有所不同:
| Hosted CI/CD platform 托管 CI/CD 平台 | Cloud-based CI/CD platform 基于云的 CI/CD 平台 |
|---|---|
| It is necessary to manage a hosted CI server in the same way as any other server. Installation, configuration, and maintenance are all required before they can be used. 必须像管理任何其他服务器一样管理托管 CI 服务器。使用前需要安装、配置和维护。 | Cloud-based CI platforms, however, do not require maintenance. An organization can immediately start using CI/CD platforms in the cloud without installing or configuring anything. 然而,基于云的 CI 平台不需要维护。组织无需安装或配置任何东西即可立即开始使用云中的 CI/CD 平台。 |
| Keeping the server secure requires updates and patches. 保持服务器安全需要更新和补丁。 | As the cloud is capable of providing all the machine power necessary, scalability is not an issue. 由于云能够提供所有必要的机器能力,可扩展性不是问题。 |
| Additionally, failures in the CI server can halt development and deployment. 此外,CI 服务器故障可能停止开发和部署。 | The cloud SLA (service-level agreement) guarantees the reliability of the platform. 云 SLA(服务级别协议)保证平台的可靠性。 |
918. Can a branch live for a long time?
分支能否长期存在?
- 知识点: DevOps/云 (主题: ci-cd, devops;标签: interviewbit, ci-cd, topic-specific, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a1158d557c902ba2c0d | 官方: 否 | 付费: 否
答案:
Continuous integration follows trunk-based development practices, which means branches should be short-lived. Branch durations should be kept to a minimum of a few hours and a maximum of a day.
持续集成遵循主干开发实践,这意味着分支应当是短命的。分支持续时间应保持在最短几小时、最长一天。
919. Explain trunk-based development.
解释主干开发。
- 知识点: DevOps/云 (主题: ci-cd, devops;标签: interviewbit, ci-cd, topic-specific, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a1158d557c902ba2c10 | 官方: 否 | 付费: 否
答案:
The trunk-based development approach ensures software remains up-to-date by integrating small, frequent updates into the main branch or a core "trunk". As a result of its ability to streamline merging and integration phases, it can be used to achieve CI/CD and to increase the speed and efficiency of the delivery of software and the efficiency of organizations. It is a branching model that consists of most of the work happening in a single trunk (also known as the trunk, master, or main). Each developer in the team merges their changes into the trunk on a daily basis. The reason why trunk-based development is popular is that it simplifies version control. This model minimizes merge conflicts due to the trunk's single source of truth.
主干开发方法通过将小而频繁的更新集成到主分支或核心“主干”中,确保软件保持最新。由于其能够简化合并和集成阶段,它可以用于实现CI/CD,并提高软件交付的速度和效率以及组织的效率。它是一种分支模型,其中大部分工作发生在单一主干(也称为trunk、master或main)中。团队中的每位开发者每天将其更改合并到主干中。主干开发之所以流行,是因为它简化了版本控制。由于主干是单一事实来源,该模型减少了合并冲突。
920. What is the cloud usage monitor?
什么是云使用监控器?
- 知识点: DevOps/云 (主题: cloud, infrastructure;标签: interviewbit, cloud-computing, topic-specific, cloud, infrastructure)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a1358d557c902ba2d18 | 官方: 否 | 付费: 否
答案:
The cloud usage monitor mechanism is an autonomous and lightweight software program that is responsible for collecting and processing the IT resource usage data.
云使用监控机制是一个自主且轻量级的软件程序,负责收集和处理IT资源使用数据。
Cloud usage monitors can exist in different formats depending on what type of usage metrics these are designed to collect and how the usage data needs to be collected. The following points describe 3 common agent-based implementation formats. - Monitoring Agent
云使用监控器可以以不同格式存在,具体取决于其设计用于收集的使用指标类型以及使用数据的收集方式。以下几点描述了3种常见的基于代理的实现格式。- 监控代理
- Resource Agent
- Polling Agent
921. How does Resource Replication take place in Cloud Computing?
云计算中的资源复制是如何进行的?
- 知识点: DevOps/云 (主题: cloud, infrastructure;标签: interviewbit, cloud-computing, topic-specific, cloud, infrastructure)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a1358d557c902ba2d1b | 官方: 否 | 付费: 否
答案:
Resource Replication is the creation of multiple instances of the same IT resource. It is typically performed when an IT resource’s availability and performance are needed to be enhanced. The virtualization technology is adopted to implement the resource replication mechanism in order to replicate the cloud-based IT resources.
资源复制是指创建同一IT资源的多个实例。通常在需要增强IT资源的可用性和性能时执行。采用虚拟化技术来实现资源复制机制,以复制基于云的IT资源。
Conclusion:
结论:
Cloud computing is completely based on the Internet. It is the next stage in the evolution of the Internet. Cloud computing uses the cloud that provides the way to deliver the services whenever and wherever the user needs them. Enterprises use cloud computing to provide solutions to the needs of their customers, partners, and providers.
云计算完全基于互联网。它是互联网演进的下一阶段。云计算利用云来提供在用户需要时、需要地交付服务的方式。企业使用云计算为其客户、合作伙伴和提供商的需求提供解决方案。
Cloud computing includes partners, vendors, and business leaders as the three major contributors. The vendors provide applications and their related technology, infrastructure, hardware, and integration. The partners offer cloud services and provide support services to the customers. The business leaders evaluate the cloud service provided by the partners. Cloud computing enables enterprises to treat their resources as a pool and not as independent resources.
云计算包括合作伙伴、供应商和业务领导者作为三大贡献者。供应商提供应用程序及其相关技术、基础设施、硬件和集成。合作伙伴提供云服务并为客户提供支持服务。业务领导者评估合作伙伴提供的云服务。云计算使企业能够将其资源视为一个池,而不是独立的资源。
References: - Cloud Computing: Concepts, Technology & Architecture by Zaigham Mahmood; Ricardo Puttini; Thomas Erl, Published by Pearson, 2013
参考:- 云计算:概念、技术与架构,作者Zaigham Mahmood;Ricardo Puttini;Thomas Erl,由Pearson出版,2013年
Cloud Computing by Lizhe Wang; Rajiv Ranjan; Jinjun Chen; Boualem Benatallah, Published by CRC Press, 2017
Recommended Resources: - Data Science Interview推荐资源:- 数据科学面试
- AWS Interview
- Azure Interview
- Machine Learning Interview
- Characteristics of Cloud Computing
- Cloud Computing Projects
- Applications of Cloud Computing
- Cloud Engineer Salary
- What is a Cloud Engineer?
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万+职业规划
922. What are some issues with Cloud Computing?
云计算存在哪些问题?
- 知识点: DevOps/云 (主题: cloud, infrastructure;标签: interviewbit, cloud-computing, topic-specific, cloud, infrastructure)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a1358d557c902ba2d1e | 官方: 否 | 付费: 否
答案:
Following are some of the issues of cloud computing: - Security Issues: As it would be in any other computing paradigms, security is as much of a concern as Cloud computing. Cloud Computing is vaguely defined as the outsourcing of services, which in turn causes users to lose significant control over their data. With the public Cloud, there is also a risk of seizure associated.
以下是云计算的一些问题:- 安全问题:与其他任何计算范式一样,安全问题在云计算中同样重要。云计算被模糊地定义为服务外包,这导致用户对其数据失去重大控制权。使用公有云时,还存在被查封的风险。
- Legal and Compliance Issues: Sometimes, clouds are bounded by geographical boundaries. The provision of different services is not location-dependent. Because of this flexibility Clouds face Legal & Compliance issues. Though these issues affect the end-users, they are related mainly to the vendors.
- Performance and Quality of Service (QoS) Related Issues: Paradigm performance is of utmost importance for any computing. The Quality of Service (QoS) varies as the user requirements may vary. One of the critical Quality of Service-related issues is the optimized way in which commercial success can be achieved using Cloud computing. If a provider is unable to deliver the promised QoS it may tarnish its reputation. One faces the issue of Memory and Licensing constraints which directly hamper the performance of a system, as Software-as-a-Service (SaaS) deals with the provision of software on virtualized resources,
- Data Management Issues: An important use case of Cloud Computing is to put almost the entire data on the Cloud with minimum infrastructure requirements for the end-users. The main problems related to data management are scalability of data, storage of data, data migration from one cloud to another, and also different architectures for resource access. It is of utmost importance to manage these data effectively, as data in Cloud computing also includes highly confidential information.
923. What are Low-Density Data Centers?
什么是低密度数据中心?
- 知识点: DevOps/云 (主题: cloud, infrastructure;标签: interviewbit, cloud-computing, topic-specific, cloud, infrastructure)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a1358d557c902ba2d21 | 官方: 否 | 付费: 否
答案:
Low-Density Data Centers are optimized to give high performance. The space constraint is being removed and there is an increased density in these data centers. One drawback it has is that with high density the heat issue also creeps in. These data centers are quite suitable to develop the cloud infrastructure.
低密度数据中心经过优化以提供高性能。这些数据中心消除了空间限制并增加了密度。其一个缺点是高密度也会引发散热问题。这类数据中心非常适合开发云基础设施。
924. What are Containerized Data Centers?
什么是集装箱式数据中心?
- 知识点: DevOps/云 (主题: cloud, infrastructure;标签: interviewbit, cloud-computing, topic-specific, cloud, infrastructure)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a1358d557c902ba2d24 | 官方: 否 | 付费: 否
答案:
Containerized Data Centers are the traditional data centers that allow a high level of customization with servers, mainframes, and other resources. These require planning, cooling, networking, and power to access and work.
集装箱式数据中心是传统数据中心,允许对服务器、大型机和其他资源进行高度自定义。这些需要规划、冷却、网络和电力来实现访问和运行。
925. What are the different Datacenters deployed for Cloud Computing?
为云计算部署了哪些不同类型的数据中心?
- 知识点: DevOps/云 (主题: cloud, infrastructure;标签: interviewbit, cloud-computing, topic-specific, cloud, infrastructure)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a1358d557c902ba2d27 | 官方: 否 | 付费: 否
答案:
Cloud computing is made up of various data centers put together in a grid form. It consists of the data centers like: - Containerized Data Centers
云计算由各种以网格形式组合在一起的数据中心组成。它包括以下数据中心:集装箱式数据中心
- Low-Density Data Centers
926. What do you mean by encapsulation in cloud computing?
在云计算中,封装是什么意思?
- 知识点: DevOps/云 (主题: cloud, infrastructure;标签: interviewbit, cloud-computing, topic-specific, cloud, infrastructure)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a1358d557c902ba2d2a | 官方: 否 | 付费: 否
答案:
A container is a packaged software code along with all of its dependencies so that it can run consistently across clouds and on-premises. This packaging up of code is often called encapsulation. Encapsulating code is important for developers as they don’t have to develop code based on each individual environment.
容器是打包的软件代码及其所有依赖项,以便它可以在云和本地环境中一致运行。这种代码打包通常称为封装。封装代码对开发人员很重要,因为他们不必根据每个单独的环境来开发代码。
927. What do you mean by Rate Limiting?
速率限制是什么意思?
- 知识点: DevOps/云 (主题: cloud, infrastructure;标签: interviewbit, cloud-computing, topic-specific, cloud, infrastructure)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a1358d557c902ba2d33 | 官方: 否 | 付费: 否
答案:
Rate Limiting is a way to limit the network traffic. Rate limiting runs within the app rather than the server. It typically tracks the IP addresses and the time between each request.
速率限制是一种限制网络流量的方法。速率限制在应用程序内而非服务器上运行。它通常跟踪IP地址以及每个请求之间的时间。
It can eliminate certain suspicious and malicious activities. Bots that impact a website can also be stopped by Rate Limiting. This protects against API overuse which is important to prevent.
它可以消除某些可疑和恶意活动。影响网站的攻击机器人也可以通过速率限制来阻止。这可以防止API过度使用,这对于预防非常重要。
928. What is an API Gateway?
什么是API网关?
- 知识点: DevOps/云 (主题: cloud, infrastructure;标签: interviewbit, cloud-computing, topic-specific, cloud, infrastructure)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a1358d557c902ba2d3b | 官方: 否 | 付费: 否
答案:
An API gateway allows multiple APIs to act together as a single gateway to provide a uniform experience to the user. In this, each API call is processed reliably. The API gateway manages the APIs centrally and provides enterprise-grade security. Common tasks of the API services can be handled by the API gateway. These tasks include services like statistics, rate limiting, and user authentication.
API网关允许多个API作为一个统一网关协同工作,为用户提供一致的体验。在此过程中,每个API调用都被可靠处理。API网关集中管理API并提供企业级安全性。API服务的常见任务可以由API网关处理。这些任务包括统计、速率限制和用户身份验证等服务。
929. What is meant by Edge Computing?
边缘计算是什么意思?
- 知识点: DevOps/云 (主题: cloud, infrastructure;标签: interviewbit, cloud-computing, topic-specific, cloud, infrastructure)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a1358d557c902ba2d3f | 官方: 否 | 付费: 否
答案:
Edge and cloud are complementary. These are both parts of a broader concept called the distributed cloud. A majority of those pursuing edge computing strategies are now viewing edge as part of their overall cloud strategy.
边缘和云是互补的。它们都是一个更广泛概念(称为分布式云)的两个部分。大多数采用边缘计算策略的人现在将边缘视为其整体云策略的一部分。
Edge computing, unlike cloud computing, is all about the physical location and issues related to latency. Cloud and edge combine the strengths of a centralized system, along with the advantages of distributed operations at the physical location where things and people connect. In IoT scenarios, the edge is very common. Cloud is different from the edge, in that it has never been about location. As opposed, it has always been about the independence of location.
与云计算不同,边缘计算完全关乎物理位置以及与延迟相关的问题。云和边缘结合了集中式系统的优势,以及在物体和人连接的物理位置进行分布式操作的优势。在物联网场景中,边缘非常常见。云与边缘不同,因为云从不关乎位置。相反,它始终关乎位置的独立性。
The popular scenarios are where you have cloud and edge together, and the cloud provider controls to run and defines the architecture for what is out at the edge.
常见的场景是云端和边缘端协同工作,云端提供商控制运行并定义边缘端架构。
930. How does the Cloud Native Computing Foundation define cloud-native applications?
云原生计算基金会如何定义云原生应用?
- 知识点: DevOps/云 (主题: cloud, infrastructure;标签: interviewbit, cloud-computing, topic-specific, cloud, infrastructure)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a1358d557c902ba2d42 | 官方: 否 | 付费: 否
答案:
The Cloud Native Computing Foundation gives a clear definition of cloud-native: - Container packaged: This means a standard way to package applications that is resource-efficient. By using a standard container format, more applications can be densely packed.
云原生计算基金会给出了云原生的明确定义:- 容器封装:这意味着一种资源高效的应用打包标准方式。通过使用标准容器格式,可以密集部署更多应用。
- Dynamically managed: This means a standard way to discover, deploy, and scale up and down containerized applications.
- Microservices oriented: This means a method to decompose the application into modular, independent services that interact through well-defined service contracts.
931. What are Cloud-Native Applications?
什么是云原生应用?
- 知识点: DevOps/云 (主题: cloud, infrastructure;标签: interviewbit, cloud-computing, topic-specific, cloud, infrastructure)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a1358d557c902ba2d47 | 官方: 否 | 付费: 否
答案:
‘Cloud native’ is a software framework designed with containers, microservices, dynamic orchestration, and also continuous delivery of software. Every part of the cloud-native application has within it its own container and is dynamically orchestrated with other containers to optimize the way the resources are utilized.
“云原生”是一种软件框架,设计采用容器、微服务、动态编排以及软件的持续交付。云原生应用的每个部分都包含自己的容器,并与其他容器动态编排,以优化资源利用方式。
932. How does the Polling Agent monitor cloud usage?
轮询代理如何监控云使用情况?
- 知识点: DevOps/云 (主题: cloud, infrastructure;标签: interviewbit, cloud-computing, topic-specific, cloud, infrastructure)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a1358d557c902ba2d4a | 官方: 否 | 付费: 否
答案:
A processing module that gathers cloud service usage data by polling IT resources is called a polling agent. The polling agent has also been used to timely monitor the IT resource status, like uptime and downtime. Each of these can be designed to forward collected usage data to a log database for post-processing and for reporting purposes.
通过轮询IT资源来收集云服务使用数据的处理模块称为轮询代理。轮询代理也用于及时监控IT资源状态,如正常运行时间和停机时间。每个此类代理都可设计为将收集到的使用数据转发到日志数据库,用于后续处理及报告目的。
933. How does the Resource Agent monitor the cloud usage?
资源代理如何监控云使用情况?
- 知识点: DevOps/云 (主题: cloud, infrastructure;标签: interviewbit, cloud-computing, topic-specific, cloud, infrastructure)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a1358d557c902ba2d4d | 官方: 否 | 付费: 否
答案:
A processing module that is used to collect usage data by having event-driven interactions with the specialized resource software, is a resource agent. This agent is applied to check the usage metrics based on pre-defined, observable events at the resource software level, like initiating, suspending, resuming, and vertical scaling.
通过与专门资源软件进行事件驱动交互来收集使用数据的处理模块是资源代理。该代理基于资源软件级别预定义的可观察事件(如启动、暂停、恢复和垂直扩展)来检查使用度量。
934. How does the Monitoring Agent monitor the cloud usage?
监控代理如何监控云使用情况?
- 知识点: DevOps/云 (主题: cloud, infrastructure;标签: interviewbit, cloud-computing, topic-specific, cloud, infrastructure)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a1358d557c902ba2d50 | 官方: 否 | 付费: 否
答案:
An intermediary and an event-driven program that exists as a service agent and resides along the existing communication paths is a monitoring agent. It transparently monitors and analyzes dataflows. Commonly, the monitoring agent is used to measure the network traffic and also message metrics.
作为服务代理存在于现有通信路径上的中介和事件驱动程序是监控代理。它透明地监控和分析数据流。通常,监控代理用于测量网络流量和消息度量。
935. Why are microservices important for a true cloud environment?
为什么微服务对真正的云环境很重要?
- 知识点: DevOps/云 (主题: cloud, infrastructure;标签: interviewbit, cloud-computing, topic-specific, cloud, infrastructure)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a1358d557c902ba2d53 | 官方: 否 | 付费: 否
答案:
The reason why microservices are so important for a true cloud environment is because of these four key benefits: - Each microservice is built to serve a specific and limited purpose, and hence application development is simplified. Small development teams can then focus on writing code for some of the narrowly defined and easily understood functions.
微服务对真正的云环境如此重要的原因在于以下四个关键优势:- 每个微服务专为特定且有限的目的而构建,因此应用开发得以简化。小型开发团队可以专注于编写狭窄定义且易于理解的功能代码。
- Code changes will be smaller and less complex than with a complex integrated application, making it easier and faster to make changes, whether to fix a problem or to upgrade service with new requirements.
- Scalability — Scalability makes it easier to deploy an additional instance of a service or change that service as needs evolve.
- Microservices are fully tested and validated. When new applications leverage existing microservices, developers can assume the integrity of the new application without the need for continual testing.
936. What are Microservices?
什么是微服务?
- 知识点: DevOps/云 (主题: cloud, infrastructure;标签: interviewbit, cloud-computing, topic-specific, cloud, infrastructure)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a1358d557c902ba2d56 | 官方: 否 | 付费: 否
答案:
Microservices is a process of developing applications that consist of code that is independent of each other and of the underlying developing platform. Each microservice runs a unique process and communicates through well-defined and standardized APIs, once created. These services are defined in the form of a catalog so that developers can easily locate the right service and also understand the governance rules for usage.
微服务是一种开发应用的过程,由彼此独立且与底层开发平台无关的代码组成。每个微服务运行独特的进程,一旦创建,便通过定义良好且标准化的API进行通信。这些服务以目录形式定义,以便开发者轻松定位正确的服务并了解使用的治理规则。
937. What are cloud-enabling technologies?
什么是云使能技术?
- 知识点: DevOps/云 (主题: cloud, infrastructure;标签: interviewbit, cloud-computing, topic-specific, cloud, infrastructure)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a1358d557c902ba2d59 | 官方: 否 | 付费: 否
答案:
There are several areas of technology that contribute to modern-day cloud-based platforms. These are known as cloud-enabling technologies. Some of the cloud-enabling technologies are: - Broadband Networks and Internet Architecture
有几种技术领域对现代云平台做出了贡献,这些被称为云使能技术。其中一些云使能技术包括:- 宽带网络和互联网架构
- Data Center Technology
- (Modern) Virtualization Technology
- Web Technology
- Multitenant Technology
- Service Technology
938. What are the advantages and disadvantages of serverless computing?
无服务器计算的优点和缺点是什么?
- 知识点: DevOps/云 (主题: cloud, infrastructure;标签: interviewbit, cloud-computing, topic-specific, cloud, infrastructure)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a1358d557c902ba2d5c | 官方: 否 | 付费: 否
答案:
Serverless computing has the following advantages and disadvantages: Advantages: - It is cost-effective.
无服务器计算有以下优点和缺点:优点:- 成本效益高。
- The operations on serverless computing are simplified.
- Serverless computing helps boost productivity.
- It offers scaling options.
It involves zero server management.
Disadvantages: - Serverless code can cause response latency.缺点:- 无服务器代码可能导致响应延迟。
- It is not ideal for high-computing operations because of resource limitations.
- For serverless computing, the responsibility of security comes under the service company and not the consumer, which might be more vulnerable.
- Debugging serverless code is a bit more challenging.
939. What are serverless components in cloud computing?
云计算中的无服务器组件是什么?
- 知识点: DevOps/云 (主题: cloud, infrastructure;标签: interviewbit, cloud-computing, topic-specific, cloud, infrastructure)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a1358d557c902ba2d5f | 官方: 否 | 付费: 否
答案:
Serverless components in cloud computing allow the building of applications to take place without the complexity of managing the infrastructure. One can write code without having provision to a server.
云计算中的无服务器组件允许在不管理基础设施的复杂性下构建应用程序。人们可以在无需提供服务器的情况下编写代码。
Serverless machines take care of virtual machines and container management. Multithreading, hardware allocating are also taken care of by the serverless components.
无服务器机器负责虚拟机和容器管理。多线程、硬件分配也由无服务器组件处理。
940. 解释 CI/CD(Continuous Integration/Continuous Delivery) 流水线的核心概念和在CDN(Content Delivery Network) 中的实践。
- 知识点: DevOps/云 (主题: devops, ci-cd;标签: cloudflare, generated)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- 公司: Cloudflare
- id: 69b37a1358d557c902ba2db3 | 官方: 是 | 付费: 是
答案:
思路分析从持续集成(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)? - 如何处理回滚?
941. 设计 Workers 的推荐系统,支持实时个性化推荐。
- 知识点: DevOps/云 / 数据工程与数据科学/AI / 系统设计/架构 / UI/UX 设计 (主题: system-design, machine-learning;标签: cloudflare, generated)
- 类型: technical | 难度: hard | 子类型: system-design
- 分类: fullstack
- 公司: Cloudflare
- id: 69b37a1858d557c902ba30e5 | 官方: 是 | 付费: 是
答案:
思路分析推荐系统(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)」问题? - 如何评估推荐效果?
942. 解释 CI/CD(Continuous Integration/Continuous Delivery) 流水线的核心概念和在Coinbase Exchange中的实践。
- 知识点: DevOps/云 (主题: devops, ci-cd;标签: coinbase, generated)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- 公司: Coinbase
- id: 69b37a3858d557c902ba4412 | 官方: 是 | 付费: 是
答案:
思路分析从持续集成(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)? - 如何处理回滚?
943. Our team has some ideas and wants to turn those ideas into a software application. Now, as a manager, I am confused about whether I should follow the Agile work culture or DevOps. Can you tell me why I should follow DevOps over Agile?
我们的团队有一些想法,希望将这些想法转化为软件应用程序。现在,作为管理者,我困惑于应该遵循敏捷工作文化还是DevOps。你能告诉我为什么我应该选择DevOps而不是敏捷吗?
- 知识点: DevOps/云 (主题: devops, ci-cd;标签: intellipaat, devops, topic-specific, devops, ci-cd)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a7158d557c902ba6b91 | 官方: 否 | 付费: 否
答案:
According to the current market trend, instead of releasing big sets of features in an application, companies are launching small features for software with better product quality and quick customer feedback, for high customer satisfaction. To keep up with this, we have to: - Increase the deployment frequency with utmost safety and reliability
根据当前市场趋势,公司不再发布大型功能集,而是推出小功能以提高产品质量并快速获取客户反馈,以实现高客户满意度。为了跟上这一趋势,我们必须:- 以最高安全性和可靠性提高部署频率
- Lower the failure rate of new releases
Shorten the bug resolution time
DevOps fulfils all these requirements for fast and reliable development and deployment of software. Companies like Amazon and Google have adopted DevOps and are launching thousands of code deployments per day. Agile, on the other hand, only focuses on software development.DevOps满足了快速可靠开发和部署软件的所有这些要求。像亚马逊和谷歌这样的公司已采用DevOps,每天进行数千次代码部署。相比之下,敏捷只关注软件开发。
944. Can you list certain key performance indicators (KPIs) that are used to gauge the success of DevOps?
你能列出用于衡量DevOps成功与否的某些关键绩效指标(KPI)吗?
- 知识点: DevOps/云 (主题: devops, ci-cd;标签: intellipaat, devops, topic-specific, devops, ci-cd)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a7158d557c902ba6b9f | 官方: 否 | 付费: 否
答案:
- Deployment Frequency: It is the number of times an application is deployed in a specific period.
- Mean Time to Recovery (MTTR): It is the average time taken to restore a failed system.
- Lead Time: It is the time taken from code commit to production release.
- Change Failure Rate: It is the percentage of changes that cause issues or failures.
- Time to Detect and Respond (TTDR): It is the average time taken to detect and respond to incidents.
945. Can you write the syntax for building a docker image?
你能写出构建docker镜像的语法吗?
- 知识点: DevOps/云 (主题: devops, ci-cd;标签: intellipaat, devops, topic-specific, devops, ci-cd)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a7258d557c902ba6c2f | 官方: 否 | 付费: 否
答案:
To build a docker image, we use the following command:
要构建docker镜像,我们使用以下命令:
docker build –f -t image_name:version
docker build –f -t image_name:version
946. Can you tell me the purpose of SSH?
你能告诉我SSH的用途吗?
- 知识点: DevOps/云 (主题: devops, ci-cd;标签: intellipaat, devops, topic-specific, devops, ci-cd)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a7258d557c902ba6c3d | 官方: 否 | 付费: 否
答案:
SSH is nothing but a secure shell that allows users to log in with a secure and encrypted mechanism into remote computers. It is used for encrypted communications between two hosts on an unsafe network. It supports tunneling, forwarding TCP, and also transferring files.
SSH就是一种安全外壳,允许用户通过安全加密的机制登录远程计算机。它用于在不安全网络上的两个主机之间进行加密通信。它支持隧道、TCP转发以及文件传输。
947. Can you tell me why I should use Nagios?
你能告诉我为什么我应该使用Nagios吗?
- 知识点: DevOps/云 (主题: devops, ci-cd;标签: intellipaat, devops, topic-specific, devops, ci-cd)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a7258d557c902ba6c45 | 官方: 否 | 付费: 否
答案:
- To plan for infrastructure upgrades before outdated systems fail
- To respond to issues quickly
- To fix problems automatically when detected
- To coordinate with the responses from the technical team
- To ensure that the organization’s service-level agreements with the clients are being met
- To make sure that the IT infrastructure outages have only a minimal effect on the organization’s net income
- To monitor the entire infrastructure and business processes
948. What are some common challenges in managing Kubernetes clusters in a DevOps environment, and how can they be addressed?
在DevOps环境中管理Kubernetes集群的一些常见挑战是什么,以及如何解决它们?
- 知识点: DevOps/云 (主题: devops, ci-cd;标签: intellipaat, devops, topic-specific, devops, ci-cd)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a7258d557c902ba6c57 | 官方: 否 | 付费: 否
答案:
In a DevOps environment, complicated configuration management, monitoring, and troubleshooting, as well as maintaining security and compliance, are common problems in operating Kubernetes clusters.
在DevOps环境中,复杂的配置管理、监控和故障排除,以及保持安全性和合规性,是运维Kubernetes集群中的常见问题。
To address these problems, several strategies can be implemented. Firstly, adopting best practices like infrastructure-as-code and declarative configuration for cluster management can streamline operations. Secondly, automating tasks through CI/CD pipelines can save time and effort. Furthermore, implementing monitoring and logging solutions enables better visibility into cluster performance and security, aiding in problem-solving efforts.
为了解决这些问题,可以实施多种策略。首先,采用基础设施即代码和声明式配置等最佳实践来管理集群,可以简化操作。其次,通过CI/CD流水线自动化任务可以节省时间和精力。此外,实施监控和日志记录解决方案能更好地了解集群性能和安全性,有助于解决问题。
949. Which file is used to define dependency in Maven?
哪个文件用于在Maven中定义依赖?
- 知识点: DevOps/云 (主题: devops, ci-cd;标签: intellipaat, devops, topic-specific, devops, ci-cd)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a7258d557c902ba6c5b | 官方: 否 | 付费: 否
答案:
In Maven, we define all dependencies inside pom.xml so that all the dependencies will be downloaded and can be used within the project.
在 Maven 中,我们在 pom.xml 中定义所有依赖项,以便所有依赖项都能被下载并在项目内使用。
950. A new feature released to production starts causing increased CPU load, latency issues and some failures. The team is asking you why. How would you approach debugging this issue? What techniques and tools would you use?
发布到生产环境的新功能开始导致 CPU 负载增加、延迟问题和一些故障。团队在询问原因。你将如何着手调试这个问题?你会使用哪些技术和工具?
- 知识点: DevOps/云 (主题: devops, ci-cd;标签: intellipaat, devops, topic-specific, devops, ci-cd)
- 类型: technical | 难度: hard | 子类型: scenario
- 分类: fullstack
- id: 69b37a7258d557c902ba6c64 | 官方: 否 | 付费: 否
答案:
Let’s say our app has a new feature that started causing problems – things are running slow, some requests are failing, and our servers are working harder. The developers want to know why.
假设我们的应用有一个新功能开始引发问题——运行变慢、一些请求失败,服务器工作负荷加重。开发人员想知道原因。
Some ways I’d start investigating as a DevOps engineer:
作为 DevOps 工程师,我会从以下几个方面开始调查:
- Look at metrics and monitoring – Many DevOps tools can show metrics for things like CPU usage, memory, and network traffic. I’d check graphs around the time issues started happening. If the CPU spiked, that’s a clue.
- Review logs – Application and web server logs often record errors or warnings about issues. Search logs from that timeframe for any common errors or repeating patterns.
- Trace requests – Tools like distributed tracing can follow a specific request through microservices. This can help pinpoint high response times and failures to a specific service.
- Compare configurations – I’d check if any infrastructure or application changes were made right before issues started – new cloud settings, firewall rules, dependency versions etc. Roll back changes to test.
- Performance test – Simulate user traffic against different app versions to reproduce issues in a test environment. Helps narrow down the root cause.
The goal is to find patterns and reduce variables until the specific line of code, resource limit or configuration causing problems is uncovered. Using monitoring, logs, system data and tests to incrementally eliminate possibilities.
目标是发现模式并减少变量,直到找出导致问题的具体代码行、资源限制或配置。利用监控、日志、系统数据和测试来逐步排除可能性。
951. Developers complain applications have become very slow after moving to Kubernetes and containers. What strategies would you use for troubleshooting performance issues in a container environment?
开发人员抱怨应用程序在迁移到 Kubernetes 和容器后变得非常慢。在容器环境中排查性能问题,你会采用哪些策略?
- 知识点: DevOps/云 (主题: devops, ci-cd;标签: intellipaat, devops, topic-specific, devops, ci-cd)
- 类型: technical | 难度: hard | 子类型: scenario
- 分类: fullstack
- id: 69b37a7258d557c902ba6c67 | 官方: 否 | 付费: 否
答案:
Let’s imagine our developers just moved their applications to Kubernetes and docker containers. Everything used to run pretty fast, but now it has suddenly become really slow! Developers are complaining to us DevOps engineers about this. How can we figure out why?
假设我们的开发人员刚把应用迁移到 Kubernetes 和 Docker 容器。之前一切运行很快,但现在突然变得非常慢!开发人员正向我们 DevOps 工程师抱怨。我们如何查明原因?
First, I would check some basics on the Kubernetes nodes: - Are CPU/memory resources being overloaded on nodes? Using too many resources could slow things down.
首先,我会检查 Kubernetes 节点上的一些基本情况: - 节点上的 CPU/内存资源是否过载?资源使用过多可能会拖慢速度。
Is network traffic between nodes and pods unusually high? That could indicate performance issues.
Then I’d look at the applications running: - Are the container images much larger than before? Bigger images mean slower start-up然后我会查看运行中的应用: - 容器镜像是否比之前大很多?更大的镜像意味着启动更慢。
Are there errors or throttling happening at the app level inside containers? App logs and metrics would provide clues.
Next is checking how Kubernetes manages the application: - Are there issues with how Kubernetes is scheduling pods on nodes? We need to make sure the spreading is even.接下来是检查 Kubernetes 如何管理应用: - Kubernetes 将 Pod 调度到节点上是否存在问题?我们需要确保分布均匀。
Is Kubernetes auto-scaling not working quickly enough during traffic spikes? Causing temporary resource bottlenecks.
There are also tools that can help profile Kubernetes as it manages containerized apps to check for performance bottlenecks.还有一些工具可以帮助分析 Kubernetes 管理容器化应用时的性能瓶颈。
952. Can you explain the “Shift left to reduce failure” concept in DevOps?
你能解释 DevOps 中“左移以减少故障”的概念吗?
- 知识点: DevOps/云 (主题: devops, ci-cd;标签: interviewbit, devops, topic-specific, ci-cd)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a7258d557c902ba6cc0 | 官方: 否 | 付费: 否
答案:
In order to understand what this means, we first need to know how the traditional SDLC cycle works. In the traditional cycle, there are 2 main sides - - The left side of the cycle consists of the planning, design, and development phase
为了理解其含义,我们首先需要了解传统 SDLC 流程如何运作。在传统流程中,有两个主要方面——左侧包含规划、设计和开发阶段。
The right side of the cycle includes stress testing, production staging, and user acceptance.
In DevOps, shifting left simply means taking up as many tasks that usually take place at the end of the application development process as possible into the earlier stages of application development. From the below graph, we can see that if the shift left operations are followed, the chances of errors faced during the later stages of application development would greatly reduce as it would have been identified and solved in the earlier stages itself.在 DevOps 中,左移简单来说就是将通常发生在应用开发流程后期的大量任务尽可能提前到开发早期阶段。从下方图表可以看出,如果遵循左移操作,应用开发后期遇到的错误概率将大大降低,因为这些问题已在早期阶段被识别和解决。
Shift Left To Reduce Failure
左移以减少故障
The most popular ways of accomplishing shift left in DevOps is to: - Work side by side with the development team while creating the deployment and test case automation. This is the first and the obvious step in achieving shift left. This is done because of the well-known fact that the failures that get notices in the production environment are not seen earlier quite often. These failures can be linked directly to:
在 DevOps 中实现左移最常用的方法有: - 在创建部署和测试用例自动化时与开发团队并肩工作。这是实现左移的第一步,也是最明显的一步。之所以这样做,是因为一个众所周知的现实:生产环境中发现的故障往往在之前未被察觉。这些故障可以直接关联到:
Different deployment procedures used by the development team while developing their features. Production deployment procedures sometimes tend to be way different than the development procedure. There can be differences in tooling and sometimes the process might also be manual. - Both the dev team and the operations teams are expected to take ownership to develop and maintain standard procedures for deployment by making use of the cloud and the pattern capabilities. This aids in giving the confidence that the production deployments would be successful.
开发团队在开发功能时使用的不同部署流程。生产部署流程有时往往与开发流程大不相同。工具方面可能存在差异,有时流程也可能是手动的。- 开发团队和运维团队都应承担起责任,利用云和模式能力,制定并维护标准的部署流程。这有助于增强生产部署成功的信心。
- Usage of pattern capabilities to avoid configurational level inconsistencies in the different environments being used. This would require the dev team and the operation team to come together and work in developing a standard process that guides developers to test their application in the development environment in the same way as they test in the production environment.
953. Do you know about post mortem meetings in DevOps?
你了解DevOps中的事后分析会议吗?
- 知识点: DevOps/云 (主题: devops, ci-cd;标签: interviewbit, devops, topic-specific, ci-cd)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a7258d557c902ba6cc3 | 官方: 否 | 付费: 否
答案:
Post Mortem meetings are those that are arranged to discuss if certain things go wrong while implementing the DevOps methodology. When this meeting is conducted, it is expected that the team has to arrive at steps that need to be taken in order to avoid the failure(s) in the future.
事后分析会议是为了讨论在实施DevOps方法时如果某些事情出错而安排的会议。召开此会议时,期望团队能够得出为避免未来失败而需要采取的步骤。
954. What is the concept behind sudo in Linux OS?
Linux操作系统中sudo背后的概念是什么?
- 知识点: DevOps/云 (主题: devops, ci-cd;标签: interviewbit, devops, topic-specific, ci-cd)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a7258d557c902ba6cc6 | 官方: 否 | 付费: 否
答案:
Sudo stands for ‘superuser do’ where the superuser is the root user of Linux. It is a program for Linux/Unix-based systems that gives provision to allow the users with superuser roles to use certain system commands at their root level.
Sudo代表‘超级用户执行’,其中超级用户是Linux的根用户。它是基于Linux/Unix系统的程序,允许具有超级用户角色的用户在其根级别使用某些系统命令。
955. Can you explain the architecture of Jenkins?
你能解释一下Jenkins的架构吗?
- 知识点: DevOps/云 (主题: devops, ci-cd;标签: interviewbit, devops, topic-specific, ci-cd)
- 类型: technical | 难度: hard | 子类型: system-design
- 分类: fullstack
- id: 69b37a7258d557c902ba6cc9 | 官方: 否 | 付费: 否
答案:
Jenkins follows the master-slave architecture. The master pulls the latest code from the GitHub repository whenever there is a commitment made to the code. The master requests slaves to perform operations like build, test and run and produce test case reports. This workload is distributed to all the slaves in a uniform manner.
Jenkins采用主从架构。每当代码有提交时,主节点从GitHub仓库拉取最新代码。主节点请求从节点执行构建、测试和运行等操作,并生成测试用例报告。这种工作负载以统一方式分配给所有从节点。
Jenkins also uses multiple slaves because there might be chances that require different test case suites to be run for different environments once the code commits are done.
Jenkins也使用多个从节点,因为在代码提交完成后,可能有需要为不同环境运行不同测试套件的机会。
Jenkins Architecture
Jenkins架构
956. Can you explain the “infrastructure as code” (IaC) concept?
你能解释一下“基础设施即代码”(IaC)概念吗?
- 知识点: DevOps/云 (主题: devops, ci-cd;标签: interviewbit, devops, topic-specific, ci-cd)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a7258d557c902ba6ccc | 官方: 否 | 付费: 否
答案:
As the name indicates, IaC mainly relies on perceiving infrastructure in the same way as any code which is why it is commonly referred to as “programmable infrastructure”. It simply provides means to define and manage the IT infrastructure by using configuration files.
顾名思义,IaC主要依赖于将基础设施视为任何代码一样,因此通常被称为“可编程基础设施”。它仅通过使用配置文件提供定义和管理IT基础设施的方法。
This concept came into prominence because of the limitations associated with the traditional way of managing the infrastructure. Traditionally, the infrastructure was managed manually and the dedicated people had to set up the servers physically. Only after this step was done, the application would have been deployed. Manual configuration and setup were constantly prone to human errors and inconsistencies.
这个概念因传统基础设施管理方式的局限性而变得突出。传统上,基础设施是手动管理的,专职人员必须物理设置服务器。只有在此步骤完成后,应用程序才能部署。手动配置和设置经常容易出现人为错误和不一致性。
This also involved increased cost in hiring and managing multiple people ranging from network engineers to hardware technicians to manage the infrastructural tasks. The major problem with the traditional approach was decreased scalability and application availability which impacted the speed of request processing. Manual configurations were also time-consuming and in case the application had a sudden spike in user usage, the administrators would desperately work on keeping the system available for a large load. This would impact the application availability.
这也涉及增加雇佣和管理多个人员(从网络工程师到硬件技术人员)的成本来管理基础设施任务。传统方法的主要问题是可扩展性和应用程序可用性降低,这影响了请求处理的速度。手动配置也耗时,如果应用程序用户使用量突然激增,管理员会拼命工作以保持系统应对大负载,这会影响应用程序的可用性。
IaC solved all the above problems. IaC can be implemented in 2 approaches: - Imperative approach: This approach “gives orders” and defines a sequence of instructions that can help the system in reaching the final output.
IaC解决了上述所有问题。IaC可以通过两种方法实现:- 命令式方法:这种方法“下达命令”,并定义一系列指令,帮助系统达到最终输出。
- Declarative approach: This approach “declares” the desired outcome first based on which the infrastructure is built to reach the final result.
957. What is ‘Pair Programming’?
什么是‘结对编程’?
- 知识点: DevOps/云 (主题: devops, ci-cd;标签: interviewbit, devops, topic-specific, ci-cd)
- 类型: technical | 难度: hard | 子类型: coding
- 分类: fullstack
- id: 69b37a7258d557c902ba6ccf | 官方: 否 | 付费: 否
答案:
Pair programming is an engineering practice where two programmers work on the same system, same design, and same code. They follow the rules of “Extreme Programming”. Here, one programmer is termed as “driver” while the other acts as “observer” which continuously monitors the project progress to identify any further problems.
结对编程是一种工程实践,两名程序员在同一系统、同一设计和同一代码上工作。他们遵循“极限编程”的规则。这里,一名程序员被称为“驾驶员”,而另一名充当“观察者”,持续监控项目进度以识别任何进一步的问题。
958. What is Blue/Green Deployment Pattern?
什么是蓝绿部署模式?
- 知识点: DevOps/云 (主题: devops, ci-cd;标签: interviewbit, devops, topic-specific, ci-cd)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a7258d557c902ba6cd2 | 官方: 否 | 付费: 否
答案:
A blue-green pattern is a type of continuous deployment, application release pattern which focuses on gradually transferring the user traffic from a previously working version of the software or service to an almost identical new release - both versions running on production.
蓝绿模式是一种持续部署、应用发布模式,它着重于将用户流量从先前正常工作的软件或服务版本逐步转移到几乎相同的新版本——两个版本都在生产环境中运行。
The blue environment would indicate the old version of the application whereas the green environment would be the new version.
蓝色环境指的是旧版本应用程序,而绿色环境则是新版本。
The production traffic would be moved gradually from blue to green environment and once it is fully transferred, the blue environment is kept on hold just in case of rollback necessity.
生产流量会从蓝色环境逐步转移到绿色环境,一旦完全转移完成,蓝色环境会保持待命状态,以防需要回滚。
In this pattern, the team has to ensure two identical prod environments but only one of them would be LIVE at a given point of time. Since the blue environment is more steady, the LIVE one is usually the blue environment.
在这种模式中,团队需要确保两个相同的生产环境,但给定时间点只有一个环境处于活动状态。由于蓝色环境更为稳定,通常活动环境为蓝色环境。
959. What is Dogpile effect? How can it be prevented?
什么是狗堆效应?如何防止它?
- 知识点: DevOps/云 (主题: devops, ci-cd;标签: interviewbit, devops, topic-specific, ci-cd)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a7258d557c902ba6cd5 | 官方: 否 | 付费: 否
答案:
It is also referred to as cache stampede which can occur when huge parallel computing systems employing caching strategies are subjected to very high load. It is referred to as that event that occurs when the cache expires (or invalidated) and multiple requests are hit to the website at the same time. The most common way of preventing dogpiling is by implementing semaphore locks in the cache. When the cache expires in this system, the first process to acquire the lock would generate the new value to the cache.
它也被称为缓存踩踏,可能发生在采用缓存策略的大型并行计算系统承受极高负载时。当缓存过期(或失效)且多个请求同时命中网站时,就会发生该事件。防止狗堆效应的最常见方法是在缓存中实现信号量锁。在此系统中,当缓存过期时,第一个获得锁的进程会为缓存生成新值。
960. What are the steps to be undertaken to configure git repository so that it runs the code sanity checking tooks before any commits? How do you prevent it from happening again if the sanity testing fails?
配置 git 仓库以便在任何提交前运行代码健全性检查工具需要哪些步骤?如果健全性测试失败,你如何防止它再次发生?
- 知识点: DevOps/云 (主题: devops, ci-cd;标签: interviewbit, devops, topic-specific, ci-cd)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a7258d557c902ba6cd8 | 官方: 否 | 付费: 否
答案:
Sanity testing, also known as smoke testing, is a process used to determine if it’s reasonable to proceed to test. Git repository provides a hook called pre-commit which gets triggered right before a commit happens. A simple script by making use of this hook can be written to achieve the smoke test.
健全性测试,也称为冒烟测试,是一种用于判断是否合理的继续测试的过程。Git 仓库提供了一个名为 pre-commit 的钩子,它会在提交发生前立即触发。可以利用这个钩子编写一个简单脚本来实现冒烟测试。
The script can be used to run other tools like linters and perform sanity checks on the changes that would be committed into the repository.
该脚本可用于运行其他工具(如 linters)并对将要提交到仓库的更改执行健全性检查。
The following snippet is an example of one such script:
以下代码片段是此类脚本的一个示例:
!/bin/sh
files=$(git diff –cached –name-only –diff-filter=ACM | grep ‘.py$’)
files=$(git diff –cached –name-only –diff-filter=ACM | grep ‘.py$’)
if [ -z files ]; then
if [ -z files ]; then
exit 0
exit 0
fi
fi
unfmtd=$(pyfmt -l $files)
unfmtd=$(pyfmt -l $files)
if [ -z unfmtd ]; then
如果 [ -z unfmtd ];那么
exit 0
exit 0
fi
fi
echo “Some .py files are not properly fmt’d”
输出 “某些 .py 文件未正确格式化”
exit 1
退出 1
The above script checks if any .py files which are to be committed are properly formatted by making use of the python formatting tool pyfmt. If the files are not properly formatted, then the script prevents the changes to be committed to the repository by exiting with status 1.
上述脚本通过利用Python格式化工具pyfmt来检查将要提交的.py文件是否已正确格式化。如果文件未正确格式化,则脚本通过退出状态1阻止更改提交到仓库。
961. How can you ensure a script runs every time repository gets new commits through git push?
如何确保脚本在每次通过git push收到新提交时运行?
- 知识点: DevOps/云 / 行为与软技能 (主题: devops, ci-cd;标签: interviewbit, devops, topic-specific, ci-cd)
- 类型: behavioral | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a7258d557c902ba6cdb | 官方: 否 | 付费: 否
答案:
There are three means of setting up a script on the destination repository to get executed depending on when the script has to be triggered exactly. These means are called hooks and they are of three types: - Pre-receive hook: This hook is invoked before the references are updated when commits are being pushed. This hook is useful in ensuring the scripts related to enforcing development policies are run.
有三种方法可以在目标仓库上设置脚本,具体取决于脚本何时需要被触发。这些方法被称为钩子,共有三种类型:- 预接收钩子:在提交被推送且引用更新之前调用此钩子。此钩子对于确保执行开发策略的脚本运行非常有用。
- Update hook: This hook triggers the script to run before any updates are actually made. This hook is called once for every commit which has been pushed to the repository.
- Post-receive hook: This hook helps trigger the script after the updates or changes have been accepted by the destination repository. This hook is ideal for configuring deployment scripts, any continuous integration-based scripts or email notifications process to the team, etc.
962. 解释 CI/CD(Continuous Integration/Continuous Delivery) 流水线的核心概念和在DiDi Ride-hailing中的实践。
- 知识点: DevOps/云 (主题: devops, ci-cd;标签: didi, generated)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- 公司: 滴滴出行
- id: 69b37a7758d557c902ba6f3c | 官方: 是 | 付费: 是
答案:
思路分析从持续集成(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)? - 如何处理回滚?
963. 解释 CI/CD(持续集成/持续交付)流水线(Pipeline)的核心概念和在Mavic Series(Mavic系列)中的实践。
- 知识点: DevOps/云 (主题: devops, ci-cd;标签: dji, generated)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: general
- 公司: 大疆创新
- id: 69b37a9c58d557c902ba8626 | 官方: 是 | 付费: 是
答案:
思路分析从持续集成(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)? - 如何处理回滚?
964. Can we use JSON instead of YAML while developing docker-compose file in Docker?
在Docker中开发docker-compose文件时,能否使用JSON代替YAML?
- 知识点: DevOps/云 (主题: docker, containers, devops;标签: interviewbit, docker, topic-specific, containers, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a9f58d557c902ba8793 | 官方: 否 | 付费: 否
答案:
Yes! It can be used. In order to run docker-compose with JSON, docker-compose -f docker-compose.json up can be used.
是的,可以使用!要用JSON运行docker-compose,可以使用命令docker-compose -f docker-compose.json up。
965. How many containers you can run in docker and what are the factors influencing this limit?
你在docker中可以运行多少个容器,影响这个限制的因素有哪些?
- 知识点: DevOps/云 (主题: docker, containers, devops;标签: interviewbit, docker, topic-specific, containers, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a9f58d557c902ba8796 | 官方: 否 | 付费: 否
答案:
There is no clearly defined limit to the number of containers that can be run within docker. But it all depends on the limitations - more specifically hardware restrictions. The size of the app and the CPU resources available are 2 important factors influencing this limit. In case your application is not very big and you have abundant CPU resources, then we can run a huge number of containers.
对于docker中可以运行的容器数量,没有明确的上限。但这完全取决于限制条件——更具体地说是硬件限制。应用程序的大小和可用的CPU资源是影响这个限制的两个重要因素。如果你的应用程序不是很大,并且拥有充足的CPU资源,那么我们可以运行大量的容器。
966. Describe the lifecycle of Docker Container?
描述Docker容器的生命周期?
- 知识点: DevOps/云 (主题: docker, containers, devops;标签: interviewbit, docker, topic-specific, containers, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a9f58d557c902ba8799 | 官方: 否 | 付费: 否
答案:
The different stages of the docker container from the start of creating it to its end are called the docker container life cycle. The most important stages are: - Created: This is the state where the container has just been created new but not started yet.
从创建开始到结束,docker容器的不同阶段被称为docker容器生命周期。最重要的阶段包括:- 已创建:这是容器刚刚被创建但尚未启动的状态。
- Running: In this state, the container would be running with all its associated processes.
- Paused: This state happens when the running container has been paused.
- Stopped: This state happens when the running container has been stopped.
- Deleted: In this, the container is in a dead state.
967. How to use docker for multiple application environments?
如何针对多个应用程序环境使用docker?
- 知识点: DevOps/云 (主题: docker, containers, devops;标签: interviewbit, docker, topic-specific, containers, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a9f58d557c902ba879c | 官方: 否 | 付费: 否
答案:
- Docker-compose feature of docker will come to help here. In the docker-compose file, we can define multiple services, networks, and containers along with the volume mapping in a clean manner, and then we can just call the command “docker-compose up”.
- When there are multiple environments involved - it can be either dev, staging, uat, or production servers, we would want to define the server-specific dependencies and processes for running the application. In this case, we can go ahead with creating environment-specific docker-compose files of the name “docker-compose.{environment}.yml” and then based on the environment, we can set up and run the application.
968. How will you ensure that a container 1 runs before container 2 while using docker compose?
在使用docker compose时,如何确保容器1在容器2之前运行?
- 知识点: DevOps/云 (主题: docker, containers, devops;标签: interviewbit, docker, topic-specific, containers, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37a9f58d557c902ba879f | 官方: 否 | 付费: 否
答案:
Docker-compose does not wait for any container to be “ready” before going ahead with the next containers. In order to achieve the order of execution, we can use: - The “depends_on” which got added in version 2 of docker-compose can be used as shown in a sample docker-compose.yml file below:
Docker-compose不会等待任何容器“就绪”后再继续处理后续容器。为了实现执行顺序,我们可以使用:- 在docker-compose版本2中添加的“depends_on”,可以按下面示例的docker-compose.yml文件方式使用:
version: "2.4"
version: "2.4"
services:
services:
backend:
backend:
build: .
build: .
depends_on:
depends_on:
db
db:db:
image: postgres
image: postgres
The introduction of service dependencies has various causes and effects: - The docker-compose up command starts and runs the services in the dependency order specified. For the above example, the DB container is started before the backend.
服务依赖的引入有多种原因和影响:- docker-compose up 命令按指定的依赖顺序启动并运行服务。对于上述示例,数据库容器在后端之前启动。
- docker-compose up SERVICE_NAME by default includes the dependencies associated with the service. In the given example, running docker-compose up backend creates and starts DB (dependency of backend).
- Finally, the command docker-compose stop also stops the services in the order of the dependency specified. For the given example, the backend service is stopped before the DB service.
969. 解释 CI/CD(Continuous Integration/Continuous Delivery) 流水线的核心概念和在DoorDash Marketplace中的实践。
- 知识点: DevOps/云 (主题: devops, ci-cd;标签: doordash, generated)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- 公司: Doordash
- id: 69b37aa158d557c902ba8890 | 官方: 是 | 付费: 是
答案:
思路分析从持续集成(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)? - 如何处理回滚?
970. 解释 CI/CD(Continuous Integration/Continuous Delivery) 流水线的核心概念和在Dropbox中的实践。
- 知识点: DevOps/云 (主题: devops, ci-cd;标签: dropbox, generated)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- 公司: Dropbox
- id: 69b37aaf58d557c902ba9031 | 官方: 是 | 付费: 是
答案:
思路分析从持续集成(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)? - 如何处理回滚?
971. 解释 CI/CD(Continuous Integration/Continuous Delivery) 流水线的核心概念和在Figma Design中的实践。
- 知识点: DevOps/云 / UI/UX 设计 (主题: devops, ci-cd;标签: figma, generated)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- 公司: Figma
- id: 69b37af058d557c902bab738 | 官方: 是 | 付费: 是
答案:
思路分析从持续集成(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)? - 如何处理回滚?
972. In what ways can information stored in the cloud be safeguarded?
存储在云中的信息可以通过哪些方式得到保护?
- 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37afb58d557c902babe22 | 官方: 否 | 付费: 否
答案:
Every single one of GCP's customers is provided with a comprehensive arsenal of preventative and detective safeguards. Information, Computer Science, and the Provision of Services Customers of Google Cloud Platform (GCP) are granted access to resources, such as Virtual Private Clouds (VPC), Identity and Access Management (IAM), Firewall Rules, and so on, that are compliant with GCP best practises. This ensures the security of all services.
GCP的每一位客户都获得了一套全面的预防性和检测性保护措施。信息、计算机科学和服务提供方面,Google云平台(GCP)的客户可以访问符合GCP最佳实践的资源,如虚拟私有云(VPC)、身份和访问管理(IAM)、防火墙规则等。这确保了所有服务的安全性。
973. What does it mean by "Object Versioning"?
“对象版本控制”是什么意思?
- 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37afb58d557c902babe25 | 官方: 否 | 付费: 否
答案:
Recovery of unintentionally overwritten or destroyed data is made feasible through object versioning. To secure the safety of objects when they are rewritten or removed, versioning them incurs additional storage expenses. When object versioning is set on in a GCP bucket, anytime an object is removed or replaced, a unique version of the object is created. Generation and meta-generation attributes are used to determine the specific iteration of an object. A generation recognises the production of new content, whereas a metageneration recognises the production of new metadata.
通过对象版本控制,可以恢复意外覆盖或销毁的数据。为了在对象被重写或删除时确保其安全,对其进行版本控制会产生额外的存储费用。当在GCP存储桶中启用对象版本控制时,每当对象被删除或替换时,都会创建该对象的唯一版本。使用生成和元生成属性来确定对象的特定迭代。生成标识新内容的产生,而元生成标识新元数据的产生。
974. Differentiate between elasticity and scalability.
区分弹性和可扩展性。
- 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37afb58d557c902babe28 | 官方: 否 | 付费: 否
答案:
One of the most important aspects of cloud computing is its scalability, which enables it to boost the number of resources it can provide in reaction to an increase in demand for those resources. When there is an increase in the demand for traffic, the design can be scaled up to provide the additional resources that are required. Elasticity, on the other hand, is a property that enables the instantaneous assembly and disassembly of enormous amounts of available resources. It is contingent on the quantity and duration of the resources that are accessible.
云计算最重要的方面之一是其可扩展性,它能够根据对这些资源需求的增加而提高可提供的资源数量。当流量需求增加时,设计可以扩展以提供所需的额外资源。另一方面,弹性是一种属性,能够即时组装和拆卸大量可用资源。它取决于可用资源的数量和时间。
975. What is the connection between the Google Compute Engine and the Google App Engine?
Google计算引擎和Google应用引擎之间有什么联系?
- 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37afb58d557c902babe2b | 官方: 否 | 付费: 否
答案:
The Google App Engine and the Google Compute Engine each have a great deal to contribute to one another. Google Application Engine is a Platform as a Service (PaaS), whereas Google Compute Engine (GCE) offers computing resources. GAE is frequently used to operate a wide variety of applications, the most typical of which are mobile backends, online apps, and bespoke business software.
Google应用引擎和Google计算引擎各有很大贡献。Google应用引擎是一种平台即服务(PaaS),而Google计算引擎(GCE)提供计算资源。GAE常用于运行各种应用程序,最常见的是移动后端、在线应用和定制商业软件。
Compute Engine is an excellent option to go with if we want to have a greater influence over the underlying infrastructure. For example, we could leverage Google Compute Engine to build our very own storage system or to supply specialized business logic.
如果我们希望对底层基础设施有更大的控制权,计算引擎是一个出色的选择。例如,我们可以利用Google计算引擎来构建我们自己的存储系统或提供专门的业务逻辑。
976. What is eucalyptus?
什么是eucalyptus?
- 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37afb58d557c902babe2e | 官方: 否 | 付费: 否
答案:
A Computing Architecture for Elastic Utility Computing that connects your application to Valuable Systems (or EUCALYPTUS for short). The construction of cloud computing farms is accomplished with the help of this open-source platform. It provides hybrid solutions in addition to public and private cloud choices for users to choose from.
一种弹性实用计算架构,将你的应用程序连接到有价值系统(简称EUCALYPTUS)。这个开源平台用于构建云计算农场。它提供混合解决方案以及公有和私有云选项供用户选择。
977. Who are the system integrators when it comes to cloud computing?
在云计算中,系统集成商是谁?
- 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37afb58d557c902babe32 | 官方: 否 | 付费: 否
答案:
Because there are so many moving pieces, understanding clouds can be difficult at times. The system integrator is the overarching strategy that enables different cloud-related tasks, such as cloud design and the assembly of necessary elements for a public, private, or hybrid cloud infrastructure. In the cloud, the system integrator is the strategy that enables these tasks.
由于涉及众多活动部件,理解云有时可能很困难。系统集成商是总体策略,它使各种与云相关的任务得以实现,如云设计和为公有、私有或混合云基础设施组装必要元素。在云中,系统集成商就是实现这些任务的策略。
978. What are "projects" on Google Cloud, and how do they work?
在Google云上,“项目”是什么,它们如何工作?
- 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37afb58d557c902babe35 | 官方: 否 | 付费: 否
答案:
The projects act as containers for all of Google Compute's resources and are responsible for their management. They operate as independent domains that are not designed to share resources with one another. There is the potential for a diverse group of stakeholders and owners of the project.
这些项目充当所有Google Compute资源的容器,并负责其管理。它们作为独立的域运行,设计上不与其他域共享资源。项目中可能存在多样化的利益相关者和所有者群体。
979. What's elasticity?
什么是弹性?
- 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37afb58d557c902babe38 | 官方: 否 | 付费: 否
答案:
Elasticity is the quality that enables a material body to return to its original shape and size after being distorted by external forces and then having those forces removed.
弹性是一种特性,使材料体在受到外力扭曲并移除这些力后能够恢复其原始形状和大小。
980. Talk about the revolutionary effects that cloud computing has had.
谈谈云计算所带来的革命性影响。
- 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37afb58d557c902babe3d | 官方: 否 | 付费: 否
答案:
Since it was first introduced, cloud computing has caused something like a revolution in the world of business. The overarching goal of the transformation brought on by cloud computing is not simply to rethink the ways in which we carry out our daily activities, but rather to make those activities more productive and less expensive overall.
自首次推出以来,云计算在商业世界中引发了某种革命。云计算带来的转型的总体目标不仅仅是重新思考我们日常活动的执行方式,而是使这些活动在整体上更具生产力和成本效益。
The field of cloud computing is making leaps and bounds forward on a daily basis, which promises an exciting future for the information technology industry.
云计算领域每天都在突飞猛进,这为信息技术行业带来了令人兴奋的未来。
981. Without using a magnetic disc, what other means do you have to save your software, drivers, and programs for the long term?
不用磁盘,你还有什么其他方式来长期保存你的软件、驱动程序和程序?
- 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: coding
- 分类: fullstack
- id: 69b37afb58d557c902babe40 | 官方: 否 | 付费: 否
答案:
Discs and other forms of data storage have become outdated as a result of the development and proliferation of cloud computing over the past few years, which is the answer.
答案是,由于过去几年云计算的发展和普及,磁盘和其他形式的数据存储已经过时。
Users may now easily upload files of any sort to a cloud storage service, which will keep their data safe and make it accessible even after a significant amount of time has passed. When something is uploaded, it will be preserved indefinitely, until the user deletes the individual item or the file itself. Even if this is a general problem with cloud computing, you might be able to discover a solution to it by looking through the questions and answers provided in the Google Cloud interview.
用户现在可以轻松地将任何类型的文件上传到云存储服务,该服务将确保其数据安全,并使其在大量时间过去后仍可访问。上传的内容将无限期保留,直到用户删除单个项目或文件本身。尽管这是云计算的普遍问题,但您也许可以通过查看Google Cloud面试中提供的问题和答案来找到解决方案。
982. How does the concept of cloud computing enable ad hoc utilization of its available resources?
云计算的概念如何实现对其可用资源的临时利用?
- 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37afb58d557c902babe43 | 官方: 否 | 付费: 否
答案:
The answer is that cloud computing was built so that its clients can access their data whenever and wherever they need it. This was the primary motivation behind its development. As a result of developments in technology and the accessibility of services such as Google Cloud, the concept may now be realized with a great deal less difficult than it was before possible.
答案是,云计算的构建是为了让客户能够在需要时随时随地访问其数据。这是其开发的主要动机。由于技术进步和Google Cloud等服务的可用性,这一概念现在可以比以前可能实现的方式轻松得多地实现。
Users have the ability to access their data from any location, at any time, via any device, and at their own convenience thanks to Google Cloud.
用户能够通过Google Cloud从任何地点、任何时间、任何设备以及在他们方便时访问其数据。
983. What is the Google Cloud Platform?
什么是Google Cloud Platform?
- 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37afb58d557c902babe46 | 官方: 否 | 付费: 否
答案:
This is an example of a Google Cloud Platform interview question and answer that is considered to be one of the most fundamental. The following is a condensed version of the information that was used to answer this question.
这是一个被认为是Google Cloud Platform面试中最基本的问题和答案示例。以下是用于回答该问题的信息的简明版本。
Google has developed a platform called Google Cloud Platform specifically for those who are interested in capitalizing on the various benefits that come with cloud computing. Google Cloud Platform (GCP) is a platform that offers a wide variety of services in the field of cloud computing. These services include compute, database, storage, migration, and networking.
Google开发了一个名为Google Cloud Platform的平台,专门面向那些有兴趣利用云计算各种优势的人。Google Cloud Platform(GCP)是一个在云计算领域提供多种服务的平台,这些服务包括计算、数据库、存储、迁移和网络。
984. How much does it cost to use Google Cloud Platform? What kind of payment options are there?
使用Google Cloud Platform需要多少费用?有哪些付款选项?
- 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37afb58d557c902babe49 | 官方: 否 | 付费: 否
答案:
Users who use Google Compute Engine are charged for the amount of time they spend using Google Cloud Platform based on the amount of storage space, network traffic, and compute instances they consume. The cost of running a virtual machine on Google Cloud is calculated on a per-second basis, with a minimum charge of one minute. Your storage price will ultimately be determined by the total amount of data you have in your account.
使用Google Compute Engine的用户会根据其消耗的存储空间、网络流量和计算实例量,按使用Google Cloud Platform的时间付费。在Google Cloud上运行虚拟机的成本按秒计算,最低收费为一分钟。您的存储价格最终将由您账户中的总数据量决定。
The total amount of money spent on the network is directly proportional to the total amount of data that was exchanged between the virtual machines (VMs) that were interacting with one another. You should familiarize yourself with the various price structures utilized by Google before going in for an interview with Google Cloud Platform if you want to do well.
网络上的总费用与相互交互的虚拟机(VM)之间交换的总数据量直接成正比。如果您想在Google Cloud Platform面试中表现良好,应熟悉Google使用的各种价格结构。
985. How precisely are you going to differentiate between a Project Id and a Project Number?
您究竟如何区分项目ID和项目编号?
- 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37afb58d557c902babe4c | 官方: 否 | 付费: 否
答案:
The project identifier and the project number are the two components that can be utilized to generate a one-of-a-kind identifier for a certain endeavour. It is possible to differentiate between them both by -
项目标识符和项目编号是可用于为特定项目生成唯一标识符的两个组成部分。可以通过以下方式区分它们——
In contrast to the user-generated project number, the project number is automatically produced whenever a new project is formed. The user is responsible for producing the project number. Although the project id is not required for many of our services, we do require the project number (but it is a must for the Google Compute Engine).
与用户生成的项目编号不同,项目编号是在新项目创建时自动生成的。用户负责生成项目编号。虽然我们的许多服务不需要项目ID,但我们确实需要项目编号(但它是Google Compute Engine的必需项)。
In the event that you are interviewing to become a Google Cloud Engineer, this is an excellent illustration of a question that is straightforward yet has the potential to be significant. Therefore, it is absolutely necessary to go through the fundamentals of projects before heading for the interview with Google Cloud.
如果您正在面试成为Google Cloud工程师,这是一个简单但可能很重要的问题的绝佳示例。因此,在前往Google Cloud面试前,绝对有必要了解项目的基础知识。
986. How do you propose getting a larger quota for the project?
您建议如何为项目获取更大的配额?
- 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37afb58d557c902babe4f | 官方: 否 | 付费: 否
答案:
Every Google Compute Engine project has a default allocation of resources that is assigned to it. There is also the possibility of increasing quotas on a project-by-project basis. On the quota tab of the Google Cloud Platform Console, one is able to observe the various limits that are currently in place for the project.
每个Google Compute Engine项目都有默认分配的资源配额。也可以按项目增加配额。在Google Cloud Platform控制台的配额选项卡中,可以查看当前为项目设置的各种限制。
If you discover that the quota limit for your account has been reached and you would like to make a request for more resources, you can do so through the quotas page found in the IAM. You can quickly and easily ask for extra allocation by clicking on the Edit Quotas link that is located in the top right corner of the page.
如果您发现账户的配额限制已达到并想请求更多资源,可以通过IAM中的配额页面进行操作。您可以通过点击页面右上角的“编辑配额”链接快速轻松地请求额外分配。
These Google Cloud interview questions might be asked of you during an interview for the Google Cloud Architect position or the Google Cloud Consultant position. You need to put in a lot of effort studying if you want to do well in the interview.
这些Google Cloud面试问题可能在您面试Google Cloud架构师或Google Cloud顾问职位时被问到。如果您想在面试中表现良好,需要在学习上投入大量努力。
987. Imagine that you have uninstalled your instance inadvertently. Have faith that you will be successful in regaining possession of it. Is this true, and if so, how is it even conceivable?
想象您不小心卸载了实例。相信您能成功重新获得它。这是真的吗,如果是,怎么可能?
- 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37afc58d557c902babe52 | 官方: 否 | 付费: 否
答案:
The response is deceptively basic, although it does require an in-depth understanding of the cloud infrastructure of Google. The answer provided here is an effective response to one of the most challenging Google Cloud Platform interview questions.
答案出乎意料地简单,尽管它需要对Google云基础设施有深入理解。此处的回答是对最具挑战性的Google Cloud Platform面试问题之一的有效回应。
When an instance is deleted, there is no way to retrieve it again once it has been removed. Restarting it will bring it back to life if it was paused at any point during the process.
当实例被删除时,一旦移除就无法再次检索。如果在过程中任何时候暂停,重新启动会将其恢复。
988. What is meant by the term "instance" when referring to the Google Cloud?
在涉及Google Cloud时,“实例”一词是什么意思?
- 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37afc58d557c902babe58 | 官方: 否 | 付费: 否
答案:
In the Google Cloud dashboard, a single project can be associated with many instances, and each instance can be associated with a different number of projects. When creating instances for a project, you have the option of using a diverse selection of operating systems and hardware architectures.
在Google Cloud仪表板中,一个项目可以关联多个实例,每个实例可以关联不同数量的项目。为项目创建实例时,您可以选择多种操作系统和硬件架构。
When you delete an instance, it is removed from the project entirely and never returns. Each instance of Compute Engine comes pre-configured with a small boot persistent CD on which the operating system is pre-installed. This is a standard feature. You have the option of adding more storage options to your instance if the data storage needs of your applications require more capacity than you currently have available.
当您删除实例时,它会完全从项目中移除且永远不会返回。每个Compute Engine实例都预配置了一个小型启动持久CD,其中预装了操作系统,这是一个标准功能。如果您的应用数据存储需求超过当前可用容量,您可以选择为实例添加更多存储选项。
989. Explain "Google Cloud Machine Images"?
解释“Google Cloud Machine Images”是什么?
- 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37afc58d557c902babe5f | 官方: 否 | 付费: 否
答案:
The answer to this question is that the Google Cloud Platform already has the capability to save one-of-a-kind photos thanks to the applications that are preinstalled on the platform. Machine Images, a brand-new feature that is now in beta testing, contain all of the setup parameters, including permissions, in contrast to a custom image, which is merely an image of a disc. There may be more than one disc in machine photographs.
这个问题的答案是,Google Cloud Platform 已经能够通过平台上预装的应用程序来保存独一无二的照片。Machine Images 是一项目前处于测试阶段的全新功能,它包含所有设置参数,包括权限,这与自定义映像(仅仅是磁盘的映像)不同。机器照片中可能包含多个磁盘。
Utilizing pictures of different types of machinery can help you accomplish two different objectives. There is a second one available in case the first one is damaged. With the differential disc backup characteristics of machine images, a VM snapshot can be saved while using up less space on the disc and operating more effectively. This is made possible by the machine images.
利用不同类型的机器映像可以帮助你实现两个不同的目标。如果第一个映像损坏,还有第二个可用。借助机器映像的差异磁盘备份特性,可以保存虚拟机快照,同时占用更少的磁盘空间并更高效地运行。这得益于机器映像。
It is also possible to use it as a model for the creation of new virtual machines (VMs). By making use of an override, the image's characteristics can be customized in a unique manner for each copy.
它还可以用作创建新虚拟机(VM)的模型。通过使用覆盖功能,每个副本的映像特性都可以以独特的方式进行定制。
990. What does it mean for a virtual machine to be preemptible in GCP?
在 GCP 中,虚拟机可抢占是什么意思?
- 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37afc58d557c902babe62 | 官方: 否 | 付费: 否
答案:
The correct response is that normal preemptible VM instances are anywhere from 60-91% less expensive than standard VMs. On the other hand, Compute Engine may choose to shut down (also known as "preempt") particular VMs in order to free up additional resources for use by other VMs. It is not always possible to access preemptible instances because doing so requires additional resources from Google Compute Engine.
正确的回答是,普通的可抢占虚拟机实例比标准虚拟机便宜 60% 到 91%。另一方面,Compute Engine 可能会选择关闭(也称为“抢占”)某些虚拟机,以便为其他虚拟机释放额外资源。可抢占实例并不总是可用,因为使用它们需要 Google Compute Engine 提供额外资源。
Preemptible virtual machines (VMs) need a specific amount of CPU time in order to execute, just like conventional virtual machines need. You can consider requesting a separate "Preemptible CPU" allocation in order to prevent your preemptible virtual machines (VMs) from consuming too much of the CPU allotment that is reserved for your regular VMs.
可抢占虚拟机(VM)需要一定量的 CPU 时间来执行,就像传统虚拟机一样。你可以考虑请求单独的“可抢占 CPU”配额,以防止你的可抢占虚拟机(VM)消耗过多预留给你常规虚拟机的 CPU 配额。
While a Compute Engine standard CPU quota continues to be in force for all standard virtual machines in a particular region, a Compute Engine preemptible CPU quota applies to all preemptible virtual machines in that region.
虽然 Compute Engine 标准 CPU 配额继续适用于特定区域中的所有标准虚拟机,但 Compute Engine 可抢占 CPU 配额适用于该区域中的所有可抢占虚拟机。
It is possible to use the standard CPU quota instead of the preemptible CPU quota when installing preemptible virtual machines onto a host that does not have a preemptible CPU quota. Additionally, you will require some usual extras, such as Internet Protocol (IP) and storage space. Only once Compute Engine has assigned a limit will it appear in the gcloud CLI or Cloud console quota pages as a preemptible CPU limit. This is the case regardless of whether you use the console or the CLI.
在将可抢占虚拟机安装到没有可抢占 CPU 配额的主机上时,可以使用标准 CPU 配额代替可抢占 CPU 配额。此外,你还需要一些常规附加项,例如互联网协议(IP)和存储空间。只有在 Compute Engine 分配了配额后,它才会作为可抢占 CPU 配额出现在 gcloud CLI 或 Cloud 控制台配额页面中。无论你使用控制台还是 CLI,情况都是如此。
991. What is Autoscaling in the GCP Environment?
GCP 环境中的自动扩缩是什么?
- 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37afc58d557c902babe65 | 官方: 否 | 付费: 否
答案:
In response to your inquiry, I can tell you that autoscaling is a feature that is available on the Google Cloud Platform within the controlled instance groups. A "managed instance group" is a collection of linked instances that have been derived from the same master template. These instances have been grouped together for management purposes. Please refer to the article on Instance Groups for any additional information regarding managed instance groups. One of the many ways that autoscaling can be accomplished with Avi Vantage is by adjusting the number of active virtual machines to correspond with the amount of processing power that is required by each individual machine. This is the simplest method.
针对你的询问,我可以告诉你,自动扩缩是 Google Cloud Platform 中受管实例组提供的一项功能。“受管实例组”是一组从同一主模板派生的关联实例,这些实例为了管理目的而分组在一起。有关受管实例组的更多信息,请参阅有关实例组的文章。使用 Avi Vantage 实现自动扩缩的众多方法之一,就是调整活动虚拟机的数量,以匹配每台机器所需的处理能力。这是最简单的方法。
It is possible to construct auto-scale groups for either a single zone or numerous zones (regional). The availability of your application's instances can be increased for users by spreading them out across a number of different zones. A managed instance group that serves a region will not generate instances in more than those three availability zones, even if the area contains more than three availability zones. When creating instances, you are not restricted to the use of simply the three-zone setup; instead, you have the option of using either the two-zone setup or the multi-zone setup.
可以为单个区域或多个区域(区域性)构建自动扩缩组。通过将实例分布到多个可用区,可以提高用户对应用程序实例的可用性。服务于区域的受管实例组不会在该区域包含超过三个可用区时生成超过这三个可用区的实例。在创建实例时,你不仅限于使用三区域设置,还可以选择使用两区域设置或多区域设置。
992. What does it mean when people refer to "vertex AI" in relation to Google Cloud?
在提及 Google Cloud 时,“vertex AI” 是什么意思?
- 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37afc58d557c902babe68 | 官方: 否 | 付费: 否
答案:
As a result of this, Vertex AI consolidates AutoML and AI Platform into a cohesive collection of application programming interfaces (APIs), client libraries, and user interfaces. Vertex AI provides users with access to AutoML as well as customizable training methods. After training your models in any way that you see appropriate, Vertex AI grants you the ability to save, deploy, and request predictions from those models. It is possible to speed up the process of developing, deploying, and scaling machine learning models by utilizing pre-trained tools and bespoke tools on a single AI platform.
因此,Vertex AI 将 AutoML 和 AI Platform 整合为一个连贯的应用程序编程接口(API)、客户端库和用户界面集合。Vertex AI 为用户提供 AutoML 以及可定制的训练方法。在以你认为合适的任何方式训练模型后,Vertex AI 允许你保存、部署并请求这些模型的预测。通过利用单个 AI 平台上的预训练工具和定制工具,可以加快开发、部署和扩展机器学习模型的过程。
993. Explain what Google's Distributed Cloud is.
解释 Google 的 Distributed Cloud 是什么。
- 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: system-design
- 分类: fullstack
- id: 69b37afc58d557c902babe6b | 官方: 否 | 付费: 否
答案:
It is feasible to migrate or upgrade programs and process data on-premises by utilizing a number of Google Cloud services, such as databases, machine learning, data analytics, and container management services. It is doable to make use of services provided by a third party. Any one of these four locations—network Google's edge, an Operator data center, a Customer data center, or a Client data center—is capable of hosting the operation of Google Distributed Cloud products. The Google Distributed Cloud products can be run from any one of these four locations, making them all viable options.
可以利用多种 Google Cloud 服务(例如数据库、机器学习、数据分析和容器管理服务)在本地迁移或升级程序和处理数据。使用第三方提供的服务也是可行的。这四个位置中的任何一个——Google 边缘网络、运营商数据中心、客户数据中心或客户端数据中心——都可以托管 Google Distributed Cloud 产品的运行。Google Distributed Cloud 产品可以从这四个位置中的任何一个运行,因此它们都是可行的选择。
The shift to cloud computing is becoming increasingly necessary for businesses of all sizes. They are looking for a means to increase productivity while simultaneously lowering risk and accelerating the rate of innovation in their organization. Certain workloads cannot be moved instantly or completely to the public cloud because of factors such as compliance and data sovereignty requirements, low latency or local data processing needs, and the demand for services that are close together or nearby. Other factors include the demand for services that are close together or nearby.
对于各种规模的企业来说,向云计算的转变正变得越来越必要。他们正在寻找一种既能提高生产力,同时又能降低风险并加速组织创新速度的方法。由于合规性和数据主权要求、低延迟或本地数据处理需求,以及对紧密相连或就近服务的需求等因素,某些工作负载无法立即或完全迁移到公有云。其他因素还包括对紧密相连或就近服务的需求。
Google introduced Google Distributed Cloud at Google Cloud Next '21. This is a collection of hardware and software solutions that extends Google's infrastructure to the edge and into your data centers while guaranteeing that these workloads can still make use of the cloud's resources.
谷歌在Google Cloud Next '21大会上推出了Google Distributed Cloud。这是一系列硬件和软件解决方案的集合,将谷歌的基础设施扩展到边缘和您的数据中心,同时确保这些工作负载仍然可以利用云资源。
994. What is the GKE Autopilot?
什么是GKE Autopilot?
- 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37afc58d557c902babe6e | 官方: 否 | 付费: 否
答案:
In the years that have passed since its initial release, Google's Kubernetes has established itself as the industry standard for container orchestration within businesses. Google Kubernetes Engine is utilized by businesses that place the utmost importance on their applications to maintain the greatest levels of dependability, security, and scalability (GKE).
自初次发布以来的这些年里,谷歌的Kubernetes已确立为企业在容器编排方面的行业标准。那些高度重视其应用程序的企业使用Google Kubernetes Engine来维持最高水平的可靠性、安全性和可扩展性(GKE)。
In the second quarter of 2020, more than one hundred thousand companies all around the world utilized at least one of our application modernization platforms or services, such as GKE. Up until quite recently, optimizing Kubernetes typically required a significant amount of manual configuration. You can now focus on your programme without having to worry about the underlying infrastructure now that GKE Autopilot, the new mode of operation for managed Kubernetes, is ready.
在2020年第二季度,全球超过十万家公司使用了我们至少一个应用程序现代化平台或服务,例如GKE。直到最近,优化Kubernetes通常需要大量手动配置。现在,随着GKE Autopilot(托管Kubernetes的新操作模式)的准备就绪,您可以专注于程序,而不必担心底层基础设施。
Kubernetes and Google Container Engine (GKE) are wonderful options for many companies since they offer powerful and versatile cluster management along with complete administrative access. For some people, the level of control and flexibility may be excessive or daunting in relation to the amount of work they have to do, while for others, it may represent a straightforward method for generating a more secure and consistent atmosphere in which to create.
Kubernetes和Google Container Engine(GKE)对许多公司来说是极佳选择,因为它们提供了强大而灵活且具有完全管理访问权限的集群管理。对一些人来说,相对于他们需完成的工作量,这种控制级别和灵活性可能显得过度或令人生畏,而对另一些人来说,这可能代表一种直接的方法,用于生成更安全、更一致的环境来创建。
Because it maintains the cluster's architecture, control plane, and nodes, the autopilot may make it possible for businesses to install Kubernetes and streamline operations. This is because Kubernetes is a container orchestration system.
因为Autopilot维护集群的架构、控制平面和节点,它可能使企业能够安装Kubernetes并简化操作。这是因为Kubernetes是一个容器编排系统。
995. What is the Kubernetes platform that Google uses?
谷歌使用的Kubernetes平台是什么?
- 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37afc58d557c902babe71 | 官方: 否 | 付费: 否
答案:
Students will learn how to construct containerized applications and deploy them using Google Kubernetes Engine by taking this course (GKE). Participants investigate and install different components of the solution, such as infrastructure pieces like pods and containers, through a combination of talks, live demos, and hands-on laboratories.
通过本课程,学生将学习如何构建容器化应用程序并使用Google Kubernetes Engine(GKE)部署它们。参与者通过讲座、现场演示和动手实验相结合的方式,调查和安装解决方案的不同组件,例如pod和容器等基础设施部分。
996. What does it mean to have "binary authorization" in the Google cloud?
在谷歌云中,“二进制授权”是什么意思?
- 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37afc58d557c902babe74 | 官方: 否 | 付费: 否
答案:
The Binary Authorization is utilized by both Google Kubernetes Engine (GKE) and Cloud Run to verify that only legitimate container images are deployed. This is done to prevent any errors from occurring. You may ensure that only photographs that have been signed by reputable authorities were used in production by utilizing Binary Authorization, which enables you to enforce signature validation during the deployment phase.
Google Kubernetes Engine(GKE)和Cloud Run使用Binary Authorization来验证只部署合法的容器镜像。这是为了防止任何错误发生。通过使用Binary Authorization,您可以在部署阶段强制签名验证,从而确保只有由可信机构签名的照片才能在生产环境中使用。
You can have peace of mind knowing that only validated images are utilized in the build and release process if you validate your images before beginning those processes. You will have a greater degree of command over your containerized infrastructure as a result of this.
如果您在开始构建和发布过程之前验证镜像,您可以放心,只有经过验证的镜像在这些过程中被使用。这将使您对容器化基础设施拥有更高的控制程度。
997. In relation to cloud services, what do you believe to be the most essential factors to take into account?
关于云服务,您认为最重要的考虑因素是什么?
- 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37afc58d557c902babe77 | 官方: 否 | 付费: 否
答案:
When it comes to cloud services, scalability, adaptability, and cost-effectiveness are three of the most important factors to consider.
在云服务方面,可扩展性、适应性和成本效益是最重要的三个考虑因素。
One of the most important features of a cloud service is the ability to raise or decrease consumption without incurring any additional costs. This is one of the most valuable qualities of a cloud service. This is a significant advantage in comparison to more conventional, on-premise systems, the expansion of which might often be financially impossible.
云服务最重要的特性之一是能够在没有任何额外成本的情况下增加或减少使用量。这是云服务最有价值的品质之一。与传统的本地系统相比,这是一个显著优势,因为后者扩展通常可能在财务上难以实现。
The versatility of cloud services is another thing that sets them apart. A cloud service provides businesses with a great deal of versatility in terms of pricing and service levels, giving them the ability to find the arrangement that is best suited to their particular necessities.
云服务的多功能性也是另一大特色。云服务在定价和服务级别方面为企业提供了很大的灵活性,使他们能够找到最适合其特定需求的安排。
The inexpensive cost of cloud services is another significant advantage of using these services. Because of the lower overhead costs involved with their mode of distribution, online services are frequently more cost-effective than on-premise ones. It may be possible to acquire them on a "pay as you go" basis, which could result in additional savings on costs.
云服务成本低廉是使用这些服务的另一个重要优势。由于其分发模式的间接成本较低,在线服务通常比本地部署服务更具成本效益。可能可以按“即付即用”方式获取这些服务,这可能会带来额外的成本节省。
998. Who or what are system integrators when it comes to the Cloud?
在云计算方面,系统集成商是谁或什么?
- 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37afc58d557c902babe7a | 官方: 否 | 付费: 否
答案:
It's possible that the cloud is made up of a lot of different and complicated elements. A system integrator in the cloud is required for a variety of cloud-related tasks, including the development of a cloud, the integration of its numerous components, and the establishment of a hybrid or private cloud network.
云可能由许多不同且复杂的元素组成。云环境中的系统集成商需要执行各种与云相关的任务,包括云的开发、其众多组件的集成,以及混合云或私有云网络的建立。
999. How do the different deployment models for software as a service (SaaS) work, and what are they?
软件即服务(SaaS)的不同部署模型如何运作,它们是什么?
- 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37afc58d557c902babe7d | 官方: 否 | 付费: 否
答案:
Each customer in a single multi-tenant SaaS environment has their own dedicated set of resources, so they do not need to worry about sharing them with other tenants.
在单一多租户SaaS环境中,每个客户都拥有自己专用的资源集,因此无需担心与其他租户共享。
A more nuanced approach to multi-tenancy: The same collection of features is made accessible to multiple tenants through the utilization of a SaaS deployment strategy that pools the resources at their disposal.
一种更精细的多租户方法:通过利用一种SaaS部署策略,将资源集中供多个租户使用,从而使同一组功能可供多个租户访问。
1000. Before we can implement cloud computing, we need to have a better understanding of why it is necessary to have a virtualization platform.
在实施云计算之前,我们需要更好地理解为什么需要虚拟化平台。
- 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: coding
- 分类: fullstack
- id: 69b37afc58d557c902babe80 | 官方: 否 | 付费: 否
答案:
Using virtualization technology, it is possible to generate a variety of different things, including operating systems, virtual storage, networks, applications, and so on. Utilizing virtualization will allow for the expansion of the currently installed infrastructure. Many applications and operating systems are compatible with the servers that are now available.
利用虚拟化技术,可以生成各种不同的东西,包括操作系统、虚拟存储、网络、应用程序等。利用虚拟化将有助于扩展当前安装的基础设施。许多应用程序和操作系统与当前可用的服务器兼容。
1001. Which accounts for which services are now available? How do you intend to go about making one of these?
哪些账户对应哪些当前可用的服务?你打算如何创建一个这样的账户?
- 知识点: DevOps/云 (主题: gcp, cloud;标签: interviewbit, gcp, topic-specific, cloud)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37afc58d557c902babe83 | 官方: 否 | 付费: 否
答案:
Sadly, this is a typical question asked at interviews for Google Cloud jobs. The progress of project-specific services can be monitored through the use of service accounts. They are utilized in order to grant permission to Google Compute Engine to act on the user's behalf, hence providing the service access to data that is considered to be relatively harmless.
遗憾的是,这是Google Cloud工作面试中常见的问题。项目特定服务的进度可以通过服务账户来监控。它们被用于授权Google Compute Engine代表用户进行操作,从而使服务能够访问被认为相对无害的数据。
The Google Cloud Platform Console and the Google Compute Engine service accounts are the most often used of the many different kinds of service accounts that Google offers.
Google Cloud Platform控制台和Google Compute Engine服务账户是Google提供的多种服务账户中最常用的。
It is not necessary for the user to create an account for the service on their own. This file is automatically generated by the Compute Engine whenever a new instance of something is created. When an instance is created in Google Compute Engine, an administrator has the ability to restrict the privileges of the service account that is connected with the instance.
用户无需自行创建服务账户。每当创建新实例时,Compute Engine会自动生成此文件。在Google Compute Engine中创建实例时,管理员能够限制与该实例关联的服务账户的权限。
Conclusion
结论
GCP allows developers to build and execute apps on Google's servers. Google, Microsoft, Amazon, and IBM use it. It helps developers design and operates apps without installing software. GCP lets you use the same app-making tools as on your own computer. Developers may create apps quickly and easily. Small and large enterprises can use GCP. Large enterprises can use GCP for both testing and debugging. These are common Google Cloud Platform interview questions. If you can answer them you'll ace your interview.
GCP允许开发者在Google服务器上构建和运行应用程序。Google、Microsoft、Amazon和IBM都使用它。它帮助开发者设计和运行应用程序,而无需安装软件。GCP让你可以使用与在自有计算机上相同的应用程序开发工具。开发者可以快速轻松地创建应用程序。中小型企业和大型企业都可以使用GCP。大型企业可以使用GCP进行测试和调试。这些是常见的Google Cloud Platform面试问题。如果你能回答这些问题,就能在面试中表现出色。
Additional Interview Resources
其他面试资源
- Cloud Engineer Salary
- Cloud Computing Interview Questions
- Technical Interview Guide
1002. How will you resolve conflict in Git?
你如何解决 Git 中的冲突?
- 知识点: DevOps/云 / 行为与软技能 (主题: git, version-control;标签: interviewbit, git, topic-specific, version-control)
- 类型: behavioral | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37aff58d557c902bac02f | 官方: 否 | 付费: 否
答案:
- Conflicts occur whenever there are multiple people working on the same file across multiple branches. In such cases, git won't be able to resolve it automatically as it is not capable of deciding what changes has to get the precedence.
- Following are the steps are done in order to resolve git conflicts:1. Identify the files that have conflicts.2. Discuss with members who have worked on the file and ensure that the required changes are done in the file.3. Add these files to the staged section by using the git add command.4. Commit these changes using the git commit command.5. Finally, push the changes to the branch using the git.
1003. What command helps us know the list of branches merged to master?
哪个命令能帮助我们了解已合并到 master 分支的分支列表?
- 知识点: DevOps/云 (主题: git, version-control;标签: interviewbit, git, topic-specific, version-control)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37aff58d557c902bac032 | 官方: 否 | 付费: 否
答案:
- git branch --merged helps to get the list of the branches that have been merged into the current branch.
- Note: git branch --no-merged lists the branches that have not been merged to the current branch.
1004. What is best advisable step in cases of broken commit: Create an additional commit OR amend an existing commit?
在提交损坏的情况下,最佳建议步骤是什么:创建额外的提交还是修改现有提交?
- 知识点: DevOps/云 (主题: git, version-control;标签: interviewbit, git, topic-specific, version-control)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37aff58d557c902bac035 | 官方: 否 | 付费: 否
答案:
- It is always advisable to create an additional commit rather than amending the existing commit due to the following reasons:- Doing the amend operation destroys the previously saved state of that commit. If only the commit message gets changes or destroyed, it's acceptable but there might be cases when the contents of the commits get amended. This results in the loss of important information associated with the commit.- Over usage of git commit --amend can have severe repercussions as the small commit amend can continue to grow and gather unrelated changes over time.
1005. How to revert a bad commit which is already pushed?
如何撤销一个已经推送的不良提交?
- 知识点: DevOps/云 (主题: git, version-control;标签: interviewbit, git, topic-specific, version-control)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37aff58d557c902bac038 | 官方: 否 | 付费: 否
答案:
There can be cases where we want to revert from the pushed changes and go back to the previous version. To handle this, there are two possible approaches based on the situations: - Approach 1: Fix the bad changes of the files and create a new commit and push to the remote repository. This step is the simplest and most recommended approach to fix bad changes. You can use the command: git commit -m ""
在某些情况下,我们可能希望从已推送的更改中回退并恢复到先前版本。为了处理这种情况,根据具体情况有两种可能的方法:- 方法1:修复文件中的错误更改,创建新提交并推送到远程仓库。此步骤是修复错误更改的最简单且最推荐的方法。你可以使用命令:git commit -m ""
- Approach 2: New commit can be created that reverts changes done in the bad commit. It can be done using git revert
1006. What is the functionality of “git cherry-pick” command?
“git cherry-pick” 命令的功能是什么?
- 知识点: DevOps/云 (主题: git, version-control;标签: interviewbit, git, topic-specific, version-control)
- 类型: technical | 难度: hard | 子类型: coding
- 分类: fullstack
- id: 69b37aff58d557c902bac03b | 官方: 否 | 付费: 否
答案:
This command is used to introduce certain commits from one branch onto another branch within the repository. The most common use case is when we want to forward- or back-port commits from the maintenance branch to the development branch.
此命令用于将仓库中某个分支的特定提交引入到另一个分支。最常见的用例是当我们想将维护分支的提交向前或向后移植到开发分支时。
1007. Explain steps involved in removing a file from git index without removing from the local file system?
解释从 git 索引中移除文件而不从本地文件系统中移除的步骤?
- 知识点: DevOps/云 (主题: git, version-control;标签: interviewbit, git, topic-specific, version-control)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37aff58d557c902bac03e | 官方: 否 | 付费: 否
答案:
- Sometimes we end up having certain files that are not needed in the git index when we are not being careful while using the git add command. Using the command git rm will remove the file from both the index and the local working tree which is not always desirable.
- Instead of using the git rm command we can use the git reset command for removing the file from the staged version and then adding that file to the .gitignore file to avoid repeating the same mistake again.
git reset <file_name> # remove file from index
git reset <file_name> # 从索引中移除文件
echo filename >> .gitingore # add file to .gitignore to avoid mistake repetition.
echo filename >> .gitingore # 将文件添加到 .gitignore 以避免重复错误。
1008. What are the factors involved in considering which command to choose among: git merge and git rebase?
在考虑选择 git merge 和 git rebase 命令时,涉及哪些因素?
- 知识点: DevOps/云 (主题: git, version-control;标签: interviewbit, git, topic-specific, version-control)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37aff58d557c902bac041 | 官方: 否 | 付费: 否
答案:
Both these commands ensure that changes from one branch are integrated into another branch but in very different ways. Git rebasing can be thought of as saying to use another branch as a new base for the work. - Whenever in doubt, it is always preferred to use the git merge command.Following are some factors that tell when to use merge and rebase commands:
这两个命令都确保将一个分支的更改集成到另一个分支,但方式截然不同。Git rebasing 可以理解为使用另一个分支作为工作的新基础。- 每当有疑问时,通常优先使用 git merge 命令。以下是告诉我们何时使用 merge 和 rebase 命令的一些因素:
- In case our branch gets contributions from other developers outside the team as in open-source or public repositories, then rebase is not preferred.- This is because rebase destroys the branch and it results in broken and inconsistent repositories unless the git pull --rebase command is used.
- Rebase is a very destructive operation. If not applied correctly, it results in loss of committed work which might result in breaking the consistency of other developer’s contribution to the repository.
- If the model of having branches per feature is followed, rebasing is not a good idea there because it keeps track of related commits done by the developers. But in case the team follows having branches per developer of the team, then the branch has no additional useful information to be conveyed. In this model, rebasing has no harm and can be used.
- If there is any chance where there might be a necessity to revert a commit to previous commits, then reverting a rebase would be almost impossible as the commit data would be destroyed. In such cases, the merge can be used.
1009. How do you find a commit which broke something after a merge operation?
在合并操作后,你如何找到导致问题(破坏某些内容)的提交?
- 知识点: DevOps/云 (主题: git, version-control;标签: interviewbit, git, topic-specific, version-control)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37aff58d557c902bac044 | 官方: 否 | 付费: 否
答案:
- This can be a time-consuming process if we are not sure what to look at exactly. Fortunately, git provides a great search facility that works on the principle of binary search as git-bisect command.
- The initial set up is as follows:
git bisect start # initiates bisecting session
git bisect start # 开始二分查找会话
git bisect bad # marks current revision as bad
git bisect bad # 将当前版本标记为坏版本
git bisect good revision # marks last known commit as good revision
git bisect good revision # 将最后一次已知提交标记为好版本
- Upon running the above commands, git checks out a revision that is labeled as halfway between “good” and “bad” versions. This step can be run again by marking the commit as “good” or “bad” and the process continues until the commit which has a bug is found.
1010. What are the functionalities of git reset --mixed and git merge --abort?
git reset --mixed 和 git merge --abort 的功能分别是什么?
- 知识点: DevOps/云 (主题: git, version-control;标签: interviewbit, git, topic-specific, version-control)
- 类型: technical | 难度: hard | 子类型: coding
- 分类: fullstack
- id: 69b37aff58d557c902bac047 | 官方: 否 | 付费: 否
答案:
- git reset --mixed command is used for undoing changes of the working directory and the git index.
- git merge --abort command is used for stopping the merge process and returning back to the state before the merging occurred.
1011. Can you tell the differences between git revert and git reset?
你能说明 git revert 和 git reset 之间的区别吗?
- 知识点: DevOps/云 (主题: git, version-control;标签: interviewbit, git, topic-specific, version-control)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37aff58d557c902bac051 | 官方: 否 | 付费: 否
答案:
| git revert | git reset |
|---|---|
| This command is used for creating a new commit that undoes the changes of the previous commit. 此命令用于创建一个新提交来撤销先前提交的更改。 | This command is used for undoing the local changes done in the git repository 此命令用于撤销在 git 仓库中进行的本地更改。 |
| Using this command adds a new history to the project without modifying the existing history 使用此命令会为项目添加新历史,而不修改现有历史。 | This command operates on the commit history, git index, and the working directory. 此命令操作提交历史、git 索引和工作目录。 |
1012. 解释 CI/CD(Continuous Integration/Continuous Delivery) 流水线的核心概念和在HarmonyOS中的实践。
- 知识点: DevOps/云 (主题: devops, ci-cd;标签: huawei, generated)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- 公司: Huawei
- id: 69b37b4158d557c902bae645 | 官方: 是 | 付费: 是
答案:
思路分析从持续集成(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)? - 如何处理回滚?
1013. How to configure inclusions & exclusions in Artifacts Archival?
如何在 Artifacts 归档中配置包含和排除项?
- 知识点: DevOps/云 (主题: jenkins, ci-cd, devops;标签: interviewbit, jenkins, topic-specific, ci-cd, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37b7a58d557c902bb0f72 | 官方: 否 | 付费: 否
答案:
Artifact archival takes in a pattern for matching target files. Similarly, it also takes in a pattern (ANT build system pattern for matching files) for exclusion as well which will be ignored while selecting the files for archival.
Artifacts 归档会接收一个用于匹配目标文件的模式。同样地,它也会接收一个用于排除的模式(ANT 构建系统模式,用于匹配文件),在选取要归档的文件时会忽略这些文件。
For e.g. archiveArtifacts artifacts: 'output/*.txt', excludes: 'output/specific_file.txt'
例如:archiveArtifacts artifacts: 'output/*.txt', excludes: 'output/specific_file.txt'
The above command will archive all the text files from the output folder except specific_file.txt
上述命令将归档 output 文件夹中除 specific_file.txt 之外的所有文本文件。
1014. What is a Ping Thread in Jenkins and how it works?
什么是 Jenkins 中的 Ping 线程,它是如何工作的?
- 知识点: DevOps/云 / 行为与软技能 (主题: jenkins, ci-cd, devops;标签: interviewbit, jenkins, topic-specific, ci-cd, devops)
- 类型: behavioral | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37b7a58d557c902bb0f75 | 官方: 否 | 付费: 否
答案:
Jenkins installs "ping thread" on every remote connection, such as Controller/Agent connections, regardless of its transport mechanism (such as SSH, JNLP, etc.). The lower level of the Jenkins Remoting Protocol is a message-oriented protocol, and a ping thread periodically sends a ping message that the receiving end will reply to. The ping thread measures the time it takes for the reply to arrive, and if it’s taking excessive time (currently 4 minutes and configurable), then it assumes that the connection was lost and initiates the formal close down.
Jenkins 会在每次远程连接(如控制器/代理连接)上安装“ping 线程”,无论其传输机制(如 SSH、JNLP 等)是什么。Jenkins Remoting 协议的底层是面向消息的协议,ping 线程会定期发送一个 ping 消息,接收端会进行回复。ping 线程会测量回复到达的时间,如果耗时过长(目前为 4 分钟,可配置),则假定连接已丢失,并启动正式关闭。
This is to avoid an infinite hang, as some of the failure modes in the network cannot be detected otherwise. The timeout is also set to a long enough value so that a temporary surge in the load or a long garbage collection pause will not trip off the close-down.
这是为了避免无限挂起,因为网络中的某些故障模式无法以其他方式检测到。超时时间也设置为足够长的值,以便临时负载激增或长时间的垃圾收集暂停不会触发关闭。
Ping thread is installed on both controller & agent; each side pings the other and tries to detect the problem from their sides.
Ping 线程既安装在控制器上也安装在代理上;每一方都会ping另一方,并尝试从其自身侧检测问题。
The ping thread time out is reported through java.util.logging. Besides, the controller will also report this exception in the agent launch log. Note that some agent launchers, most notably SSH agents, writes all stdout/stderr outputs from the agent JVM into this same log file, so you need to be careful.
Ping 线程超时通过 java.util.logging 报告。此外,控制器也会在代理启动日志中报告此异常。请注意,某些代理启动器(尤其是 SSH 代理)会将代理 JVM 的所有 stdout/stderr 输出写入同一日志文件,因此需要小心。
Conclusion
结论
Though these are not the complete possibilities of Jenkins, we tried to cover some of the commonly asked interview questions on core Jenkins. We also need to understand that the Jenkins Update Center is enriched with thousands of useful plugins that enhance the supported functionalities of Jenkins.
虽然这些并非 Jenkins 的全部可能性,但我们试图涵盖一些关于核心 Jenkins 的常见面试问题。我们还需要了解,Jenkins Update Center 拥有数千个有用的插件,这些插件增强了 Jenkins 所支持的功能。
Before appearing for an interview, make sure to install a Jenkins Server on any of the supported platforms - either locally or on the cloud, install the most common plugins (suggested by Jenkins itself & other commonly used plugins). Try creating & building a normal freestyle project with Git or any other SCM integration plugin and try to execute some code from the connected Git Repository.
在参加面试之前,请确保在任何受支持的平台上安装Jenkins服务器——无论是在本地还是云端,安装最常用的插件(Jenkins自身推荐的以及其他常用插件)。尝试使用Git或任何其他SCM集成插件创建并构建一个普通的自由风格项目,并尝试从连接的Git仓库中执行一些代码。
Also, try creating a pipeline project with JenkinsFile and a global shared Jenkins library and build the job successfully. This will help us learn how Jenkins actually works with some hands-on issues.
此外,尝试使用JenkinsFile和全局共享的Jenkins库创建管道项目,并成功构建该任务。这将帮助我们通过一些动手实践问题了解Jenkins实际是如何工作的。
Additional Resources
其他资源
- Selenium Interview Questions
- Technical Interview Questions
1015. Can we monitor Jenkins using common Observability tools?
我们能否使用常见的可观测性工具来监控Jenkins?
- 知识点: DevOps/云 (主题: jenkins, ci-cd, devops;标签: interviewbit, jenkins, topic-specific, ci-cd, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37b7a58d557c902bb0f78 | 官方: 否 | 付费: 否
答案:
Common monitoring platforms like DataDog, Prometheus, JavaMelody & few others - have their corresponding Jenkins plugin, which when configured, sends Metrics to the corresponding Monitoring platform, which can then be Observed with the latest tools & technologies. The same can be configured with Alarms & Notifications for immediate attention when something goes wrong.
常见的监控平台如DataDog、Prometheus、JavaMelody以及其他一些平台——都有对应的Jenkins插件,配置后会将指标发送到相应的监控平台,然后可以使用最新的工具和技术进行观测。同样可以配置警报和通知,以便在出现问题时立即引起注意。
1016. What is In-process Script Approval and how it works?
什么是进程内脚本审批,它是如何工作的?
- 知识点: DevOps/云 (主题: jenkins, ci-cd, devops;标签: interviewbit, jenkins, topic-specific, ci-cd, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37b7a58d557c902bb0f7b | 官方: 否 | 付费: 否
答案:
Jenkins, and several plugins, allow users to execute Groovy scripts in Jenkins. To protect Jenkins from the execution of malicious scripts, these plugins execute user-provided scripts in a Groovy Sandbox that limits what internal APIs are accessible.
Jenkins以及某些插件允许用户在Jenkins中执行Groovy脚本。为了保护Jenkins免受恶意脚本的执行,这些插件在Groovy沙箱中执行用户提供的脚本,该沙箱限制了可访问的内部API。
This protection is provided by the Script Security plugin. As soon as an unsafe method is used in any of the scripts, the "In-process Script Approval" action should appear in "Manage Jenkins" to allow Administrators to make a decision about which unsafe methods, if any, should be allowed in the Jenkins environment.
这种保护由脚本安全插件提供。一旦在任何脚本中使用了不安全的方法,“进程内脚本审批”操作应出现在“管理Jenkins”中,以允许管理员决定Jenkins环境中允许哪些不安全方法(如果有的话)。
This in-process script approval inherently improves the security of the overall Jenkins ecosystem.
这种进程内脚本审批本质上提高了整个Jenkins生态系统的安全性。
1017. What is Jenkins Remote Access API?
什么是Jenkins远程访问API?
- 知识点: DevOps/云 (主题: jenkins, ci-cd, devops;标签: interviewbit, jenkins, topic-specific, ci-cd, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37b7a58d557c902bb0f7e | 官方: 否 | 付费: 否
答案:
Jenkins provides remote access API to most of its functionalities (though some functionalities are programming language-dependent). Currently, it comes in three flavors - - XML
Jenkins为其大多数功能提供远程访问API(尽管某些功能依赖于编程语言)。目前,它有三种形式——XML
- JSON with JSONP support
Python
Remote access API is offered in a REST-like style. That is, there is no single entry point for all features, and instead, they are available under the ".../api/" URL where the "..." portion is the data that it acts on.远程访问API以类似REST的风格提供。也就是说,所有功能没有单一入口点,而是位于“.../api/”URL下,其中“...”部分是它操作的数据。
For example, if your Jenkins installation sits at interviewbit.com, visiting /api/ will show just the top-level API features available – primarily a listing of the configured jobs for this Jenkins instance.
例如,如果您的Jenkins安装位于interviewbit.com,访问/api/将仅显示可用的顶级API功能——主要是此Jenkins实例已配置任务的列表。
Or if we want to access information about a particular build, e.g. https://ci.jenkins.io/job/Infra/job/jenkins.io/job/master/lastSuccessfulBuild/, then go to https://ci.jenkins.io/job/Infra/job/jenkins.io/job/master/lastSuccessfulBuild/api/ and you’ll see the list of functionalities for that build.
或者如果我们想访问特定构建的信息,例如https://ci.jenkins.io/job/Infra/job/jenkins.io/job/master/lastSuccessfulBuild/,那么访问https://ci.jenkins.io/job/Infra/job/jenkins.io/job/master/lastSuccessfulBuild/api/,您将看到该构建的功能列表。
1018. How to download the Console log for a particular Jenkins build programmatically?
如何以编程方式下载特定Jenkins构建的控制台日志?
- 知识点: DevOps/云 (主题: jenkins, ci-cd, devops;标签: interviewbit, jenkins, topic-specific, ci-cd, devops)
- 类型: technical | 难度: hard | 子类型: coding
- 分类: fullstack
- id: 69b37b7a58d557c902bb0f81 | 官方: 否 | 付费: 否
答案:
Using the Jenkins CLI - console - command
使用Jenkins CLI - console - 命令
java -jar jenkins-cli.jar console JOB [BUILD] [-f] [-n N]
java -jar jenkins-cli.jar console JOB [BUILD] [-f] [-n N]
Produces the console output of a specific build to stdout, as if you are doing 'cat build.log' - JOB: Name of the job
将特定构建的控制台输出打印到标准输出,就像执行 'cat build.log' 一样 - JOB:作业名称
- BUILD: Build number or permalink to point to the build. Defaults to the last build
- -f: If the build is in progress, append console output as it comes, like tail -f
-n N: Display the last N lines.
E.g.例如:
ssh -l -p console
ssh -l -p console
1019. How to install a Custom Jenkins Plugin or a Version of Plugin Not available in Jenkins Update Center?
如何安装自定义 Jenkins 插件或 Jenkins 更新中心中不可用的插件版本?
- 知识点: DevOps/云 (主题: jenkins, ci-cd, devops;标签: interviewbit, jenkins, topic-specific, ci-cd, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37b7a58d557c902bb0f84 | 官方: 否 | 付费: 否
答案:
Generally, it is the best practice to use the latest version of a plugin. But there are ways to install custom plugins or outdated versions of a published plugin. Jenkins Plugins are exported using a .hpi file and the same can be installed in multiple ways -
通常,最佳实践是使用插件的最新版本。但也有方法可以安装自定义插件或已发布插件的旧版本。Jenkins 插件通过 .hpi 文件导出,可以通过多种方式安装:
Using the Jenkins CLI
使用 Jenkins CLI
java -jar jenkins-cli.jar -s http://localhost:8080/ install-plugin SOURCE ... [-deploy] [-name VAL] [-restart]
java -jar jenkins-cli.jar -s http://localhost:8080/ install-plugin SOURCE ... [-deploy] [-name VAL] [-restart]
The above command Installs a plugin either from a file, an URL or from the update center. - SOURCE: If this points to a local file, that file will be installed. If this is an URL, Jenkins downloads the URL and installs that as a plugin. Otherwise, the name is assumed to be the short name of the plugin in the existing update center (like "findbugs") and the plugin will be installed from the update center.
上述命令从文件、URL 或更新中心安装插件。- SOURCE:如果指向本地文件,将安装该文件。如果是 URL,Jenkins 下载该 URL 并将其作为插件安装。否则,名称被假定为现有更新中心中插件的短名称(如 "findbugs"),并将从更新中心安装该插件。
- -deploy: Deploy plugins right away without postponing them until the reboot.
- -name VAL: If specified, the plugin will be installed as this short name (whereas normally the name is inferred from the source name automatically).
-restart: Restart Jenkins upon successful installation.
Advanced Installation - via - Web UI高级安装 - 通过 - Web 界面
Assuming a .hpi file has been downloaded, a logged-in Jenkins administrator may upload the file from within the web UI: - Navigate to the Manage Jenkins > Manage Plugins page in the web UI.
假设已下载 .hpi 文件,已登录的 Jenkins 管理员可以在 Web 界面中上传该文件: - 在 Web 界面中导航到“管理 Jenkins” > “管理插件”页面。
- Click on the Advanced tab.
- Choose the .hpi file under the Upload Plugin section.
- Upload the plugin file.
Restart the Jenkins instance
Advanced Installation - via - On the master高级安装 - 通过 - 在主节点上
Assuming a .hpi file has been explicitly downloaded by a systems administrator, the administrator can manually place the .hpi file in a specific location on the file system.
假设系统管理员已明确下载 .hpi 文件,管理员可以手动将 .hpi 文件放在文件系统的特定位置。
Copy the downloaded .hpi file into the JENKINS_HOME/plugins directory on the Jenkins controller (for example, on Debian systems JENKINS_HOME is generally /var/lib/jenkins).
将下载的 .hpi 文件复制到 Jenkins 控制器上的 JENKINS_HOME/plugins 目录(例如,在 Debian 系统中 JENKINS_HOME 通常是 /var/lib/jenkins)。
The master will need to be restarted before the plugin is loaded and made available in the Jenkins environment.
需要重启主节点,插件才会被加载并在 Jenkins 环境中可用。
1020. How to create & use a Shared Library in Jenkins?
如何在 Jenkins 中创建和使用共享库?
- 知识点: DevOps/云 (主题: jenkins, ci-cd, devops;标签: interviewbit, jenkins, topic-specific, ci-cd, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37b7a58d557c902bb0f87 | 官方: 否 | 付费: 否
答案:
Basic requirements for a Jenkins shared library to be used in a Pipeline Code are - - A Repository with pipeline shared library code in SCM.
Jenkins 共享库在 Pipeline 代码中使用的基本要求是 - - 在 SCM 中拥有包含 Pipeline 共享库代码的仓库。
- An appropriate SCM Plugin configuration for the Jenkins instance.
- Global Shared Library should be configured in Jenkins Global configuration.
Include the Shared Library in the Pipeline Code and use the methods defined in the Jenkins Shared Library.
E.g.例如:
!/urs/bin/env groovy @Library('fs_jenkins_shared_library@v2.0.7')_
1021. How to do Global Tools Configuration in Jenkins?
如何在 Jenkins 中进行全局工具配置?
- 知识点: DevOps/云 (主题: jenkins, ci-cd, devops;标签: interviewbit, jenkins, topic-specific, ci-cd, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37b7a58d557c902bb0f8a | 官方: 否 | 付费: 否
答案:
Global Tools are tools that need to be installed outside the Jenkins environment and need to be controlled from within the Jenkins environment. Hence it needs its corresponding Jenkins plugin as well. Steps to using a Global Tool generally include - - Install the tool Plugin into the Jenkins instance, to include the global tool into a list of global tools used by Jenkins.
全局工具是需要安装到 Jenkins 环境外部,但需要从 Jenkins 环境内部进行控制的工具,因此它也需要相应的 Jenkins 插件。使用全局工具的一般步骤包括:将工具插件安装到 Jenkins 实例中,以将全局工具包含到 Jenkins 使用的全局工具列表中。
- Install the tool in the Jenkins instance or provide away (maybe a command to download and) install the tool during runtime.
- Go to Manage Jenkins -> Global Tools Configuration and Scroll through the tool list and configure the global tool-specific configurations.
- Make use of the installed global Tool in your job/pipeline.
1022. How can a job configuration be reset to an earlier version/state?
如何将作业配置重置为早期版本/状态?
- 知识点: DevOps/云 (主题: jenkins, ci-cd, devops;标签: interviewbit, jenkins, topic-specific, ci-cd, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37b7a58d557c902bb0f8d | 官方: 否 | 付费: 否
答案:
From the Job details page, we can use Job Config History to - See diff, Review & Revert the Job configs from the history of changes we have made to a particular job. This will be super useful when a job is misconfigured by someone by mistake, it can be reviewed and reverted easily to any of its earlier states.
在作业详情页面,我们可以使用 Job Config History 来:查看特定作业的变更历史中的差异、审查和还原作业配置。当某个作业被某人错误配置时,这非常有用,可以轻松审查并还原到其任何早期状态。
1023. Default Environment Variables by Jenkins & How to introduce custom environment variables?
Jenkins 的默认环境变量以及如何引入自定义环境变量?
- 知识点: DevOps/云 (主题: jenkins, ci-cd, devops;标签: interviewbit, jenkins, topic-specific, ci-cd, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37b7a58d557c902bb0f90 | 官方: 否 | 付费: 否
答案:
Jenkins provides several environment variables by default like - BRANCH_NAME, BUILD_NUMBER, BUILD_TAG, WORKSPACE, etc.
Jenkins 默认提供多个环境变量,例如:BRANCH_NAME、BUILD_NUMBER、BUILD_TAG、WORKSPACE 等。
1024. How code coverage is measured/tracked using Jenkins in a CI environment?
在 CI 环境中如何使用 Jenkins 测量/跟踪代码覆盖率?
- 知识点: DevOps/云 (主题: jenkins, ci-cd, devops;标签: interviewbit, jenkins, topic-specific, ci-cd, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37b7a58d557c902bb0f93 | 官方: 否 | 付费: 否
答案:
Using language-specific code coverage plugins like JaCoCo, CodeCov, etc or generic tools/plugins like Sonarqube which will add the code coverage data to builds with some minor tweaks in the code and the same can be displayed as a graph in Jenkins.
使用特定于语言的代码覆盖率插件(如 JaCoCo、CodeCov 等)或通用工具/插件(如 Sonarqube),通过对代码进行少量调整,将代码覆盖率数据添加到构建中,并在 Jenkins 中以图表形式显示。
1025. How can we share information between different build steps or stages in a Jenkins Job?
如何在 Jenkins 作业中的不同构建步骤或阶段之间共享信息?
- 知识点: DevOps/云 (主题: jenkins, ci-cd, devops;标签: interviewbit, jenkins, topic-specific, ci-cd, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37b7a58d557c902bb0f96 | 官方: 否 | 付费: 否
答案:
Every build step or stage will be running in its process and hence sharing information between two different build steps is not so direct. We can use either a File, a Database Entry, an Environment Variable, etc. to share info from one build step to another or a post-build action.
每个构建步骤或阶段都在其自己的进程中运行,因此两个不同构建步骤之间的信息共享并不直接。我们可以使用文件、数据库条目、环境变量等从单个构建步骤向另一个构建步骤或后期构建操作传递信息。
1026. What is Artifact Archival & how to do it in Pipelines?
什么是工件归档以及如何在流水线中实现?
- 知识点: DevOps/云 (主题: jenkins, ci-cd, devops;标签: interviewbit, jenkins, topic-specific, ci-cd, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37b7a58d557c902bb0f99 | 官方: 否 | 付费: 否
答案:
Artifacts are the exportable/storable/archivable results of a specific job build. This can be configured using a plugin called - Copy artifact Plugin. Based on the configured pattern, the files/directories matching the configured patterns will be archived for a Jenkins build, which can be used for future references. In the pipeline, it can be configured as follows -
工件是特定作业构建的可导出/可存储/可归档的结果。这可以使用名为“复制工件插件”的插件进行配置。根据配置的模式,与配置模式匹配的文件/目录将被归档到 Jenkins 构建中,以供将来参考。在流水线中,可以按如下方式配置:
archiveArtifacts artifacts: 'output/*/'
archiveArtifacts artifacts: 'output/*/'
1027. How is continuous integration achieved using Jenkins?
如何使用 Jenkins 实现持续集成?
- 知识点: DevOps/云 (主题: jenkins, ci-cd, devops;标签: interviewbit, jenkins, topic-specific, ci-cd, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37b7a58d557c902bb0f9c | 官方: 否 | 付费: 否
答案:
Continuous integration is a process where a developer’s code changes are constantly integrated into the main code and the same will be tested automatically and the results of the tests will decide whether the change is ready for deployment. In this process - - Developer Makes a change - commit/pull_request - in feature/dev branch
持续集成是一种过程,开发人员的代码更改被持续整合到主代码中,并自动进行测试,测试结果将决定更改是否准备好部署。在此过程中:开发人员进行更改 - 提交/拉取请求,然后进入功能/开发分支。
- Source Control Management system generates appropriate events
- SCM Specific Jenkins Plugins like Git/SVN will detect those events from the configured repositories and these events will be used to Trigger - build/dependent/test - jobs on Jenkins
- After the Test/Dependent jobs are completed, the change/patch will be labeled according to the status of the test job
- Based on the Status (i.e. readiness of a change to be merged with the main branch), the Continuous Delivery or Continuous Deployment strategy/tool will take it forward.
1028. How to troubleshoot if the POD is not getting scheduled?
如何排查 POD 未被调度的问题?
- 知识点: DevOps/云 (主题: kubernetes, containers, devops;标签: interviewbit, kubernetes, topic-specific, containers, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37b8358d557c902bb1578 | 官方: 否 | 付费: 否
答案:
In K8’s scheduler is responsible to spawn pods into nodes. There are many factors that can lead to unstartable POD. The most common one is running out of resources, use the commands like kubectl describe -n to see the reason why POD is not started. Also, keep an eye on kubectl to get events to see all events coming from the cluster.
在 Kubernetes 中,调度器负责将 Pod 调度到节点上。有很多因素可能导致 Pod 无法启动。最常见的是资源耗尽,可以使用类似 kubectl describe -n 的命令来查看 Pod 未启动的原因。同时,要留意使用 kubectl 获取事件,以查看集群中产生的所有事件。
1029. How can we forward the port '8080 (container) -> 8080 (service) -> 8080 (ingress) -> 80 (browser)and how it can be done?
我们如何转发端口 '8080(容器)-> 8080(服务)-> 8080(入口)-> 80(浏览器)',以及如何实现?
- 知识点: DevOps/云 (主题: kubernetes, containers, devops;标签: interviewbit, kubernetes, topic-specific, containers, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37b8358d557c902bb157b | 官方: 否 | 付费: 否
答案:
The ingress is exposing port 80 externally for the browser to access, and connecting to a service that listens on 8080. The ingress will listen on port 80 by default. An "ingress controller" is a pod that receives external traffic and handles the ingress and is configured by an ingress resource For this you need to configure the ingress selector and if no 'ingress controller selector' is mentioned then no ingress controller will manage the ingress.
入口(Ingress)在外部暴露 80 端口供浏览器访问,并连接到监听 8080 端口的服务。入口默认监听 80 端口。“入口控制器”是一个接收外部流量并处理入口的 Pod,它由入口资源配置。为此,你需要配置入口选择器;如果没有指定“入口控制器选择器”,则不会有入口控制器来管理该入口。
Simple ingress Config will look like
简单的入口配置看起来如下
host: abc.org
主机:abc.org
http:
http:
paths:
路径:
backend:
backend:
serviceName: abc-service
serviceName: abc-service
servicePort: 8080
servicePort: 8080
Then the service will look like
然后该服务将如下所示
kind: Service
kind: Service
apiVersion: v1
apiVersion: v1
metadata:
metadata:
name: abc-service
name: abc-service
spec:
spec:
ports:
ports:
protocol: TCP
protocol: TCP
port: 8080 # port to which the service listens to
port: 8080 # 服务监听的端口
targetPort: 8080
targetPort: 8080
1030. What are the different ways to provide external network connectivity to K8?
提供外部网络连通性给K8s有哪些不同方式?
- 知识点: DevOps/云 (主题: kubernetes, containers, devops;标签: interviewbit, kubernetes, topic-specific, containers, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37b8358d557c902bb157e | 官方: 否 | 付费: 否
答案:
By default, POD should be able to reach the external network but vice-versa we need to make some changes. Following options are available to connect with POD from the outer world. - Nodeport (it will expose one port on each node to communicate with it)
默认情况下,POD应能访问外部网络,但反向则需要我们做一些更改。以下选项可用于从外部世界连接POD。- Nodeport(它会在每个节点上暴露一个端口以便与之通信)
- Load balancers (L4 layer of TCP/IP protocol)
Ingress (L7 layer of TCP/IP Protocol)
Another method is to use Kube-proxy which can expose a service with only cluster IP on the local system port.另一种方法是使用Kube-proxy,它可以在本地系统端口上暴露一个仅有集群IP的服务。
$ kubectl proxy --port=8080 $ http://localhost:8080/api/v1/proxy/namespaces//services/:/
1031. How to run a POD on a particular node?
如何在特定节点上运行POD?
- 知识点: DevOps/云 (主题: kubernetes, containers, devops;标签: interviewbit, kubernetes, topic-specific, containers, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37b8358d557c902bb1581 | 官方: 否 | 付费: 否
答案:
Various methods are available to achieve it. - nodeName: specify the name of a node in POD spec configuration, it will try to run the POD on a specific node.
有多种方法可以实现。- nodeName:在POD规格配置中指定节点名称,它将尝试在特定节点上运行该POD。
- nodeSelector: Assign a specific label to the node which has special resources and use the same label in POD spec so that POD will run only on that node.
- nodeaffinities: required DuringSchedulingIgnoredDuringExecution, preferredDuringSchedulingIgnoredDuringExecution are hard and soft requirements for running the POD on specific nodes. This will be replacing nodeSelector in the future. It depends on the node labels.
1032. Can you explain the differences between Docker Swarm and Kubernetes?
你能解释一下Docker Swarm和Kubernetes之间的区别吗?
- 知识点: DevOps/云 (主题: kubernetes, containers, devops;标签: interviewbit, kubernetes, topic-specific, containers, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37b8358d557c902bb1584 | 官方: 否 | 付费: 否
答案:
Below are the main difference between Kubernetes and Docker: - The installation procedure of the K8s is very complicated but if it is once installed then the cluster is robust. On the other hand, the Docker swarm installation process is very simple but the cluster is not at all robust.
以下是Kubernetes和Docker之间的主要区别:- K8s的安装过程非常复杂,但一旦安装完成,集群就非常健壮。另一方面,Docker Swarm的安装过程非常简单,但集群一点也不健壮。
- Kubernetes can process the auto-scaling but the Docker swarm cannot process the auto-scaling of the pods based on incoming load.
- Kubernetes is a full-fledged Framework. Since it maintains the cluster states more consistently so autoscaling is not as fast as Docker Swarm.
1033. What the following in the Deployment configuration file mean?
Deployment配置文件中的以下内容是什么意思?
- 知识点: DevOps/云 (主题: kubernetes, containers, devops;标签: interviewbit, kubernetes, topic-specific, containers, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37b8358d557c902bb1587 | 官方: 否 | 付费: 否
答案:
spec:
spec:
containers:
containers:
name: USER_PASSWORD
valueFrom:valueFrom:
secretKeyRef:
secretKeyRef:
name: some-secret
name: some-secret
key: password
key: password
Explanation -
解释 -
USER_PASSWORD environment variable will store the value from the password key in the secret called "some-secret" In other words, you reference a value from a Kubernetes Secret.
USER_PASSWORD环境变量将存储名为“some-secret”的密钥中密码键的值。换句话说,您引用了Kubernetes Secret中的一个值。
1034. What is Kubernetes Load Balancing?
什么是 Kubernetes 负载均衡?
- 知识点: DevOps/云 (主题: kubernetes, containers, devops;标签: interviewbit, kubernetes, topic-specific, containers, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37b8358d557c902bb158a | 官方: 否 | 付费: 否
答案:
Load Balancing is one of the most common and standard ways of exposing the services. There are two types of load balancing in K8s and they are:
负载均衡是暴露服务最常见且标准的方式之一。K8s 中有两种负载均衡类型,它们分别是:
Internal load balancer – This type of balancer automatically balances loads and allocates the pods with the required incoming load.
内部负载均衡器 – 此类均衡器自动平衡负载,并将 Pod 分配所需的传入负载。
External Load Balancer – This type of balancer directs the traffic from the external loads to backend pods.
外部负载均衡器 – 此类均衡器将外部负载的流量引导至后端 Pod。
1035. How to run Kubernetes locally?
如何在本地运行 Kubernetes?
- 知识点: DevOps/云 (主题: kubernetes, containers, devops;标签: interviewbit, kubernetes, topic-specific, containers, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37b8358d557c902bb158d | 官方: 否 | 付费: 否
答案:
Kubernetes can be set up locally using the Minikube tool. It runs a single-node bunch in a VM on the computer. Therefore, it offers the perfect way for users who have just ongoing learning Kubernetes.
Kubernetes 可以使用 Minikube 工具在本地设置。它在计算机的 VM 中运行一个单节点集群。因此,它为刚入门学习 Kubernetes 的用户提供了完美的方式。
1036. 解释 CI/CD(Continuous Integration/Continuous Deployment)流水线(Pipeline)的核心概念和在Facebook(脸书)中的实践。
- 知识点: DevOps/云 (主题: devops, ci-cd;标签: meta, generated)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- 公司: Meta
- id: 69b37bca58d557c902bb4748 | 官方: 是 | 付费: 是
答案:
思路分析从持续集成(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)? - 如何处理回滚?
1037. To provide connectivity for pods throughout a full cluster, name the network plugin.
为了在整个集群中为 pod 提供连接性,请命名网络插件。
- 知识点: DevOps/云 / 行为与软技能 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
- 类型: behavioral | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c0458d557c902bb6933 | 官方: 否 | 付费: 否
答案:
'ovs-subnet' is the network plugin that allows unrestricted connectivity for pods across the entire cluster.
'ovs-subnet' 是网络插件,其允许跨整个集群的 pod 具有无限制连接性。
1038. What systems are running on AWS in the OpenShift environment?
在 OpenShift 环境中,有哪些系统运行在 AWS 上?
- 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c0458d557c902bb6936 | 官方: 否 | 付费: 否
答案:
One master node and one infrastructure node make up the OpenShift environment on Amazon Web Services. There's also an NFS server and 24 application nodes included.
一个主节点和一个基础设施节点构成了 Amazon Web Services 上的 OpenShift 环境。此外,还包括一个 NFS 服务器和 24 个应用节点。
1039. What is the procedure followed in Red Hat when dealing with a new incident?
在 Red Hat 中,处理新事件时遵循的程序是什么?
- 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c0458d557c902bb6939 | 官方: 否 | 付费: 否
答案:
An incident is an occurrence that causes one or more Red Hat services to degrade or go down. A client or a member of the Customer Experience and Engagement (CEE) team can report an incident via a support case, the centralised monitoring and alerting system, or a member of the SRE team. The severity of an incident is determined by its impact on the service and the client. When dealing with a new event, Red Hat follows the following procedure: - When a new event is reported, an SRE first responder is notified and begins an investigation.
事件是导致一个或多个 Red Hat 服务降级或停机的情况。客户端或客户体验与参与(CEE)团队成员可以通过支持案例、集中监控和警报系统或 SRE 团队成员来报告事件。事件的严重性由其对服务和客户端的影响决定。在处理新事件时,Red Hat 遵循以下程序:- 当报告新事件时,SRE 第一响应者会收到通知并开始调查。
- The incident is appointed an incident lead after the initial inquiry, who coordinates the recovery operations.
- An incident lead is in charge of all recovery communication and coordination, as well as any necessary notifications and support case updates.
The incident has been resolved.
Within three business days of the incident, the issue is documented and a root cause analysis (RCA) is conducted. Within 7 business days of the incident, the customer will receive a drafted RCA document.事件发生后三个工作日内,问题被记录并进行根本原因分析(RCA)。事件发生后7个工作日内,客户将收到一份草拟的RCA文档。
1040. What are the advantages of using OpenShift?
使用OpenShift的优势是什么?
- 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c0458d557c902bb693c | 官方: 否 | 付费: 否
答案:
The advantages of using OpenShift are: - You can work with a variety of apps, including traditional, modernised, and cloud-native. AI/ML, Java, data analytics, databases, and other high-demand applications are all supported.
使用OpenShift的优势包括: - 您可以处理多种应用,包括传统、现代化和云原生应用。AI/ML、Java、数据分析、数据库以及其他高需求应用均受支持。
- OpenShift allows simple connection with CI/CD pipeline building tools like Jenkins, thanks to automation at multiple stages of the application.
- To avoid account compromise, OpenShift provides role-based access control (RBAC), which ensures that each developer only has access to the functionality they require. Other security rules, like IAM and OAuth, are set by default when you create a project with Openshift. You simply need to add permissions to users as needed.
- OpenShift allows web hosting and design organisations to connect developers and operations personnel to successfully build, test, and deploy applications by allowing them to cooperate quickly. Red Hat also improved the developer experience by providing additional CLI tooling and a web-based user interface that allows users to control all of the OpenShift platform's features.
- OpenShift has monitoring and logging tools out of the box to streamline the development process and unify the deployment and operation of applications.
- OpenShift allows for effective container orchestration, enabling quick provisioning, deployment, scaling, and administration of containers. Deployments are completed faster and at a lesser cost.
1041. What do you mean by autoscaling in OpenShift?
OpenShift中的自动缩放是什么意思?
- 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c0458d557c902bb693f | 官方: 否 | 付费: 否
答案:
Autoscaling is an OpenShift feature that allows deployed applications to scale and sink as needed based on certain parameters. Autoscaling is also known as pod autoscaling in the OpenShift application. The following are the two types of application scalability. - Vertical scaling: Vertical scaling is the process of gradually increasing the processing power of a single computer, which entails adding an extra CPU and hard disc. This is an older OpenShift technique that is no longer supported by newer OpenShift releases.
自动缩放是OpenShift的一项功能,允许已部署的应用根据特定参数按需扩展和缩减。在OpenShift应用中,自动缩放也称为Pod自动缩放。以下是两种应用可扩展性类型。 - 垂直缩放:垂直缩放是逐步增加单个计算机处理能力的过程,这涉及添加额外的CPU和硬盘。这是一种较旧的OpenShift技术,较新的OpenShift版本已不再支持。
Horizontal scaling: This form of scalability is important when more requests need to be handled and the number of machines needs to be increased.
There are two ways to enable the scaling capability in OpenShift. - Using the configuration file for deployment.有两种在OpenShift中启用缩放能力的方法。 - 使用部署配置文件。
- While the image is being displayed.
1042. What do you know about OpenShift Kubernetes Engine?
您了解OpenShift Kubernetes Engine吗?
- 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c0458d557c902bb6942 | 官方: 否 | 付费: 否
答案:
Red Hat's OpenShift Kubernetes Engine allows you to leverage an enterprise-class Kubernetes platform as a production platform for deploying containers. Because OpenShift Kubernetes Engine and OpenShift Container Platform are the same binary distribution, you can download and install them both. OpenShift Kubernetes Engine gives you full access to an enterprise-ready Kubernetes environment that is simple to set up and has a large compatibility test matrix with many of the software components in your data centre.
Red Hat的OpenShift Kubernetes Engine允许您利用企业级Kubernetes平台作为生产平台来部署容器。因为OpenShift Kubernetes Engine和OpenShift Container Platform是相同的二进制发行版,所以您可以同时下载并安装它们。OpenShift Kubernetes Engine让您完全访问一个易于设置的企业就绪Kubernetes环境,并具有与数据中心中许多软件组件的大型兼容性测试矩阵。
OpenShift Kubernetes Engine comes with the same SLAs, bug patches, and protection against common vulnerabilities and faults as the OpenShift Container Platform. Red Hat Enterprise Linux (RHEL) Virtual Datacenter and Red Hat Enterprise Linux CoreOS (RHCOS) entitlements are included with OpenShift Kubernetes Engine, allowing you to employ an integrated Linux operating system with container runtime from the same technology supplier.
OpenShift Kubernetes Engine附带与OpenShift Container Platform相同的SLA、错误补丁以及针对常见漏洞和故障的保护。Red Hat Enterprise Linux(RHEL)虚拟数据中心和Red Hat Enterprise Linux CoreOS(RHCOS)的权益包含在OpenShift Kubernetes Engine中,使您可以采用来自同一技术供应商的集成Linux操作系统和容器运行时。
1043. What are OAuth’s Identity Providers?
OAuth的身份提供者有哪些?
- 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c0458d557c902bb6945 | 官方: 否 | 付费: 否
答案:
The Oauth identity providers are as follows: - LDAP
OAuth身份提供者如下: - LDAP
- Deny All
- HTTP Passwords
- Basic Authentication
- Allow All
1044. What is Volume Security and how does it work?
什么是卷安全性,它如何工作?
- 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c0458d557c902bb6948 | 官方: 否 | 付费: 否
答案:
Volume security refers to ensuring that the PV and PVC of OpenShift projects are secure. In OpenShift, there are primarily four segments that manage volume access. - Supplemental Groups
卷安全性是指确保OpenShift项目中PV和PVC的安全性。在OpenShift中,主要有四个部分管理卷访问。 - 补充组
- fsgroup
- run as a user
- seLinuxOptions
1045. What are the toggles for the features?
功能的切换开关是什么?
- 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c0458d557c902bb694b | 官方: 否 | 付费: 否
答案:
Feature toggles are another common topic in OpenShift interview questions. These are methods for integrating old and new versions of a feature into a single code base. The versions, on the other hand, are surrounded by logic for execution or are depending on elements such as a database switch or a property value. Separating the deployment from usage, single group, and legacy systems, as well as many server groups, is made easier with feature toggles.
功能切换是OpenShift面试问题中另一个常见话题。这些是用于将功能的旧版和新版集成到单一代码库中的方法。然而,这些版本被执行逻辑所包围,或者依赖于数据库开关或属性值等元素。功能切换使得将部署与使用、单一组和遗留系统以及多个服务器组分离变得更加容易。
1046. What distinguishes OpenShift from Kubernetes in terms of its components?
在组件方面,OpenShift与Kubernetes有何区别?
- 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c0458d557c902bb694e | 官方: 否 | 付费: 否
答案:
The Internal registry and Router as an ingress traffic control are the components that distinguish OpenShift from Kubernetes. Learn More .
内部注册表和作为入口流量控制的路由器是区分OpenShift与Kubernetes的组件。了解更多。
1047. What is a build configuration?
什么是构建配置?
- 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c0458d557c902bb6951 | 官方: 否 | 付费: 否
答案:
When a new build is produced, a build configuration describes a single build definition and a collection of triggers. A BuildConfig is a REST object that may be used in a POST to the API server to construct a new instance. A BuildConfig is defined by a build strategy and one or more sources. The process is determined by the strategy, and the sources offer the input.
当产生新构建时,构建配置描述单个构建定义和一组触发器。BuildConfig是一个REST对象,可通过POST发送到API服务器以构造新实例。BuildConfig由构建策略和一个或多个源定义。过程由策略决定,源提供输入。
A BuildConfig is automatically generated for you if you use the web panel or CLI to create your application with OpenShift Container Platform, and it may be updated at any time. Understanding the components of a BuildConfig and the choices accessible to them can be useful if you decide to update your configuration manually later. Thus, Build configuration contains information about a specific build strategy as well as the location of developer-supplied artefacts such as the output image.
如果您使用Web面板或CLI通过OpenShift Container Platform创建应用程序,系统会自动为您生成BuildConfig,并且可以随时更新。如果您决定稍后手动更新配置,了解BuildConfig的组件及其可用选项会很有用。因此,构建配置包含特定构建策略的信息以及开发者提供的工件(如输出镜像)的位置。
1048. What Is Openshift's Downward API?
什么是OpenShift的Downward API?
- 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c0558d557c902bb6956 | 官方: 否 | 付费: 否
答案:
The downward API enables containers to access information about API objects without being bound to the OpenShift Container Platform. The pod's name, namespace, and resource values are examples of such information. Containers can use environment variables or a volume plug-in to consume data from the descending API.
Downward API使容器能够访问有关API对象的信息,而无需绑定到OpenShift Container Platform。Pod的名称、命名空间和资源值就是此类信息的示例。容器可以使用环境变量或卷插件来消费来自下行API的数据。
You can get the following metadata and use it to configure the running pods: - Labels
您可以获取以下元数据并将其用于配置正在运行的Pod: - 标签
- Annotations
- Name of the pod, namespace, and IP address
- Limit information and pod CPU/memory request
- Certain data can be mounted as an environment variable in the pod, while other data can be accessed as files within a volume.
1049. What do you understand by service mesh?
您对服务网格有什么理解?
- 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c0558d557c902bb695b | 官方: 否 | 付费: 否
答案:
In a distributed microservice architecture, a service mesh is the network of microservices that make up applications, as well as the interactions between those microservices. It might be difficult to comprehend and maintain a Service Mesh as it grows in size and complexity.
在分布式微服务架构中,服务网格是组成应用程序的微服务网络,以及这些微服务之间的交互。随着服务网格的规模和复杂性增长,理解和维护它可能变得困难。
Red Hat OpenShift Service Mesh, which is based on the open-source Istio project, adds a translucent layer to current distributed systems without requiring any changes to the service code. By delivering a unique sidecar proxy to relevant services in the mesh that intercepts all network communication between microservices, you can add Red Hat OpenShift Service Mesh functionality to services. The control plane features are used to configure and administer the Service Mesh.
Red Hat OpenShift Service Mesh基于开源Istio项目,为现有分布式系统添加了一个透明层,无需对服务代码进行任何更改。通过向网格中相关服务提供独特的sidecar代理,拦截微服务之间的所有网络通信,您可以为服务添加Red Hat OpenShift Service Mesh功能。控制平面功能用于配置和管理服务网格。
Red Hat OpenShift Service Mesh makes it simple to build a network of deployed services that do the following: - Discovery
Red Hat OpenShift Service Mesh使得构建满足以下条件的已部署服务网络变得简单: - 发现
- Load balancing
- service-to-service authentication
- Failure recovery
- Metrics
Monitoring
Red Hat OpenShift Service Mesh also has more advanced operational features, such as: - A/B testingRed Hat OpenShift Service Mesh还具有更高级的操作功能,例如: - A/B测试
- Canary releases
- Rate limiting
- Access control
End-to-end authentication
Red Hat OpenShift Service Mesh is made up of a data plane and a control plane.Red Hat OpenShift Service Mesh由数据平面和控制平面组成。
The data plane is a set of intelligent proxies that intercept and regulate all inbound and outgoing network communication between microservices in the service mesh and run alongside application containers in a pod. The data plane is designed to intercept all network traffic, both inbound (ingress) and outbound (egress). The data plane's proxies are managed and configured by the control plane. It maintains access control and use regulations, as well as collects the metrics from the service mesh's proxies, and it is the definitive source for configuration.
数据平面是一组智能代理,它们拦截并调节服务网格中微服务之间的所有入站和出站网络通信,并与Pod中的应用程序容器一起运行。数据平面旨在拦截所有网络流量,包括入站和出站。数据平面的代理由控制平面管理和配置。它维护访问控制和使用规定,并收集来自服务网格代理的指标,并且是配置的最终来源。
1050. State the basic steps involved in the lifecycle of the OpenShift Container Platform.
陈述OpenShift Container Platform生命周期中涉及的基本步骤。
- 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c0558d557c902bb695e | 官方: 否 | 付费: 否
答案:
The lifecycle of the OpenShift Container Platform is depicted in the diagram below: - Creating a cluster for the OpenShift Container Platform
OpenShift Container Platform的生命周期如下图所示: - 创建OpenShift Container Platform集群
- Cluster management
- Application development and deployment
- Application scalability
1051. What are platform operators?
什么是平台操作员?
- 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c0558d557c902bb6961 | 官方: 否 | 付费: 否
答案:
Operators are one of the most crucial parts of the OpenShift Container Platform. On the control plane, operators are the preferred technique of packaging, deploying, and managing services. They can also benefit applications that are used by users.
操作员是 OpenShift Container Platform 中最关键的部分之一。在控制平面上,操作员是打包、部署和管理服务的首选技术。它们也有益于用户使用的应用程序。
All cluster functions in OpenShift Container Platform are organised into a set of default platform Operators, also known as cluster Operators. It is responsible for a specific aspect of cluster functionality, such as cluster-wide application logging, Kubernetes control plane administration, or the machine provisioning system. Platform Operators are defined through a ClusterOperator object, which cluster administrators can inspect on the Administration Cluster Settings page of the OpenShift Container Platform web dashboard. For determining cluster functionality, each platform Operator provides a simple API. The Operator hides the complexities of maintaining the component's lifespan. Operators might manage a single component or tens of thousands of components, but the ultimate goal is to reduce operational strain by automating typical tasks.
OpenShift Container Platform 中的所有集群功能都被组织为一组默认的平台操作员,也称为集群操作员。每个操作员负责集群功能的特定方面,例如集群范围的应用程序日志记录、Kubernetes 控制平面管理或机器供应系统。平台操作员通过 ClusterOperator 对象定义,集群管理员可以在 OpenShift Container Platform Web 仪表板的“管理集群设置”页面中检查该对象。为了确定集群功能,每个平台操作员都提供简单的 API。操作员隐藏了维护组件生命周期的复杂性。操作员可能管理单个组件或数万个组件,但最终目标是通过自动化常见任务来减少运维负担。
1052. Define the terms "blue" and "green" deployments.
定义“蓝色”和“绿色”部署的术语。
- 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c0558d557c902bb6964 | 官方: 否 | 付费: 否
答案:
The Blue/Green deployment approach reduces the time it takes to complete a deployment transfer by ensuring that two versions of the application stacks are available at the same time. We can leverage service and routing tiers to seamlessly swap between two running application stacks. As a result, performing a rollback is simple and rapid.
蓝/绿部署方法通过确保两个版本的应用堆栈同时可用,减少了完成部署转移所需的时间。我们可以利用服务和路由层在两个运行中的应用堆栈之间无缝切换。因此,执行回滚简单且快速。
1053. What are the benefits of using Docker And Kubernetes in Openshift?
在 OpenShift 中使用 Docker 和 Kubernetes 有什么好处?
- 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c0558d557c902bb6967 | 官方: 否 | 付费: 否
答案:
Docker aids in the creation of lightweight liner-based containers, while Kubernetes aids in container orchestration and management. Docker and Kubernetes are the foundations of OpenShift. All of the containers are constructed on top of a Docker cluster, which is essentially a Kubernetes service running on top of Linux computers and employing Kubernetes orchestrations. During this procedure, we create a Kubernetes master that manages all of the nodes and deploys containers to all of them. The basic purpose of Kubernetes is to use a different type of configuration file to control the OpenShift cluster and deployment flow. To build and deploy containers on cluster nodes, we use kubectl in the same way that we use the OC command-line interface in Kubernetes.
Docker 有助于创建轻量级的基于容器的镜像,而 Kubernetes 有助于容器编排和管理。Docker 和 Kubernetes 是 OpenShift 的基础。所有容器都是在 Docker 集群之上构建的,这本质上是在 Linux 计算机上运行的 Kubernetes 服务并采用 Kubernetes 编排。在此过程中,我们创建了一个 Kubernetes master,它管理所有节点并将容器部署到所有节点。Kubernetes 的基本目的是使用不同类型的配置文件来控制 OpenShift 集群和部署流程。为了在集群节点上构建和部署容器,我们使用 kubectl,就像在 Kubernetes 中使用 OC 命令行界面一样。
1054. What is HAProxy?
什么是 HAProxy?
- 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c0558d557c902bb696a | 官方: 否 | 付费: 否
答案:
HAProxy is a software-defined load balancer and proxy application that is open source. In OpenShift, it accepts an application's URL route and proxies requests to the appropriate pod to return the needed data to the requesting user.
HAProxy 是一个软件定义的负载均衡器和代理应用,并且是开源的。在 OpenShift 中,它接受应用程序的 URL 路由并将请求代理到适当的 Pod,以将所需数据返回给请求的用户。
HAProxy will accept all incoming connections if our application is scalable. It examines the HTTP protocol to determine to which application instance the connection should be forwarded. This is significant since it allows users to have sticky sessions.
如果我们的应用程序是可伸缩的,HAProxy 将接受所有传入连接。它检查 HTTP 协议以确定连接应转发到哪个应用程序实例。这一点很重要,因为它允许用户拥有粘性会话。
1055. On which platforms can you deploy an OpenShift Container Platform?
你可以在哪些平台上部署 OpenShift Container Platform?
- 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c0558d557c902bb696d | 官方: 否 | 付费: 否
答案:
On the following platforms, you can deploy an OpenShift Container Platform 4.9 cluster that employs installer-provisioned infrastructure: - Amazon Web Services (AWS).
在以下平台上,你可以部署使用安装程序供应的基础设施的 OpenShift Container Platform 4.9 集群:- Amazon Web Services (AWS)。
- Google Cloud Platform (GCP).
- Microsoft Azure.
Red Hat OpenStack Platform (RHOSP) version 13 and 16.
The latest OpenShift Container Platform release supports both the latest RHOSP long-life release and intermediate release. For complete RHOSP release compatibility, see the OpenShift Container Platform on RHOSP support matrix. - Red Hat Virtualization (RHV).最新的 OpenShift Container Platform 版本支持最新的 RHOSP 长期支持版本和中间版本。有关完整的 RHOSP 版本兼容性,请参阅 RHOSP 上的 OpenShift Container Platform 支持矩阵。- Red Hat Virtualization (RHV)。
- VMware vSphere.
- VMware Cloud (VMC) on AWS.
- Bare metal.
1056. What are the security-related features in OpenShift Container Platform that are based on Kubernetes?
OpenShift Container Platform 中基于 Kubernetes 的安全相关功能有哪些?
- 知识点: DevOps/云 (主题: openshift, containers;标签: interviewbit, openshift, topic-specific, containers)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c0558d557c902bb6970 | 官方: 否 | 付费: 否
答案:
The following are security-related features in the OpenShift Container Platform, which are based on Kubernetes: - Multitenancy is a technique for isolating containers at many levels by combining Role-Based Access Controls with network restrictions.
以下是 OpenShift Container Platform 中基于 Kubernetes 的安全相关功能:- 多租户是一种通过在多个级别上隔离容器的技术,它结合了基于角色的访问控制与网络限制。
- Admission plug-ins act as a barrier between an API and people who use it to make requests.
1057. State difference between Search head pooling and Search head clustering.
搜索头池与搜索头集群之间的状态差异。
- 知识点: DevOps/云 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c5758d557c902bc7985 | 官方: 否 | 付费: 否
答案:
Splunk Enterprise instances, also called search heads , distribute search requests to other instances called search peers , that performs the actual data searching and indexing. Results are merged and returned to the user by the search head. You can implement Distributed Search using Search head pooling or Search head clustering in your Splunk deployment.
Splunk企业版实例,也称为搜索头,将搜索请求分发到其他称为搜索对等体的实例,这些实例执行实际的数据搜索和索引。搜索结果由搜索头合并并返回给用户。您可以在Splunk部署中通过搜索头池或搜索头集群实现分布式搜索。
- Search head pooling: Pooling refers to sharing resources in this context. It uses shared storage for configuring multiple search heads to share user data and configuration. Quite simply, it allows you to have multiple search heads so they share user data and configuration. Multiplying search heads facilitate horizontal scaling when a lot of users are searching the same data.
- Search head clustering: In Splunk Enterprise, a search head cluster is a collection of search heads that are used as a centralized resource for searching. All members of the cluster can access and run the same searches, dashboards, and search results.
1058. Name the commands used to enable and disable Splunk boot start.
说出用于启用和禁用Splunk开机启动的命令。
- 知识点: DevOps/云 / 行为与软技能 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
- 类型: behavioral | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c5858d557c902bc7988 | 官方: 否 | 付费: 否
答案:
In order to enable Splunk boot-start, we need to use the following command: $SPLUNK_HOME/bin/splunk enable boot-start
为了启用Splunk开机启动,我们需要使用以下命令:$SPLUNK_HOME/bin/splunk enable boot-start
In order to disable Splunk boot-start, we need to use the following command: $SPLUNK_HOME/bin/splunk disable boot-start
为了禁用Splunk开机启动,我们需要使用以下命令:$SPLUNK_HOME/bin/splunk disable boot-start
Conclusion
结论
Are you looking for a new job or trying to build a career in Splunk? There is no doubt that implementing Splunk will transform your business and catapult it to new heights. Therefore, prepare yourself for the most intense job interview because the competition is fierce.
您是否在寻找新工作或试图在Splunk领域建立职业生涯?毫无疑问,实施Splunk将改变您的业务并使其达到新的高度。因此,请为最激烈的求职面试做好准备,因为竞争非常激烈。
Splunk consultants, Splunk developers, Splunk engineers, Splunk specialists, Information security analysts, etc., are in demand. A Splunk career requires knowledge of architectural and configuration points, Splunk files, indexers, forwarders, and others. Hopefully, these Splunk interview questions will assist you in getting into the flow and preparing for your interview.
Splunk顾问、Splunk开发者、Splunk工程师、Splunk专家、信息安全分析师等职位需求旺盛。Splunk职业要求了解架构和配置要点、Splunk文件、索引器、转发器等知识。希望这些Splunk面试问题能帮助您进入状态并为面试做准备。
Useful Resources: - IoT Interview Questions
有用资源:- IoT面试问题
- IoT Applications
- DevOps Interview Questions
- DevOps Engineer
- Top Data Analytics Tools
- Top Big Data Technologies
- Data Analyst Interview Questions
- Technical Interview Questions
- Coding Interview Questions
1059. Name the commands used to restart Splunk Web Server and Splunk Daemon.
说出用于重启Splunk Web服务器和Splunk守护进程的命令。
- 知识点: DevOps/云 / 行为与软技能 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
- 类型: behavioral | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c5858d557c902bc798c | 官方: 否 | 付费: 否
答案:
In order to restart the Splunk Web Server, we need to use the following command: splunk start splunkweb .
为了重启Splunk Web服务器,我们需要使用以下命令:splunk start splunkweb 。
In order to restart the Splunk Daemon, we need to use the following command: splunk start splunkd .
为了重启Splunk守护进程,我们需要使用以下命令:splunk start splunkd。
1060. Explain how Splunk avoids duplicate indexing of logs.
解释Splunk如何避免对日志进行重复索引。
- 知识点: DevOps/云 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c5858d557c902bc798f | 官方: 否 | 付费: 否
答案:
Essentially, Splunk Fishbucket is a subdirectory within Splunk that is used to monitor and track the extent to which the content of a file has been indexed within Splunk.
本质上,Splunk Fishbucket是Splunk内的一个子目录,用于监控和跟踪文件内容在Splunk中被索引的程度。
The default location of the fish bucket subdirectory is: /opt/splunk/var/lib/splunk
fishbucket子目录的默认位置是:/opt/splunk/var/lib/splunk
It generally includes seeking pointers and CRCs (cyclic redundancy checks) for the files we are indexing so that Splunk knows whether it has already read them.
它通常包含用于索引文件的查找指针和CRC(循环冗余校验),以便Splunk知道是否已经读取过这些文件。
1061. How to reset Splunk Admin (Administrator) password?
如何重置Splunk管理员(Administrator)密码?
- 知识点: DevOps/云 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c5858d557c902bc7992 | 官方: 否 | 付费: 否
答案:
Depending on your Splunk version, you can reset the Admin password. In case you have Splunk 7.1 and higher version, then you need to follow these steps: - Splunk Enterprise must be stopped first.
根据您的Splunk版本,您可以重置管理员密码。如果您使用的是Splunk 7.1及更高版本,则需要遵循以下步骤:- 必须首先停止Splunk Enterprise。
- Find and rename ‘passwd’ file to ‘passwd.bk’.
In the below directory, create a file named 'user-seed.conf':
$SPLUNK_HOME/etc/system/local/ - Enter the following command in the file. 'NEW_PASSWORD' will be replaced by our own new password here.$SPLUNK_HOME/etc/system/local/ - 在文件中输入以下命令。这里的'NEW_PASSWORD'将被替换为我们自己的新密码。
[user_info]
[user_info]
PASSWORD = NEW_PASSWORD - Restart Splunk Enterprise and log in with the new password again.
PASSWORD = NEW_PASSWORD - 重启Splunk Enterprise,并使用新密码重新登录。
If you're using a version prior to 7.1, you need to follow these steps: - Splunk Enterprise must be stopped first.
如果您使用的是7.1之前的版本,则需要遵循以下步骤:- 必须首先停止Splunk Enterprise。- Find and rename ‘passwd’ file to ‘passwd.bk’.
- Use the default credentials of admin/changeme to log in to Splunk Enterprise.
- If you're asked to change your admin username and password, just follow the instructions.
1062. What is the best way to clear Splunk's search history?
清除Splunk搜索历史的最佳方法是什么?
- 知识点: DevOps/云 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c5858d557c902bc7995 | 官方: 否 | 付费: 否
答案:
The following file on the Splunk server needs to be deleted in order to clear Splunk search history: $splunk_home/var/log/splunk/searches.log .
为了清除Splunk搜索历史,需要删除Splunk服务器上的以下文件:$splunk_home/var/log/splunk/searches.log。
1063. Explain how will you set default search time in Splunk 6.
解释如何在Splunk 6中设置默认搜索时间。
- 知识点: DevOps/云 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c5858d557c902bc7998 | 官方: 否 | 付费: 否
答案:
Using 'ui-prefs.conf' in Splunk 6, we can specify the default search time. If we set the value as follows, all users would see it as the default setting: $SPLUNK_HOME/etc/system/local
在Splunk 6中使用'ui-prefs.conf',我们可以指定默认搜索时间。如果我们设置如下值,所有用户都会将其视为默认设置:$SPLUNK_HOME/etc/system/local
For example, if our $SPLUNK_HOME/etc/system/local/ui-prefs.conf file Includes
例如,如果我们的$SPLUNK_HOME/etc/system/local/ui-prefs.conf文件包括
[search]
[搜索]
dispatch.earliest_time = @d
dispatch.earliest_time = @d
dispatch.latest_time = now
dispatch.latest_time = now
The default time range that will appear to all users in the search app is today.
在搜索应用中,所有用户将看到的默认时间范围是“今天”。
1064. What do you mean by buckets? Explain Splunk bucket lifecycle?
你说的“存储桶”是什么意思?请解释 Splunk 存储桶的生命周期?
- 知识点: DevOps/云 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c5858d557c902bc799b | 官方: 否 | 付费: 否
答案:
A bucket is a directory in which Splunk stores index data. Each bucket contains data events in a particular time frame. As data ages, buckets move through different stages as given below:
存储桶是 Splunk 存储索引数据的目录。每个存储桶包含特定时间段内的事件数据。随着数据老化,存储桶会按照以下阶段移动:
- Hot bucket: Newly indexed data is present in a hot bucket. Every index contains one or more hot buckets, and every index is open for writing.
- Warm bucket: This bucket contains data that has been rolled or pulled out of the hot bucket. The warm buckets are numerous.
- Cold bucket: This bucket contains data that has been rolled or pulled out of the warm bucket. The cold buckets are numerous.
- Frozen bucket: This bucket contains data that has been rolled or pulled out of the cold bucket. By default, the indexer removes frozen data, but we can archive it.
Buckets are by default located in: $SPLUNK_HOME/var/lib/splunk/defaultdb/db .
存储桶默认位于:$SPLUNK_HOME/var/lib/splunk/defaultdb/db。
1065. Explain what is a fish bucket and fish bucket index.
解释什么是“鱼桶”和“鱼桶索引”。
- 知识点: DevOps/云 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c5858d557c902bc799e | 官方: 否 | 付费: 否
答案:
Essentially, Splunk Fishbucket is a subdirectory within Splunk that is used to monitor and track the extent to which the content of a file has been indexed within Splunk. For this feature, there are two types of contents: seek pointers and CRCs (cyclic redundancy checks).
基本上,Splunk 鱼桶是 Splunk 内的一个子目录,用于监控和跟踪文件内容在 Splunk 中的索引程度。这一功能涉及两种内容:查找指针和 CRC(循环冗余校验)。
The default location of the fish bucket subdirectory is: /opt/splunk/var/lib/splunk .
鱼桶子目录的默认位置是:/opt/splunk/var/lib/splunk。
You can find it through the GUI (Graphical User Interface) by searching for: index=_thefishbucket .
你可以通过 GUI(图形用户界面)搜索以下内容来找到它:index=_thefishbucket。
1066. What do you mean by SF (Search Factor) and RF (Replication Factor)?
你说的 SF(搜索因子)和 RF(复制因子)是什么意思?
- 知识点: DevOps/云 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c5858d557c902bc79a1 | 官方: 否 | 付费: 否
答案:
SF (Search Factor) & RF (Replication Factor) are terms associated with Clustering techniques i.e., Search head clustering & Indexer clustering. - Search Factor: It is only associated with indexer clustering. It determines how many searchable copies of data the indexing cluster maintains. By default, the value of the search factor is 2.
SF(搜索因子)和 RF(复制因子)是与集群技术相关的术语,即搜索头集群和索引器集群。- 搜索因子:它仅与索引器集群相关,决定索引集群维护多少份可搜索的数据副本。默认情况下,搜索因子的值为 2。
- Replication Factor: It is associated with both Search head clustering & Indexer clustering. In the case of the indexer cluster, replication factor determines the number of copies of the data that an indexer cluster maintains, while in the case of the search head cluster, replication factor determines the minimum number of copies of the search artefacts that a search head cluster maintains. For the replication factor, the default value is 3.
1067. What are Splunk commands and list out some of the basic Splunk commands?
什么是 Splunk 命令?请列举一些基本的 Splunk 命令?
- 知识点: DevOps/云 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c5858d557c902bc79a4 | 官方: 否 | 付费: 否
答案:
Many Splunk commands are available, including those related to searching, correlation, data or indexing, and identifying specific fields. Following are some of the basic Splunk commands:
有许多 Splunk 命令可用,包括与搜索、关联、数据或索引以及识别特定字段相关的命令。以下是 Splunk 的一些基本命令:
- Accum: Maintains a running total of a numeric field.
- Bucketdir: Replaces a field value with a higher-level grouping, just like replacing filenames with directories.
- Chart: Provides results in a tabular format for charting.
- Timechart: Creates a time series chart and the corresponding statistics table.
- Rare: Displays the values that are least common in a field.
- Cluster: Groups/clusters similar events together.
- Delta: Calculates the difference between two search results.
- Eval: Calculates the expression and stores the result in a field.
- Gauge: Converts the output result into a format compatible with gauge chart types.
- K-means: Perform K-means clustering for selected fields.
- Top: Shows/displays the most common values of a field that are mostly used.
1068. Explain what is Dispatch Directory.
解释什么是“调度目录”。
- 知识点: DevOps/云 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c5858d557c902bc79a7 | 官方: 否 | 付费: 否
答案:
A directory is included in the Dispatch Directory for each search that is running or has been completed.
Dispatch Directory 中包含一个目录,用于记录每个正在运行或已完成的搜索。
The Dispatch Directory is configured as follows:
Dispatch Directory 配置如下:
$SPLUNK_HOME/var/run/splunk/dispatch
$SPLUNK_HOME/var/run/splunk/dispatch
Take the example of a directory named 14333208943.348. This directory includes a CSV file of all search results, a search.log containing details/information about the search execution, as well as other pertinent information. You can delete this directory within 10 minutes after the search is completed using the default configuration. Search results are deleted after seven days if you have saved them.
以名为 14333208943.348 的目录为例。该目录包含一个包含所有搜索结果 CSV 文件、一个包含搜索执行详情/信息的 search.log 以及其他相关信息。在默认配置下,您可以在搜索完成后 10 分钟内删除此目录。如果您保存了搜索结果,则这些结果将在七天后被删除。
1069. State difference between ELK and Splunk.
说明 ELK 和 Splunk 之间的区别。
- 知识点: DevOps/云 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c5858d557c902bc79aa | 官方: 否 | 付费: 否
答案:
IT Operations professionals are familiar with Splunk and ELK (ElasticSearch, LogStash, and Kibana), two of the most widely used tools in the area of Operational Data Analytics.
IT 运维专业人员熟悉 Splunk 和 ELK(ElasticSearch、LogStash 和 Kibana),这两者是运维数据分析领域中使用最广泛的两款工具。
ELK vs Splunk -
ELK 与 Splunk 对比 -
| ELK | Splunk |
|---|---|
| ELK is a powerful open-source enterprise platform that combines ElasticSearch, LogStash, and Kibana for searching, visualizing, monitoring, and analyzing machine data. ELK 是一个功能强大的开源企业平台,结合了 ElasticSearch、LogStash 和 Kibana,用于搜索、可视化、监控和分析机器数据。 | The Splunk product is a closed-source tool for searching, visualizing, monitoring, and analyzing machine data. Splunk 产品是一种闭源工具,用于搜索、可视化、监控和分析机器数据。 |
| The elasticsearch tool integrates with Logstash and Kibana to operate similarly to Splunk. Additionally, it can also be integrated with many other tools, such as Datadog, Amazon, Couchbase, Elasticsearch Services, and Contentful, etc. elasticsearch 工具与 Logstash 和 Kibana 集成,操作方式与 Splunk 类似。此外,它还可以与许多其他工具集成,例如 Datadog、Amazon、Couchbase、Elasticsearch Services 和 Contentful 等。 | Additionally, Splunk integrates with several other tools, including Google Anthos, OverOps, Wazuh, PagerDuty, Amazon Guard Duty, etc. 另外,Splunk 还与多种其他工具集成,包括 Google Anthos、OverOps、Wazuh、PagerDuty、Amazon Guard Duty 等。 |
| Some of the largest companies worldwide use ElasticStack to store, analyze, search and visualize data, including Uber, Stack Overflow, Udemy, Shopify, Instacart, and Slank, etc. 全球一些最大的公司使用 ElasticStack 存储、分析、搜索和可视化数据,包括 Uber、Stack Overflow、Udemy、Shopify、Instacart 和 Slank 等。 | In contrast, Splunk is used by a range of companies, including Starbucks, Craftbase, Intuit, SendGrid, Yelp, Rent the Runway, and Blend. 相比之下,Splunk 被多家公司使用,包括 Starbucks、Craftbase、Intuit、SendGrid、Yelp、Rent the Runway 和 Blend。 |
| Wizards and features are not pre-loaded in Elasticsearch. Even so, it doesn't have an interactive user interface, so users must install a plugin or use Kibana with it. Elasticsearch 中没有预装向导和功能。即便如此,它也没有交互式用户界面,因此用户必须安装插件或将其与 Kibana 一起使用。 | It comes preloaded with wizards and features that are easy and reliable to use. They allow managers to manage resources efficiently. 它预装了易于且可靠使用的向导和功能,使管理员能够高效管理资源。 |
| The ELK stack includes Kibana for visualization. Additionally, Kibana offers the same visualization features as Splunk Web UI, such as line charts, tables, etc., that can be presented on a dashboard. ELK 栈包含用于可视化的 Kibana。此外,Kibana 提供与 Splunk Web UI 相同的可视化功能,例如折线图、表格等,这些都可以在仪表板上呈现。 | Splunk Web UI comes with flexible controls that you can use to edit, add, and remove components to your dashboard. XML (Extensible Markup Language) can even be used to customize the application and visualization components on mobile devices. Splunk Web UI 带有灵活的控件,您可以使用这些控件在仪表板上编辑、添加和移除组件。甚至可以使用 XML(可扩展标记语言)在移动设备上自定义应用程序和可视化组件。 |
1070. What do you mean by File precedence in Splunk?
在 Splunk 中,文件优先级是什么意思?
- 知识点: DevOps/云 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c5858d557c902bc79ad | 官方: 否 | 付费: 否
答案:
A developer, administrator, and architect all have to consider file precedence when troubleshooting Splunk. All Splunk configurations are saved in plain text .conf files. Almost every aspect of Splunk's behaviour is determined by configuration files. There can be multiple copies of the same configuration file in a Splunk platform deployment. In most cases, these file copies are layered in directories that might affect users, applications, or the overall system. If you want to modify configuration files, you must know how the Splunk software evaluates those files and which ones have precedence when the Splunk software runs or is restarted.
开发人员、管理员和架构师在排查 Splunk 问题时必须考虑文件优先级。所有 Splunk 配置都保存在纯文本的 .conf 文件中。Splunk 行为的几乎每个方面都由配置文件决定。在一个 Splunk 平台部署中,同一个配置文件可能存在多个副本。在大多数情况下,这些文件副本会分层放置在可能影响用户、应用程序或整个系统的目录中。如果您想修改配置文件,就必须了解 Splunk 软件如何评估这些文件,以及在 Splunk 软件运行或重启时哪些文件具有优先权。
Splunk software considers the context of each configuration file when determining the order of directories to prioritize configuration files. Configuration files can either be operated in a global context or in the context of the current application/user.
Splunk 软件在确定目录优先级顺序时会考虑每个配置文件的上下文。配置文件可以在全局上下文中操作,也可以在当前应用程序/用户的上下文中操作。
Directory priority descends as follows when the file context is global: - System local directory -- highest priority ->
当文件上下文为全局时,目录优先级从高到低如下: - 系统本地目录 -- 最高优先级 ->
- Application local directories ->
- Application default directories ->
System default directory -- lowest priority
Directory priority descends from user to application to system when file context is current application/user: - User directories for the current user -- highest priority ->当文件上下文为当前应用程序/用户时,目录优先级从用户到应用程序再到系统依次降低: - 当前用户的用户目录 -- 最高优先级 ->
- Application directories for the currently running application (local, followed by default) ->
- Application directories for all the other applications (local, followed by default) -- for exported settings only ->
- System directories (local, followed by default) -- lowest priority
1071. Explain what is Splunk Btool.
解释什么是 Splunk Btool。
- 知识点: DevOps/云 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c5858d557c902bc79b0 | 官方: 否 | 付费: 否
答案:
The btool command-line tool can be used to figure out what settings are set on a Splunk Enterprise instance, as well as to see where those settings are configured. Using the Btool command, we can troubleshoot configuration file issues.
btool 命令行工具可用于查明 Splunk Enterprise 实例上设置了哪些设置,以及查看这些设置的配置位置。使用 Btool 命令,我们可以排查配置文件问题。
Conf files, also called Splunk software configuration files, are loaded and merged together to create a functional set of configurations that can be used by Splunk software when executing tasks. Conf files can be placed/found in many different folders under the Splunk installation. Using the on-disk conf files, Btool simulates the merging process and creates a report displaying the merged settings.
Conf 文件(也称为 Splunk 软件配置文件)会被加载并合并在一起,以创建一组功能性配置,供 Splunk 软件在执行任务时使用。Conf 文件可以放置/存在于 Splunk 安装目录下的许多不同文件夹中。Btool 使用磁盘上的 conf 文件模拟合并过程,并生成一个报告,显示合并后的设置。
1072. What do you mean by the Lookup command? State difference between Inputlookup and Outputlookup commands.
Lookup命令是什么意思?请说明Inputlookup和Outputlookup命令之间的区别。
- 知识点: DevOps/云 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
- 类型: technical | 难度: hard | 子类型: coding
- 分类: fullstack
- id: 69b37c5858d557c902bc79b3 | 官方: 否 | 付费: 否
答案:
Splunk lookup commands can be used to retrieve specific fields from an external file (e.g., Python script, CSV file, etc.) to get the value of an event. - Inputlookup: Inputlookup can be used to search the contents of a lookup table (CSV lookup or a KV store lookup). It is used to take input. This command, for instance, could take the product price or product name as input and match it with an internal field like the product ID.
Splunk查找命令可用于从外部文件(例如,Python脚本、CSV文件等)中检索特定字段,以获取事件的值。- Inputlookup:Inputlookup可用于搜索查找表(CSV查找或KV存储查找)的内容。它用于接收输入。例如,该命令可以将产品价格或产品名称作为输入,并将其与内部字段(如产品ID)进行匹配。
- Outputlookup: Conversely, the outputlookup command outputs search results to a specified lookup table, i.e., it places a search result into a specific lookup table.
1073. Name the commands included in the "filtering results” category.
请列出“过滤结果”类别中包含的命令。
- 知识点: DevOps/云 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c5858d557c902bc79b6 | 官方: 否 | 付费: 否
答案:
Below are the commands included in the "filtering results" category: - Search: This command retrieves events from indexes or filters the results of the previous search command. Events can be retrieved from your indexes by using keywords, wildcards, quoted phrases, and key/value expressions.
以下是“过滤结果”类别中包含的命令:- Search:该命令从索引中检索事件,或过滤先前搜索命令的结果。可以通过使用关键字、通配符、引用的短语和键/值表达式从索引中检索事件。
- Sort: The search results are sorted based on the fields that are specified. The results can be sorted in reverse, ascending, or descending order. When sorting, the results can also be limited.
- Where: The 'where' command, however, filters search results using 'eval' expressions. When the 'search' command is used, it retains only those search results for which an evaluation was successful, while the 'where' command enables a deeper investigation of those search results. By using a 'search' command, one can determine the number of active nodes, but the 'where' command will provide a matching condition of an active node that is running a specific application.
- Rex: You can extract specific fields or data from your events using the 'rex' command. For instance, when you want to determine specific fields in an email id, like scaler@interviewbit.co, you can use the 'rex' command. This will distinguish scaler as the user ID, interviewbit.co as the domain, and interviewbit as the company. Rex allows you to slice, split, and break down your events however you like.
1074. State difference between stats vs eventstats command.
请说明stats命令与eventstats命令之间的区别。
- 知识点: DevOps/云 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c5858d557c902bc79b9 | 官方: 否 | 付费: 否
答案:
- Stats: The Stats command in Splunk calculates statistics for every field present in your events (search results) and stores these values in newly created fields.
- Eventstats: Similar to the stats command, this calculates a statistical result. While the Eventstats command is similar to the Stats command, it adds the aggregate results inline to each event (if only the aggregate is relevant to that event).
1075. Name a few important Splunk search commands
请列举几个重要的Splunk搜索命令。
- 知识点: DevOps/云 (主题: splunk, monitoring;标签: interviewbit, splunk, topic-specific, monitoring)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c5858d557c902bc79bc | 官方: 否 | 付费: 否
答案:
Splunk provides the following search commands: - Abstract: It provides a brief summary of the text of the search results. It replaces the original text with the summary.
Splunk提供以下搜索命令:- Abstract:它提供搜索结果文本的简要摘要。它用摘要替换原始文本。
- Addtotals: It sums up all the numerical fields for each result. You can see the results under the Statistics tab. Rather than calculating every numeric field, you can specify a list of fields whose sum you want to compute.
- Accum: It calculates a running total of a numeric field. This accumulated sum can be returned to the same field, or to a new field specified by you.
- Filldown: It will generally replace NULL values with the last non-NULL value for the field or set of fields. Filldown will be applied to all fields if there is no list of fields given.
- Typer: It basically calculates the eventtype field for search results matching a specific/known event type.
- Rename: It renames the specified field. Multiple fields can be specified using wildcards.
- Anomalies: It computes the "unexpectedness" score for a given event. The anomalies command can be used to identify events or field values that are unusual or unexpected.
1076. How will you secure your Docker containers?
你将如何保护你的Docker容器?
- 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c6158d557c902bc7f94 | 官方: 否 | 付费: 否
答案:
Follow these instructions to secure your Docker container: - Choose third-party containers with caution.
按照以下说明来保护你的Docker容器:- 谨慎选择第三方容器。
- Turn on Docker content trust.
- Limit the resources available to your containers.
- Consider utilizing a third-party security product.
Docker Bench Security should be used.
Other than these questions, there are also some questions that are based on your personal understanding of the system if you are an experienced person. The questions can be like this - - How can you strengthen the bond between the operations and IT teams?除了这些问题之外,如果你是有经验的人,还有一些基于你对系统个人理解的问题。这些问题可能是这样的——如何加强运维团队和IT团队之间的联系?
- What is the distinction between site reliability engineers and development operations?
- What actions would you take to develop a monitoring strategy for a service that does not have one?
- How can information technology infrastructure be scaled?
- What type of experience do you have building deployment automation code?
- Why would you want to be an SRE rather than an SDE? What piques your interest in this role? etc.
1077. Explain in detail the working of ARP.
详细解释ARP的工作原理。
- 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c6158d557c902bc7f97 | 官方: 否 | 付费: 否
答案:
Most computer applications employ IP addresses (logical addresses) to send or receive messages, therefore actual communication takes occurs via physical addresses (MAC addresses). So the goal of ARP (Address Resolution Protocol) is to determine the destination's MAC address, which will allow us to interact with other devices. In this scenario, the ARP is truly necessary since it translates the IP address to a physical address. - When the source wishes to interact with the destination at the network layer. First, the source must determine the destination's MAC address (Physical Address). The source will look in the ARP cache and ARP database for the destination's MAC address. If the destination's MAC address is found in the ARP cache or ARP table, the source uses that MAC address for communication.
大多数计算机应用程序使用IP地址(逻辑地址)来发送或接收消息,因此实际通信是通过物理地址(MAC地址)进行的。所以ARP(地址解析协议)的目标是确定目的地的MAC地址,这将使我们能够与其他设备交互。在这种情况下,ARP非常必要,因为它将IP地址转换为物理地址。- 当源设备希望在网络层与目的地交互时。首先,源设备必须确定目的地的MAC地址(物理地址)。源设备会在ARP缓存和ARP数据库中查找目的地的MAC地址。如果在ARP缓存或ARP表中找到目的地的MAC地址,源设备将使用该MAC地址进行通信。
- If the destination's MAC address is not in the ARP cache or table, the Source sends an ARP Request message. The source's MAC address and IP address are included in the ARP Request message. It also includes the destination's IP address and MAC address. The destination's MAC address was left blank since the user desired it.
- The source computer will broadcast the ARP Request message to the local network. The broadcast message is received by all devices on the LAN network. Now, each device compares its own IP address to the destination's IP address. If the device's IP address matches the destination's IP address, the device will send an ARP-to-respond message. If the device's IP address does not match the destination's IP address, the packet is dropped automatically.
- When the destination address matches the device, the destination sends an ARP reply packet. The MAC address of the device is included in the ARP Reply packet. Because the source's MAC address will be required for communication, the destination device automatically changes the database and saves it.
- The source device now serves as a target for the destination device, which sends the ARP Reply message.
- The ARP Reply message is sent unicast rather than broadcast. This is due to the fact that the device (destination) sending the ARP Reply message is aware of the MAC address of the device (source) to whom the ARP Reply message is delivered.
- When the source device receives the ARP Reply message, it will know the destination's MAC address since the ARP Reply packet contains the destination's MAC address along with the other addresses. The source will update the destination's MAC address in the ARP cache. The sender can now connect directly with the recipient.
1078. What is Consistent Hashing?
什么是一致性哈希?
- 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c6158d557c902bc7f9a | 官方: 否 | 付费: 否
答案:
Consistent hashing is a technique that helps you to maintain database integrity by ensuring that every read operation will always return the same result.
一致性哈希是一种技术,通过确保每次读取操作总是返回相同的结果来帮助维护数据库完整性。
In database systems, consistent hashing is a way of keeping data in sync by ensuring that each piece of data has been hashed in the same way. In other words, if you have two database tables, A and B, and you want to ensure that both tables have the same data, then you need to hash all of the entries in both tables together (A and B). This ensures that every time you read from table A, it will be returned with the same hash value. If another user then goes to read from table B, they will get the same hash value back. As long as there are no changes to either table, this means both tables should have the same data.
在数据库系统中,一致性哈希是一种通过确保每条数据都以相同方式哈希来保持数据同步的方法。换句话说,如果你有两个数据库表A和B,并且你想确保两个表具有相同的数据,那么你需要将两个表中的所有条目一起进行哈希(A和B)。这确保了每次从表A读取时,都会返回相同的哈希值。如果另一个用户随后读取表B,他们也会得到相同的哈希值。只要两个表都没有变化,这意味着两个表应该具有相同的数据。
1079. Where does caching take place in servers? And what is cache invalidation?
缓存在哪里发生在服务器中?什么是缓存失效?
- 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c6158d557c902bc7f9d | 官方: 否 | 付费: 否
答案:
Caching is the act of storing data that changes infrequently in memory so that it can be used later. It's often used to speed up performance and reduce network traffic.
缓存是将不频繁变化的数据存储在内存中以便以后使用的行为。它通常用于提高性能并减少网络流量。
Caching can take place at different levels within a server: - In front-end web servers, when a page is requested, the page's content is cached in memory.
缓存可以发生在服务器内的不同级别:- 在前端Web服务器中,当请求一个页面时,页面的内容会被缓存在内存中。
In back-end web servers, when a page is requested, the contents of the cache are checked to see if the contents are still valid. If they are, then no request needs to be made. Instead, the cached data can be served right away. If the cached data has changed since being stored in the cache, then it needs to be updated before it can be served.
Cache invalidation is also an important part of caching in servers. Cache invalidation involves checking to see if the cached content still holds true and if it needs to be updated before serving it again.缓存失效也是服务器中缓存的重要组成部分。缓存失效涉及检查缓存内容是否仍然有效,以及在再次提供服务之前是否需要更新。
Caching can improve performance for any application that uses persistent data or relies on a heavy number of requests per second (RPS). By reducing these numbers, caching allows your server to complete more requests per second without having to spend as much time loading data into memory and parsing it.
缓存可以提升任何使用持久数据或依赖高每秒请求数(RPS)的应用的性能。通过降低这些数字,缓存使服务器能够在不必花费大量时间将数据加载到内存并解析的情况下,完成更多每秒请求。
1080. Describe the Sharding process. How does sharding improve performance?
描述分片过程。分片如何提升性能?
- 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c6158d557c902bc7fa0 | 官方: 否 | 付费: 否
答案:
Sharding is a method of dividing a database into multiple pieces. Each piece stores a subset of the data, which can be used to run different types of queries.
分片是一种将数据库划分为多个部分的方法。每个部分存储数据的一个子集,可用于运行不同类型的查询。
Sharding makes it possible to distribute the workload across many more servers. This can reduce the time it takes to process queries and improve performance.
分片使得将工作负载分布到更多服务器上成为可能。这可以减少处理查询所需的时间并提升性能。
Sharding is also useful when you need to store a large number of small objects (e.g., objects with low cardinality). In this case, each object is stored in its own piece, and only one piece can be read at a time.
当需要存储大量小对象(例如,基数较低的对象)时,分片也很有用。在这种情况下,每个对象存储在自己的部分中,并且一次只能读取一个部分。
Sharding can be used to improve performance in two main ways: - By running several smaller jobs on a single machine, it becomes possible to spread out the load between many machines.
分片可以通过两种主要方式提升性能: - 在单台机器上运行多个较小的作业,使得负载可以在多台机器之间分散。
- By storing objects in separate pieces, it becomes possible to read only the piece that needs to be accessed at any given time.
1081. Explain three-tier architecture along with its real-time uses of it?
解释三层架构及其实时用途是什么?
- 知识点: DevOps/云 / 行为与软技能 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
- 类型: behavioral | 难度: hard | 子类型: system-design
- 分类: fullstack
- id: 69b37c6158d557c902bc7fa3 | 官方: 否 | 付费: 否
答案:
- A three-tier architecture is a type of architecture in which the application logic is separated from the data storage and retrieval. The three-tier architecture can be implemented in a wide range of business applications, including CRM, e-commerce, and enterprise resource planning (ERP).
- The three-tier architecture is often used when there are many different types of data that need to be stored, such as customer data and product data. By separating the different types of data into different tiers, it becomes easier to manage and maintain the data.
- A three-tier architecture can be a useful tool for monitoring IT systems. As each tier in the architecture has its own distinct purpose, it can be easier to keep track of what’s happening within each tier. This makes it easier to detect problems that might have otherwise gone unnoticed.
- In addition, a three-tier architecture can help provide better visibility into how all the tiers are working together. For example, if you need to troubleshoot an issue with your company’s website, it will be easier to do so if you have easy access to all the information that needs to be looked at as a separate logic.
1082. What are containers in servers?
服务器中的容器是什么?
- 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c6158d557c902bc7fa6 | 官方: 否 | 付费: 否
答案:
Containers in the server are like a virtual machine that runs an application. A container can be compared with a virtual machine because it provides an environment for running applications. However, containers are different from virtual machines in many ways. First, containers are much more lightweight than virtual machines. They take up far less space on disk and use fewer CPU resources. Second, containers don’t need to be preinstalled on a server. Therefore, they can be deployed quickly and easily. Third, containers can run on any type of hardware, from desktop computers to high-end servers. Finally, containers can only be used for running specific applications and not for general-purpose computing tasks like email or word processing.
服务器中的容器类似于运行应用程序的虚拟机。容器可以与虚拟机进行比较,因为它提供了运行应用的环境。然而,容器在许多方面与虚拟机不同。首先,容器比虚拟机轻量得多。它们占用的磁盘空间更少,并且使用更少的CPU资源。其次,容器不需要预装在服务器上。因此,它们可以快速且轻松地部署。第三,容器可以在任何类型的硬件上运行,从台式计算机到高端服务器。最后,容器只能用于运行特定应用程序,而不能用于通用计算任务,如电子邮件或文字处理。
Having said all these differences between containers and virtual machines, one thing is certain: Containers are the future of server infrastructure!
尽管说了容器和虚拟机之间的所有这些差异,但有一件事是确定的:容器是服务器基础设施的未来!
When it comes to deploying modern enterprise applications in today's digital world, container technology has proven itself to be the most reliable solution. From deployment speed to stability to security controls, container technology offers unparalleled advantages over traditional virtualization methods. While there are numerous vendors providing solutions that enable the creation of containers (e.g., Docker), there is no single standard or protocol that governs container technology. This lack of standardization presents challenges when trying to deploy containerized applications across multiple organizations or even within an organization's own data centers.
在当今数字世界中部署现代企业应用时,容器技术已证明自己是最可靠的解决方案。从部署速度到稳定性再到安全控制,容器技术提供了传统虚拟化方法无法比拟的优势。虽然有众多供应商提供了支持创建容器的解决方案(例如,Docker),但没有一个单一的标准或协议来管理容器技术。这种标准化缺乏在尝试跨多个组织或甚至在一个组织内部的数据中心部署容器化应用时带来了挑战。
1083. What does Virtualization means?
虚拟化是什么意思?
- 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c6158d557c902bc7fa9 | 官方: 否 | 付费: 否
答案:
Virtualization is the process of using one physical system to run multiple virtual machines. It is commonly used by companies that want to consolidate computing resources and keep them running 24/7 without having to buy more hardware. Virtualization can also be used for testing purposes, such as for software development or system performance testing.
虚拟化是使用一个物理系统来运行多个虚拟机的过程。它通常被希望整合计算资源并使其24/7运行而无需购买更多硬件的公司所使用。虚拟化也可以用于测试目的,例如软件开发或系统性能测试。
Virtualization can be used in a number of different ways, from simple setups where multiple virtual machines run on the same physical server, to complex setups that use multiple servers and virtual networks. The end goal is always the same: reducing overhead costs and improving overall IT infrastructure efficiency. Virtualization can also be used to create hybrid environments where physical servers are augmented by cloud-based services.
虚拟化可以以多种不同方式使用,从多个虚拟机在相同物理服务器上运行的简单设置,到使用多个服务器和虚拟网络的复杂设置。最终目标始终相同:减少开销成本并提高整体IT基础设施效率。虚拟化也可以用于创建混合环境,其中物理服务器通过基于云的服务得到增强。
There are many different types of virtualization technology available today, including: - VMware - This is one of the most popular virtualization technologies available today. It runs on almost any platform and is easy to install and manage. It’s also very cost-effective because it leverages a lot of existing hardware and software infrastructure already in place.
当今有多种不同类型的虚拟化技术可用,包括: - VMware - 这是当今最流行的虚拟化技术之一。它几乎可以在任何平台上运行,并且易于安装和管理。它也非常具有成本效益,因为它利用了已经存在的大量现有硬件和软件基础设施。
- Windows Server - Windows Server is a common choice for virtualizing Microsoft applications because it has built-in support for Hyper-V, making it easy to deploy and manage. There are also several third-party solutions available to further augment administrator capabilities.
- Hyper-V - This is another option that’s popular with organizations looking to virtualize their servers. While it’s not as widely used as Hyper-V, it’s still an option that’s worth exploring if you’re looking for a low-cost way to virtualize. It’s one of the newer options available, so it might not be as widely accepted as the others but it’s still a valid option.
1084. What are SLA and SLI?
什么是SLA和SLI?
- 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c6158d557c902bc7fac | 官方: 否 | 付费: 否
答案:
- A service-level agreement (SLA) is a commitment we make to a client about uptime. These are frequently legally specified, with consequences for failing to meet the desired availability. As a result, SLAs are typically established with values that are simpler to satisfy than SLOs.
- A service-level indicator (SLI) is anything that can be precisely measured to assist you in thinking about, defining, and determining if you are satisfying SLOs and SLAs. They are commonly presented as the ratio of the number of excellent occurrences to the total number of events. A simple example would be the number of successful HTTP requests divided by the total number of HTTP queries. SLIs are typically stated as a percentage, with 0 indicating that everything is broken and 100 indicating that everything is operating flawlessly.
1085. What are SNAT and DNAT?
什么是 SNAT 和 DNAT?
- 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c6158d557c902bc7faf | 官方: 否 | 付费: 否
答案:
Source Network Address Translation (SNAT) - It is a network function that maps an internal IP address to an external IP address. It often occurs at the edge of the network, where a device is connected to the public Internet. SNAT enables a device to “see” the outside world by translating its internal IP address into the external IP address of the router or server that serves it.
源网络地址转换(SNAT)——这是一种网络功能,将内部 IP 地址映射到外部 IP 地址。它通常发生在网络边缘,即设备连接到公共互联网的地方。SNAT 通过将设备的内部 IP 地址转换为服务于它的路由器或服务器的外部 IP 地址,使设备能够“看到”外部世界。
- With SNAT enabled, a device can use the public Internet to communicate with other devices on the Internet.
SNAT also allows a device to receive data sent by other devices on the Internet, even if they are behind a firewall that blocks all incoming connections.
Destination network address translation (DNAT) - It is a technology that allows a server to have multiple IP addresses in different networks. DNAT allows a server to be located in one location but maps its IP address to the IP address of another location. DNAT can be used for many purposes, including load balancing, site-to-site VPN connectivity, and security.目的网络地址转换(DNAT)——这是一种允许服务器在不同网络中拥有多个 IP 地址的技术。DNAT 允许服务器位于一个位置,但将其 IP 地址映射到另一个位置的 IP 地址。DNAT 可用于多种目的,包括负载均衡、站点到站点 VPN 连接和安全。
- The primary benefit of DNAT is that it can be used to load balance traffic across multiple servers. By translating the server’s public IP address into multiple private IP addresses, it is possible to have multiple servers at the same location function as though they were all located elsewhere. This allows for failover and redundancy without adding additional hardware or network infrastructure.
1086. What is Observability? And what are the different types of Observability? ANd how can you improve the observability of the system?
什么是可观测性?可观测性有哪些不同类型?以及如何提高系统的可观测性?
- 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c6158d557c902bc7fb2 | 官方: 否 | 付费: 否
答案:
Observability is the term used to describe the ability of an organization to track real-time events and metrics within a system. Systems that are more Observable are able to capture data from devices within the organization, such as smartphones and tablets. This data can then be used to track activities within the organization, such as the number of employees who log into work each day.
可观测性是用来描述组织跟踪系统内实时事件和指标能力的术语。可观测性更强的系统能够捕获来自组织内设备(如智能手机和平板电脑)的数据。这些数据随后可用于跟踪组织内的活动,例如每天登录工作的员工人数。
There are many different types of observability within an organization, including: - Real-time monitoring: This type of observability allows users in the organization to monitor what is happening in real time. This includes things like the number of people who visit a website on their phone or tablet.
组织内有多种不同类型的可观测性,包括:- 实时监控:这种类型的可观测性允许组织内的用户实时监控正在发生的事情。这包括诸如通过手机或平板电脑访问网站的人数等内容。
- Historical monitoring: This type of observability allows users in the organization to view data from previous periods. This type of observability may be most useful when tracking financial transactions, such as how much money has been spent over time.
System-wide monitoring: This type of observability can be used across all devices in an organization, including phones and computers. System-wide monitoring allows users in the organization to view data across all devices within the organization.
We can increase the observability of the organization by - - Recognize the sorts of data that flow from an environment and which of those data types are relevant and valuable to your observability goals.我们可以通过以下方式提高组织的可观测性——识别环境中流动的数据类型,以及哪些数据类型与你的可观测性目标相关且有价值。
Determine how your strategy is making sense of data by distilling, filtering, and translating it into actionable insights regarding the performance of your systems.
Observability can provide helpful information about an organization's DevOps maturity level.可观测性可以提供关于组织 DevOps 成熟度的有用信息。
1087. Define INodes. Also, state the reason why it is important.
定义 inode。同时,说明其重要的原因。
- 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c6158d557c902bc7fb5 | 官方: 否 | 付费: 否
答案:
Inodes are the units of storage on a Linux filesystem. Every file, directory, and block device has an inode associated with it, which is essentially a pointer to where the file is located in the filesystem. Inodes also have other properties such as their size and owner and group ID. If a file or directory is deleted, the inode will be marked as deleted and all data associated with that inode will be removed as well.
inode 是 Linux 文件系统上的存储单位。每个文件、目录和块设备都有一个与之关联的 inode,它本质上是指向文件在文件系统中位置的指针。inode 还具有其他属性,如大小、所有者和组 ID。如果文件或目录被删除,inode 将被标记为已删除,与该 inode 关联的所有数据也将被移除。
Inodes are an important resource for both performance and security. There are a number of reasons why they can be important: - For performance, inodes are used to determine how much space a file occupies, so they can be used to optimize the placement of files that are likely to change frequently. When a file is created or moved between partitions, it must go through the inode stage first.
inode 对于性能和安全性都是重要资源。它们重要的原因有很多:- 对于性能,inode 用于确定文件占用多少空间,因此可用于优化可能频繁变化的文件的放置位置。当文件被创建或在不同分区之间移动时,它必须先经过 inode 阶段。
For security, there are two main roles for inodes: indexing and ACLs (access control lists). Indexing allows tools like locate or grep to quickly find files by name or location. ACLs allow users to control access to their files based on permissions assigned by their system administrator. In addition, having all files written to disk as soon as they are modified can help prevent data loss due to power outages or other unforeseen events.
Finally, while most people might assume that inodes are used primarily for storing data on disk drives, Inodes are also used to track metadata about every file on your computer, as well as directories and other objects stored on your computer’s hard drive. This data is used to keep track of which files have been deleted, modified, or copied, and can also be used to determine the overall health and performance of your computer.最后,虽然大多数人可能认为 inode 主要用于在磁盘驱动器上存储数据,但 inode 也用于跟踪计算机上每个文件以及目录和存储在计算机硬盘上的其他对象的元数据。这些数据用于跟踪哪些文件已被删除、修改或复制,也可用于确定计算机的整体健康状况和性能。
1088. Explain TCP. Also, different TCP connection states.
解释 TCP 以及不同的 TCP 连接状态。
- 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c6158d557c902bc7fb8 | 官方: 否 | 付费: 否
答案:
A TCP connection state is a relationship between a client TCP endpoint and a server TCP endpoint. These states are defined by the TCP three-way handshake process. The three-way handshake process allows TCP to establish a connection between two endpoints, where one side initiates a connection setup using an SYN packet, while the other side responds with an ACK packet. Once both sides have sent and received their respective SYN and ACK packets, an established connection is created. After the connection is established, a client can initiate data transfer over this connection by initiating a FIN packet, which will cause the server to send back an ACK packet indicating that all outstanding data has been successfully received and stored in memory. This process of sending and receiving packets works as long as there is no unexpected network congestion or other unforeseen events that cause either side to disconnect.
TCP 连接状态是客户端 TCP 端点和服务器 TCP 端点之间的关系。这些状态由 TCP 三次握手过程定义。三次握手过程允许 TCP 在两个端点之间建立连接,其中一侧使用 SYN 数据包发起连接设置,而另一侧使用 ACK 数据包进行响应。一旦双方都发送并接收了各自的 SYN 和 ACK 数据包,就建立了已建立的连接。连接建立后,客户端可以通过发起 FIN 数据包在此连接上启动数据传输,这将导致服务器发回 ACK 数据包,表明所有未完成的数据已成功接收并存储在内存中。只要没有意外的网络拥塞或其他导致任一侧断开连接的不可预见事件,这种发送和接收数据包的过程就能正常工作。
The different states of a TCP connection are defined as follows: - LISTEN - The server is listening on a certain port, such as port 80 for HTTP.
TCP 连接的不同状态定义如下:- LISTEN——服务器正在监听某个端口,例如用于 HTTP 的端口 80。
- SYNC-SENT - Sent an SYN request and is awaiting a response.
- RECEIVED SYN - (Server) Waiting for an ACK occurs after the server sends an ACK.
- ESTABLISHED - The three-way TCP handshake has been finished.
1089. Define Service Level Indicators.
定义服务级别指标。
- 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c6158d557c902bc7fbb | 官方: 否 | 付费: 否
答案:
Service Level Indicators are the key measurements that show if service is on track. Without them, it’s difficult to know if the organization is meeting its objectives.
服务级别指标是显示服务是否按计划进行的关键度量。没有它们,就很难知道组织是否在达成目标。
There are three main types of SLIs: Availability, Response Time, and Quality of Service. - Availability measures how often a given service can be provided without causing downtime.
主要有三种类型的SLI:可用性、响应时间和服务质量。 - 可用性衡量某个给定服务在不导致停机的情况下可提供的频率。
- Response time measures how quickly service is delivered.
And the quality of service measures how well a given effort meets certain standards of quality.
In addition to these three main types of SLIs, there are also limits on usage and capacity, which measure how much a given resource can be used at any given time. This can be useful for determining if there is enough capacity in the system to handle the additional demand.除了这三种主要类型的SLI外,还有使用量和容量限制,它们衡量在任何给定时间内某个给定资源可被使用的量。这可用于确定系统中是否有足够容量来应对额外需求。
1090. Explain the term SLO.
解释术语SLO。
- 知识点: DevOps/云 (主题: sre, devops, reliability;标签: interviewbit, sre, topic-specific, devops, reliability)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c6158d557c902bc7fbe | 官方: 否 | 付费: 否
答案:
A Service Level Objective (SLO) is a measure of how good or bad the service quality is, and it is usually expressed as a percentage. It shows how close the actual performance of the service level is to what was expected. An SLO is typically set by the customer, but can also be set by management as a way to monitor performance.
服务级别目标(SLO)是衡量服务质量好坏的一种度量,通常以百分比表达。它显示了服务级别的实际性能与预期性能的接近程度。SLO通常由客户设定,但也可能由管理层设定作为监控性能的方式。
SLOs are important because they can help organizations understand when they are underperforming, and they can also help them set targets for improvement. By setting targets, managers have something to strive toward and can motivate employees to work harder.
SLO很重要,因为它们可以帮助组织了解何时表现不佳,还可以帮助设定改进目标。通过设定目标,管理者有了努力方向,并能激励员工更加努力工作。
When you’re setting up an SLO, remember that it’s not just about what your customers are getting right now—it’s also about what they could be getting right in the future. So think about both short-term and long-term goals when making your SLO.
在设置SLO时,请记住这不仅关乎客户当前获得的服务—还关乎他们未来可能获得的服务。因此在制定SLO时,要考虑短期和长期目标。
The main objective of SLO is to ensure that customers receive quality service, as measured by the: - Completeness of order fulfilment.
SLO的主要目标是确保客户获得优质服务,可通过以下方式衡量: - 订单履行的完整性。
- Quality of product.
- Timeliness of delivery.
- Accuracy and completeness of the information provided to customers.
- Communication and support provided by employees.
1091. How can you prevent Duplicate Resource Error in Terraform?
在Terraform中如何防止重复资源错误?
- 知识点: DevOps/云 (主题: terraform, iac, devops;标签: interviewbit, terraform, topic-specific, iac, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c7a58d557c902bc8caf | 官方: 否 | 付费: 否
答案:
Depending on the situation and the necessity, it can be accomplished in one of three ways. - By destroying the resource, the Terraform code will no longer manage it.
根据情况和必要性,可以通过三种方式之一实现。 - 通过销毁资源,Terraform代码将不再管理它。
- By removing resources from APIs
Importing action will also aid in resource elimination.
Useful Resources - Kubernetes有用资源 - Kubernetes
- AWS
- Azure
- Devops
- Terraform Tutorial
- Terraform Download
- Complete Technical Interview Guide
1092. What do you understand about remote backend in the context of Terraform?
在Terraform上下文中,你如何理解远程后端?
- 知识点: DevOps/云 (主题: terraform, iac, devops;标签: interviewbit, terraform, topic-specific, iac, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c7a58d557c902bc8cb2 | 官方: 否 | 付费: 否
答案:
Terraform's remote backend stores terraform state and can also conduct operations in the terraform cloud. terraform commands such as init, plan, apply, destroy , get, output, providers, state (sub-commands: list, mv, pull, push, rm, show), taint, untaint, validate, and many others can be run from a remote backend. It can be used with a single or several remote terraform cloud workspaces. You can utilise terraform cloud's run environment to conduct remote operations like terraform plan or terraform apply.
Terraform的远程后端存储Terraform状态,并且还可以在Terraform云中执行操作。诸如init、plan、apply、destroy、get、output、providers、state(子命令:list、mv、pull、push、rm、show)、taint、untaint、validate等Terraform命令可以从远程后端运行。它可以与单个或多个远程Terraform云工作区一起使用。你可以利用Terraform云的运行环境来执行如terraform plan或terraform apply等远程操作。
1093. What procedures should be taken to make a high-level object from one module available to the other module?
应采取哪些步骤使一个模块中的高级对象对另一个模块可用?
- 知识点: DevOps/云 (主题: terraform, iac, devops;标签: interviewbit, terraform, topic-specific, iac, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c7a58d557c902bc8cb5 | 官方: 否 | 付费: 否
答案:
The steps to make an object from one module available to the other module at a high level are as follows: - The first step is to define an output variable in a resource configuration. The scope of local and to a module will not be declared until you define resource configuration details.
使一个模块中的对象在高级级别对另一个模块可用的步骤如下: - 第一步是在资源配置中定义输出变量。局部变量和模块作用域在定义资源配置详细信息之前不会被声明。
- Now you must specify the output variable of module A so that it can be utilised in the setup of other modules. You should establish a fresh new and up-to-date key name, with a value that is equal to the output variable of module A.
- You must now create a file named variable.tf for module B. Create an input variable with the exact same name as the key you defined in module B inside this file. This variable permits the resource's dynamic setting in a module. Replicate the process to make this variable available to other modules as well. This is because the scope of the variable established here is limited to module B.
1094. When something goes wrong, how will you control and handle rollbacks in Terraform?
当出现问题时,你如何在Terraform中控制和回滚?
- 知识点: DevOps/云 (主题: terraform, iac, devops;标签: interviewbit, terraform, topic-specific, iac, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c7a58d557c902bc8cb8 | 官方: 否 | 付费: 否
答案:
In our Version Control System, we need to recommit the previous code version to make it the new and current one. This would start the terraform run command, which would execute the old code. Because Terraform is more declarative, we will make sure that everything in the code reverts to its previous state. If the state file becomes corrupted, we would use Terraform Enterprise's State Rollback feature to restore the previous state.
在我们的版本控制系统中,我们需要重新提交之前的代码版本,使其成为新的当前版本。这将启动 terraform 运行命令,执行旧代码。由于 Terraform 更具声明性,我们将确保代码中的所有内容都恢复到之前的状态。如果状态文件损坏,我们将使用 Terraform Enterprise 的状态回滚功能来恢复之前的状态。
1095. What do you know about Terraform core? What are the primary responsibilities of Terraform core?
你对 Terraform 核心了解多少?Terraform 核心的主要职责是什么?
- 知识点: DevOps/云 (主题: terraform, iac, devops;标签: interviewbit, terraform, topic-specific, iac, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c7a58d557c902bc8cbb | 官方: 否 | 付费: 否
答案:
Terraform Core is a binary created in the Go programming language that is statically compiled. The compiled binary is the terraform command line tool (CLI), which is the starting point for anyone who wants to use Terraform. The source code can be found at github.com/hashicorp/terraform.
Terraform Core 是一个用 Go 编程语言创建并静态编译的二进制文件。这个编译后的二进制文件就是 terraform 命令行工具(CLI),是任何想使用 Terraform 的人的起点。源代码可以在 github.com/hashicorp/terraform 找到。
The primary responsibilities of Terraform core includes: - Reading and interpolating configuration files and modules using infrastructure as code
Terraform 核心的主要职责包括:- 使用基础设施即代码读取和插值配置文件及模块
- Management of the state of resources
- Resource Graph Construction
- Execution of the plan
- Communication with plugins through RPC
1096. Explain State File Locking in the context of Terraform.
请解释 Terraform 上下文中的状态文件锁定。
- 知识点: DevOps/云 (主题: terraform, iac, devops;标签: interviewbit, terraform, topic-specific, iac, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c7b58d557c902bc8cbe | 官方: 否 | 付费: 否
答案:
Terraform's state file locking method prevents conflicts between numerous users doing the same task by blocking activities on a given state file. When one user unlocks the lock, only the other user has access to that state. Terraform will lock your state for any operations that potentially write state if your backend supports it. This prevents outsiders from gaining access to the lock and corrupting your state. All operations that have the potential to write state are automatically locked. There will be no indication that this is happening. Terraform will not continue if state locking fails. The -lock flag can be used to deactivate state locking for most tasks, although it is not advised. Terraform will send a status message if gaining the lock takes longer than planned. If your backend enables state locking, even if Terraform doesn't send a message, it still happens.
Terraform 的状态文件锁定方法通过阻止对给定状态文件的操作,防止多个用户执行相同任务时发生冲突。当一个用户解锁锁定后,只有其他用户才能访问该状态。如果你的后端支持,Terraform 会对任何可能写入状态的操作锁定你的状态。这可以防止外部人员获得锁并破坏你的状态。所有可能写入状态的操作都会自动锁定。不会对此有任何提示。如果状态锁定失败,Terraform 不会继续执行。对于大多数任务,可以使用 -lock 标志停用状态锁定,但不建议这样做。如果获取锁的时间超过预期,Terraform 会发送状态消息。如果你的后端启用了状态锁定,即使 Terraform 不发送消息,锁定仍然会发生。
1097. What do you know about Terragrunt? What are its uses?
你对 Terragrunt 了解多少?它的用途是什么?
- 知识点: DevOps/云 (主题: terraform, iac, devops;标签: interviewbit, terraform, topic-specific, iac, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c7b58d557c902bc8cc1 | 官方: 否 | 付费: 否
答案:
Terragrunt is a lightweight wrapper that adds extra features for maintaining DRY configurations, dealing with many Terraform modules, and managing remote state.
Terragrunt 是一个轻量级包装器,为维护 DRY 配置、处理多个 Terraform 模块以及管理远程状态添加了额外功能。
Following are the use cases of Terragrunt: - To Keep Our Background Configuration DRY (Don’t Repeat Yourself): By setting your backend configuration once in a root location and inheriting that information in all child modules, Terragrunt helps you to keep it DRY ("Don't Repeat Yourself").
以下是 Terragrunt 的用例:- 保持我们的后台配置 DRY(不要重复自己):通过在根位置设置一次后端配置,并在所有子模块中继承该信息,Terragrunt 帮助你保持其 DRY(“不要重复自己”)。
- To Keep Our Provider Configuration DRY: It might be difficult to unify provider configurations across all of your modules, especially if you wish to alter authentication credentials. You may use Terragrunt to refactor common Terraform code and keep your Terraform modules DRY by using it. The provider configurations can be defined once at a root location, just like the backend configuration.
- To Keep Our Terraform Command Line Interface arguments DRY: In the Terraform universe, CLI flags are another typical source of copy/paste. It can be difficult and error-prone to have to remember these -var-file options every time. By declaring your CLI parameters as code in your terragrunt.hcl settings, Terragrunt helps you to keep your CLI arguments DRY.
- To Promote Terraform modules that are immutable and versioned across environments: Large modules should be considered hazardous, according to one of the most important lessons we've learnt from building hundreds of thousands of lines of infrastructure code. That is, defining all of your environments (dev, stage, prod, and so on) or even a huge amount of infrastructure (servers, databases, load balancers, DNS, and so on) in a single Terraform module is a Bad Idea. Large modules are slow, insecure, difficult to update, code review, test, and are brittle. Terragrunt lets you define your Terraform code once and then promote a versioned, immutable "artifact" of that code from one environment to the next.
1098. Explain the command terraform fmt in the context of Terraform.
在 Terraform 上下文中解释 terraform fmt 命令。
- 知识点: DevOps/云 (主题: terraform, iac, devops;标签: interviewbit, terraform, topic-specific, iac, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c7b58d557c902bc8cc4 | 官方: 否 | 付费: 否
答案:
Terraform configuration files are rewritten using the terraform fmt command in a consistent structure and style. This command uses a subset of the Terraform language style conventions, as well as some small readability tweaks. Other Terraform commands that produce Terraform configuration will produce files that follow the terraform fmt style, therefore following this style in your own files will assure consistency. Because formatting selections are always subjective, you may disagree with terraform fmt's choices. This command is purposely opinionated and lacks customization options because its primary goal is to promote stylistic consistency throughout Terraform codebases, even though the chosen style will never be everyone's favourite.
使用 terraform fmt 命令以一致的结构和风格重写 Terraform 配置文件。该命令使用 Terraform 语言风格约定的子集,以及一些小的可读性调整。其他生成 Terraform 配置的 Terraform 命令会生成遵循 terraform fmt 风格的文件,因此在自己的文件中遵循这种风格将确保一致性。因为格式化选择总是主观的,你可能不同意 terraform fmt 的选择。该命令刻意固执己见且缺乏自定义选项,因为它的主要目标是促进整个 Terraform 代码库的风格一致性,即使所选风格永远不会是每个人的最爱。
Syntax:
语法:
terraform fmt [options] DIR
terraform fmt [选项] 目录
By default, fmt looks for configuration files in the current directory. If the dir option is provided, it will instead scan the specified directory.
默认情况下,fmt 在当前目录中查找配置文件。如果提供了目录选项,它将改为扫描指定目录。
The following are the flags that are available: - -list=false - This option doesn't show files with discrepancies in formatting.
以下是可用的标志:- -list=false - 此选项不显示格式存在差异的文件。
- -write=false - This option prevents the input files from being overwritten. (When the input is STDIN or -check, this is implied.)
- -diff - Shows the differences in formatting modifications.
- -check - Verifies that the input is properly formatted. If all input is properly formatted, the exit status will be 0, else it will be non-zero.
- -recursive - Process files from subdirectories as well.
1099. What do you mean by a Virtual Private Cloud (VPC)? Which command do you use in Terraform to use a VPC service?
什么是虚拟私有云(VPC)?你在 Terraform 中使用哪个命令来使用 VPC 服务?
- 知识点: DevOps/云 (主题: terraform, iac, devops;标签: interviewbit, terraform, topic-specific, iac, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c7b58d557c902bc8cc7 | 官方: 否 | 付费: 否
答案:
A Virtual Private Cloud (VPC) is a private virtual network within AWS where you can store all of your AWS services. It will have gateways, route tables, network access control lists (ACL), subnets, and security groups, and will be a logical data centre in AWS. When you create a service on a public cloud, it is effectively open to the rest of the world and can be vulnerable to internet attacks. You lock your instances down and secure them from outside threats by putting them inside a VPC. The VPC limits the types of traffic, IP addresses, and individuals who have access to your instances.
虚拟私有云(VPC)是 AWS 内的一个私有虚拟网络,你可以在其中存储所有 AWS 服务。它将包含网关、路由表、网络访问控制列表(ACL)、子网和安全组,并成为 AWS 中的逻辑数据中心。当你在公共云上创建服务时,它实际上对世界其他地方开放,可能容易受到互联网攻击。通过将实例放入 VPC 中,你可以锁定实例并保护它们免受外部威胁。VPC 限制了流量类型、IP 地址以及有权访问你实例的个人。
This stops unauthorised users from accessing your resources and protects you from DDOS assaults. Because not all services require internet connection, they can be safely stored within a private network. You can then only allow particular machines to connect to the internet.
这可以阻止未经授权的用户访问您的资源,并保护您免受DDOS攻击。由于并非所有服务都需要互联网连接,它们可以安全地存储在私有网络内。然后,您只能允许特定机器连接互联网。
We use the command aws_vpc to use a VPC Service in Terraform.
我们使用 aws_vpc 命令在 Terraform 中使用 VPC 服务。
1100. Differentiate between Terraform and Ansible.
区分 Terraform 和 Ansible。
- 知识点: DevOps/云 (主题: terraform, iac, devops;标签: interviewbit, terraform, topic-specific, iac, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c7b58d557c902bc8cca | 官方: 否 | 付费: 否
答案:
Ansible : Ansible is a remarkably straightforward IT automation technology. Configuration management, application deployment, cloud provisioning, ad-hoc task execution, network automation, and multi-node orchestration are all handled by this software. Complex modifications, such as zero-downtime rolling updates with load balancers, are simple using Ansible.
Ansible:Ansible 是一种非常简单的 IT 自动化技术。配置管理、应用程序部署、云资源调配、临时任务执行、网络自动化和多节点编排都由该软件处理。使用 Ansible,复杂的修改(例如带负载均衡器的零停机滚动更新)也非常简单。
Following table lists the differences between Ansible and Terraform:
下表列出了 Ansible 和 Terraform 之间的差异:
| Terraform | Ansible |
|---|---|
| Terraform is a tool for provisioning. Terraform 是一种资源调配工具。 | Ansible is a tool for managing configurations. Ansible 是一种配置管理工具。 |
| It uses a declarative Infrastructure as Code methodology. 它采用声明式基础设施即代码方法。 | It takes a procedural method. 它采用过程式方法。 |
| It's ideal for orchestrating cloud services and building cloud infrastructure from the ground up. 它非常适合编排云服务并从零开始构建云基础设施。 | It is mostly used to configure servers with the appropriate software and to update resources that have previously been configured. 它主要用于为服务器配置合适的软件,以及更新之前已配置的资源。 |
| By default, Terraform does not allow bare metal provisioning. 默认情况下,Terraform 不支持裸机资源调配。 | The provisioning of bare metal servers is supported by Ansible. Ansible 支持裸机服务器的资源调配。 |
| In terms of packing and templating, it does not provide better support. 在打包和模板化方面,它提供不了更好的支持。 | It includes complete packaging and templating support. 它包含完整的打包和模板化支持。 |
| It is strongly influenced by lifecycle or state management. 它受生命周期或状态管理的强烈影响。 | It doesn't have any kind of lifecycle management. It does not store the state. 它没有任何形式生命周期管理。它不存储状态。 |
1101. Explain the command terraform taint in the context of Terraform.
在 Terraform 的上下文中解释 terraform taint 命令。
- 知识点: DevOps/云 (主题: terraform, iac, devops;标签: interviewbit, terraform, topic-specific, iac, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c7b58d557c902bc8ccd | 官方: 否 | 付费: 否
答案:
Terraform receives notification from the terraform taint command that a specific item has been degraded or damaged. This is represented by Terraform designating the item as "tainted" in the Terraform state, in which case Terraform will suggest replacing it in the next plan you write. If you want to compel the replacement of a specific object despite the fact that no configuration modifications are required, using the terraform apply -replace option is preferred.
Terraform 会通过 terraform taint 命令收到通知,表明某个特定项目已降级或损坏。这通过 Terraform 在 Terraform 状态中将该项目标记为“已污染”来表示,在这种情况下,Terraform 会在您编写的下一个计划中建议替换它。如果您想强制替换某个特定对象,即使不需要任何配置修改,使用 terraform apply -replace 选项是更好的选择。
Utilizing the "replace" option while creating a plan is preferable to using terraform taint because it allows you to see the entire impact of the alteration before taking any externally visible action. When you utilise terraform taint to achieve a similar impact, you run the danger of someone else on your team devising a new strategy to counter your tainted object before you've had a chance to consider the implications.
在创建计划时使用“replace”选项优于使用 terraform taint,因为它允许您在采取任何外部可见操作之前查看更改的全部影响。当您使用 terraform taint 来实现类似效果时,您面临着团队中其他人在您有机会考虑影响之前制定新策略来对抗您标记的污染对象的风险。
Syntax:
语法:
terraform taint [options] address
terraform taint [options] address
The address option specifies the location of the infected resource. The following options are available with this command: - -allow-missing - Even if the resource is absent, the command will succeed (exit code 0) if it is supplied. Other scenarios, such as a problem reading or writing the state, may cause the command to return an error.
address 选项指定受影响资源的位置。此命令提供以下选项:- -allow-missing - 即使资源不存在,如果提供了该选项,命令也会成功(退出代码为 0)。其他情况,例如读取或写入状态时出现问题,可能导致命令返回错误。
- -lock=false - Turns off Terraform's default behaviour of attempting to lock the state for the duration of the operation.
- -lock-timeout=DURATION - Instructs Terraform to reattempt procuring a lock for a period of time before issuing an error, unless locking is disabled with -lock=false. A number followed by a time unit letter, such as "3s" for three seconds, is the duration syntax.
1102. Differentiate between Terraform and Cloudformation.
区分 Terraform 和 CloudFormation。
- 知识点: DevOps/云 (主题: terraform, iac, devops;标签: interviewbit, terraform, topic-specific, iac, devops)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: fullstack
- id: 69b37c7b58d557c902bc8cd1 | 官方: 否 | 付费: 否
答案:
The following points highlight the differences between Terraform and Cloudformation:
以下几点突出了 Terraform 和 CloudFormation 之间的差异:
- User-friendliness: Terraform encompasses numerous Cloud Service Providers such as AWS, Azure, Google Cloud Platform, and many more, while CloudFormation is limited to AWS services. Terraform covers the majority of AWS resources.
Based on language:
CloudFormation employs either JSON or YAML as a language. CloudFormation is now simple to read and manage. However, AWS developers are restricted from creating CloudFormation templates that are more than 51MB in size. Developers must establish a layered stack for the templates if the template exceeds this size restriction.CloudFormation 使用 JSON 或 YAML 作为语言。目前,CloudFormation 易于阅读和管理。然而,AWS 开发者受限,无法创建超过 51MB 大小的 CloudFormation 模板。如果模板超过此大小限制,开发者必须为模板建立分层堆栈。
Terraform, on the other hand, makes use of Hashicorp's own HCL language (Hashicorp Configuration Language). This language is also JSON compatible.
另一方面,Terraform 使用 Hashicorp 自己的 HCL 语言(Hashicorp 配置语言)。该语言也与 JSON 兼容。State-management:
Because CloudFormation is an AWS managed service, it examines the infrastructure on a regular basis to see if the provisioned infrastructure is still in good shape. If anything changes, CloudFormation receives a thorough response.由于 CloudFormation 是 AWS 托管服务,它会定期检查基础设施,以确认所调配的基础设施是否仍然处于良好状态。如果发生任何变化,CloudFormation 会收到详细的响应。
Terraform, on the other hand, saves the state of the infrastructure on the provisioning machine, which can be either a virtual machine or a remote computer. The state is saved as a JSON file, which Terraform uses as a map to describe the resources it manages.
另一方面,Terraform 将基础设施的状态保存在配置机器上,该机器可以是虚拟机或远程计算机。状态以 JSON 文件形式保存,Terraform 将其用作描述所管理资源的映射。
To summarise, Cloudformation's state is managed out-of-the-box by CloudFormation, which prevents conflicting updates. Terraform stores the state on a local disk, which makes it easier to synchronise the state. Terraform states can also be saved in storage services like S3, which is another recommended practice for state management. This must be defined on the backend, making management easier and safer.
总之,CloudFormation 的状态由 CloudFormation 自带管理,从而防止冲突更新。Terraform 将状态存储在本地磁盘上,这使得状态同步更加容易。Terraform 状态也可以保存在像 S3 这样的存储服务中,这是另一种推荐的状态管理实践。这必须在后端定义,使管理更简单、更安全。- Cost:The nicest aspect about both of these tools is that they are both completely free. Both of these technologies have sizable communities that provide plenty of help and examples. Cloudformation is completely free. The only expense that consumers pay is for the AWS service that CloudFormation provides. Terraform is a completely free and open-source application. Terraform, on the other hand, includes a premium enterprise version with more collaboration and governance features.
- Integration of Multiple Clouds:Terraform is the way to go if you want to supply services across several cloud platforms. While Terraform works with a variety of cloud providers, including AWS, GCP, Azure, and others, CloudFormation is exclusive to AWS. Cloudformation is not for you if your setup includes several cloud installations. If you're using AWS resources like EC2, S3, and so on, you should stick to Cloudformation.
1103. Explain the architecture of Terraform request flow.
解释 Terraform 请求流的架构。
- 知识点: DevOps/云 (主题: terraform, iac, devops;标签: interviewbit, terraform, topic-specific, iac, devops)
- 类型: technical | 难度: hard | 子类型: system-design
- 分类: fullstack
- id: 69b37c7b58d557c902bc8cd7 | 官方: 否 | 付费: 否
答案:
A request in Terraform undergoes the following steps as shown in the diagram:
Terraform 中的请求按图中所示经历以下步骤:
Following are the different components in the above architecture:
以下是上述架构中的不同组件:
Command Line Interface (CLI):
命令行界面(CLI):
CLI (Common Language Interface) (command package)
CLI(命令行界面)(command 包)
Aside from some early bootstrapping in the root package (not shown in the diagram), when a user starts the terraform application, execution jumps right into one of the command package's "command" implementations. The commands.go file in the repository's root directory contains the mapping between user-facing command names and their respective command package types.
除了根包中的一些早期引导(图中未显示)之外,当用户启动 terraform 应用程序时,执行会直接跳转到 command 包中某个“命令”实现。仓库根目录中的 commands.go 文件包含面向用户的命令名称与其各自 command 包类型之间的映射。
The job of the command implementation for these commands is to read and parse any command line arguments, command-line options, and environment variables required for the given command and use them to generate a backend.operation object. The operation is then transferred to the backend that is currently selected.
这些命令的命令实现的工作是读取并解析给定命令所需的任何命令行参数、命令行选项和环境变量,并使用它们生成一个 backend.operation 对象。然后,该操作被转移到当前选定的后端。
Backends:
后端:
In Terraform, a backend has a variety of responsibilities: - Carry out operations (e.g. plan, apply)
在 Terraform 中,后端有多种职责:- 执行操作(例如 plan、apply)
- To save workspace-defined variables
To save state
The local backend retrieves the current state for the workspace specified in the operation using a state manager (either statemgr.Filesystem if the local backend is being used directly, or an implementation provided by whatever backend is being wrapped), then uses the config loader to load and do initial processing/validation of the configuration specified in the operation. It then constructs a terraform.context object using these, as well as the other parameters specified in the procedure. The main object actually executes Terraform operations.本地后端使用状态管理器(如果直接使用本地后端,则为 statemgr.Filesystem,如果是被包装的后端,则为该后端提供的实现)检索操作中指定工作区的当前状态,然后使用配置加载器加载并对操作中指定的配置进行初始处理和验证。然后,它使用这些参数以及流程中指定的其他参数构建一个 terraform.context 对象。该主对象实际执行 Terraform 操作。
Configuration Loader :
配置加载器:
Model types in package configs represent the top-level configuration structure. configs.Config represents an entire configuration (the root module and all of its child modules). Although the configs package offers some low-level functionality for creating configuration objects, the major entry point is via configload.Loader, which is found in the sub-package configload. When a configuration is loaded by a backend, a loader takes care of all the complexities of installing child modules (during terraform init) and then locating those modules again. It takes the path to a root module and loads all of the child modules in a recursive manner to create a single configs.
configs 包中的模型类型表示顶层配置结构。configs.Config 表示整个配置(根模块及其所有子模块)。尽管 configs 包提供了一些低级功能来创建配置对象,但主要入口是通过位于子包 configload 中的 configload.Loader。当后端加载配置时,加载器负责处理安装子模块(在 terraform init 期间)然后再次定位这些模块的所有复杂性。它接受根模块的路径,并以递归方式加载所有子模块以创建单个 configs。
State Manager:
状态管理器:
The state manager is in charge of storing and retrieving snapshots of a workspace's Terraform state. Each manager is an implementation of a subset of the statemgr package's interfaces, with most practical managers implementing the entire set of statemgr.Full's operations . The smaller interfaces are mostly for use in other function signatures to be specific about what actions the function might perform on the state manager; there's no reason to design a state manager that doesn't implement all of statemgr. Full.
状态管理器负责存储和检索工作区 Terraform 状态的快照。每个管理器都是 statemgr 包接口子集的实现,大多数实际管理器实现 statemgr.Full 操作的整个集合。较小的接口主要用于其他函数签名中,以具体说明函数可能对状态管理器执行的操作;没有理由设计一个不实现所有 statemgr.Full 的状态管理器。
Graph Builder:
图构建器:
The terraform.Context method invokes a graph builder. A graph builder is used to represent the essential steps for that operation and the dependence relationships between them. Because the graph-building process differs by operation, each has its own graph builder. A "plan" operation, for example, requires a graph created directly from the configuration, whereas an "apply" action creates its graph from the set of modifications stated in the plan being applied.
该 terraform.Context 方法会调用图构建器。图构建器用于表示该操作的基本步骤以及它们之间的依赖关系。由于构建图的过程因操作不同而异,因此每个操作都有其自己的图构建器。例如,“计划”操作需要直接从配置创建的图,而“应用”操作则根据所应用的计划中声明的修改集来创建其图。
Graph Walk:
图遍历:
The graph walking method visits each vertex of the graph in a fashion that respects the graph's "happens after" edges. Each vertex in the graph is assessed in such a way that the "happens after" edges are taken into account. The graph walk method will assess many vertices at the same time if possible.
图遍历方法会以尊重图中“后发生”边的方式访问每个顶点。图中的每个顶点都会在考虑到“后发生”边的情况下进行评估。若可能,图遍历方法会同时评估多个顶点。
Vertex Evaluation:
顶点评估:
During a graph walk, the action executed for each vertex is referred to as execution. Execution performs a series of random operations that make sense for a given vertex type. Before the graph walk begins evaluating further vertices with "happens after" edges, a vertex must be complete correctly. When one or more errors occur during evaluation, the graph walk is interrupted and the errors are returned to the user.
在图遍历过程中,为每个顶点执行的操作被称为执行。执行会进行一系列对特定顶点类型有意义的随机操作。在图遍历开始,评估带有“后发生”边的其他顶点之前,某顶点必须正确完成。若评估过程中出现一个或多个错误,图遍历将被中断,错误将返回给用户。
1104. What is VDI?
什么是 VDI?
- 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: general
- 公司: VMware
- id: 69b37c8c58d557c902bc94e7 | 官方: 否 | 付费: 否
答案:
With VDI (Virtual Desktop Infrastructure), users can host a desktop operating system (OS) on a server and access VM-based desktops remotely from different devices and locations. VDI is a type of IaaS (Infrastructure as a Service), which can be run in a private or public cloud. When VDI is used, the end-user can access his or her desktops via a device called a thin client.
借助 VDI(虚拟桌面基础设施),用户可以在服务器上托管桌面操作系统(OS),并从不同设备和位置远程访问基于 VM 的桌面。VDI 是一种 IaaS(基础设施即服务),可以在私有云或公有云中运行。使用 VDI 时,最终用户可以通过称为瘦客户端的设备访问其桌面。
1105. How many CPUs can be used for a VM in FT in vSphere 7.0?
在 vSphere 7.0 的 FT 中,一个 VM 可以使用多少个 CPU?
- 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: general
- 公司: VMware
- id: 69b37c8c58d557c902bc94ea | 官方: 否 | 付费: 否
答案:
In VMware vSphere 7.0, up to 8 vCPUs can be used with the VMware vSphere Enterprise Plus license.
在 VMware vSphere 7.0 中,使用 VMware vSphere Enterprise Plus 许可证时最多可使用 8 个 vCPU。
1106. Explain FT logging traffic.
请解释 FT 日志记录流量。
- 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: general
- 公司: VMware
- id: 69b37c8c58d557c902bc94ed | 官方: 否 | 付费: 否
答案:
For VMware FT, fault tolerance logging traffic is considered as the second network requirement. For continuous data syncing between primary and secondary VMs, Fault Tolerance applies FT logging. Additionally, this is a VMkernel connection type used to move nondeterministic events from primary to secondary VMs.
对于 VMware FT,容错日志记录流量被视为第二项网络要求。为了在主虚拟机与辅助虚拟机之间持续同步数据,容错机制会应用 FT 日志记录。此外,这是一种 VMkernel 连接类型,用于将非确定性事件从主虚拟机移动到辅助虚拟机。
1107. What is the difference between vSphere and vCenter?
vSphere 和 vCenter 之间有什么区别?
- 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: general
- 公司: VMware
- id: 69b37c8c58d557c902bc94f0 | 官方: 否 | 付费: 否
答案:
- VMware vSphere: It's an enterprise-scale virtualization platform that lets you build a reliable and resilient infrastructure to meet pretty much any business need while staying within your budget. Vsphere adds important capabilities to data center infrastructure that prevent unplanned downtime and can completely eliminate maintenance and storage downtime.
- VMware vCenter: It is a centralized platform used to manage virtual infrastructure. From a single console, you can control all your hosts and virtual machines, enhancing visibility and preventing errors. Even if you are managing a large-scale environment, vCenter Server lets you optimize routine operations and daily tasks. As a result of this functionality, you are able to get a detailed understanding of how your environment is configured.
1108. Will FT (Fault Tolerance) work if the vCenter server goes down?
如果 vCenter Server 宕机,FT(容错)还能正常工作吗?
- 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: general
- 公司: VMware
- id: 69b37c8c58d557c902bc94f3 | 官方: 否 | 付费: 否
答案:
Fault Tolerance on a VM can only be enabled through the vCenter Server. FT does not require vCenter to be online once configured. Due to this fact, no FT failure between the primary and the secondary will occur when vCenter is down.
虚拟机的容错功能只能通过 vCenter Server 启用。一旦配置完成,FT 并不要求 vCenter 保持在线。因此,当 vCenter 宕机时,主虚拟机与辅助虚拟机之间不会发生 FT 故障。
1109. What is the use of vMotion?
vMotion 的用途是什么?
- 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: general
- 公司: VMware
- id: 69b37c8c58d557c902bc94f6 | 官方: 否 | 付费: 否
答案:
VMware's VMotion technology enables you to migrate active virtual machines from one ESX-host to another without disrupting service or functionality. During this process, there is zero downtime, constant service availability, and overall transaction integrity. vMotion technology plays a key role in creating a dynamic, automated, and self-optimizing data center and provides great flexibility for virtual environments. Ensure that both hardware and software requirements are met by the cloud provider. The compatibility requirements are reduced if powered-off VMs are migrated.
VMware 的 VMotion 技术使您能够将活动虚拟机从一台 ESX 主机迁移到另一台,而不会中断服务或功能。在此过程中,停机时间为零,服务持续可用,整体事务完整性得到保证。vMotion 技术在创建动态、自动化且自我优化的数据中心方面发挥着关键作用,并为虚拟环境提供了极大的灵活性。请确保云提供商满足硬件和软件要求。如果迁移的是已关闭电源的虚拟机,则兼容性要求会降低。
1110. What will happen if vMotion fails?
如果 vMotion 失败会发生什么?
- 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: general
- 公司: VMware
- id: 69b37c8c58d557c902bc94f9 | 官方: 否 | 付费: 否
答案:
A virtual machine will not be migrated if the target host does not have enough memory i.e., vMotion fails. This can be fixed by moving the VM to another ESXi host providing guaranteed memory, or by reducing the virtual machine's memory reservation.
如果目标主机没有足够的内存,虚拟机将不会被迁移,即 vMotion 失败。可以通过将虚拟机迁移到另一台能够提供保证内存的 ESXi 主机,或减少虚拟机的内存预留来解决此问题。
1111. Explain Promiscuous mode.
请解释混杂模式。
- 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: general
- 公司: VMware
- id: 69b37c8c58d557c902bc94fc | 官方: 否 | 付费: 否
答案:
A promiscuous mode is network security, monitoring, and administration method that allows any network adapter configured on a host system to access all network data packets. You can specify it at the virtual switch or port group level in vSphere ESX/ESXi. Essentially, promiscuous mode is a method of monitoring (sniffing) network traffic. You have two options: accept or reject. Additionally, all communication will be visible to all virtual machines if the promiscuous mode is set to accept.
混杂模式是一种网络安全、监控和管理方法,允许主机系统上配置的任何网络适配器访问所有网络数据包。您可以在 vSphere ESX/ESXi 中的虚拟交换机或端口组级别进行指定。本质上,混杂模式是一种监控(嗅探)网络流量的方法。您有两个选项:接受或拒绝。此外,如果将混杂模式设置为接受,所有通信将对所有虚拟机可见。
1112. There are several features such as DRS (Distributed Resource Scheduler), SMP (Symmetric Multi-Processing), VMotion, etc., but why do we need ‘HA’?
已有 DRS(分布式资源调度器)、SMP(对称多处理)、VMotion 等多项功能,为什么我们还需要“HA”?
- 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
- 类型: technical | 难度: hard | 子类型: system-design
- 分类: general
- 公司: VMware
- id: 69b37c8c58d557c902bc94ff | 官方: 否 | 付费: 否
答案:
VMware HA is critical for us since we need uninterrupted service. Let's suppose that one of the ESX servers in the cluster crashes suddenly for some reason. What would happen to the virtual machines running on that server? Do they continue running or are they falling? Likewise, they go down too. Thankfully, VMware HA allows you to restart these VM's on any other ESX server in the same cluster as soon as they fail.
VMware HA 对我们至关重要,因为我们需要不间断的服务。假设集群中的某台 ESX 服务器因某种原因突然崩溃。该服务器上运行的虚拟机会怎样?它们是继续运行还是会宕机?同样,它们也会宕机。幸运的是,VMware HA 允许您在这些虚拟机发生故障时,立即在同一集群中的任何其他 ESX 服务器上重新启动它们。
1113. What is the importance of snapshots in VMware?
快照在 VMware 中的重要性是什么?
- 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: general
- 公司: VMware
- id: 69b37c8c58d557c902bc9504 | 官方: 否 | 付费: 否
答案:
VMware snapshots allow you to quickly and easily save the state of a VM before making changes. A snapshot is taken when upgrading or installing software. In VMware snapshots, the current state of the virtual machine is preserved, so after testing, the machine can be quickly reverted to the desired state. After a specific task is completed, a snapshot should be removed to improve performance.
VMware 快照允许您在进行更改之前快速轻松地保存虚拟机的状态。在升级或安装软件时会创建快照。在 VMware 快照中,虚拟机的当前状态会被保留,因此测试后可以快速将机器恢复到所需状态。完成特定任务后,应删除快照以提高性能。
1114. What are vSS and vDS?
什么是 vSS 和 vDS?
- 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: general
- 公司: VMware
- id: 69b37c8c58d557c902bc9507 | 官方: 否 | 付费: 否
答案:
To connect virtual machines, VMware vSphere offers two types of virtual switches. vSphere administrators can control the traffic between VMware virtual machines using either type of virtual switch. - vSphere Standard Switch (VSS): VSS is the default virtual switch when ESXi is installed. The switch allows VMs installed on one physical host to communicate with one another. The switch controls how a VM communicates with another VM on the same physical server, just as a physical switch would.
要连接虚拟机,VMware vSphere 提供两种类型的虚拟交换机。vSphere 管理员可以使用任一种虚拟交换机来控制 VMware 虚拟机之间的流量。- vSphere 标准交换机(VSS):VSS 是安装 ESXi 时的默认虚拟交换机。该交换机允许安装在一个物理主机上的虚拟机相互通信。该交换机控制虚拟机如何与同一物理服务器上的另一台虚拟机通信,就像物理交换机一样。
- vSphere Distributed Switch (VDS): It acts as the single switch in a virtual environment and provides central provisioning, administrative, and monitoring capabilities for virtual networks. Additionally, it supports advanced networking features in VMware vSphere.
1115. What do you mean by VMware HA and VMware FT? Difference between them.
VMware HA 和 VMware FT 是什么意思?它们之间的区别。
- 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: general
- 公司: VMware
- id: 69b37c8c58d557c902bc950a | 官方: 否 | 付费: 否
答案:
- VMware HA (High availability): It generally works on Cluster Level. By pooling VMs and the hosts they reside on into a cluster, VMware HA provides high availability for VMs. VMs running on a failed host are forced to be restarted on alternate hosts.
- VMware FT (Fault Tolerance): It generally works on VM Level. In this, a secondary VM is created and maintained that is identical to the primary and can replace it when the ESXi host fails to provide continuous availability of VMs. A complete copy of a VM is made, including storage, computation, and memory. To configure FT, a 10GB NIC is recommended.
Difference between VMware HA and VMware FT-
VMware HA 和 VMware FT 之间的区别-
- While VMware HA is enabled per cluster, VMware FT is enabled per VM.
- VMware HA works on cluster level whereas VMware FT works on VM level.
- An HA system will restart and power on VMs on another host in the event of a failure, while an FT system will activate the second copy in case of a loss of the primary host. By providing fast backup and continuous availability, it reduces downtime.
1116. What do you mean by vCloud Suite?
vCloud Suite 是什么意思?
- 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: general
- 公司: VMware
- id: 69b37c8c58d557c902bc950d | 官方: 否 | 付费: 否
答案:
vCloud Suite is often described as an enterprise-grade cloud and management solution. It is a collection of multiple VMware components to build and provide a completely integrated cloud infrastructure, that includes virtualization, software-defined datacenter services, disaster recovery, application management, etc.
vCloud Suite 通常被描述为企业级云和管理解决方案。它是多个 VMware 组件的集合,用于构建和提供完全集成的云基础设施,包括虚拟化、软件定义数据中心服务、灾难恢复、应用程序管理等。
1117. Why use VMware Workstation?
为什么要使用 VMware Workstation?
- 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: general
- 公司: VMware
- id: 69b37c8c58d557c902bc9510 | 官方: 否 | 付费: 否
答案:
VMware Workstation is software that allows users to run multiple operating systems on the same host computer. Virtual machines are capable of running one instance of any operating system such as Microsoft, Linux, etc.
VMware Workstation 是一款允许用户在同一台主机上运行多个操作系统的软件。虚拟机能够运行任何操作系统的一个实例,例如 Microsoft、Linux 等。
Here are three reasons why VMware workstation is useful: - Allows the user to run more than one operating system on the same computer.
以下是 VMware Workstation 有用的三个原因:- 允许用户在同一台计算机上运行多个操作系统。
- It saves the current OS configuration as virtual machines.
- You can work across different OSs without switching.
1118. Why use virtual machines instead of original hardware?
为什么要使用虚拟机而不是原始硬件?
- 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: general
- 公司: VMware
- id: 69b37c8c58d557c902bc9513 | 官方: 否 | 付费: 否
答案:
In the absence of virtualization, it would be impossible to run multiple operating systems at once, such as Windows and Linux. Virtual machines serve mainly the purpose of running multiple operating systems concurrently on a single piece of hardware. Splitting a physical server into multiple units reduces the need to invest in additional units. You can also use VMs to enable rapid disaster recovery and automatic backups of your data.
在没有虚拟化的情况下,不可能同时运行多个操作系统,例如 Windows 和 Linux。虚拟机的主要目的是在单一硬件上同时运行多个操作系统。将物理服务器拆分为多个单元减少了对额外单元投资的需求。您还可以使用虚拟机来实现快速灾难恢复和数据的自动备份。
1119. What is the major advantage of VM running under a type 1 hypervisor than type 2 hypervisor?
在类型 1 虚拟机监控程序下运行的虚拟机相比类型 2 虚拟机监控程序的主要优势是什么?
- 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: general
- 公司: VMware
- id: 69b37c8c58d557c902bc9516 | 官方: 否 | 付费: 否
答案:
- Type-1 Hypervisor: It acts as a lightweight OS and runs directly on the host system. A base server OS is not required, and direct hardware access is available. Its example includes VMware ESXi, Citrix XenServer, etc.
- Type-2 Hypervisor: It cannot run directly on the underlying host system, but can run as an application layer on a host system, similar to other computer programs. Its example includes VMware player or parallel desktop, VMware Server, etc.
Advantages of using Type-1 over Type-2 Hypervisor:
使用类型 1 而非类型 2 虚拟机监控程序的优势:
It is more secure to use type-1 hypervisors since they do not rely on the underlying OS, unlike type-2 hypervisors. The type 2 server also loses some efficiency, performance, and speed due to this dependency. So, if you're under attack, a type-1 hypervisor will give you better protection than a type-2 hypervisor.
使用类型 1 虚拟机监控程序更安全,因为与类型 2 虚拟机监控程序不同,它们不依赖底层操作系统。由于这种依赖性,类型 2 服务器还会损失一些效率、性能和速度。因此,如果您受到攻击,类型 1 虚拟机监控程序将比类型 2 虚拟机监控程序提供更好的保护。
1120. What do you mean by RDM?
RDM 是什么意思?
- 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: general
- 公司: VMware
- id: 69b37c8c58d557c902bc9519 | 官方: 否 | 付费: 否
答案:
The Raw Device Mapping (RDM) files are contained in VMFS and act as proxies for raw physical devices. This feature enables VMware's virtual machines (VMs) to access logical unit numbers (LUNs) directly. This eliminates the need to use the virtual machine file system (VMFS) because the LUN can be formatted using any file system like NTFS (New Technology File System). It is generally beneficial for cluster configurations including VM-to-VM, physical-to-VM, or SAN (Storage Area Network) snapshots. But it has some limitations, including the inability to map disk partitions and possibly not working with direct-attached block devices.
原始设备映射(RDM)文件包含在 VMFS 中,并充当原始物理设备的代理。此功能使 VMware 的虚拟机(VM)能够直接访问逻辑单元号(LUN)。这消除了使用虚拟机文件系统(VMFS)的需要,因为 LUN 可以使用任何文件系统进行格式化,例如 NTFS(新技术文件系统)。它通常有利于集群配置,包括 VM 到 VM、物理到 VM 或 SAN(存储区域网络)快照。但它有一些限制,包括无法映射磁盘分区,并且可能无法与直接连接的块设备一起工作。
The figure above shows that an RDM disk exists as an address mapping file on a VMFS volume. This mapping file acts as a symbolic link between a VM's access to an RDM disk to LUNs.
上图显示,RDM 磁盘在 VMFS 卷上以地址映射文件的形式存在。该映射文件充当虚拟机访问 RDM 磁盘与 LUN 之间的符号链接。
1121. What is clone and template in VMware? Differentiate between them.
VMware 中的克隆和模板是什么?区分它们。
- 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: general
- 公司: VMware
- id: 69b37c8c58d557c902bc951c | 官方: 否 | 付费: 否
答案:
- VMware clone: It is an identical copy of a VM (called parent VM (Virtual Machine), since it is the one from which you made a clone). MAC addresses and UUIDs for both cloned and parent VM, however, will be different. Any changes to the cloned VM will not impact the original VM or parent VM (and vice versa).
- VMware template: It is a golden image or a master copy of Virtual Machine that is capable of creating and provisioning virtual machines. It can later be used to make many clones.
| Clone 克隆 | Template 模板 |
|---|---|
| An exact copy of an existing virtual machine that works independently. 现有虚拟机的精确副本,可独立工作。 | A master copy of a VM with basic configurations, although it cannot work independently. 具有基本配置的虚拟机主副本,但不能独立工作。 |
| You can turn it on/off. 你可以开启/关闭它。 | You cannot turn on/off or edit a template. 你不能开启/关闭或编辑模板。 |
| It is not possible to convert a cloned VM back to a parent or original VM. 无法将克隆的虚拟机转换回父虚拟机或原始虚拟机。 | The template can be converted back to a Virtual Machine and updated with the latest configuration before being converted back to the template for use in future VM deployments. 模板可以转换回虚拟机,并在转换回模板以供将来虚拟机部署使用之前,用最新配置进行更新。 |
| They are ideal for test environments or disaster recovery environments. 它们非常适合测试环境或灾难恢复环境。 | For deployment of mass virtual machines in production environments, the template works well. 对于在生产环境中部署大量虚拟机,模板效果很好。 |
| For large deployments of VMs, it is not recommended. 对于虚拟机的大规模部署,不建议使用。 | When deploying large numbers of VMs, it is recommended. 在部署大量虚拟机时,建议使用。 |
| The VM that is powered on can be cloned. 已开启电源的虚拟机可以被克隆。 | A powered-on VM cannot be used to create a Template. 已开启电源的虚拟机不能用于创建模板。 |
Tips to Prepare for VMware Interview
1122. VMware Interview Preparation
VMware 面试准备
- 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: general
- 公司: VMware
- id: 69b37c8c58d557c902bc9523 | 官方: 否 | 付费: 否
答案:
- The Generic Tip: Using online IDEs and platforms such as HackerEarth, Hacker Rank, LeetCode, Code Chef, and so on, is always a good idea for practicing coding questions. Since it is critical to code your solution accurately and in a timely manner, use the programming language you're most comfortable with.
Speak what you believe: At the moment, the point is how to give them what they are looking for. The interviewer will have no prior knowledge of your abilities, yet they will attempt to assess your years of education in 30–40 minutes. Even if you write the correct solution to the problem without saying anything, the interviewer is unlikely to deduce anything about your mental state. The only way out is to say exactly what you're thinking because your voice is the only method for them to understand what and how you are thinking. So, you must express yourself at every stage of your thought process. Even if you believe your method may be incorrect, just say so. Don’t ever hesitate.
- 说出你所相信的:此刻,关键在于如何给他们想要的东西。面试官事先对你的能力一无所知,却会试图在 30–40 分钟内评估你多年的教育成果。即使你写下了问题的正确答案却什么也不说,面试官也不太可能推断出你的思维状态。唯一的出路就是准确说出你正在想什么,因为你的声音是他们理解你在想什么以及如何思考的唯一途径。因此,你必须在思维过程的每个阶段表达自己。即使你认为自己的方法可能不正确,也要说出来。绝不要犹豫。
Prepare Well: The technical round may include a number of questions. Prepare all in advance. Make sure you have knowledge of DSA. Basic questions related to coding, OS, process synchronization, recursion and iterative techniques, sorts, searches, and traversals should also be considered as well. Become well-versed in fundamental subjects such as operating systems, databases, and computer networks. Reading prior interview experiences and questions will also improve your insight into the interview process.
- 充分准备:技术环节可能包含许多问题。提前准备所有内容。确保你掌握 DSA 知识。与编码、操作系统、进程同步、递归和迭代技术、排序、搜索和遍历相关的基础问题也应考虑在内。熟练掌握操作系统、数据库和计算机网络等基础科目。阅读以往的面试经验和问题也会提升你对面试流程的洞察力。
Ask for Hints: Don't pester the interviewer with demands for hints. In fact, try if you can find and fix the issues yourself. And if you feel absolutely stuck, instead of continuing to flounder, simply ask for help. It demonstrates that you acknowledge your insufficiency of knowledge, but do not immediately give up trying to learn. Make use of the hints you've been given. In most cases, the interviewer is familiar enough with the question to recognize which tips would help you next if you get stuck.
- 寻求提示:不要纠缠面试官索要提示。事实上,尽量自己发现并解决问题。如果你觉得自己完全卡住了,与其继续挣扎,不如直接寻求帮助。这表明你承认自己知识不足,但不会立刻放弃学习。利用你得到的提示。在大多数情况下,面试官对问题足够熟悉,如果你卡住了,他们能识别出接下来哪些提示会对你有所帮助。
Confidence is crucial: No matter how frightened you are, face the interviewer with confidence. The confidence you exude isn't for you; it's for the interviewer to feel comfortable enough to hire you. You must persuade her/him that you are a valuable asset to the firm.
- 自信至关重要:无论你多么害怕,都要自信地面对面试官。你展现出的自信不是为了你自己,而是为了让面试官感到足够放心从而录用你。你必须说服她/他你是公司宝贵的人才。
Prepare generic questions for HR or Managerial round: Find out online what general HR questions you might be asked during your interview. Never know when someone will ask you, "Why did you choose VMware?" or "Why not another company?". It's, therefore, a good idea to learn a bit about the company before your interview.
- 为 HR 或管理环节准备通用问题:在网上查找面试中可能会被问到的通用 HR 问题。永远不知道什么时候会有人问你:“你为什么选择 VMware?”或“为什么不选择另一家公司?”。因此,在面试前了解一些公司情况是个好主意。
Ask questions: Be sure to keep the flow two-way. If you have doubts, you should voice them to the interviewer. Your willingness to join will be apparent to the interviewer if you do this.
- 提问:务必保持双向交流。如果你有疑问,应该向面试官表达出来。如果你这样做,面试官会明显看出你加入的意愿。
1123. How many rounds are there in VMware Interview?
VMware 面试有几轮?
- 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: general
- 公司: VMware
- id: 69b37c8c58d557c902bc9526 | 官方: 否 | 付费: 否
答案:
Generally, 4-5 rounds are there in the VMware Interview process: - Online Assessment
VMware 面试流程通常有 4-5 轮:- 在线评估
- Technical Rounds (2-3)
- Managerial Interview
- HR Interview
1124. How to get a job in VMware?
如何在 VMware 找到工作?
- 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: general
- 公司: VMware
- id: 69b37c8c58d557c902bc9529 | 官方: 否 | 付费: 否
答案:
As a software company, VMware is committed to the notion of equal employment opportunities for all employees, as well as to providing a non-discriminatory and harassment-free workplace. At VMware, employees are hired based on business needs, job specifications, and individual qualifications. All applicants are encouraged to apply, whether they are freshers or experienced. Therefore, if you want to get hired, you must prepare thoroughly. Start by researching about the company, their interview process, tips on how to prepare for the interview, and then prepare accordingly. If you would like to apply, you can visit the career portal and apply directly or you can ask for a referral.
作为一家软件公司,VMware 致力于为所有员工提供平等就业机会,并致力于营造一个无歧视、无骚扰的工作场所。在 VMware,员工的聘用基于业务需求、职位规范和个人资质。无论您是应届毕业生还是有经验的人士,我们都鼓励所有申请者申请。因此,如果您想被录用,必须做好充分准备。首先研究公司、他们的面试流程、如何准备面试的技巧,然后相应地准备。如果您想申请,可以访问招聘门户直接申请,或者您可以寻求推荐。
1125. How long does the offer process take at VMware?
VMware 的录用流程需要多长时间?
- 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: general
- 公司: VMware
- id: 69b37c8c58d557c902bc952c | 官方: 否 | 付费: 否
答案:
It will take approximately 2-4 weeks to receive an offer letter following the final interview.
在最终面试后,大约需要 2-4 周才能收到录用通知书。
1126. Why do you want to join VMware?
你为什么想加入 VMware?
- 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: general
- 公司: VMware
- id: 69b37c8c58d557c902bc952f | 官方: 否 | 付费: 否
答案:
As a VMware employee, we will be a part of a global community of innovators and leaders that solve technical challenges together. Here, employees are surrounded by an environment filled with possibilities and are always encouraged to bring new ideas to life. Every day, employees are challenged to innovate in everything VMware does.
作为 VMware 员工,我们将成为全球创新者和领导者社区的一部分,共同解决技术挑战。在这里,员工身处充满可能性的环境,并始终被鼓励将新想法变为现实。每天,员工都面临挑战,要在 VMware 所做的一切中不断创新。
1127. Is VMware Interview hard?
VMware 面试难吗?
- 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: general
- 公司: VMware
- id: 69b37c8c58d557c902bc9532 | 官方: 否 | 付费: 否
答案:
The amount of time and effort you put into preparing for an interview can greatly affect how tough it is going to be. VMware interviews usually consist of easy to medium level questions, however, this depends on the individual. Since the number of rounds varies from 4-5, some candidates may find it intimidating. I assure you it is worth the effort if you join.
你为准备面试投入的时间和精力会极大地影响面试的难度。VMware 面试通常包含简单到中等难度的问题,但这取决于个人。由于轮数从 4-5 轮不等,一些候选人可能会觉得它令人生畏。我保证,如果你加入,付出的努力是值得的。
1128. What is the role of VMware admin?
VMware 管理员的角色是什么?
- 知识点: DevOps/云 (标签: interviewbit, vmware, company-specific)
- 类型: technical | 难度: hard | 子类型: concept
- 分类: general
- 公司: VMware
- id: 69b37c8c58d557c902bc9535 | 官方: 否 | 付费: 否
答案:
Virtual machines, hardware, and servers are familiar terms to most VMware admins. They use a specific VMware environment such as vSphere to create and install computer infrastructure, including hardware, servers, and virtual machines. Maintenance and troubleshooting are a major part of their job.
虚拟机、硬件和服务器是大多数 VMware 管理员熟悉的术语。他们使用特定的 VMware 环境(如 vSphere)来创建和安装计算机基础设施,包括硬件、服务器和虚拟机。维护和故障排除是他们工作的主要部分。
The following are some of the roles of a VMware administrator : - Managing the host's storage and VMs
以下是 VMware 管理员的一些角色:- 管理主机的存储和虚拟机
- Maintain and upgrade the Virtual Center
- Simplify template management and cluster management
- Coordinate with vendors
VM Troubleshooting, etc.
Useful Resource有用资源
VMware vs VirtualBox
VMware 与 VirtualBox
- 1.
- Which of the following type of virtualization enables you to run or deploy multiple virtual desktop OS on a physical server?
Network Virtualization
网络虚拟化
Storage Vritualization
存储虚拟化
Application Virtualization
应用虚拟化
Desktop Virtualization
桌面虚拟化
- 2.
- How does VDI benefit you?
Hardware Independence
硬件独立性
Management.
管理。
Reduces storage cost
降低存储成本
A and B
A 和 B
- 3.
- What tool does one use to convert a physical machine to a virtual one?
VMware Converter Center
VMware Converter Center
VMware vCenter Converter
VMware vCenter Converter
VMware ESXi
VMware ESXi
VMware Fusion
VMware Fusion
- 4.
- Which of the following is the latest version of vSphere?
4.1
4.0
5.5
5.1
- 5.
- VMFS stands for __.
Virtual Memory File System
虚拟内存文件系统
VMware File System
VMware 文件系统
Virtually Mounted File System
虚拟挂载文件系统
Virtual Machine File System
虚拟机文件系统
- 6.
- Are any of the following types of virtualization?
Desktop
桌面
CPU
CPU
Storage
存储
All of the above
以上所有
- 7.
- Which of the following is true about RDM?
It can be cloned.
它可以被克隆。
It enables VM to access LUN directly.
它使虚拟机能够直接访问LUN。
It can be converted to VM template.
它可以转换为虚拟机模板。
None of the above
以上都不是
- 8.
- Which software allows you to run multiple operating systems on one physical server?
Processor
处理器
Hypervisor
虚拟机监控器
Virtual Machine
虚拟机
Guest Operating System
客户操作系统
- 9.
- What is VMware ESXi?
Hypervisor that makes use of bare-metal virtualization
利用裸机虚拟化的虚拟机监控器
Intel-based architecture and processor emulation software
基于Intel架构和处理器仿真软件
Hypervisor that makes use of hosted virtualization technology
利用托管虚拟化技术的虚拟机监控器
None of the above
以上都不是
- 10.
- Which of the following is a type-2 hypervisor?
VMware ESXi
VMware ESXi
VMware Server
VMware Server
Citrix XenServer
Citrix XenServer
None of the above
以上都不是
- 11.
- FT stands for __.
Fixed Type
固定类型
Firmware Type
固件类型
Failure Tolerance
容错能力
Fault Tolerance
容错
评论