<?xml version="1.0" encoding="utf-8"?>
<!--Generated by DFIN XBRL Instance Document - http://www.dfinsolutions.com/ - Version R3.0 - on 02-May-2022 [11:56:04] {AM}-->
<linkbase xmlns="http://www.xbrl.org/2003/linkbase" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" xmlns:xbrldt="http://xbrl.org/2005/xbrldt">
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#CoverPage" roleURI="http://en.ksyun.com/role/CoverPage" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#ConsolidatedBalanceSheets" roleURI="http://en.ksyun.com/role/ConsolidatedBalanceSheets" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#ConsolidatedBalanceSheetsParenthetical" roleURI="http://en.ksyun.com/role/ConsolidatedBalanceSheetsParenthetical" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#ConsolidatedStatementsOfComprehensiveLoss" roleURI="http://en.ksyun.com/role/ConsolidatedStatementsOfComprehensiveLoss" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#ConsolidatedStatementsOfComprehensiveLossParenthetical" roleURI="http://en.ksyun.com/role/ConsolidatedStatementsOfComprehensiveLossParenthetical" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#ConsolidatedStatementsOfChangesInShareholdersDeficitEquity" roleURI="http://en.ksyun.com/role/ConsolidatedStatementsOfChangesInShareholdersDeficitEquity" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#OrganizationAndBasisOfPresentationScheduleOfOrganizationAndBasisOfPresentationDetail" roleURI="http://en.ksyun.com/role/OrganizationAndBasisOfPresentationScheduleOfOrganizationAndBasisOfPresentationDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#OrganizationAndBasisOfPresentationAdditionalInformationDetail" roleURI="http://en.ksyun.com/role/OrganizationAndBasisOfPresentationAdditionalInformationDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#OrganizationAndBasisOfPresentationScheduleOfOperationsAndCashFlowsResultsOfVariableInterestDetail" roleURI="http://en.ksyun.com/role/OrganizationAndBasisOfPresentationScheduleOfOperationsAndCashFlowsResultsOfVariableInterestDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#OrganizationAndBasisOfPresentationScheduleOfAssetsLiabilitiesResultsOfVariableInterestEntitiesDetail" roleURI="http://en.ksyun.com/role/OrganizationAndBasisOfPresentationScheduleOfAssetsLiabilitiesResultsOfVariableInterestEntitiesDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#OrganizationAndBasisOfPresentationScheduleOfAssetsLiabilitiesResultsOfVariableInterestEntitiesParentheticalDetail" roleURI="http://en.ksyun.com/role/OrganizationAndBasisOfPresentationScheduleOfAssetsLiabilitiesResultsOfVariableInterestEntitiesParentheticalDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#SummaryOfSignificantAccountingPoliciesAdditionalInformationDetail" roleURI="http://en.ksyun.com/role/SummaryOfSignificantAccountingPoliciesAdditionalInformationDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#SummaryOfSignificantAccountingPoliciesScheduleOfPropertyPlantAndEquipmentUsefulLivesDetail" roleURI="http://en.ksyun.com/role/SummaryOfSignificantAccountingPoliciesScheduleOfPropertyPlantAndEquipmentUsefulLivesDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#SummaryOfSignificantAccountingPoliciesScheduleOfFiniteLivedIntangibleAssetsUsefulLivesDetail" roleURI="http://en.ksyun.com/role/SummaryOfSignificantAccountingPoliciesScheduleOfFiniteLivedIntangibleAssetsUsefulLivesDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#ConcentrationOfRisksAdditionalInformationDetail" roleURI="http://en.ksyun.com/role/ConcentrationOfRisksAdditionalInformationDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#BusinessCombinationSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetail" roleURI="http://en.ksyun.com/role/BusinessCombinationSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#BusinessCombinationAdditionalInformationDetail" roleURI="http://en.ksyun.com/role/BusinessCombinationAdditionalInformationDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#RevenuesSummaryOfDisaggregationOfRevenueDetail" roleURI="http://en.ksyun.com/role/RevenuesSummaryOfDisaggregationOfRevenueDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#RevenuesSummaryOfRevenueRemainingPerformanceObligationDetail" roleURI="http://en.ksyun.com/role/RevenuesSummaryOfRevenueRemainingPerformanceObligationDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#PropertyAndEquipmentNetScheduleOfPropertyAndEquipmentNetDetail" roleURI="http://en.ksyun.com/role/PropertyAndEquipmentNetScheduleOfPropertyAndEquipmentNetDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#IntangibleAssetsNetScheduleOfIntangibleAssetsNetDetail" roleURI="http://en.ksyun.com/role/IntangibleAssetsNetScheduleOfIntangibleAssetsNetDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#GoodwillSummaryOfCarryingValueOfGoodwillDetail" roleURI="http://en.ksyun.com/role/GoodwillSummaryOfCarryingValueOfGoodwillDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#GoodwillAdditionalInformationDetail" roleURI="http://en.ksyun.com/role/GoodwillAdditionalInformationDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#AccruedExpensesAndOtherLiabilitiesScheduleOfAccruedExpensesAndOtherLiabilitiesParentheticalDetail" roleURI="http://en.ksyun.com/role/AccruedExpensesAndOtherLiabilitiesScheduleOfAccruedExpensesAndOtherLiabilitiesParentheticalDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#BankLoansScheduleOfBankLoansDetail" roleURI="http://en.ksyun.com/role/BankLoansScheduleOfBankLoansDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#BankLoansAdditionalInformationDetail" roleURI="http://en.ksyun.com/role/BankLoansAdditionalInformationDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#TaxationAdditionalInformationDetail" roleURI="http://en.ksyun.com/role/TaxationAdditionalInformationDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#ConvertiblePreferredSharesAndRedeemableConvertiblePreferredSharesAdditionalInformationDetail" roleURI="http://en.ksyun.com/role/ConvertiblePreferredSharesAndRedeemableConvertiblePreferredSharesAdditionalInformationDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#ShareBasedPaymentsSummaryOfTheActivityUnderTheShareOptionSchemeDetail" roleURI="http://en.ksyun.com/role/ShareBasedPaymentsSummaryOfTheActivityUnderTheShareOptionSchemeDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#ShareBasedPaymentsAdditionalInformationDetail" roleURI="http://en.ksyun.com/role/ShareBasedPaymentsAdditionalInformationDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#ShareBasedPaymentsSummaryOfTheActivityForTheRestrictedSharesIssuedUnderTheShareAwardSchemeDetail" roleURI="http://en.ksyun.com/role/ShareBasedPaymentsSummaryOfTheActivityForTheRestrictedSharesIssuedUnderTheShareAwardSchemeDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#ShareBasedPaymentsSummaryOfTheActivityForTheOptionsIssuedUnderTheShareAwardSchemeDetail" roleURI="http://en.ksyun.com/role/ShareBasedPaymentsSummaryOfTheActivityForTheOptionsIssuedUnderTheShareAwardSchemeDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#ShareBasedPaymentsSummaryOfAssumptionsUsedToEstimateTheFairValueOfTheShareOptionsDetail" roleURI="http://en.ksyun.com/role/ShareBasedPaymentsSummaryOfAssumptionsUsedToEstimateTheFairValueOfTheShareOptionsDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#ShareBasedPaymentsSummaryOfAcquisitionDateFairValueOfEachShareBasedAwardIsEstimatedDetail" roleURI="http://en.ksyun.com/role/ShareBasedPaymentsSummaryOfAcquisitionDateFairValueOfEachShareBasedAwardIsEstimatedDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#ShareBasedPaymentsSummaryOfShareBasedCompensationExpenseDetail" roleURI="http://en.ksyun.com/role/ShareBasedPaymentsSummaryOfShareBasedCompensationExpenseDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#RestrictedNetAssetsAdditionalInformationDetail" roleURI="http://en.ksyun.com/role/RestrictedNetAssetsAdditionalInformationDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#ShareholdersEquityAdditionalInformationDetail" roleURI="http://en.ksyun.com/role/ShareholdersEquityAdditionalInformationDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#RelatedPartyTransactionsScheduleOfRelatedPartiesAndNatureOfRelationshipDetail" roleURI="http://en.ksyun.com/role/RelatedPartyTransactionsScheduleOfRelatedPartiesAndNatureOfRelationshipDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#RelatedPartyTransactionsScheduleOfRelatedPartyTransactionsDetail" roleURI="http://en.ksyun.com/role/RelatedPartyTransactionsScheduleOfRelatedPartyTransactionsDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#RelatedPartyTransactionsScheduleOfRelatedPartyTransactionsParentheticalDetail" roleURI="http://en.ksyun.com/role/RelatedPartyTransactionsScheduleOfRelatedPartyTransactionsParentheticalDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#RelatedPartyTransactionsScheduleOfRelatedPartyBalancesDetail" roleURI="http://en.ksyun.com/role/RelatedPartyTransactionsScheduleOfRelatedPartyBalancesDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#RelatedPartyTransactionsScheduleOfRelatedPartyBalancesParentheticalDetail" roleURI="http://en.ksyun.com/role/RelatedPartyTransactionsScheduleOfRelatedPartyBalancesParentheticalDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#RelatedPartyTransactionsScheduleOfRepaymentOfRelatedPartyLoansInFixedQuarterlyInstallmentsDetail" roleURI="http://en.ksyun.com/role/RelatedPartyTransactionsScheduleOfRepaymentOfRelatedPartyLoansInFixedQuarterlyInstallmentsDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#AccumulatedOtherComprehensiveIncomeLossScheduleOfAccumulatedOtherComprehensiveIncomeDetail" roleURI="http://en.ksyun.com/role/AccumulatedOtherComprehensiveIncomeLossScheduleOfAccumulatedOtherComprehensiveIncomeDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#SubsequentEventsAdditionalInformationDetail" roleURI="http://en.ksyun.com/role/SubsequentEventsAdditionalInformationDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#CondensedFinancialInformationOfTheParentCompanySummaryOfParentCompanyBalanceSheetDetail" roleURI="http://en.ksyun.com/role/CondensedFinancialInformationOfTheParentCompanySummaryOfParentCompanyBalanceSheetDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#CondensedFinancialInformationOfTheParentCompanySummaryOfParentCompanyBalanceSheetDisclosureParentheticalDetail" roleURI="http://en.ksyun.com/role/CondensedFinancialInformationOfTheParentCompanySummaryOfParentCompanyBalanceSheetDisclosureParentheticalDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#CondensedFinancialInformationOfTheParentCompanySummaryOfParentCompanyIncomeStatementDetail" roleURI="http://en.ksyun.com/role/CondensedFinancialInformationOfTheParentCompanySummaryOfParentCompanyIncomeStatementDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#CondensedFinancialInformationOfTheParentCompanySummaryOfParentCompanyCashFlowDetail" roleURI="http://en.ksyun.com/role/CondensedFinancialInformationOfTheParentCompanySummaryOfParentCompanyCashFlowDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#ConsolidatedStatementsOfCashFlows" roleURI="http://en.ksyun.com/role/ConsolidatedStatementsOfCashFlows" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#AccountsReceivableNet" roleURI="http://en.ksyun.com/role/AccountsReceivableNet" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#AccountsReceivableNetTables" roleURI="http://en.ksyun.com/role/AccountsReceivableNetTables" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#PropertyAndEquipmentNet" roleURI="http://en.ksyun.com/role/PropertyAndEquipmentNet" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#PropertyAndEquipmentNetTables" roleURI="http://en.ksyun.com/role/PropertyAndEquipmentNetTables" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#AccountsReceivableNetScheduleOfTheMovementInTheAllowanceForDoubtfulAccountsDetail" roleURI="http://en.ksyun.com/role/AccountsReceivableNetScheduleOfTheMovementInTheAllowanceForDoubtfulAccountsDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#AccountsReceivableNetScheduleOfAccountsReceivableNetDetail" roleURI="http://en.ksyun.com/role/AccountsReceivableNetScheduleOfAccountsReceivableNetDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#IntangibleAssetsNet" roleURI="http://en.ksyun.com/role/IntangibleAssetsNet" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#PropertyAndEquipmentNetAdditionalInformationDetail" roleURI="http://en.ksyun.com/role/PropertyAndEquipmentNetAdditionalInformationDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#Revenues" roleURI="http://en.ksyun.com/role/Revenues" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#RevenuesTables" roleURI="http://en.ksyun.com/role/RevenuesTables" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#ShareBasedPayments" roleURI="http://en.ksyun.com/role/ShareBasedPayments" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#ShareBasedPaymentsTables" roleURI="http://en.ksyun.com/role/ShareBasedPaymentsTables" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#IntangibleAssetsNetScheduleOfFiniteLivedIntangibleAssetsFutureAmortizationExpenseDetail" roleURI="http://en.ksyun.com/role/IntangibleAssetsNetScheduleOfFiniteLivedIntangibleAssetsFutureAmortizationExpenseDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#PrepaymentsAndOtherAssetsTables" roleURI="http://en.ksyun.com/role/PrepaymentsAndOtherAssetsTables" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#PrepaymentsAndOtherAssetsScheduleOfPrepaymentsAndOtherAssetsDetail" roleURI="http://en.ksyun.com/role/PrepaymentsAndOtherAssetsScheduleOfPrepaymentsAndOtherAssetsDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#OrganizationAndBasisOfPresentation" roleURI="http://en.ksyun.com/role/OrganizationAndBasisOfPresentation" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#SummaryOfSignificantAccountingPolicies" roleURI="http://en.ksyun.com/role/SummaryOfSignificantAccountingPolicies" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#OrganizationAndBasisOfPresentationTables" roleURI="http://en.ksyun.com/role/OrganizationAndBasisOfPresentationTables" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#SummaryOfSignificantAccountingPoliciesPolicies" roleURI="http://en.ksyun.com/role/SummaryOfSignificantAccountingPoliciesPolicies" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#IntangibleAssetsNetTables" roleURI="http://en.ksyun.com/role/IntangibleAssetsNetTables" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#ConcentrationOfRisks" roleURI="http://en.ksyun.com/role/ConcentrationOfRisks" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#SummaryOfSignificantAccountingPoliciesTables" roleURI="http://en.ksyun.com/role/SummaryOfSignificantAccountingPoliciesTables" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#RevenuesSummaryOfContractWithCustomerLiabilityRecognizedDetail" roleURI="http://en.ksyun.com/role/RevenuesSummaryOfContractWithCustomerLiabilityRecognizedDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#ConsolidatedStatementsOfChangesInShareholdersDeficitEquityParenthetical" roleURI="http://en.ksyun.com/role/ConsolidatedStatementsOfChangesInShareholdersDeficitEquityParenthetical" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#Leases" roleURI="http://en.ksyun.com/role/Leases" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#LeasesTables" roleURI="http://en.ksyun.com/role/LeasesTables" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#LeasesSummaryOfUndiscountedFutureMinimumPaymentsUnderTheGroupSOperatingLeaseLiabilitiesDetail" roleURI="http://en.ksyun.com/role/LeasesSummaryOfUndiscountedFutureMinimumPaymentsUnderTheGroupSOperatingLeaseLiabilitiesDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#LeasesAdditionalInformationDetail" roleURI="http://en.ksyun.com/role/LeasesAdditionalInformationDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#AccruedExpensesAndOtherLiabilities" roleURI="http://en.ksyun.com/role/AccruedExpensesAndOtherLiabilities" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#AccruedExpensesAndOtherLiabilitiesTables" roleURI="http://en.ksyun.com/role/AccruedExpensesAndOtherLiabilitiesTables" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#AccruedExpensesAndOtherLiabilitiesScheduleOfAccruedExpensesAndOtherLiabilitiesDetail" roleURI="http://en.ksyun.com/role/AccruedExpensesAndOtherLiabilitiesScheduleOfAccruedExpensesAndOtherLiabilitiesDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#ConvertiblePreferredSharesAndRedeemableConvertiblePreferredShares" roleURI="http://en.ksyun.com/role/ConvertiblePreferredSharesAndRedeemableConvertiblePreferredShares" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#Taxation" roleURI="http://en.ksyun.com/role/Taxation" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#TaxationTables" roleURI="http://en.ksyun.com/role/TaxationTables" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#TaxationScheduleOfIncomeBeforeIncomeTaxDomesticAndForeignDetail" roleURI="http://en.ksyun.com/role/TaxationScheduleOfIncomeBeforeIncomeTaxDomesticAndForeignDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#TaxationScheduleOfComponentsOfIncomeTaxExpenseBenefitDetail" roleURI="http://en.ksyun.com/role/TaxationScheduleOfComponentsOfIncomeTaxExpenseBenefitDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#TaxationScheduleOfEffectiveIncomeTaxRateReconciliationDetail" roleURI="http://en.ksyun.com/role/TaxationScheduleOfEffectiveIncomeTaxRateReconciliationDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#RestrictedNetAssets" roleURI="http://en.ksyun.com/role/RestrictedNetAssets" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#ShareholdersEquity" roleURI="http://en.ksyun.com/role/ShareholdersEquity" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#TaxationScheduleOfDeferredTaxAssetsAndLiabilitiesDetail" roleURI="http://en.ksyun.com/role/TaxationScheduleOfDeferredTaxAssetsAndLiabilitiesDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#TaxationScheduleOfDeferredTaxAssetsAndLiabilitiesParentheticalDetail" roleURI="http://en.ksyun.com/role/TaxationScheduleOfDeferredTaxAssetsAndLiabilitiesParentheticalDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#CondensedFinancialInformationOfTheParentCompany" roleURI="http://en.ksyun.com/role/CondensedFinancialInformationOfTheParentCompany" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#CondensedFinancialInformationOfTheParentCompanyTables" roleURI="http://en.ksyun.com/role/CondensedFinancialInformationOfTheParentCompanyTables" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#RelatedPartyTransactions" roleURI="http://en.ksyun.com/role/RelatedPartyTransactions" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#RelatedPartyTransactionsTables" roleURI="http://en.ksyun.com/role/RelatedPartyTransactionsTables" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#SubsequentEvents" roleURI="http://en.ksyun.com/role/SubsequentEvents" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#BankLoans" roleURI="http://en.ksyun.com/role/BankLoans" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#BankLoansTables" roleURI="http://en.ksyun.com/role/BankLoansTables" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#LossPerShare" roleURI="http://en.ksyun.com/role/LossPerShare" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#LossPerShareTables" roleURI="http://en.ksyun.com/role/LossPerShareTables" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#LossPerShareSummaryOfEarningsPerShareBasicAndDilutedDetail" roleURI="http://en.ksyun.com/role/LossPerShareSummaryOfEarningsPerShareBasicAndDilutedDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#CommitmentsAndContingencies" roleURI="http://en.ksyun.com/role/CommitmentsAndContingencies" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#AccumulatedOtherComprehensiveIncomeLossTables" roleURI="http://en.ksyun.com/role/AccumulatedOtherComprehensiveIncomeLossTables" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#AccumulatedOtherComprehensiveIncomeLossAdditionalInformationDetail" roleURI="http://en.ksyun.com/role/AccumulatedOtherComprehensiveIncomeLossAdditionalInformationDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#AccumulatedOtherComprehensiveIncomeLoss" roleURI="http://en.ksyun.com/role/AccumulatedOtherComprehensiveIncomeLoss" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#PrepaymentsAndOtherAssets" roleURI="http://en.ksyun.com/role/PrepaymentsAndOtherAssets" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#CommitmentsAndContingenciesAdditionalInformationDetail" roleURI="http://en.ksyun.com/role/CommitmentsAndContingenciesAdditionalInformationDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#TaxationSummaryOfUnrecognizedTaxBenefitDetail" roleURI="http://en.ksyun.com/role/TaxationSummaryOfUnrecognizedTaxBenefitDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#AccountsReceivableNetAdditionalInformationDetail" roleURI="http://en.ksyun.com/role/AccountsReceivableNetAdditionalInformationDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#PrepaymentsAndOtherAssetsAdditionalInformationDetail" roleURI="http://en.ksyun.com/role/PrepaymentsAndOtherAssetsAdditionalInformationDetail" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#Goodwill" roleURI="http://en.ksyun.com/role/Goodwill" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#GoodwillTables" roleURI="http://en.ksyun.com/role/GoodwillTables" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#BusinessCombination" roleURI="http://en.ksyun.com/role/BusinessCombination" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#BusinessCombinationTables" roleURI="http://en.ksyun.com/role/BusinessCombinationTables" />
<roleRef xlink:type="simple" xlink:href="kc-20211231.xsd#IntangibleAssetsNetAdditionalInformationDetail" roleURI="http://en.ksyun.com/role/IntangibleAssetsNetAdditionalInformationDetail" />
<arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all" />
<arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default" />
<arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain" />
<arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member" />
<arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension" />
<arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/notAll" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#notAll" />
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/CoverPage">
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_DocumentInformationLineItems" xlink:label="loc_dei_DocumentInformationLineItems_825614" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_DocumentInformationTable" xlink:label="loc_dei_DocumentInformationTable_825613" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_DocumentInformationTable_825613" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_825658" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_dei_DocumentInformationTable_825613" xlink:to="loc_us-gaap_StatementClassOfStockAxis_825658" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_825659" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_825658" xlink:to="loc_us-gaap_ClassOfStockDomain_825659" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_825659_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_825658" xlink:to="loc_us-gaap_ClassOfStockDomain_825659_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_AdrMember" xlink:label="loc_dei_AdrMember_825661" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_825659" xlink:to="loc_dei_AdrMember_825661" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommonStockMember" xlink:label="loc_us-gaap_CommonStockMember_901395" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_825659" xlink:to="loc_us-gaap_CommonStockMember_901395" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityAddressesAddressTypeAxis" xlink:label="loc_dei_EntityAddressesAddressTypeAxis_1378719" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_dei_DocumentInformationTable_825613" xlink:to="loc_dei_EntityAddressesAddressTypeAxis_1378719" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_AddressTypeDomain" xlink:label="loc_dei_AddressTypeDomain_1378720" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_EntityAddressesAddressTypeAxis_1378719" xlink:to="loc_dei_AddressTypeDomain_1378720" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_AddressTypeDomain" xlink:label="loc_dei_AddressTypeDomain_1378720_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_EntityAddressesAddressTypeAxis_1378719" xlink:to="loc_dei_AddressTypeDomain_1378720_default" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_BusinessContactMember" xlink:label="loc_dei_BusinessContactMember_1378722" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_AddressTypeDomain_1378720" xlink:to="loc_dei_BusinessContactMember_1378722" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_DocumentType" xlink:label="loc_dei_DocumentType_825615" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_DocumentType_825615" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_AmendmentFlag" xlink:label="loc_dei_AmendmentFlag_825616" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_AmendmentFlag_825616" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_DocumentRegistrationStatement" xlink:label="loc_dei_DocumentRegistrationStatement_825617" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_DocumentRegistrationStatement_825617" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_DocumentAnnualReport" xlink:label="loc_dei_DocumentAnnualReport_825618" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_DocumentAnnualReport_825618" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_DocumentTransitionReport" xlink:label="loc_dei_DocumentTransitionReport_825619" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_DocumentTransitionReport_825619" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_DocumentShellCompanyReport" xlink:label="loc_dei_DocumentShellCompanyReport_825621" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_DocumentShellCompanyReport_825621" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_DocumentPeriodEndDate" xlink:label="loc_dei_DocumentPeriodEndDate_825622" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_DocumentPeriodEndDate_825622" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_DocumentFiscalYearFocus" xlink:label="loc_dei_DocumentFiscalYearFocus_825623" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_DocumentFiscalYearFocus_825623" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_DocumentFiscalPeriodFocus" xlink:label="loc_dei_DocumentFiscalPeriodFocus_825624" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_DocumentFiscalPeriodFocus_825624" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityRegistrantName" xlink:label="loc_dei_EntityRegistrantName_825625" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_EntityRegistrantName_825625" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityCentralIndexKey" xlink:label="loc_dei_EntityCentralIndexKey_825626" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_EntityCentralIndexKey_825626" use="optional" order="21" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_CurrentFiscalYearEndDate" xlink:label="loc_dei_CurrentFiscalYearEndDate_825628" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_CurrentFiscalYearEndDate_825628" use="optional" order="22" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityWellKnownSeasonedIssuer" xlink:label="loc_dei_EntityWellKnownSeasonedIssuer_825629" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_EntityWellKnownSeasonedIssuer_825629" use="optional" order="23" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityVoluntaryFilers" xlink:label="loc_dei_EntityVoluntaryFilers_825630" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_EntityVoluntaryFilers_825630" use="optional" order="24" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityCurrentReportingStatus" xlink:label="loc_dei_EntityCurrentReportingStatus_825631" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_EntityCurrentReportingStatus_825631" use="optional" order="25" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityFilerCategory" xlink:label="loc_dei_EntityFilerCategory_825632" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_EntityFilerCategory_825632" use="optional" order="26" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityCommonStockSharesOutstanding" xlink:label="loc_dei_EntityCommonStockSharesOutstanding_825633" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_EntityCommonStockSharesOutstanding_825633" use="optional" order="27" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityShellCompany" xlink:label="loc_dei_EntityShellCompany_825634" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_EntityShellCompany_825634" use="optional" order="28" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityEmergingGrowthCompany" xlink:label="loc_dei_EntityEmergingGrowthCompany_825635" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_EntityEmergingGrowthCompany_825635" use="optional" order="29" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_Security12bTitle" xlink:label="loc_dei_Security12bTitle_825637" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_Security12bTitle_825637" use="optional" order="30" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_TradingSymbol" xlink:label="loc_dei_TradingSymbol_825638" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_TradingSymbol_825638" use="optional" order="31" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_NoTradingSymbolFlag" xlink:label="loc_dei_NoTradingSymbolFlag_825639" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_NoTradingSymbolFlag_825639" use="optional" order="32" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_SecurityExchangeName" xlink:label="loc_dei_SecurityExchangeName_825640" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_SecurityExchangeName_825640" use="optional" order="33" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityInteractiveDataCurrent" xlink:label="loc_dei_EntityInteractiveDataCurrent_825641" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_EntityInteractiveDataCurrent_825641" use="optional" order="34" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_DocumentAccountingStandard" xlink:label="loc_dei_DocumentAccountingStandard_825642" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_DocumentAccountingStandard_825642" use="optional" order="35" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityFileNumber" xlink:label="loc_dei_EntityFileNumber_825643" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_EntityFileNumber_825643" use="optional" order="36" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityIncorporationStateCountryCode" xlink:label="loc_dei_EntityIncorporationStateCountryCode_825644" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_EntityIncorporationStateCountryCode_825644" use="optional" order="37" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_ContactPersonnelName" xlink:label="loc_dei_ContactPersonnelName_825645" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_ContactPersonnelName_825645" use="optional" order="38" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityAddressAddressLine1" xlink:label="loc_dei_EntityAddressAddressLine1_825646" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_EntityAddressAddressLine1_825646" use="optional" order="39" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityAddressAddressLine2" xlink:label="loc_dei_EntityAddressAddressLine2_825647" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_EntityAddressAddressLine2_825647" use="optional" order="40" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityAddressCityOrTown" xlink:label="loc_dei_EntityAddressCityOrTown_825648" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_EntityAddressCityOrTown_825648" use="optional" order="41" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityAddressPostalZipCode" xlink:label="loc_dei_EntityAddressPostalZipCode_825649" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_EntityAddressPostalZipCode_825649" use="optional" order="42" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityAddressCountry" xlink:label="loc_dei_EntityAddressCountry_825650" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_EntityAddressCountry_825650" use="optional" order="43" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_CityAreaCode" xlink:label="loc_dei_CityAreaCode_825652" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_CityAreaCode_825652" use="optional" order="44" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_LocalPhoneNumber" xlink:label="loc_dei_LocalPhoneNumber_825653" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_LocalPhoneNumber_825653" use="optional" order="45" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_IcfrAuditorAttestationFlag" xlink:label="loc_dei_IcfrAuditorAttestationFlag_825654" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_IcfrAuditorAttestationFlag_825654" use="optional" order="46" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_Extension" xlink:label="loc_dei_Extension_1378731" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_Extension_1378731" use="optional" order="47" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_AuditorName" xlink:label="loc_dei_AuditorName_1389091" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_AuditorName_1389091" use="optional" order="48" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_AuditorFirmId" xlink:label="loc_dei_AuditorFirmId_1389092" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_AuditorFirmId_1389092" use="optional" order="49" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_AuditorLocation" xlink:label="loc_dei_AuditorLocation_1389093" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_825614" xlink:to="loc_dei_AuditorLocation_1389093" use="optional" order="50" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/ConsolidatedBalanceSheets">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_822830" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_822818" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_822830" xlink:to="loc_us-gaap_StatementTable_822818" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_822820" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_822818" xlink:to="loc_us-gaap_StatementClassOfStockAxis_822820" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_822821" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_822820" xlink:to="loc_us-gaap_ClassOfStockDomain_822821" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_822821_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_822820" xlink:to="loc_us-gaap_ClassOfStockDomain_822821_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetsAbstract" xlink:label="loc_us-gaap_AssetsAbstract_822831" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_822830" xlink:to="loc_us-gaap_AssetsAbstract_822831" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetsCurrentAbstract" xlink:label="loc_us-gaap_AssetsCurrentAbstract_822832" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_822831" xlink:to="loc_us-gaap_AssetsCurrentAbstract_822832" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccountsReceivableNetCurrent" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_822834" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_822832" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_822834" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DueFromRelatedPartiesCurrent" xlink:label="loc_us-gaap_DueFromRelatedPartiesCurrent_822837" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_822832" xlink:to="loc_us-gaap_DueFromRelatedPartiesCurrent_822837" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_822836" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_822832" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_822836" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_822833" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_822832" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_822833" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetsCurrent" xlink:label="loc_us-gaap_AssetsCurrent_822838" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_822832" xlink:to="loc_us-gaap_AssetsCurrent_822838" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShortTermInvestments" xlink:label="loc_us-gaap_ShortTermInvestments_822835" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_822832" xlink:to="loc_us-gaap_ShortTermInvestments_822835" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RestrictedCashCurrent" xlink:label="loc_us-gaap_RestrictedCashCurrent_1368197" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_822832" xlink:to="loc_us-gaap_RestrictedCashCurrent_1368197" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_822848" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_822831" xlink:to="loc_us-gaap_Assets_822848" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetsNoncurrentAbstract" xlink:label="loc_us-gaap_AssetsNoncurrentAbstract_822839" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_822831" xlink:to="loc_us-gaap_AssetsNoncurrentAbstract_822839" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_822840" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_822839" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_822840" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_822841" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_822839" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_822841" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetsNoncurrent" xlink:label="loc_us-gaap_AssetsNoncurrent_822846" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_822839" xlink:to="loc_us-gaap_AssetsNoncurrent_822846" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseRightOfUseAsset" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_822845" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_822839" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_822845" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DueFromRelatedPartiesNoncurrent" xlink:label="loc_us-gaap_DueFromRelatedPartiesNoncurrent_822844" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_822839" xlink:to="loc_us-gaap_DueFromRelatedPartiesNoncurrent_822844" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquityMethodInvestments" xlink:label="loc_us-gaap_EquityMethodInvestments_822843" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_822839" xlink:to="loc_us-gaap_EquityMethodInvestments_822843" use="optional" order="21" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PrepaidExpenseAndOtherAssetsNoncurrent" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsNoncurrent_822842" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_822839" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsNoncurrent_822842" use="optional" order="22" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredIncomeTaxAssetsNet" xlink:label="loc_us-gaap_DeferredIncomeTaxAssetsNet_1368211" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_822839" xlink:to="loc_us-gaap_DeferredIncomeTaxAssetsNet_1368211" use="optional" order="23" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_1368208" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_822839" xlink:to="loc_us-gaap_Goodwill_1368208" use="optional" order="24" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquityAbstract" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_822850" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_822830" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_822850" use="optional" order="25" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesCurrentAbstract" xlink:label="loc_us-gaap_LiabilitiesCurrentAbstract_822851" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_822850" xlink:to="loc_us-gaap_LiabilitiesCurrentAbstract_822851" use="optional" order="26" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShortTermBorrowings" xlink:label="loc_us-gaap_ShortTermBorrowings_822855" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_822851" xlink:to="loc_us-gaap_ShortTermBorrowings_822855" use="optional" order="27" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtCurrent" xlink:label="loc_us-gaap_LongTermDebtCurrent_822856" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_822851" xlink:to="loc_us-gaap_LongTermDebtCurrent_822856" use="optional" order="28" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccountsPayableCurrent" xlink:label="loc_us-gaap_AccountsPayableCurrent_822852" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_822851" xlink:to="loc_us-gaap_AccountsPayableCurrent_822852" use="optional" order="29" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesCurrent" xlink:label="loc_us-gaap_LiabilitiesCurrent_822861" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_822851" xlink:to="loc_us-gaap_LiabilitiesCurrent_822861" use="optional" order="30" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_AccruedExpensesAndOtherLiabilitiesCurrent" xlink:label="loc_kc_AccruedExpensesAndOtherLiabilitiesCurrent_822854" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_822851" xlink:to="loc_kc_AccruedExpensesAndOtherLiabilitiesCurrent_822854" use="optional" order="31" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccruedIncomeTaxesCurrent" xlink:label="loc_us-gaap_AccruedIncomeTaxesCurrent_822858" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_822851" xlink:to="loc_us-gaap_AccruedIncomeTaxesCurrent_822858" use="optional" order="32" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseLiabilityCurrent" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_822860" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_822851" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_822860" use="optional" order="33" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DueToRelatedPartiesCurrent" xlink:label="loc_us-gaap_DueToRelatedPartiesCurrent_822859" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_822851" xlink:to="loc_us-gaap_DueToRelatedPartiesCurrent_822859" use="optional" order="34" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_822901" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_822850" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquity_822901" use="optional" order="35" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommitmentsAndContingencies" xlink:label="loc_us-gaap_CommitmentsAndContingencies_822869" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_822850" xlink:to="loc_us-gaap_CommitmentsAndContingencies_822869" use="optional" order="36" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesNoncurrentAbstract" xlink:label="loc_us-gaap_LiabilitiesNoncurrentAbstract_822862" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_822850" xlink:to="loc_us-gaap_LiabilitiesNoncurrentAbstract_822862" use="optional" order="37" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_822866" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesNoncurrentAbstract_822862" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_822866" use="optional" order="38" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilitiesNet" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_822864" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesNoncurrentAbstract_822862" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_822864" use="optional" order="39" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesNoncurrent" xlink:label="loc_us-gaap_LiabilitiesNoncurrent_822867" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesNoncurrentAbstract_822862" xlink:to="loc_us-gaap_LiabilitiesNoncurrent_822867" use="optional" order="40" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Liabilities" xlink:label="loc_us-gaap_Liabilities_822870" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesNoncurrentAbstract_822862" xlink:to="loc_us-gaap_Liabilities_822870" use="optional" order="41" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_822865" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesNoncurrentAbstract_822862" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_822865" use="optional" order="42" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DueToRelatedPartiesNoncurrent" xlink:label="loc_us-gaap_DueToRelatedPartiesNoncurrent_1368225" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesNoncurrentAbstract_822862" xlink:to="loc_us-gaap_DueToRelatedPartiesNoncurrent_1368225" use="optional" order="43" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_822884" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_822850" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_822884" use="optional" order="44" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AdditionalPaidInCapital" xlink:label="loc_us-gaap_AdditionalPaidInCapital_822887" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_822884" xlink:to="loc_us-gaap_AdditionalPaidInCapital_822887" use="optional" order="45" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_MinorityInterest" xlink:label="loc_us-gaap_MinorityInterest_822892" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_822884" xlink:to="loc_us-gaap_MinorityInterest_822892" use="optional" order="46" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_822890" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_822884" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_822890" use="optional" order="47" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_822891" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_822884" xlink:to="loc_us-gaap_StockholdersEquity_822891" use="optional" order="48" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommonStockValue" xlink:label="loc_us-gaap_CommonStockValue_822886" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_822884" xlink:to="loc_us-gaap_CommonStockValue_822886" use="optional" order="49" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_822888" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_822884" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_822888" use="optional" order="50" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_822893" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_822884" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_822893" use="optional" order="51" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/ConsolidatedBalanceSheetsParenthetical">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_822925" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesCurrent" xlink:label="loc_us-gaap_LiabilitiesCurrent_822926" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_822925" xlink:to="loc_us-gaap_LiabilitiesCurrent_822926" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivable" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivable_822936" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_822925" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivable_822936" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommonStockSharesAuthorized" xlink:label="loc_us-gaap_CommonStockSharesAuthorized_825762" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_822925" xlink:to="loc_us-gaap_CommonStockSharesAuthorized_825762" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommonStockParOrStatedValuePerShare" xlink:label="loc_us-gaap_CommonStockParOrStatedValuePerShare_825761" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_822925" xlink:to="loc_us-gaap_CommonStockParOrStatedValuePerShare_825761" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommonStockSharesIssued" xlink:label="loc_us-gaap_CommonStockSharesIssued_825763" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_822925" xlink:to="loc_us-gaap_CommonStockSharesIssued_825763" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccruedIncomeTaxesCurrent" xlink:label="loc_us-gaap_AccruedIncomeTaxesCurrent_1368313" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_822925" xlink:to="loc_us-gaap_AccruedIncomeTaxesCurrent_1368313" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DueToRelatedPartiesNoncurrent" xlink:label="loc_us-gaap_DueToRelatedPartiesNoncurrent_1368332" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_822925" xlink:to="loc_us-gaap_DueToRelatedPartiesNoncurrent_1368332" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilitiesNet" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_1368352" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_822925" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_1368352" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_AccruedExpensesAndOtherLiabilitiesCurrent" xlink:label="loc_kc_AccruedExpensesAndOtherLiabilitiesCurrent_1368285" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_822925" xlink:to="loc_kc_AccruedExpensesAndOtherLiabilitiesCurrent_1368285" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_822910" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_822925" xlink:to="loc_us-gaap_StatementTable_822910" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_822915" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_822910" xlink:to="loc_us-gaap_StatementClassOfStockAxis_822915" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_822916" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_822915" xlink:to="loc_us-gaap_ClassOfStockDomain_822916" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_822916_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_822915" xlink:to="loc_us-gaap_ClassOfStockDomain_822916_default" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesAxis" xlink:label="loc_srt_ConsolidatedEntitiesAxis_822911" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_822910" xlink:to="loc_srt_ConsolidatedEntitiesAxis_822911" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_822912" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_822911" xlink:to="loc_srt_ConsolidatedEntitiesDomain_822912" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_822912_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_822911" xlink:to="loc_srt_ConsolidatedEntitiesDomain_822912_default" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntityExcludingVariableInterestEntitiesVIEMember" xlink:label="loc_srt_ConsolidatedEntityExcludingVariableInterestEntitiesVIEMember_822913" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_822912" xlink:to="loc_srt_ConsolidatedEntityExcludingVariableInterestEntitiesVIEMember_822913" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtCurrent" xlink:label="loc_us-gaap_LongTermDebtCurrent_1368299" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_822925" xlink:to="loc_us-gaap_LongTermDebtCurrent_1368299" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommonStockSharesOutstanding" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_825764" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_822925" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_825764" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DueToRelatedPartiesCurrent" xlink:label="loc_us-gaap_DueToRelatedPartiesCurrent_1368326" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_822925" xlink:to="loc_us-gaap_DueToRelatedPartiesCurrent_1368326" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseLiabilityCurrent" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_1368329" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_822925" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_1368329" use="optional" order="21" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_1368360" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_822925" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_1368360" use="optional" order="22" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_1368366" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_822925" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_1368366" use="optional" order="23" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShortTermBorrowings" xlink:label="loc_us-gaap_ShortTermBorrowings_1368289" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_822925" xlink:to="loc_us-gaap_ShortTermBorrowings_1368289" use="optional" order="24" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/ConsolidatedStatementsOfComprehensiveLoss">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_822989" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingExpensesAbstract" xlink:label="loc_us-gaap_OperatingExpensesAbstract_822997" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_822989" xlink:to="loc_us-gaap_OperatingExpensesAbstract_822997" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_823010" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_822997" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_823010" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherNonoperatingIncomeExpense" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_823008" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_822997" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_823008" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SellingAndMarketingExpense" xlink:label="loc_us-gaap_SellingAndMarketingExpense_822998" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_822997" xlink:to="loc_us-gaap_SellingAndMarketingExpense_822998" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ForeignCurrencyTransactionGainLossBeforeTax" xlink:label="loc_us-gaap_ForeignCurrencyTransactionGainLossBeforeTax_823006" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_822997" xlink:to="loc_us-gaap_ForeignCurrencyTransactionGainLossBeforeTax_823006" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_823021" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_822997" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_823021" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InterestExpense" xlink:label="loc_us-gaap_InterestExpense_823005" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_822997" xlink:to="loc_us-gaap_InterestExpense_823005" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_823014" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_822997" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_823014" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProfitLoss" xlink:label="loc_us-gaap_ProfitLoss_823016" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_822997" xlink:to="loc_us-gaap_ProfitLoss_823016" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingIncomeLoss" xlink:label="loc_us-gaap_OperatingIncomeLoss_823057" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_822997" xlink:to="loc_us-gaap_OperatingIncomeLoss_823057" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_823018" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_822997" xlink:to="loc_us-gaap_NetIncomeLoss_823018" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherNonoperatingGainsLosses" xlink:label="loc_us-gaap_OtherNonoperatingGainsLosses_823007" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_822997" xlink:to="loc_us-gaap_OtherNonoperatingGainsLosses_823007" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InvestmentIncomeInterest" xlink:label="loc_us-gaap_InvestmentIncomeInterest_823004" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_822997" xlink:to="loc_us-gaap_InvestmentIncomeInterest_823004" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetIncomeLossAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_823017" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_822997" xlink:to="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_823017" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingExpenses" xlink:label="loc_us-gaap_OperatingExpenses_823003" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_822997" xlink:to="loc_us-gaap_OperatingExpenses_823003" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GeneralAndAdministrativeExpense" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_823001" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_822997" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_823001" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TemporaryEquityAccretionToRedemptionValueAdjustment" xlink:label="loc_us-gaap_TemporaryEquityAccretionToRedemptionValueAdjustment_823020" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_822997" xlink:to="loc_us-gaap_TemporaryEquityAccretionToRedemptionValueAdjustment_823020" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ResearchAndDevelopmentExpense" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_823002" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_822997" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_823002" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RevenuesAbstract" xlink:label="loc_us-gaap_RevenuesAbstract_822991" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_822989" xlink:to="loc_us-gaap_RevenuesAbstract_822991" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Revenues" xlink:label="loc_us-gaap_Revenues_822992" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesAbstract_822991" xlink:to="loc_us-gaap_Revenues_822992" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CostOfRevenue" xlink:label="loc_us-gaap_CostOfRevenue_822993" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesAbstract_822991" xlink:to="loc_us-gaap_CostOfRevenue_822993" use="optional" order="21" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GrossProfit" xlink:label="loc_us-gaap_GrossProfit_822994" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesAbstract_822991" xlink:to="loc_us-gaap_GrossProfit_822994" use="optional" order="22" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_822975" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_822989" xlink:to="loc_us-gaap_StatementTable_822975" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="23" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ProductOrServiceAxis" xlink:label="loc_srt_ProductOrServiceAxis_822976" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_822975" xlink:to="loc_srt_ProductOrServiceAxis_822976" use="optional" order="24" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_822980" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_822976" xlink:to="loc_srt_ProductsAndServicesDomain_822980" use="optional" order="25" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_822980_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_822976" xlink:to="loc_srt_ProductsAndServicesDomain_822980_default" use="optional" order="26" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_OtherServicesMember" xlink:label="loc_kc_OtherServicesMember_822983" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_822980" xlink:to="loc_kc_OtherServicesMember_822983" use="optional" order="27" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_PublicCloudServiceMember" xlink:label="loc_kc_PublicCloudServiceMember_822981" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_822980" xlink:to="loc_kc_PublicCloudServiceMember_822981" use="optional" order="28" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_EnterpriseCloudServicesMember" xlink:label="loc_kc_EnterpriseCloudServicesMember_822982" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_822980" xlink:to="loc_kc_EnterpriseCloudServicesMember_822982" use="optional" order="29" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SupplementalIncomeStatementElementsAbstract" xlink:label="loc_us-gaap_SupplementalIncomeStatementElementsAbstract_823036" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_822989" xlink:to="loc_us-gaap_SupplementalIncomeStatementElementsAbstract_823036" use="optional" order="30" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_823037" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SupplementalIncomeStatementElementsAbstract_823036" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_823037" use="optional" order="31" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ComprehensiveIncomeLossNetOfTaxAttributableToCommonStockholdersBasic" xlink:label="loc_kc_ComprehensiveIncomeLossNetOfTaxAttributableToCommonStockholdersBasic_823045" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SupplementalIncomeStatementElementsAbstract_823036" xlink:to="loc_kc_ComprehensiveIncomeLossNetOfTaxAttributableToCommonStockholdersBasic_823045" use="optional" order="32" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_823038" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SupplementalIncomeStatementElementsAbstract_823036" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_823038" use="optional" order="33" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest_823039" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SupplementalIncomeStatementElementsAbstract_823036" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest_823039" use="optional" order="34" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_823040" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SupplementalIncomeStatementElementsAbstract_823036" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTax_823040" use="optional" order="35" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EarningsPerShareBasicAndDilutedOtherDisclosuresAbstract" xlink:label="loc_us-gaap_EarningsPerShareBasicAndDilutedOtherDisclosuresAbstract_823033" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_822989" xlink:to="loc_us-gaap_EarningsPerShareBasicAndDilutedOtherDisclosuresAbstract_823033" use="optional" order="36" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_WeightedAverageNumberOfShareOutstandingBasicAndDiluted" xlink:label="loc_us-gaap_WeightedAverageNumberOfShareOutstandingBasicAndDiluted_823034" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicAndDilutedOtherDisclosuresAbstract_823033" xlink:to="loc_us-gaap_WeightedAverageNumberOfShareOutstandingBasicAndDiluted_823034" use="optional" order="37" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EarningsPerShareBasicAndDilutedAbstract" xlink:label="loc_us-gaap_EarningsPerShareBasicAndDilutedAbstract_823023" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_822989" xlink:to="loc_us-gaap_EarningsPerShareBasicAndDilutedAbstract_823023" use="optional" order="38" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EarningsPerShareBasicAndDiluted" xlink:label="loc_us-gaap_EarningsPerShareBasicAndDiluted_823032" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicAndDilutedAbstract_823023" xlink:to="loc_us-gaap_EarningsPerShareBasicAndDiluted_823032" use="optional" order="39" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/ConsolidatedStatementsOfComprehensiveLossParenthetical">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_825786" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RevenueFromRelatedParties" xlink:label="loc_us-gaap_RevenueFromRelatedParties_823434" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_825786" xlink:to="loc_us-gaap_RevenueFromRelatedParties_823434" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyCosts" xlink:label="loc_us-gaap_RelatedPartyCosts_825791" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_825786" xlink:to="loc_us-gaap_RelatedPartyCosts_825791" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_825783" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_825786" xlink:to="loc_us-gaap_StatementTable_825783" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_825784" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_825783" xlink:to="loc_us-gaap_StatementClassOfStockAxis_825784" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_825785" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_825784" xlink:to="loc_us-gaap_ClassOfStockDomain_825785" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_825785_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_825784" xlink:to="loc_us-gaap_ClassOfStockDomain_825785_default" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_PublicCloudServiceMember" xlink:label="loc_kc_PublicCloudServiceMember_825788" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_825785" xlink:to="loc_kc_PublicCloudServiceMember_825788" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_OtherServicesMember" xlink:label="loc_kc_OtherServicesMember_825789" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_825785" xlink:to="loc_kc_OtherServicesMember_825789" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_EnterpriseCloudServicesMember" xlink:label="loc_kc_EnterpriseCloudServicesMember_1369665" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_825785" xlink:to="loc_kc_EnterpriseCloudServicesMember_1369665" use="optional" order="9" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/ConsolidatedStatementsOfChangesInShareholdersDeficitEquity">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_823550" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_823492" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_823550" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_823492" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_823494" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_823492" xlink:to="loc_us-gaap_StatementClassOfStockAxis_823494" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_823495" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_823494" xlink:to="loc_us-gaap_ClassOfStockDomain_823495" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_823495_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_823494" xlink:to="loc_us-gaap_ClassOfStockDomain_823495_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_SeriesAConvertiblePreferredSharesMember" xlink:label="loc_kc_SeriesAConvertiblePreferredSharesMember_823506" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_823495" xlink:to="loc_kc_SeriesAConvertiblePreferredSharesMember_823506" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_823507" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_823492" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_823507" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_823508" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_823507" xlink:to="loc_us-gaap_EquityComponentDomain_823508" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_823508_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_823507" xlink:to="loc_us-gaap_EquityComponentDomain_823508_default" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommonStockMember" xlink:label="loc_us-gaap_CommonStockMember_823542" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_823508" xlink:to="loc_us-gaap_CommonStockMember_823542" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AdditionalPaidInCapitalMember" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_823543" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_823508" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_823543" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_823544" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_823508" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_823544" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RetainedEarningsMember" xlink:label="loc_us-gaap_RetainedEarningsMember_823547" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_823508" xlink:to="loc_us-gaap_RetainedEarningsMember_823547" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_TotalKingsoftCloudHoldingsLimitedShareholdersdeficitEquityMember" xlink:label="loc_kc_TotalKingsoftCloudHoldingsLimitedShareholdersdeficitEquityMember_823820" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_823508" xlink:to="loc_kc_TotalKingsoftCloudHoldingsLimitedShareholdersdeficitEquityMember_823820" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NoncontrollingInterestMember" xlink:label="loc_us-gaap_NoncontrollingInterestMember_823823" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_823508" xlink:to="loc_us-gaap_NoncontrollingInterestMember_823823" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PreferredStockMember" xlink:label="loc_us-gaap_PreferredStockMember_1389374" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_823508" xlink:to="loc_us-gaap_PreferredStockMember_1389374" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SubsidiarySaleOfStockAxis" xlink:label="loc_us-gaap_SubsidiarySaleOfStockAxis_823828" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_823492" xlink:to="loc_us-gaap_SubsidiarySaleOfStockAxis_823828" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SaleOfStockNameOfTransactionDomain" xlink:label="loc_us-gaap_SaleOfStockNameOfTransactionDomain_823830" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsidiarySaleOfStockAxis_823828" xlink:to="loc_us-gaap_SaleOfStockNameOfTransactionDomain_823830" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SaleOfStockNameOfTransactionDomain" xlink:label="loc_us-gaap_SaleOfStockNameOfTransactionDomain_823830_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsidiarySaleOfStockAxis_823828" xlink:to="loc_us-gaap_SaleOfStockNameOfTransactionDomain_823830_default" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IPOMember" xlink:label="loc_us-gaap_IPOMember_823832" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleOfStockNameOfTransactionDomain_823830" xlink:to="loc_us-gaap_IPOMember_823832" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_FollowOnOfferingMember" xlink:label="loc_kc_FollowOnOfferingMember_823836" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleOfStockNameOfTransactionDomain_823830" xlink:to="loc_kc_FollowOnOfferingMember_823836" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RedeemableConvertiblePreferredStockMember" xlink:label="loc_us-gaap_RedeemableConvertiblePreferredStockMember_827637" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleOfStockNameOfTransactionDomain_823830" xlink:to="loc_us-gaap_RedeemableConvertiblePreferredStockMember_827637" use="optional" order="21" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation_823599" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_823550" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation_823599" use="optional" order="22" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_823593" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_823550" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_823593" use="optional" order="23" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SharesOutstanding" xlink:label="loc_us-gaap_SharesOutstanding_823617" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_823550" xlink:to="loc_us-gaap_SharesOutstanding_823617" use="optional" order="24" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_823597" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_823550" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_823597" use="optional" order="25" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesConversionOfConvertibleSecurities" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesConversionOfConvertibleSecurities_823740" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_823550" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesConversionOfConvertibleSecurities_823740" use="optional" order="26" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationEmployeeStockPurchaseProgramRequisiteServicePeriodRecognition" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationEmployeeStockPurchaseProgramRequisiteServicePeriodRecognition_823670" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_823550" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationEmployeeStockPurchaseProgramRequisiteServicePeriodRecognition_823670" use="optional" order="27" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueNewIssues" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueNewIssues_823739" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_823550" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueNewIssues_823739" use="optional" order="28" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TemporaryEquityAccretionToRedemptionValueAdjustment" xlink:label="loc_us-gaap_TemporaryEquityAccretionToRedemptionValueAdjustment_823602" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_823550" xlink:to="loc_us-gaap_TemporaryEquityAccretionToRedemptionValueAdjustment_823602" use="optional" order="29" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_823633" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_823550" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_823633" use="optional" order="30" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProfitLoss" xlink:label="loc_us-gaap_ProfitLoss_894207" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_823550" xlink:to="loc_us-gaap_ProfitLoss_894207" use="optional" order="31" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockRepurchasedDuringPeriodValue" xlink:label="loc_us-gaap_StockRepurchasedDuringPeriodValue_823701" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_823550" xlink:to="loc_us-gaap_StockRepurchasedDuringPeriodValue_823701" use="optional" order="32" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockRepurchasedDuringPeriodShares" xlink:label="loc_us-gaap_StockRepurchasedDuringPeriodShares_823733" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_823550" xlink:to="loc_us-gaap_StockRepurchasedDuringPeriodShares_823733" use="optional" order="33" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueConversionOfConvertibleSecurities" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueConversionOfConvertibleSecurities_823743" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_823550" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueConversionOfConvertibleSecurities_823743" use="optional" order="34" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesNewIssues" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_823738" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_823550" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_823738" use="optional" order="35" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_AdoptionOfAsc326" xlink:label="loc_kc_AdoptionOfAsc326_1368678" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_823550" xlink:to="loc_kc_AdoptionOfAsc326_1368678" use="optional" order="36" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesAcquisitions" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesAcquisitions_1386573" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_823550" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesAcquisitions_1386573" use="optional" order="37" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueAcquisitions" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueAcquisitions_1386574" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_823550" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueAcquisitions_1386574" use="optional" order="38" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/OrganizationAndBasisOfPresentationScheduleOfOrganizationAndBasisOfPresentationDetail">
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems" xlink:label="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_823540" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_OrganizationConsolidationAndPresentationOfFinancialStatementsTable" xlink:label="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_823536" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_823540" xlink:to="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_823536" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_LegalEntityAxis" xlink:label="loc_dei_LegalEntityAxis_823555" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_823536" xlink:to="loc_dei_LegalEntityAxis_823555" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_823556" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_823555" xlink:to="loc_dei_EntityDomain_823556" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_823556_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_823555" xlink:to="loc_dei_EntityDomain_823556_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_WuhanKingsoftCloudInformationTechnologyCoLtdMember" xlink:label="loc_kc_WuhanKingsoftCloudInformationTechnologyCoLtdMember_823582" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_823556" xlink:to="loc_kc_WuhanKingsoftCloudInformationTechnologyCoLtdMember_823582" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_KingsoftCloudCorporationLimitedMember" xlink:label="loc_kc_KingsoftCloudCorporationLimitedMember_823560" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_823556" xlink:to="loc_kc_KingsoftCloudCorporationLimitedMember_823560" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_BeijingKingsoftCloudTechnologyCoLtdMember" xlink:label="loc_kc_BeijingKingsoftCloudTechnologyCoLtdMember_823594" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_823556" xlink:to="loc_kc_BeijingKingsoftCloudTechnologyCoLtdMember_823594" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_BeijingYunxiangZhishengTechnologyCoLtdMember" xlink:label="loc_kc_BeijingYunxiangZhishengTechnologyCoLtdMember_823604" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_823556" xlink:to="loc_kc_BeijingYunxiangZhishengTechnologyCoLtdMember_823604" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_CamelotTechnologyCoLtdMember" xlink:label="loc_kc_CamelotTechnologyCoLtdMember_1369230" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_823556" xlink:to="loc_kc_CamelotTechnologyCoLtdMember_1369230" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_KingsoftCloudTianjinTechnologyDevelopmentCoLtdMember" xlink:label="loc_kc_KingsoftCloudTianjinTechnologyDevelopmentCoLtdMember_1389322" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_823556" xlink:to="loc_kc_KingsoftCloudTianjinTechnologyDevelopmentCoLtdMember_1389322" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_823545" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_823536" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_823545" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_823549" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_823545" xlink:to="loc_us-gaap_RelatedPartyDomain_823549" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_823549_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_823545" xlink:to="loc_us-gaap_RelatedPartyDomain_823549_default" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_SubsidiariesMember" xlink:label="loc_srt_SubsidiariesMember_823553" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_823549" xlink:to="loc_srt_SubsidiariesMember_823553" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_StatementGeographicalAxis" xlink:label="loc_srt_StatementGeographicalAxis_823605" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_823536" xlink:to="loc_srt_StatementGeographicalAxis_823605" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srt_SegmentGeographicalDomain_823611" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_823605" xlink:to="loc_srt_SegmentGeographicalDomain_823611" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srt_SegmentGeographicalDomain_823611_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_823605" xlink:to="loc_srt_SegmentGeographicalDomain_823611_default" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2021/country-2021.xsd#country_CN" xlink:label="loc_country_CN_823697" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_823611" xlink:to="loc_country_CN_823697" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2021/country-2021.xsd#country_HK" xlink:label="loc_country_HK_823613" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_823611" xlink:to="loc_country_HK_823613" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesAxis" xlink:label="loc_srt_ConsolidatedEntitiesAxis_823777" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_823536" xlink:to="loc_srt_ConsolidatedEntitiesAxis_823777" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_823780" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_823777" xlink:to="loc_srt_ConsolidatedEntitiesDomain_823780" use="optional" order="21" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_823780_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_823777" xlink:to="loc_srt_ConsolidatedEntitiesDomain_823780_default" use="optional" order="22" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ZhuhaiKingsoftCloudTechnologyCoLtdMember" xlink:label="loc_kc_ZhuhaiKingsoftCloudTechnologyCoLtdMember_823787" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_823780" xlink:to="loc_kc_ZhuhaiKingsoftCloudTechnologyCoLtdMember_823787" use="optional" order="23" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_BeijingJinxunRuiboNetworkTechnologyCoLtdMember" xlink:label="loc_kc_BeijingJinxunRuiboNetworkTechnologyCoLtdMember_823797" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_823780" xlink:to="loc_kc_BeijingJinxunRuiboNetworkTechnologyCoLtdMember_823797" use="optional" order="24" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_BeijingKingsoftCloudNetworkTechnologyCoLtdMember" xlink:label="loc_kc_BeijingKingsoftCloudNetworkTechnologyCoLtdMember_823795" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_823780" xlink:to="loc_kc_BeijingKingsoftCloudNetworkTechnologyCoLtdMember_823795" use="optional" order="25" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_KingsoftCloudBeijingInformationTechnologyCoLtdMember" xlink:label="loc_kc_KingsoftCloudBeijingInformationTechnologyCoLtdMember_823791" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_823780" xlink:to="loc_kc_KingsoftCloudBeijingInformationTechnologyCoLtdMember_823791" use="optional" order="26" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_NanjingQianyiShixunInformationTechnologyCoLtdMember" xlink:label="loc_kc_NanjingQianyiShixunInformationTechnologyCoLtdMember_823799" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_823780" xlink:to="loc_kc_NanjingQianyiShixunInformationTechnologyCoLtdMember_823799" use="optional" order="27" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_VariableInterestEntityQualitativeOrQuantitativeInformationDateInvolvementBegan1" xlink:label="loc_us-gaap_VariableInterestEntityQualitativeOrQuantitativeInformationDateInvolvementBegan1_823721" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_823540" xlink:to="loc_us-gaap_VariableInterestEntityQualitativeOrQuantitativeInformationDateInvolvementBegan1_823721" use="optional" order="28" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_VariableInterestEntityVIEActivitiesOfVIE" xlink:label="loc_us-gaap_VariableInterestEntityVIEActivitiesOfVIE_823730" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_823540" xlink:to="loc_us-gaap_VariableInterestEntityVIEActivitiesOfVIE_823730" use="optional" order="29" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_PlaceOfEstablishment" xlink:label="loc_kc_PlaceOfEstablishment_827553" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_823540" xlink:to="loc_kc_PlaceOfEstablishment_827553" use="optional" order="30" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquityMethodInvestmentDescriptionOfPrincipalActivities" xlink:label="loc_us-gaap_EquityMethodInvestmentDescriptionOfPrincipalActivities_823951" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_823540" xlink:to="loc_us-gaap_EquityMethodInvestmentDescriptionOfPrincipalActivities_823951" use="optional" order="31" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquityMethodInvestmentOwnershipPercentage" xlink:label="loc_us-gaap_EquityMethodInvestmentOwnershipPercentage_823950" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_823540" xlink:to="loc_us-gaap_EquityMethodInvestmentOwnershipPercentage_823950" use="optional" order="32" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityIncorporationDateOfIncorporation" xlink:label="loc_dei_EntityIncorporationDateOfIncorporation_823949" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_823540" xlink:to="loc_dei_EntityIncorporationDateOfIncorporation_823949" use="optional" order="33" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/OrganizationAndBasisOfPresentationAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems" xlink:label="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_824273" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_OrganizationConsolidationAndPresentationOfFinancialStatementsTable" xlink:label="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_824272" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_824273" xlink:to="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_824272" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidationItemsAxis" xlink:label="loc_srt_ConsolidationItemsAxis_824312" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_824272" xlink:to="loc_srt_ConsolidationItemsAxis_824312" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_824313" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_824312" xlink:to="loc_srt_ConsolidationItemsDomain_824313" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_824313_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_824312" xlink:to="loc_srt_ConsolidationItemsDomain_824313_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_LegalEntityAxis" xlink:label="loc_dei_LegalEntityAxis_824287" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_824272" xlink:to="loc_dei_LegalEntityAxis_824287" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_824288" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_824287" xlink:to="loc_dei_EntityDomain_824288" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_824288_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_824287" xlink:to="loc_dei_EntityDomain_824288_default" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_BeijingYunxiangZhishengTechnologyCoLtdMember" xlink:label="loc_kc_BeijingYunxiangZhishengTechnologyCoLtdMember_824293" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_824288" xlink:to="loc_kc_BeijingYunxiangZhishengTechnologyCoLtdMember_824293" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_BeijingKingsoftCloudTechnologyCoLtdMember" xlink:label="loc_kc_BeijingKingsoftCloudTechnologyCoLtdMember_824289" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_824288" xlink:to="loc_kc_BeijingKingsoftCloudTechnologyCoLtdMember_824289" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesAxis" xlink:label="loc_srt_ConsolidatedEntitiesAxis_824318" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_824272" xlink:to="loc_srt_ConsolidatedEntitiesAxis_824318" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_824319" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_824318" xlink:to="loc_srt_ConsolidatedEntitiesDomain_824319" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_824319_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_824318" xlink:to="loc_srt_ConsolidatedEntitiesDomain_824319_default" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_VariableInterestEntityPrimaryBeneficiaryMember" xlink:label="loc_us-gaap_VariableInterestEntityPrimaryBeneficiaryMember_824320" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_824319" xlink:to="loc_us-gaap_VariableInterestEntityPrimaryBeneficiaryMember_824320" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyTransactionAxis" xlink:label="loc_us-gaap_RelatedPartyTransactionAxis_824282" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_824272" xlink:to="loc_us-gaap_RelatedPartyTransactionAxis_824282" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyTransactionDomain" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_824283" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_824282" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_824283" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyTransactionDomain" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_824283_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_824282" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_824283_default" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ExclusiveConsultationAndTechnicalFeesAgreementMember" xlink:label="loc_kc_ExclusiveConsultationAndTechnicalFeesAgreementMember_824300" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionDomain_824283" xlink:to="loc_kc_ExclusiveConsultationAndTechnicalFeesAgreementMember_824300" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_LoanToZhuhaiKingSoftCloudMember" xlink:label="loc_kc_LoanToZhuhaiKingSoftCloudMember_824285" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionDomain_824283" xlink:to="loc_kc_LoanToZhuhaiKingSoftCloudMember_824285" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ExclusivePurchaseOptionAgreementWithZhuhaiKingSoftCloudAndNomineeShareholdersMember" xlink:label="loc_kc_ExclusivePurchaseOptionAgreementWithZhuhaiKingSoftCloudAndNomineeShareholdersMember_824296" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionDomain_824283" xlink:to="loc_kc_ExclusivePurchaseOptionAgreementWithZhuhaiKingSoftCloudAndNomineeShareholdersMember_824296" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_824303" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_824272" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_824303" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_824304" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_824303" xlink:to="loc_us-gaap_RelatedPartyDomain_824304" use="optional" order="21" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_824304_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_824303" xlink:to="loc_us-gaap_RelatedPartyDomain_824304_default" use="optional" order="22" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ZhuhaiKingsoftCloudMember" xlink:label="loc_kc_ZhuhaiKingsoftCloudMember_824306" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_824304" xlink:to="loc_kc_ZhuhaiKingsoftCloudMember_824306" use="optional" order="23" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_XiaomiGroupMember" xlink:label="loc_kc_XiaomiGroupMember_1369299" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_824304" xlink:to="loc_kc_XiaomiGroupMember_1369299" use="optional" order="24" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_824315" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_824272" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_824315" use="optional" order="25" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_824316" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_824315" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_824316" use="optional" order="26" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_824316_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_824315" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_824316_default" use="optional" order="27" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SalesRevenueNetMember" xlink:label="loc_us-gaap_SalesRevenueNetMember_824317" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_824316" xlink:to="loc_us-gaap_SalesRevenueNetMember_824317" use="optional" order="28" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BalanceSheetLocationAxis" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_1369283" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_824272" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_1369283" use="optional" order="29" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_1369284" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_1369283" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_1369284" use="optional" order="30" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_1369284_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_1369283" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_1369284_default" use="optional" order="31" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ElectronicEquipmentMember" xlink:label="loc_kc_ElectronicEquipmentMember_1369285" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_1369284" xlink:to="loc_kc_ElectronicEquipmentMember_1369285" use="optional" order="32" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_RestrictedCashMember" xlink:label="loc_kc_RestrictedCashMember_1369287" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_1369284" xlink:to="loc_kc_RestrictedCashMember_1369287" use="optional" order="33" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_1369243" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_824272" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_1369243" use="optional" order="34" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1369244" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_1369243" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1369244" use="optional" order="35" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1369244_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_1369243" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1369244_default" use="optional" order="36" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_CamelotEmployeeSchemeIncMember" xlink:label="loc_kc_CamelotEmployeeSchemeIncMember_1369246" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1369244" xlink:to="loc_kc_CamelotEmployeeSchemeIncMember_1369246" use="optional" order="37" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_BeijingCamelotAndItsSubsidiariesMember" xlink:label="loc_kc_BeijingCamelotAndItsSubsidiariesMember_1369247" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1369244" xlink:to="loc_kc_BeijingCamelotAndItsSubsidiariesMember_1369247" use="optional" order="38" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ConcentrationRiskByTypeAxis" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_1378769" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_824272" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_1378769" use="optional" order="39" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_1378770" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_1378769" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_1378770" use="optional" order="40" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_1378770_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_1378769" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_1378770_default" use="optional" order="41" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ConsolidatedRevenueMember" xlink:label="loc_kc_ConsolidatedRevenueMember_1378776" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_1378770" xlink:to="loc_kc_ConsolidatedRevenueMember_1378776" use="optional" order="42" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ShareholderVotingRightsTrustAgreementsTerm" xlink:label="loc_kc_ShareholderVotingRightsTrustAgreementsTerm_824274" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_824273" xlink:to="loc_kc_ShareholderVotingRightsTrustAgreementsTerm_824274" use="optional" order="43" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_EquityMethodInvestmentPerSharePrice" xlink:label="loc_kc_EquityMethodInvestmentPerSharePrice_824295" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_824273" xlink:to="loc_kc_EquityMethodInvestmentPerSharePrice_824295" use="optional" order="44" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OriginationOfNotesReceivableFromRelatedParties" xlink:label="loc_us-gaap_OriginationOfNotesReceivableFromRelatedParties_824279" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_824273" xlink:to="loc_us-gaap_OriginationOfNotesReceivableFromRelatedParties_824279" use="optional" order="45" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_RelatedPartyTransactionTermOfAgreementForConsultancyServices" xlink:label="loc_kc_RelatedPartyTransactionTermOfAgreementForConsultancyServices_824299" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_824273" xlink:to="loc_kc_RelatedPartyTransactionTermOfAgreementForConsultancyServices_824299" use="optional" order="46" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ConcentrationRiskPercentage1" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_824311" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_824273" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_824311" use="optional" order="47" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_AssetsSecuredForPaymentOfLiabilities" xlink:label="loc_kc_AssetsSecuredForPaymentOfLiabilities_1369281" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_824273" xlink:to="loc_kc_AssetsSecuredForPaymentOfLiabilities_1369281" use="optional" order="48" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessAcquisitionPercentageOfVotingInterestsAcquired" xlink:label="loc_us-gaap_BusinessAcquisitionPercentageOfVotingInterestsAcquired_1369241" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_824273" xlink:to="loc_us-gaap_BusinessAcquisitionPercentageOfVotingInterestsAcquired_1369241" use="optional" order="49" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_VIEsAndSubsidiariesConsolidatedAssetsPledged" xlink:label="loc_kc_VIEsAndSubsidiariesConsolidatedAssetsPledged_1389341" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_824273" xlink:to="loc_kc_VIEsAndSubsidiariesConsolidatedAssetsPledged_1389341" use="optional" order="50" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/OrganizationAndBasisOfPresentationScheduleOfOperationsAndCashFlowsResultsOfVariableInterestDetail">
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems" xlink:label="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_825886" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_825891" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_825886" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_825891" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_OrganizationConsolidationAndPresentationOfFinancialStatementsTable" xlink:label="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_825883" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_825886" xlink:to="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_825883" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesAxis" xlink:label="loc_srt_ConsolidatedEntitiesAxis_825884" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_825883" xlink:to="loc_srt_ConsolidatedEntitiesAxis_825884" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_825885" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_825884" xlink:to="loc_srt_ConsolidatedEntitiesDomain_825885" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_825885_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_825884" xlink:to="loc_srt_ConsolidatedEntitiesDomain_825885_default" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_VariableInterestEntityPrimaryBeneficiaryMember" xlink:label="loc_us-gaap_VariableInterestEntityPrimaryBeneficiaryMember_825887" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_825885" xlink:to="loc_us-gaap_VariableInterestEntityPrimaryBeneficiaryMember_825887" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_825889" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_825886" xlink:to="loc_us-gaap_NetIncomeLoss_825889" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_825890" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_825886" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_825890" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_825888" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_825886" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_825888" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_825892" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_825886" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_825892" use="optional" order="10" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/OrganizationAndBasisOfPresentationScheduleOfAssetsLiabilitiesResultsOfVariableInterestEntitiesDetail">
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems" xlink:label="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_824012" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_OrganizationConsolidationAndPresentationOfFinancialStatementsTable" xlink:label="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_824010" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_824012" xlink:to="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_824010" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesAxis" xlink:label="loc_srt_ConsolidatedEntitiesAxis_824014" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_824010" xlink:to="loc_srt_ConsolidatedEntitiesAxis_824014" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_824015" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_824014" xlink:to="loc_srt_ConsolidatedEntitiesDomain_824015" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_824015_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_824014" xlink:to="loc_srt_ConsolidatedEntitiesDomain_824015_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_VariableInterestEntityPrimaryBeneficiaryMember" xlink:label="loc_us-gaap_VariableInterestEntityPrimaryBeneficiaryMember_824016" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_824015" xlink:to="loc_us-gaap_VariableInterestEntityPrimaryBeneficiaryMember_824016" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesAbstract" xlink:label="loc_us-gaap_LiabilitiesAbstract_824089" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_824012" xlink:to="loc_us-gaap_LiabilitiesAbstract_824089" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccountsPayableCurrent" xlink:label="loc_us-gaap_AccountsPayableCurrent_824096" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_824089" xlink:to="loc_us-gaap_AccountsPayableCurrent_824096" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DueToAffiliateCurrent" xlink:label="loc_us-gaap_DueToAffiliateCurrent_824117" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_824089" xlink:to="loc_us-gaap_DueToAffiliateCurrent_824117" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccruedLiabilitiesCurrent" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_824106" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_824089" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_824106" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtCurrent" xlink:label="loc_us-gaap_LongTermDebtCurrent_824113" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_824089" xlink:to="loc_us-gaap_LongTermDebtCurrent_824113" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesCurrent" xlink:label="loc_us-gaap_LiabilitiesCurrent_824120" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_824089" xlink:to="loc_us-gaap_LiabilitiesCurrent_824120" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShortTermBankLoansAndNotesPayable" xlink:label="loc_us-gaap_ShortTermBankLoansAndNotesPayable_824109" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_824089" xlink:to="loc_us-gaap_ShortTermBankLoansAndNotesPayable_824109" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TaxesPayableCurrent" xlink:label="loc_us-gaap_TaxesPayableCurrent_873112" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_824089" xlink:to="loc_us-gaap_TaxesPayableCurrent_873112" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DueToRelatedPartiesCurrent" xlink:label="loc_us-gaap_DueToRelatedPartiesCurrent_824114" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_824089" xlink:to="loc_us-gaap_DueToRelatedPartiesCurrent_824114" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseLiabilityCurrent" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_824115" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_824089" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_824115" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetsAbstract" xlink:label="loc_us-gaap_AssetsAbstract_824027" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_824012" xlink:to="loc_us-gaap_AssetsAbstract_824027" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_824083" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_824027" xlink:to="loc_us-gaap_Assets_824083" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetsCurrentAbstract" xlink:label="loc_us-gaap_AssetsCurrentAbstract_824032" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_824027" xlink:to="loc_us-gaap_AssetsCurrentAbstract_824032" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DueFromAffiliateCurrent" xlink:label="loc_us-gaap_DueFromAffiliateCurrent_824049" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_824032" xlink:to="loc_us-gaap_DueFromAffiliateCurrent_824049" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccountsReceivableNetCurrent" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_824040" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_824032" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_824040" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NotesReceivableRelatedPartiesCurrent" xlink:label="loc_us-gaap_NotesReceivableRelatedPartiesCurrent_824044" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_824032" xlink:to="loc_us-gaap_NotesReceivableRelatedPartiesCurrent_824044" use="optional" order="21" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_824019" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_824032" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_824019" use="optional" order="22" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RestrictedCash" xlink:label="loc_us-gaap_RestrictedCash_1369269" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_824032" xlink:to="loc_us-gaap_RestrictedCash_1369269" use="optional" order="23" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_824050" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_824032" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_824050" use="optional" order="24" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetsCurrent" xlink:label="loc_us-gaap_AssetsCurrent_824051" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_824032" xlink:to="loc_us-gaap_AssetsCurrent_824051" use="optional" order="25" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetsNoncurrentAbstract" xlink:label="loc_us-gaap_AssetsNoncurrentAbstract_824054" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_824027" xlink:to="loc_us-gaap_AssetsNoncurrentAbstract_824054" use="optional" order="26" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquityMethodInvestments" xlink:label="loc_us-gaap_EquityMethodInvestments_824066" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_824054" xlink:to="loc_us-gaap_EquityMethodInvestments_824066" use="optional" order="27" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseRightOfUseAsset" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_824072" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_824054" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_824072" use="optional" order="28" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetsNoncurrent" xlink:label="loc_us-gaap_AssetsNoncurrent_824076" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_824054" xlink:to="loc_us-gaap_AssetsNoncurrent_824076" use="optional" order="29" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PrepaidExpenseAndOtherAssetsNoncurrent" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsNoncurrent_824063" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_824054" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsNoncurrent_824063" use="optional" order="30" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_824056" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_824054" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_824056" use="optional" order="31" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NotesReceivableRelatedPartiesNoncurrent" xlink:label="loc_us-gaap_NotesReceivableRelatedPartiesNoncurrent_824068" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_824054" xlink:to="loc_us-gaap_NotesReceivableRelatedPartiesNoncurrent_824068" use="optional" order="32" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_824060" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_824054" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_824060" use="optional" order="33" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_1386675" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_824054" xlink:to="loc_us-gaap_Goodwill_1386675" use="optional" order="34" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesNoncurrentAbstract" xlink:label="loc_us-gaap_LiabilitiesNoncurrentAbstract_824122" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_824012" xlink:to="loc_us-gaap_LiabilitiesNoncurrentAbstract_824122" use="optional" order="35" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesNoncurrent" xlink:label="loc_us-gaap_LiabilitiesNoncurrent_824137" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesNoncurrentAbstract_824122" xlink:to="loc_us-gaap_LiabilitiesNoncurrent_824137" use="optional" order="36" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DueToAffiliateNoncurrent" xlink:label="loc_us-gaap_DueToAffiliateNoncurrent_824241" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesNoncurrentAbstract_824122" xlink:to="loc_us-gaap_DueToAffiliateNoncurrent_824241" use="optional" order="37" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_824135" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesNoncurrentAbstract_824122" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_824135" use="optional" order="38" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Liabilities" xlink:label="loc_us-gaap_Liabilities_824138" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesNoncurrentAbstract_824122" xlink:to="loc_us-gaap_Liabilities_824138" use="optional" order="39" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DueToRelatedPartiesNoncurrent" xlink:label="loc_us-gaap_DueToRelatedPartiesNoncurrent_1369270" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesNoncurrentAbstract_824122" xlink:to="loc_us-gaap_DueToRelatedPartiesNoncurrent_1369270" use="optional" order="40" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilitiesNet" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_824130" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesNoncurrentAbstract_824122" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_824130" use="optional" order="41" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_824131" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesNoncurrentAbstract_824122" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_824131" use="optional" order="42" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/OrganizationAndBasisOfPresentationScheduleOfAssetsLiabilitiesResultsOfVariableInterestEntitiesParentheticalDetail">
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems" xlink:label="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_824264" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_OrganizationConsolidationAndPresentationOfFinancialStatementsTable" xlink:label="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_824263" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_824264" xlink:to="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_824263" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesAxis" xlink:label="loc_srt_ConsolidatedEntitiesAxis_824265" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsTable_824263" xlink:to="loc_srt_ConsolidatedEntitiesAxis_824265" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_824266" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_824265" xlink:to="loc_srt_ConsolidatedEntitiesDomain_824266" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_824266_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_824265" xlink:to="loc_srt_ConsolidatedEntitiesDomain_824266_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_VariableInterestEntityPrimaryBeneficiaryMember" xlink:label="loc_us-gaap_VariableInterestEntityPrimaryBeneficiaryMember_824267" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_824266" xlink:to="loc_us-gaap_VariableInterestEntityPrimaryBeneficiaryMember_824267" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_824268" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems_824264" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_824268" use="optional" order="6" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/SummaryOfSignificantAccountingPoliciesAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_AccountingPoliciesLineItems" xlink:label="loc_kc_AccountingPoliciesLineItems_824126" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ImpairmentOfLongLivedAssetsHeldForUse" xlink:label="loc_us-gaap_ImpairmentOfLongLivedAssetsHeldForUse_824156" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_AccountingPoliciesLineItems_824126" xlink:to="loc_us-gaap_ImpairmentOfLongLivedAssetsHeldForUse_824156" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_AccountingPoliciesTable" xlink:label="loc_kc_AccountingPoliciesTable_824124" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_kc_AccountingPoliciesLineItems_824126" xlink:to="loc_kc_AccountingPoliciesTable_824124" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_824142" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_AccountingPoliciesTable_824124" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_824142" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_824143" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_824142" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_824143" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_824143_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_824142" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_824143_default" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_EventAxis" xlink:label="loc_kc_EventAxis_824139" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_AccountingPoliciesTable_824124" xlink:to="loc_kc_EventAxis_824139" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_EventDomain" xlink:label="loc_kc_EventDomain_824140" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_kc_EventAxis_824139" xlink:to="loc_kc_EventDomain_824140" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_EventDomain" xlink:label="loc_kc_EventDomain_824140_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_kc_EventAxis_824139" xlink:to="loc_kc_EventDomain_824140_default" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AdjustmentsForNewAccountingPronouncementsAxis" xlink:label="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_824207" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_AccountingPoliciesTable_824124" xlink:to="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_824207" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:label="loc_us-gaap_TypeOfAdoptionMember_824209" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_824207" xlink:to="loc_us-gaap_TypeOfAdoptionMember_824209" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:label="loc_us-gaap_TypeOfAdoptionMember_824209_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_824207" xlink:to="loc_us-gaap_TypeOfAdoptionMember_824209_default" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ProductOrServiceAxis" xlink:label="loc_srt_ProductOrServiceAxis_824181" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_AccountingPoliciesTable_824124" xlink:to="loc_srt_ProductOrServiceAxis_824181" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_824183" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_824181" xlink:to="loc_srt_ProductsAndServicesDomain_824183" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_824183_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_824181" xlink:to="loc_srt_ProductsAndServicesDomain_824183_default" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ChangeInAccountingEstimateByTypeAxis" xlink:label="loc_us-gaap_ChangeInAccountingEstimateByTypeAxis_854946" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_AccountingPoliciesTable_824124" xlink:to="loc_us-gaap_ChangeInAccountingEstimateByTypeAxis_854946" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ChangeInAccountingEstimateTypeDomain" xlink:label="loc_us-gaap_ChangeInAccountingEstimateTypeDomain_854947" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ChangeInAccountingEstimateByTypeAxis_854946" xlink:to="loc_us-gaap_ChangeInAccountingEstimateTypeDomain_854947" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ChangeInAccountingEstimateTypeDomain" xlink:label="loc_us-gaap_ChangeInAccountingEstimateTypeDomain_854947_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ChangeInAccountingEstimateByTypeAxis_854946" xlink:to="loc_us-gaap_ChangeInAccountingEstimateTypeDomain_854947_default" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_1369380" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_AccountingPoliciesTable_824124" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_1369380" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_1369382" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_1369380" xlink:to="loc_us-gaap_RelatedPartyDomain_1369382" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_1369382_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_1369380" xlink:to="loc_us-gaap_RelatedPartyDomain_1369382_default" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ForeignCurrencyExchangeRateTranslation1" xlink:label="loc_us-gaap_ForeignCurrencyExchangeRateTranslation1_854960" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_AccountingPoliciesLineItems_824126" xlink:to="loc_us-gaap_ForeignCurrencyExchangeRateTranslation1_854960" use="optional" order="21" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EmployeeBenefitsAndShareBasedCompensation" xlink:label="loc_us-gaap_EmployeeBenefitsAndShareBasedCompensation_824222" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_AccountingPoliciesLineItems_824126" xlink:to="loc_us-gaap_EmployeeBenefitsAndShareBasedCompensation_824222" use="optional" order="22" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueAmount" xlink:label="loc_us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueAmount_824151" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_AccountingPoliciesLineItems_824126" xlink:to="loc_us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueAmount_824151" use="optional" order="23" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueImpairmentLossCumulativeAmount" xlink:label="loc_us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueImpairmentLossCumulativeAmount_824152" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_AccountingPoliciesLineItems_824126" xlink:to="loc_us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueImpairmentLossCumulativeAmount_824152" use="optional" order="24" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AdvertisingExpense" xlink:label="loc_us-gaap_AdvertisingExpense_824197" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_AccountingPoliciesLineItems_824126" xlink:to="loc_us-gaap_AdvertisingExpense_824197" use="optional" order="25" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueUpwardPriceAdjustmentAnnualAmount" xlink:label="loc_us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueUpwardPriceAdjustmentAnnualAmount_903356" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_AccountingPoliciesLineItems_824126" xlink:to="loc_us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueUpwardPriceAdjustmentAnnualAmount_903356" use="optional" order="26" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueDownwardPriceAdjustmentAnnualAmount" xlink:label="loc_us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueDownwardPriceAdjustmentAnnualAmount_903360" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_AccountingPoliciesLineItems_824126" xlink:to="loc_us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueDownwardPriceAdjustmentAnnualAmount_903360" use="optional" order="27" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_1369421" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_AccountingPoliciesLineItems_824126" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_1369421" use="optional" order="28" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquityMethodInvestmentRealizedGainLossOnDisposal" xlink:label="loc_us-gaap_EquityMethodInvestmentRealizedGainLossOnDisposal_1369376" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_AccountingPoliciesLineItems_824126" xlink:to="loc_us-gaap_EquityMethodInvestmentRealizedGainLossOnDisposal_1369376" use="optional" order="29" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsToAcquireEquityMethodInvestments" xlink:label="loc_us-gaap_PaymentsToAcquireEquityMethodInvestments_1369371" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_AccountingPoliciesLineItems_824126" xlink:to="loc_us-gaap_PaymentsToAcquireEquityMethodInvestments_1369371" use="optional" order="30" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueUpwardPriceAdjustmentCumulativeAmount" xlink:label="loc_us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueUpwardPriceAdjustmentCumulativeAmount_1386682" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_AccountingPoliciesLineItems_824126" xlink:to="loc_us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueUpwardPriceAdjustmentCumulativeAmount_1386682" use="optional" order="31" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NumberOfReportingUnits" xlink:label="loc_us-gaap_NumberOfReportingUnits_1386691" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_AccountingPoliciesLineItems_824126" xlink:to="loc_us-gaap_NumberOfReportingUnits_1386691" use="optional" order="32" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/SummaryOfSignificantAccountingPoliciesScheduleOfPropertyPlantAndEquipmentUsefulLivesDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PropertyPlantAndEquipmentLineItems" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_823881" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_823864" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_823881" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_823864" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_823865" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_823864" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_823865" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_823866" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_823865" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_823866" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_823866_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_823865" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_823866_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ElectronicEquipmentMember" xlink:label="loc_kc_ElectronicEquipmentMember_823867" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_823866" xlink:to="loc_kc_ElectronicEquipmentMember_823867" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_DataCentreMachineryAndEquipmentMember" xlink:label="loc_kc_DataCentreMachineryAndEquipmentMember_823870" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_823866" xlink:to="loc_kc_DataCentreMachineryAndEquipmentMember_823870" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OfficeEquipmentMember" xlink:label="loc_us-gaap_OfficeEquipmentMember_823868" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_823866" xlink:to="loc_us-gaap_OfficeEquipmentMember_823868" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BuildingMember" xlink:label="loc_us-gaap_BuildingMember_1369428" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_823866" xlink:to="loc_us-gaap_BuildingMember_1369428" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_823873" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_823864" xlink:to="loc_srt_RangeAxis_823873" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_823875" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_823873" xlink:to="loc_srt_RangeMember_823875" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_823875_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_823873" xlink:to="loc_srt_RangeMember_823875_default" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_823877" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_823875" xlink:to="loc_srt_MinimumMember_823877" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_823878" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_823875" xlink:to="loc_srt_MaximumMember_823878" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PropertyPlantAndEquipmentUsefulLife" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_823882" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_823881" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_823882" use="optional" order="14" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/SummaryOfSignificantAccountingPoliciesScheduleOfFiniteLivedIntangibleAssetsUsefulLivesDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_823849" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_823851" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_823849" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_823851" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_823816" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_823849" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_823816" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_823826" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_823816" xlink:to="loc_srt_RangeAxis_823826" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_823837" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_823826" xlink:to="loc_srt_RangeMember_823837" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_823837_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_823826" xlink:to="loc_srt_RangeMember_823837_default" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_823839" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_823837" xlink:to="loc_srt_MaximumMember_823839" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_823838" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_823837" xlink:to="loc_srt_MinimumMember_823838" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_823817" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_823816" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_823817" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_823818" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_823817" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_823818" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_823818_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_823817" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_823818_default" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_OthersMember" xlink:label="loc_kc_OthersMember_823824" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_823818" xlink:to="loc_kc_OthersMember_823824" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CustomerRelationshipsMember" xlink:label="loc_us-gaap_CustomerRelationshipsMember_1369434" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_823818" xlink:to="loc_us-gaap_CustomerRelationshipsMember_1369434" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_PatentsAndTechnologyMember" xlink:label="loc_kc_PatentsAndTechnologyMember_1369435" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_823818" xlink:to="loc_kc_PatentsAndTechnologyMember_1369435" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_TradeMarksAndDomainNamesMember" xlink:label="loc_kc_TradeMarksAndDomainNamesMember_1369436" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_823818" xlink:to="loc_kc_TradeMarksAndDomainNamesMember_1369436" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_SoftwareAndCopyrightsMember" xlink:label="loc_kc_SoftwareAndCopyrightsMember_1369437" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_823818" xlink:to="loc_kc_SoftwareAndCopyrightsMember_1369437" use="optional" order="15" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/ConcentrationOfRisksAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ConcentrationOfRiskLineItems" xlink:label="loc_kc_ConcentrationOfRiskLineItems_823581" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ConcentrationOfRiskTable" xlink:label="loc_kc_ConcentrationOfRiskTable_823554" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_kc_ConcentrationOfRiskLineItems_823581" xlink:to="loc_kc_ConcentrationOfRiskTable_823554" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_823557" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_ConcentrationOfRiskTable_823554" xlink:to="loc_srt_RangeAxis_823557" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_823566" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_823557" xlink:to="loc_srt_RangeMember_823566" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_823566_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_823557" xlink:to="loc_srt_RangeMember_823566_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_823564" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_823566" xlink:to="loc_srt_MinimumMember_823564" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_MajorCustomersAxis" xlink:label="loc_srt_MajorCustomersAxis_823562" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_ConcentrationOfRiskTable_823554" xlink:to="loc_srt_MajorCustomersAxis_823562" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_NameOfMajorCustomerDomain" xlink:label="loc_srt_NameOfMajorCustomerDomain_823571" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MajorCustomersAxis_823562" xlink:to="loc_srt_NameOfMajorCustomerDomain_823571" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_NameOfMajorCustomerDomain" xlink:label="loc_srt_NameOfMajorCustomerDomain_823571_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MajorCustomersAxis_823562" xlink:to="loc_srt_NameOfMajorCustomerDomain_823571_default" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_TwoCustomersMember" xlink:label="loc_kc_TwoCustomersMember_823574" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_823571" xlink:to="loc_kc_TwoCustomersMember_823574" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_CustomerThreeMember" xlink:label="loc_kc_CustomerThreeMember_823601" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_823571" xlink:to="loc_kc_CustomerThreeMember_823601" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_CustomerOneMember" xlink:label="loc_kc_CustomerOneMember_823596" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_823571" xlink:to="loc_kc_CustomerOneMember_823596" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_CustomerTwoMember" xlink:label="loc_kc_CustomerTwoMember_823598" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_823571" xlink:to="loc_kc_CustomerTwoMember_823598" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ConcentrationRiskByTypeAxis" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_1378827" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_ConcentrationOfRiskTable_823554" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_1378827" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_1378828" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_1378827" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_1378828" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_1378828_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_1378827" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_1378828_default" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CustomerConcentrationRiskMember" xlink:label="loc_us-gaap_CustomerConcentrationRiskMember_1378830" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_1378828" xlink:to="loc_us-gaap_CustomerConcentrationRiskMember_1378830" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_823561" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_ConcentrationOfRiskTable_823554" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_823561" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_823569" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_823561" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_823569" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_823569_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_823561" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_823569_default" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SalesRevenueNetMember" xlink:label="loc_us-gaap_SalesRevenueNetMember_823603" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_823569" xlink:to="loc_us-gaap_SalesRevenueNetMember_823603" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccountsReceivableMember" xlink:label="loc_us-gaap_AccountsReceivableMember_823563" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_823569" xlink:to="loc_us-gaap_AccountsReceivableMember_823563" use="optional" order="21" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ContractAssetMember" xlink:label="loc_kc_ContractAssetMember_1410855" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_823569" xlink:to="loc_kc_ContractAssetMember_1410855" use="optional" order="22" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_PercentageDepreciationInForeignCurrencyExchangeRate" xlink:label="loc_kc_PercentageDepreciationInForeignCurrencyExchangeRate_823607" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_ConcentrationOfRiskLineItems_823581" xlink:to="loc_kc_PercentageDepreciationInForeignCurrencyExchangeRate_823607" use="optional" order="23" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ConcentrationRiskPercentage1" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_823584" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_ConcentrationOfRiskLineItems_823581" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_823584" use="optional" order="24" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/BusinessCombinationSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetail">
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedLineItems" xlink:label="loc_kc_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedLineItems_1369493" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_1369501" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedLineItems_1369493" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_1369501" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedRestrictedCash" xlink:label="loc_kc_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedRestrictedCash_1369514" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedLineItems_1369493" xlink:to="loc_kc_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedRestrictedCash_1369514" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccountsReceivablesAndOtherAssets" xlink:label="loc_kc_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccountsReceivablesAndOtherAssets_1369515" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedLineItems_1369493" xlink:to="loc_kc_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccountsReceivablesAndOtherAssets_1369515" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTable" xlink:label="loc_kc_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTable_1369480" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_kc_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedLineItems_1369493" xlink:to="loc_kc_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTable_1369480" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_1369483" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTable_1369480" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_1369483" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1369484" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_1369483" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1369484" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1369484_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_1369483" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1369484_default" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CustomerRelationshipsMember" xlink:label="loc_us-gaap_CustomerRelationshipsMember_1369485" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1369484" xlink:to="loc_us-gaap_CustomerRelationshipsMember_1369485" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_SoftwareAndCopyrightsMember" xlink:label="loc_kc_SoftwareAndCopyrightsMember_1369489" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1369484" xlink:to="loc_kc_SoftwareAndCopyrightsMember_1369489" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TrademarksMember" xlink:label="loc_us-gaap_TrademarksMember_1369487" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1369484" xlink:to="loc_us-gaap_TrademarksMember_1369487" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_1389361" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTable_1369480" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_1389361" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1389362" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_1389361" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1389362" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1389362_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_1389361" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1389362_default" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_CamelotGroupMember" xlink:label="loc_kc_CamelotGroupMember_1389364" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1389362" xlink:to="loc_kc_CamelotGroupMember_1389364" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxAssets" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxAssets_1369519" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedLineItems_1369493" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxAssets_1369519" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_1369516" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedLineItems_1369493" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_1369516" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_1369524" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedLineItems_1369493" xlink:to="loc_us-gaap_Goodwill_1369524" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwillAbstract" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwillAbstract_1369517" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedLineItems_1369493" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwillAbstract_1369517" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_1369518" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwillAbstract_1369517" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_1369518" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessCombinationConsiderationTransferred1" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferred1_1369500" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedLineItems_1369493" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferred1_1369500" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilities" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilities_1369521" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedLineItems_1369493" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilities_1369521" use="optional" order="21" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable_1369522" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedLineItems_1369493" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable_1369522" use="optional" order="22" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessCombinationAcquisitionOfLessThan100PercentNoncontrollingInterestFairValue" xlink:label="loc_us-gaap_BusinessCombinationAcquisitionOfLessThan100PercentNoncontrollingInterestFairValue_1369523" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedLineItems_1369493" xlink:to="loc_us-gaap_BusinessCombinationAcquisitionOfLessThan100PercentNoncontrollingInterestFairValue_1369523" use="optional" order="23" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/BusinessCombinationAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_1369544" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessAcquisitionPercentageOfVotingInterestsAcquired" xlink:label="loc_us-gaap_BusinessAcquisitionPercentageOfVotingInterestsAcquired_1369578" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_1369544" xlink:to="loc_us-gaap_BusinessAcquisitionPercentageOfVotingInterestsAcquired_1369578" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_1369541" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_1369544" xlink:to="loc_us-gaap_StatementTable_1369541" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_1369545" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_1369541" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_1369545" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1369546" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_1369545" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1369546" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1369546_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_1369545" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1369546_default" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ShenzhenYunfanMember" xlink:label="loc_kc_ShenzhenYunfanMember_1369547" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1369546" xlink:to="loc_kc_ShenzhenYunfanMember_1369547" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_BeijingYunshuMember" xlink:label="loc_kc_BeijingYunshuMember_1369569" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1369546" xlink:to="loc_kc_BeijingYunshuMember_1369569" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_CamelotGroupMember" xlink:label="loc_kc_CamelotGroupMember_1369573" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1369546" xlink:to="loc_kc_CamelotGroupMember_1369573" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_1369550" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_1369541" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_1369550" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1369551" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_1369550" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1369551" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1369551_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_1369550" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1369551_default" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_1369560" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_1369541" xlink:to="loc_us-gaap_AwardTypeAxis_1369560" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1369562" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_1369560" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1369562" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1369562_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_1369560" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1369562_default" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_1369614" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_1369544" xlink:to="loc_us-gaap_Goodwill_1369614" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessCombinationContingentConsiderationLiability" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_1369618" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_1369544" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_1369618" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessCombinationConsiderationTransferred1" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferred1_1369620" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_1369544" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferred1_1369620" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable_1369622" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_1369544" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable_1369622" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill_1369611" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_1369544" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill_1369611" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsToAcquireBusinessesGross" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesGross_1369594" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_1369544" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesGross_1369594" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssets" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssets_1403255" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_1369544" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssets_1403255" use="optional" order="21" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/RevenuesSummaryOfDisaggregationOfRevenueDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DisaggregationOfRevenueLineItems" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_823460" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DisaggregationOfRevenueTable" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_823456" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_823460" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_823456" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TimingOfTransferOfGoodOrServiceAxis" xlink:label="loc_us-gaap_TimingOfTransferOfGoodOrServiceAxis_823480" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_823456" xlink:to="loc_us-gaap_TimingOfTransferOfGoodOrServiceAxis_823480" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TimingOfTransferOfGoodOrServiceDomain" xlink:label="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_823481" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_TimingOfTransferOfGoodOrServiceAxis_823480" xlink:to="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_823481" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TimingOfTransferOfGoodOrServiceDomain" xlink:label="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_823481_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_TimingOfTransferOfGoodOrServiceAxis_823480" xlink:to="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_823481_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TransferredOverTimeMember" xlink:label="loc_us-gaap_TransferredOverTimeMember_823482" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_823481" xlink:to="loc_us-gaap_TransferredOverTimeMember_823482" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TransferredAtPointInTimeMember" xlink:label="loc_us-gaap_TransferredAtPointInTimeMember_823484" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_823481" xlink:to="loc_us-gaap_TransferredAtPointInTimeMember_823484" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ProductOrServiceAxis" xlink:label="loc_srt_ProductOrServiceAxis_823469" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_823456" xlink:to="loc_srt_ProductOrServiceAxis_823469" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_823470" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_823469" xlink:to="loc_srt_ProductsAndServicesDomain_823470" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_823470_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_823469" xlink:to="loc_srt_ProductsAndServicesDomain_823470_default" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProductAndServiceOtherMember" xlink:label="loc_us-gaap_ProductAndServiceOtherMember_823479" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_823470" xlink:to="loc_us-gaap_ProductAndServiceOtherMember_823479" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_EnterpriseCloudServicesMember" xlink:label="loc_kc_EnterpriseCloudServicesMember_823478" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_823470" xlink:to="loc_kc_EnterpriseCloudServicesMember_823478" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_PublicCloudServicesMember" xlink:label="loc_kc_PublicCloudServicesMember_823474" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_823470" xlink:to="loc_kc_PublicCloudServicesMember_823474" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_823466" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_823460" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_823466" use="optional" order="13" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/RevenuesSummaryOfRevenueRemainingPerformanceObligationDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_824091" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_824088" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_824091" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_824088" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ContractWithCustomerDurationAxis" xlink:label="loc_us-gaap_ContractWithCustomerDurationAxis_825907" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_824088" xlink:to="loc_us-gaap_ContractWithCustomerDurationAxis_825907" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ContractWithCustomerDurationDomain" xlink:label="loc_us-gaap_ContractWithCustomerDurationDomain_825908" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ContractWithCustomerDurationAxis_825907" xlink:to="loc_us-gaap_ContractWithCustomerDurationDomain_825908" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ContractWithCustomerDurationDomain" xlink:label="loc_us-gaap_ContractWithCustomerDurationDomain_825908_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ContractWithCustomerDurationAxis_825907" xlink:to="loc_us-gaap_ContractWithCustomerDurationDomain_825908_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_WithinOneYearMember" xlink:label="loc_kc_WithinOneYearMember_825909" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerDurationDomain_825908" xlink:to="loc_kc_WithinOneYearMember_825909" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_MoreThanOneYearMember" xlink:label="loc_kc_MoreThanOneYearMember_825910" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerDurationDomain_825908" xlink:to="loc_kc_MoreThanOneYearMember_825910" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligation" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_824092" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_824091" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_824092" use="optional" order="7" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/PropertyAndEquipmentNetScheduleOfPropertyAndEquipmentNetDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PropertyPlantAndEquipmentLineItems" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_823278" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PropertyPlantAndEquipmentGross" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_823284" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_823278" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_823284" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_823285" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_823278" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_823285" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_823286" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_823278" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_823286" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_823263" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_823278" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_823263" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_823264" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_823263" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_823264" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_823276" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_823264" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_823276" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_823276_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_823264" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_823276_default" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ConstructionInProgressMember" xlink:label="loc_us-gaap_ConstructionInProgressMember_823274" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_823276" xlink:to="loc_us-gaap_ConstructionInProgressMember_823274" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_MachineryAndEquipmentMember" xlink:label="loc_us-gaap_MachineryAndEquipmentMember_823271" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_823276" xlink:to="loc_us-gaap_MachineryAndEquipmentMember_823271" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OfficeEquipmentMember" xlink:label="loc_us-gaap_OfficeEquipmentMember_823269" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_823276" xlink:to="loc_us-gaap_OfficeEquipmentMember_823269" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ElectricGenerationEquipmentMember" xlink:label="loc_us-gaap_ElectricGenerationEquipmentMember_823265" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_823276" xlink:to="loc_us-gaap_ElectricGenerationEquipmentMember_823265" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BuildingMember" xlink:label="loc_us-gaap_BuildingMember_1369046" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_823276" xlink:to="loc_us-gaap_BuildingMember_1369046" use="optional" order="12" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/IntangibleAssetsNetScheduleOfIntangibleAssetsNetDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_823332" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_823341" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_823332" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_823341" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_823342" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_823332" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_823342" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_823319" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_823332" xlink:to="loc_us-gaap_StatementTable_823319" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_823320" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_823319" xlink:to="loc_us-gaap_StatementClassOfStockAxis_823320" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_823321" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_823320" xlink:to="loc_us-gaap_ClassOfStockDomain_823321" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_823321_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_823320" xlink:to="loc_us-gaap_ClassOfStockDomain_823321_default" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherIntangibleAssetsMember" xlink:label="loc_us-gaap_OtherIntangibleAssetsMember_823329" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_823321" xlink:to="loc_us-gaap_OtherIntangibleAssetsMember_823329" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_1369061" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_823319" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_1369061" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1369062" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_1369061" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1369062" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1369062_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_1369061" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1369062_default" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CustomerRelationshipsMember" xlink:label="loc_us-gaap_CustomerRelationshipsMember_1369063" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1369062" xlink:to="loc_us-gaap_CustomerRelationshipsMember_1369063" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_PatentsAndTechnologyMember" xlink:label="loc_kc_PatentsAndTechnologyMember_1369064" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1369062" xlink:to="loc_kc_PatentsAndTechnologyMember_1369064" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_TradeMarksAndDomainNamesMember" xlink:label="loc_kc_TradeMarksAndDomainNamesMember_1369065" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1369062" xlink:to="loc_kc_TradeMarksAndDomainNamesMember_1369065" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_SoftwareAndCopyrightsMember" xlink:label="loc_kc_SoftwareAndCopyrightsMember_1369066" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1369062" xlink:to="loc_kc_SoftwareAndCopyrightsMember_1369066" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsGross" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_823340" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_823332" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_823340" use="optional" order="15" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/GoodwillSummaryOfCarryingValueOfGoodwillDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GoodwillLineItems" xlink:label="loc_us-gaap_GoodwillLineItems_1369118" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_1369120" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_1369118" xlink:to="loc_us-gaap_Goodwill_1369120" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GoodwillAcquiredDuringPeriod" xlink:label="loc_us-gaap_GoodwillAcquiredDuringPeriod_1369122" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_1369118" xlink:to="loc_us-gaap_GoodwillAcquiredDuringPeriod_1369122" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfGoodwillTable" xlink:label="loc_us-gaap_ScheduleOfGoodwillTable_1369111" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GoodwillLineItems_1369118" xlink:to="loc_us-gaap_ScheduleOfGoodwillTable_1369111" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_CurrencyAxis" xlink:label="loc_srt_CurrencyAxis_1369113" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_1369111" xlink:to="loc_srt_CurrencyAxis_1369113" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/currency/2021/currency-2021.xsd#currency_AllCurrenciesDomain" xlink:label="loc_currency_AllCurrenciesDomain_1369115" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CurrencyAxis_1369113" xlink:to="loc_currency_AllCurrenciesDomain_1369115" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/currency/2021/currency-2021.xsd#currency_AllCurrenciesDomain" xlink:label="loc_currency_AllCurrenciesDomain_1369115_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CurrencyAxis_1369113" xlink:to="loc_currency_AllCurrenciesDomain_1369115_default" use="optional" order="6" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/GoodwillAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GoodwillLineItems" xlink:label="loc_us-gaap_GoodwillLineItems_1386639" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_1386640" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_1386639" xlink:to="loc_us-gaap_Goodwill_1386640" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfIndefiniteLivedIntangibleAssetsTable" xlink:label="loc_us-gaap_ScheduleOfIndefiniteLivedIntangibleAssetsTable_1386622" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GoodwillLineItems_1386639" xlink:to="loc_us-gaap_ScheduleOfIndefiniteLivedIntangibleAssetsTable_1386622" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ReportingUnitAxis" xlink:label="loc_us-gaap_ReportingUnitAxis_1386623" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfIndefiniteLivedIntangibleAssetsTable_1386622" xlink:to="loc_us-gaap_ReportingUnitAxis_1386623" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ReportingUnitDomain" xlink:label="loc_us-gaap_ReportingUnitDomain_1386624" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ReportingUnitAxis_1386623" xlink:to="loc_us-gaap_ReportingUnitDomain_1386624" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ReportingUnitDomain" xlink:label="loc_us-gaap_ReportingUnitDomain_1386624_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ReportingUnitAxis_1386623" xlink:to="loc_us-gaap_ReportingUnitDomain_1386624_default" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_CloudBasedDigitalSolutionAndServicesMember" xlink:label="loc_kc_CloudBasedDigitalSolutionAndServicesMember_1402423" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReportingUnitDomain_1386624" xlink:to="loc_kc_CloudBasedDigitalSolutionAndServicesMember_1402423" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_CloudServiceAndSolutionsMember" xlink:label="loc_kc_CloudServiceAndSolutionsMember_1402422" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReportingUnitDomain_1386624" xlink:to="loc_kc_CloudServiceAndSolutionsMember_1402422" use="optional" order="7" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/AccruedExpensesAndOtherLiabilitiesScheduleOfAccruedExpensesAndOtherLiabilitiesParentheticalDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_905344" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherAccruedLiabilitiesCurrent" xlink:label="loc_us-gaap_OtherAccruedLiabilitiesCurrent_905353" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_905344" xlink:to="loc_us-gaap_OtherAccruedLiabilitiesCurrent_905353" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_905341" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_905344" xlink:to="loc_us-gaap_StatementTable_905341" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BalanceSheetLocationAxis" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_905348" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_905341" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_905348" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_905349" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_905348" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_905349" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_905349_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_905348" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_905349_default" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherCurrentLiabilitiesMember" xlink:label="loc_us-gaap_OtherCurrentLiabilitiesMember_905350" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_905349" xlink:to="loc_us-gaap_OtherCurrentLiabilitiesMember_905350" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherNoncurrentLiabilitiesMember" xlink:label="loc_us-gaap_OtherNoncurrentLiabilitiesMember_905351" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_905349" xlink:to="loc_us-gaap_OtherNoncurrentLiabilitiesMember_905351" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_905342" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_905341" xlink:to="loc_us-gaap_StatementClassOfStockAxis_905342" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_905343" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_905342" xlink:to="loc_us-gaap_ClassOfStockDomain_905343" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_905343_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_905342" xlink:to="loc_us-gaap_ClassOfStockDomain_905343_default" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ReimbursementAxis" xlink:label="loc_kc_ReimbursementAxis_905345" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_905341" xlink:to="loc_kc_ReimbursementAxis_905345" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ReimbursementDomain" xlink:label="loc_kc_ReimbursementDomain_905346" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_kc_ReimbursementAxis_905345" xlink:to="loc_kc_ReimbursementDomain_905346" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ReimbursementDomain" xlink:label="loc_kc_ReimbursementDomain_905346_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_kc_ReimbursementAxis_905345" xlink:to="loc_kc_ReimbursementDomain_905346_default" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_AdsReimbursementMember" xlink:label="loc_kc_AdsReimbursementMember_905347" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_ReimbursementDomain_905346" xlink:to="loc_kc_AdsReimbursementMember_905347" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_1369264" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_905341" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_1369264" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1369268" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_1369264" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1369268" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1369268_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_1369264" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1369268_default" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_CamelotGroupMember" xlink:label="loc_kc_CamelotGroupMember_1369267" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1369268" xlink:to="loc_kc_CamelotGroupMember_1369267" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquityInterestIssuedOrIssuableByTypeAxis" xlink:label="loc_us-gaap_EquityInterestIssuedOrIssuableByTypeAxis_1386706" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_905341" xlink:to="loc_us-gaap_EquityInterestIssuedOrIssuableByTypeAxis_1386706" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquityInterestIssuedOrIssuableTypeDomain" xlink:label="loc_us-gaap_EquityInterestIssuedOrIssuableTypeDomain_1386707" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_EquityInterestIssuedOrIssuableByTypeAxis_1386706" xlink:to="loc_us-gaap_EquityInterestIssuedOrIssuableTypeDomain_1386707" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquityInterestIssuedOrIssuableTypeDomain" xlink:label="loc_us-gaap_EquityInterestIssuedOrIssuableTypeDomain_1386707_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_EquityInterestIssuedOrIssuableByTypeAxis_1386706" xlink:to="loc_us-gaap_EquityInterestIssuedOrIssuableTypeDomain_1386707_default" use="optional" order="21" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommonStockMember" xlink:label="loc_us-gaap_CommonStockMember_1386708" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityInterestIssuedOrIssuableTypeDomain_1386707" xlink:to="loc_us-gaap_CommonStockMember_1386708" use="optional" order="22" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ReimbursementReceived" xlink:label="loc_kc_ReimbursementReceived_905352" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_905344" xlink:to="loc_kc_ReimbursementReceived_905352" use="optional" order="23" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherAccruedLiabilitiesNoncurrent" xlink:label="loc_us-gaap_OtherAccruedLiabilitiesNoncurrent_905354" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_905344" xlink:to="loc_us-gaap_OtherAccruedLiabilitiesNoncurrent_905354" use="optional" order="24" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_AccrualOfPurchaseConsiderationPayableNonCurrent" xlink:label="loc_kc_AccrualOfPurchaseConsiderationPayableNonCurrent_1369263" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_905344" xlink:to="loc_kc_AccrualOfPurchaseConsiderationPayableNonCurrent_1369263" use="optional" order="25" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_AccrualOfPurchaseConsiderationPayableCurrent" xlink:label="loc_kc_AccrualOfPurchaseConsiderationPayableCurrent_1369262" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_905344" xlink:to="loc_kc_AccrualOfPurchaseConsiderationPayableCurrent_1369262" use="optional" order="26" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessAcquisitionEquityInterestIssuedOrIssuableValueAssigned" xlink:label="loc_us-gaap_BusinessAcquisitionEquityInterestIssuedOrIssuableValueAssigned_1386703" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_905344" xlink:to="loc_us-gaap_BusinessAcquisitionEquityInterestIssuedOrIssuableValueAssigned_1386703" use="optional" order="27" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/BankLoansScheduleOfBankLoansDetail">
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ScheduleOfDebtLineItems" xlink:label="loc_kc_ScheduleOfDebtLineItems_825530" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ScheduleOfDebtTable" xlink:label="loc_kc_ScheduleOfDebtTable_825529" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_kc_ScheduleOfDebtLineItems_825530" xlink:to="loc_kc_ScheduleOfDebtTable_825529" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_LongTermThirdPartyBankLoanGuaranteedByARelatedPartyAbstract" xlink:label="loc_kc_LongTermThirdPartyBankLoanGuaranteedByARelatedPartyAbstract_825532" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_ScheduleOfDebtLineItems_825530" xlink:to="loc_kc_LongTermThirdPartyBankLoanGuaranteedByARelatedPartyAbstract_825532" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongTermDebtCurrent" xlink:label="loc_us-gaap_LongTermDebtCurrent_825533" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_LongTermThirdPartyBankLoanGuaranteedByARelatedPartyAbstract_825532" xlink:to="loc_us-gaap_LongTermDebtCurrent_825533" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DebtLongtermAndShorttermCombinedAmount" xlink:label="loc_us-gaap_DebtLongtermAndShorttermCombinedAmount_825535" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_ScheduleOfDebtLineItems_825530" xlink:to="loc_us-gaap_DebtLongtermAndShorttermCombinedAmount_825535" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShortTermBorrowings" xlink:label="loc_us-gaap_ShortTermBorrowings_825531" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_ScheduleOfDebtLineItems_825530" xlink:to="loc_us-gaap_ShortTermBorrowings_825531" use="optional" order="5" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/BankLoansAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ScheduleOfDebtLineItems" xlink:label="loc_kc_ScheduleOfDebtLineItems_825542" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ScheduleOfDebtTable" xlink:label="loc_kc_ScheduleOfDebtTable_825538" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_kc_ScheduleOfDebtLineItems_825542" xlink:to="loc_kc_ScheduleOfDebtTable_825538" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShortTermDebtTypeAxis" xlink:label="loc_us-gaap_ShortTermDebtTypeAxis_825539" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_ScheduleOfDebtTable_825538" xlink:to="loc_us-gaap_ShortTermDebtTypeAxis_825539" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShortTermDebtTypeDomain" xlink:label="loc_us-gaap_ShortTermDebtTypeDomain_825540" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ShortTermDebtTypeAxis_825539" xlink:to="loc_us-gaap_ShortTermDebtTypeDomain_825540" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShortTermDebtTypeDomain" xlink:label="loc_us-gaap_ShortTermDebtTypeDomain_825540_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ShortTermDebtTypeAxis_825539" xlink:to="loc_us-gaap_ShortTermDebtTypeDomain_825540_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongtermDebtTypeAxis" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_1369486" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_ScheduleOfDebtTable_825538" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_1369486" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_1369488" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_1369486" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_1369488" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_1369488_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_1369486" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_1369488_default" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShortTermDebtWeightedAverageInterestRate" xlink:label="loc_us-gaap_ShortTermDebtWeightedAverageInterestRate_903144" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_ScheduleOfDebtLineItems_825542" xlink:to="loc_us-gaap_ShortTermDebtWeightedAverageInterestRate_903144" use="optional" order="8" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/TaxationAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_IncomeTaxDisclosureLineItems" xlink:label="loc_kc_IncomeTaxDisclosureLineItems_824749" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_TaxWitholdingRatesOnInterestAndDividendPayments" xlink:label="loc_kc_TaxWitholdingRatesOnInterestAndDividendPayments_824752" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_IncomeTaxDisclosureLineItems_824749" xlink:to="loc_kc_TaxWitholdingRatesOnInterestAndDividendPayments_824752" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_IncomeTaxDisclosureTable" xlink:label="loc_kc_IncomeTaxDisclosureTable_824748" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_kc_IncomeTaxDisclosureLineItems_824749" xlink:to="loc_kc_IncomeTaxDisclosureTable_824748" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_StatementGeographicalAxis" xlink:label="loc_srt_StatementGeographicalAxis_824756" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_IncomeTaxDisclosureTable_824748" xlink:to="loc_srt_StatementGeographicalAxis_824756" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srt_SegmentGeographicalDomain_824757" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_824756" xlink:to="loc_srt_SegmentGeographicalDomain_824757" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srt_SegmentGeographicalDomain_824757_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_824756" xlink:to="loc_srt_SegmentGeographicalDomain_824757_default" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2021/country-2021.xsd#country_HK" xlink:label="loc_country_HK_824758" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_824757" xlink:to="loc_country_HK_824758" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2021/country-2021.xsd#country_CN" xlink:label="loc_country_CN_824759" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_824757" xlink:to="loc_country_CN_824759" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TaxPeriodAxis" xlink:label="loc_us-gaap_TaxPeriodAxis_824765" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_IncomeTaxDisclosureTable_824748" xlink:to="loc_us-gaap_TaxPeriodAxis_824765" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TaxPeriodDomain" xlink:label="loc_us-gaap_TaxPeriodDomain_824766" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_TaxPeriodAxis_824765" xlink:to="loc_us-gaap_TaxPeriodDomain_824766" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TaxPeriodDomain" xlink:label="loc_us-gaap_TaxPeriodDomain_824766_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_TaxPeriodAxis_824765" xlink:to="loc_us-gaap_TaxPeriodDomain_824766_default" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_EventAxis" xlink:label="loc_kc_EventAxis_824771" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_IncomeTaxDisclosureTable_824748" xlink:to="loc_kc_EventAxis_824771" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_EventDomain" xlink:label="loc_kc_EventDomain_824772" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_kc_EventAxis_824771" xlink:to="loc_kc_EventDomain_824772" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_EventDomain" xlink:label="loc_kc_EventDomain_824772_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_kc_EventAxis_824771" xlink:to="loc_kc_EventDomain_824772_default" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_TaxWithholdingOnPaymentOfInterestAndDividendsToNonPrcResidentEnterprisesMember" xlink:label="loc_kc_TaxWithholdingOnPaymentOfInterestAndDividendsToNonPrcResidentEnterprisesMember_824776" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_EventDomain_824772" xlink:to="loc_kc_TaxWithholdingOnPaymentOfInterestAndDividendsToNonPrcResidentEnterprisesMember_824776" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_IncomeTaxRateDetailsAxis" xlink:label="loc_kc_IncomeTaxRateDetailsAxis_824777" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_IncomeTaxDisclosureTable_824748" xlink:to="loc_kc_IncomeTaxRateDetailsAxis_824777" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_IncomeTaxRateDetailsDomain" xlink:label="loc_kc_IncomeTaxRateDetailsDomain_824778" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_kc_IncomeTaxRateDetailsAxis_824777" xlink:to="loc_kc_IncomeTaxRateDetailsDomain_824778" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_IncomeTaxRateDetailsDomain" xlink:label="loc_kc_IncomeTaxRateDetailsDomain_824778_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_kc_IncomeTaxRateDetailsAxis_824777" xlink:to="loc_kc_IncomeTaxRateDetailsDomain_824778_default" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_PreferentialIncomeTaxRateMember" xlink:label="loc_kc_PreferentialIncomeTaxRateMember_824779" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_IncomeTaxRateDetailsDomain_824778" xlink:to="loc_kc_PreferentialIncomeTaxRateMember_824779" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesAxis" xlink:label="loc_srt_ConsolidatedEntitiesAxis_824760" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_IncomeTaxDisclosureTable_824748" xlink:to="loc_srt_ConsolidatedEntitiesAxis_824760" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_824761" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_824760" xlink:to="loc_srt_ConsolidatedEntitiesDomain_824761" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_824761_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_824760" xlink:to="loc_srt_ConsolidatedEntitiesDomain_824761_default" use="optional" order="21" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_BeijingKingsoftCloudNetworkTechnologyCoLtdMember" xlink:label="loc_kc_BeijingKingsoftCloudNetworkTechnologyCoLtdMember_824762" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_824761" xlink:to="loc_kc_BeijingKingsoftCloudNetworkTechnologyCoLtdMember_824762" use="optional" order="22" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_824807" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_IncomeTaxDisclosureTable_824748" xlink:to="loc_srt_RangeAxis_824807" use="optional" order="23" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_824808" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_824807" xlink:to="loc_srt_RangeMember_824808" use="optional" order="24" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_824808_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_824807" xlink:to="loc_srt_RangeMember_824808_default" use="optional" order="25" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BalanceSheetLocationAxis" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_1369698" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_IncomeTaxDisclosureTable_824748" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_1369698" use="optional" order="26" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_1369700" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_1369698" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_1369700" use="optional" order="27" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_1369700_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_1369698" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_1369700_default" use="optional" order="28" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_StatementScenarioAxis" xlink:label="loc_srt_StatementScenarioAxis_824768" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_IncomeTaxDisclosureTable_824748" xlink:to="loc_srt_StatementScenarioAxis_824768" use="optional" order="29" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ScenarioUnspecifiedDomain" xlink:label="loc_srt_ScenarioUnspecifiedDomain_824769" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementScenarioAxis_824768" xlink:to="loc_srt_ScenarioUnspecifiedDomain_824769" use="optional" order="30" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ScenarioUnspecifiedDomain" xlink:label="loc_srt_ScenarioUnspecifiedDomain_824769_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementScenarioAxis_824768" xlink:to="loc_srt_ScenarioUnspecifiedDomain_824769_default" use="optional" order="31" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_824815" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_IncomeTaxDisclosureTable_824748" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_824815" use="optional" order="32" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_824816" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_824815" xlink:to="loc_us-gaap_RelatedPartyDomain_824816" use="optional" order="33" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_824816_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_824815" xlink:to="loc_us-gaap_RelatedPartyDomain_824816_default" use="optional" order="34" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_824750" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_IncomeTaxDisclosureLineItems_824749" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_824750" use="optional" order="35" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLossCarryforwards" xlink:label="loc_us-gaap_OperatingLossCarryforwards_824753" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_IncomeTaxDisclosureLineItems_824749" xlink:to="loc_us-gaap_OperatingLossCarryforwards_824753" use="optional" order="36" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_UnrecognizedTaxBenefitsThatWouldImpactEffectiveTaxRate" xlink:label="loc_us-gaap_UnrecognizedTaxBenefitsThatWouldImpactEffectiveTaxRate_1369783" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_IncomeTaxDisclosureLineItems_824749" xlink:to="loc_us-gaap_UnrecognizedTaxBenefitsThatWouldImpactEffectiveTaxRate_1369783" use="optional" order="37" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_UnrecognizedTaxBenefitsSetoffAgainstDeferredTaxAssets" xlink:label="loc_kc_UnrecognizedTaxBenefitsSetoffAgainstDeferredTaxAssets_1378358" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_IncomeTaxDisclosureLineItems_824749" xlink:to="loc_kc_UnrecognizedTaxBenefitsSetoffAgainstDeferredTaxAssets_1378358" use="optional" order="38" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilityForUncertainTaxPositionsNoncurrent" xlink:label="loc_us-gaap_LiabilityForUncertainTaxPositionsNoncurrent_1378356" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_IncomeTaxDisclosureLineItems_824749" xlink:to="loc_us-gaap_LiabilityForUncertainTaxPositionsNoncurrent_1378356" use="optional" order="39" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_UnrecognizedTaxBenefitsInterestOnIncomeTaxesExpense" xlink:label="loc_us-gaap_UnrecognizedTaxBenefitsInterestOnIncomeTaxesExpense_1386807" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_IncomeTaxDisclosureLineItems_824749" xlink:to="loc_us-gaap_UnrecognizedTaxBenefitsInterestOnIncomeTaxesExpense_1386807" use="optional" order="40" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_UnrecognizedTaxBenefitsInterestOnIncomeTaxesAccrued" xlink:label="loc_us-gaap_UnrecognizedTaxBenefitsInterestOnIncomeTaxesAccrued_1386808" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_IncomeTaxDisclosureLineItems_824749" xlink:to="loc_us-gaap_UnrecognizedTaxBenefitsInterestOnIncomeTaxesAccrued_1386808" use="optional" order="41" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_UnrecognizedTaxBenefits" xlink:label="loc_us-gaap_UnrecognizedTaxBenefits_904241" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_IncomeTaxDisclosureLineItems_824749" xlink:to="loc_us-gaap_UnrecognizedTaxBenefits_904241" use="optional" order="42" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/ConvertiblePreferredSharesAndRedeemableConvertiblePreferredSharesAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ConvertiblePreferredStockAndRedeemableConvertiblePreferredStockLineItems" xlink:label="loc_kc_ConvertiblePreferredStockAndRedeemableConvertiblePreferredStockLineItems_824578" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PreferredStockSharesIssued" xlink:label="loc_us-gaap_PreferredStockSharesIssued_826000" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_ConvertiblePreferredStockAndRedeemableConvertiblePreferredStockLineItems_824578" xlink:to="loc_us-gaap_PreferredStockSharesIssued_826000" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PreferredStockSharesOutstanding" xlink:label="loc_us-gaap_PreferredStockSharesOutstanding_824579" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_ConvertiblePreferredStockAndRedeemableConvertiblePreferredStockLineItems_824578" xlink:to="loc_us-gaap_PreferredStockSharesOutstanding_824579" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ConvertiblePreferredStockAndRedeemableConvertiblePreferredStockTable" xlink:label="loc_kc_ConvertiblePreferredStockAndRedeemableConvertiblePreferredStockTable_824577" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_kc_ConvertiblePreferredStockAndRedeemableConvertiblePreferredStockLineItems_824578" xlink:to="loc_kc_ConvertiblePreferredStockAndRedeemableConvertiblePreferredStockTable_824577" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_824582" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_ConvertiblePreferredStockAndRedeemableConvertiblePreferredStockTable_824577" xlink:to="loc_us-gaap_StatementClassOfStockAxis_824582" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_824585" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_824582" xlink:to="loc_us-gaap_ClassOfStockDomain_824585" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_824585_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_824582" xlink:to="loc_us-gaap_ClassOfStockDomain_824585_default" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_SeriesCRedeemableConvertiblePreferredSharesMember" xlink:label="loc_kc_SeriesCRedeemableConvertiblePreferredSharesMember_824600" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_824585" xlink:to="loc_kc_SeriesCRedeemableConvertiblePreferredSharesMember_824600" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_SeriesDRedeemableConvertiblePreferredSharesMember" xlink:label="loc_kc_SeriesDRedeemableConvertiblePreferredSharesMember_824602" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_824585" xlink:to="loc_kc_SeriesDRedeemableConvertiblePreferredSharesMember_824602" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_SeriesAConvertiblePreferredSharesMember" xlink:label="loc_kc_SeriesAConvertiblePreferredSharesMember_824583" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_824585" xlink:to="loc_kc_SeriesAConvertiblePreferredSharesMember_824583" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_SeriesBRedeemableConvertiblePreferredSharesMember" xlink:label="loc_kc_SeriesBRedeemableConvertiblePreferredSharesMember_824590" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_824585" xlink:to="loc_kc_SeriesBRedeemableConvertiblePreferredSharesMember_824590" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_SeriesDPlusRedeemableConvertiblePreferredSharesMember" xlink:label="loc_kc_SeriesDPlusRedeemableConvertiblePreferredSharesMember_904190" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_824585" xlink:to="loc_kc_SeriesDPlusRedeemableConvertiblePreferredSharesMember_904190" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_StatementScenarioAxis" xlink:label="loc_srt_StatementScenarioAxis_824605" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_ConvertiblePreferredStockAndRedeemableConvertiblePreferredStockTable_824577" xlink:to="loc_srt_StatementScenarioAxis_824605" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ScenarioUnspecifiedDomain" xlink:label="loc_srt_ScenarioUnspecifiedDomain_824607" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementScenarioAxis_824605" xlink:to="loc_srt_ScenarioUnspecifiedDomain_824607" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ScenarioUnspecifiedDomain" xlink:label="loc_srt_ScenarioUnspecifiedDomain_824607_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementScenarioAxis_824605" xlink:to="loc_srt_ScenarioUnspecifiedDomain_824607_default" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_826012" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_ConvertiblePreferredStockAndRedeemableConvertiblePreferredStockTable_824577" xlink:to="loc_srt_RangeAxis_826012" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_826013" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_826012" xlink:to="loc_srt_RangeMember_826013" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_826013_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_826012" xlink:to="loc_srt_RangeMember_826013_default" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TemporaryEquitySharesOutstanding" xlink:label="loc_us-gaap_TemporaryEquitySharesOutstanding_824588" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_ConvertiblePreferredStockAndRedeemableConvertiblePreferredStockLineItems_824578" xlink:to="loc_us-gaap_TemporaryEquitySharesOutstanding_824588" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProceedsFromIssuanceOfRedeemableConvertiblePreferredStock" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfRedeemableConvertiblePreferredStock_824592" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_ConvertiblePreferredStockAndRedeemableConvertiblePreferredStockLineItems_824578" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfRedeemableConvertiblePreferredStock_824592" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_TemporaryEquitySharesIssuedDuringThePeriodShares" xlink:label="loc_kc_TemporaryEquitySharesIssuedDuringThePeriodShares_824595" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_ConvertiblePreferredStockAndRedeemableConvertiblePreferredStockLineItems_824578" xlink:to="loc_kc_TemporaryEquitySharesIssuedDuringThePeriodShares_824595" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TemporaryEquitySharesIssued" xlink:label="loc_us-gaap_TemporaryEquitySharesIssued_826003" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_ConvertiblePreferredStockAndRedeemableConvertiblePreferredStockLineItems_824578" xlink:to="loc_us-gaap_TemporaryEquitySharesIssued_826003" use="optional" order="21" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/ShareBasedPaymentsSummaryOfTheActivityUnderTheShareOptionSchemeDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823404" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross_823410" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823404" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross_823410" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_823417" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823404" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_823417" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedOptionsForfeitedNumberOfShares" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedOptionsForfeitedNumberOfShares_823412" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823404" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedOptionsForfeitedNumberOfShares_823412" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_823398" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823404" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_823398" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_823399" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_823398" xlink:to="loc_us-gaap_AwardTypeAxis_823399" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_823401" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_823399" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_823401" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_823401_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_823399" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_823401_default" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ShareOptionsSchemeMember" xlink:label="loc_kc_ShareOptionsSchemeMember_823402" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_823401" xlink:to="loc_kc_ShareOptionsSchemeMember_823402" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice_823432" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823404" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice_823432" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice_823433" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823404" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice_823433" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice_823435" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823404" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice_823435" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_823455" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823404" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_823455" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ShareBasedCompensationByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageFairValueOne" xlink:label="loc_kc_ShareBasedCompensationByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageFairValueOne_823468" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823404" xlink:to="loc_kc_ShareBasedCompensationByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageFairValueOne_823468" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableAggregateIntrinsicValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableAggregateIntrinsicValue_823518" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823404" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableAggregateIntrinsicValue_823518" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedWeightedAverageGrantDateFairValue_826149" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823404" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedWeightedAverageGrantDateFairValue_826149" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingAggregateIntrinsicValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingAggregateIntrinsicValue_823517" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823404" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingAggregateIntrinsicValue_823517" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2_823487" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823404" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2_823487" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageRemainingContractualTerm1" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageRemainingContractualTerm1_823501" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823404" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageRemainingContractualTerm1_823501" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfShares" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfShares_823408" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823404" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfShares_823408" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableNumber" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableNumber_823422" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823404" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableNumber_823422" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice_823441" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823404" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice_823441" use="optional" order="21" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedOptionsForfeitedWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedOptionsForfeitedWeightedAverageGrantDateFairValue_823459" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823404" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedOptionsForfeitedWeightedAverageGrantDateFairValue_823459" use="optional" order="22" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ShareBasedCompensationByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice" xlink:label="loc_kc_ShareBasedCompensationByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice_823464" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823404" xlink:to="loc_kc_ShareBasedCompensationByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice_823464" use="optional" order="23" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageExercisePrice_823442" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823404" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageExercisePrice_823442" use="optional" order="24" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageRemainingContractualTerm1" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageRemainingContractualTerm1_823499" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823404" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageRemainingContractualTerm1_823499" use="optional" order="25" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue_854901" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823404" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue_854901" use="optional" order="26" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingNumber" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingNumber_823421" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823404" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingNumber_823421" use="optional" order="27" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice_823438" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823404" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice_823438" use="optional" order="28" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ShareBasedCompensationBySharebasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageExercisePrice" xlink:label="loc_kc_ShareBasedCompensationBySharebasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageExercisePrice_823471" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823404" xlink:to="loc_kc_ShareBasedCompensationBySharebasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageExercisePrice_823471" use="optional" order="29" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/ShareBasedPaymentsAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823577" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedInPeriodFairValue1" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedInPeriodFairValue1_823589" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823577" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedInPeriodFairValue1_823589" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_826340" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823577" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_826340" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_823570" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823577" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_823570" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_823572" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_823570" xlink:to="loc_us-gaap_AwardTypeAxis_823572" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_823573" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_823572" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_823573" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_823573_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_823572" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_823573_default" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ShareOptionsSchemeMember" xlink:label="loc_kc_ShareOptionsSchemeMember_826332" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_823573" xlink:to="loc_kc_ShareOptionsSchemeMember_826332" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RestrictedStockMember" xlink:label="loc_us-gaap_RestrictedStockMember_1369954" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_823573" xlink:to="loc_us-gaap_RestrictedStockMember_1369954" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_CamelotAwardMember" xlink:label="loc_kc_CamelotAwardMember_1387745" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_823573" xlink:to="loc_kc_CamelotAwardMember_1387745" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_TwoThousandTwentyOneShareAwardSchemeMember" xlink:label="loc_kc_TwoThousandTwentyOneShareAwardSchemeMember_1405077" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_823573" xlink:to="loc_kc_TwoThousandTwentyOneShareAwardSchemeMember_1405077" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_TwoThousandThirteenShareAwardSchemeMember" xlink:label="loc_kc_TwoThousandThirteenShareAwardSchemeMember_1405076" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_823573" xlink:to="loc_kc_TwoThousandThirteenShareAwardSchemeMember_1405076" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockCompensationPlanMember" xlink:label="loc_us-gaap_StockCompensationPlanMember_823575" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_823573" xlink:to="loc_us-gaap_StockCompensationPlanMember_823575" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_1387739" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_823570" xlink:to="loc_srt_RangeAxis_1387739" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_1387740" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_1387739" xlink:to="loc_srt_RangeMember_1387740" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_1387740_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_1387739" xlink:to="loc_srt_RangeMember_1387740_default" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_1387741" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_1387740" xlink:to="loc_srt_MaximumMember_1387741" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_1387742" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_1387740" xlink:to="loc_srt_MinimumMember_1387742" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_873167" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823577" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_873167" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_873134" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823577" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_873134" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue_873141" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823577" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue_873141" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross_1405078" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823577" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross_1405078" use="optional" order="21" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_873159" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823577" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_873159" use="optional" order="22" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_823585" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823577" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_823585" use="optional" order="23" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue_823579" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823577" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue_823579" use="optional" order="24" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedStockOptions" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedStockOptions_823591" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823577" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedStockOptions_823591" use="optional" order="25" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_823592" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823577" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_823592" use="optional" order="26" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions_826331" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823577" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions_826331" use="optional" order="27" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_873135" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823577" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_873135" use="optional" order="28" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/ShareBasedPaymentsSummaryOfTheActivityForTheRestrictedSharesIssuedUnderTheShareAwardSchemeDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823619" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_823632" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823619" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_823632" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_823629" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823619" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_823629" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_823634" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823619" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_823634" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_823624" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823619" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_823624" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_823621" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823619" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_823621" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ShareBasedCompensationByShareBasedPaymentArrangementEquityInstrumentOtherThanOptionsNonVestedExpectedToVestWeightedAverageGrantDateFairValue" xlink:label="loc_kc_ShareBasedCompensationByShareBasedPaymentArrangementEquityInstrumentOtherThanOptionsNonVestedExpectedToVestWeightedAverageGrantDateFairValue_823639" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823619" xlink:to="loc_kc_ShareBasedCompensationByShareBasedPaymentArrangementEquityInstrumentOtherThanOptionsNonVestedExpectedToVestWeightedAverageGrantDateFairValue_823639" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_823630" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823619" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_823630" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_823614" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823619" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_823614" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_823615" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_823614" xlink:to="loc_us-gaap_AwardTypeAxis_823615" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_823616" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_823615" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_823616" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_823616_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_823615" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_823616_default" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_TwoThousandThirteenShareAwardSchemeMember" xlink:label="loc_kc_TwoThousandThirteenShareAwardSchemeMember_1405080" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_823616" xlink:to="loc_kc_TwoThousandThirteenShareAwardSchemeMember_1405080" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ShareBasedCompensationByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionedNonvestedExpectedToVest" xlink:label="loc_kc_ShareBasedCompensationByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionedNonvestedExpectedToVest_823627" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823619" xlink:to="loc_kc_ShareBasedCompensationByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionedNonvestedExpectedToVest_823627" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_907462" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823619" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_907462" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_907461" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823619" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_907461" use="optional" order="15" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/ShareBasedPaymentsSummaryOfTheActivityForTheOptionsIssuedUnderTheShareAwardSchemeDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823711" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedOptionsForfeitedNumberOfShares" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedOptionsForfeitedNumberOfShares_823716" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823711" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedOptionsForfeitedNumberOfShares_823716" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingNumber" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingNumber_823719" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823711" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingNumber_823719" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfShares" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfShares_823713" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823711" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfShares_823713" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice_823722" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823711" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice_823722" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageRemainingContractualTerm1" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageRemainingContractualTerm1_823768" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823711" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageRemainingContractualTerm1_823768" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_823717" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823711" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_823717" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice_823729" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823711" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice_823729" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice_823727" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823711" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice_823727" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice_823724" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823711" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice_823724" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_823707" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823711" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_823707" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_823708" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_823707" xlink:to="loc_us-gaap_AwardTypeAxis_823708" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_823709" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_823708" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_823709" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_823709_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_823708" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_823709_default" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_TwoThousandThirteenShareAwardSchemeMember" xlink:label="loc_kc_TwoThousandThirteenShareAwardSchemeMember_1405081" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_823709" xlink:to="loc_kc_TwoThousandThirteenShareAwardSchemeMember_1405081" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2_823754" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823711" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2_823754" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue_854896" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823711" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue_854896" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageRemainingContractualTerm1" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageRemainingContractualTerm1_823769" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823711" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageRemainingContractualTerm1_823769" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingAggregateIntrinsicValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingAggregateIntrinsicValue_823783" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823711" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingAggregateIntrinsicValue_823783" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedOptionsForfeitedWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedOptionsForfeitedWeightedAverageGrantDateFairValue_823745" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823711" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedOptionsForfeitedWeightedAverageGrantDateFairValue_823745" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ShareBasedCompensationByShareBasedPaymentArrangementEquityInstrumentOtherThanOptionsVestedExpectedToVestWeightedAverageGrantDateFairValue" xlink:label="loc_kc_ShareBasedCompensationByShareBasedPaymentArrangementEquityInstrumentOtherThanOptionsVestedExpectedToVestWeightedAverageGrantDateFairValue_823750" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823711" xlink:to="loc_kc_ShareBasedCompensationByShareBasedPaymentArrangementEquityInstrumentOtherThanOptionsVestedExpectedToVestWeightedAverageGrantDateFairValue_823750" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageExercisePrice_823731" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823711" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageExercisePrice_823731" use="optional" order="21" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ShareBasedCompensationByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice" xlink:label="loc_kc_ShareBasedCompensationByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice_823871" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823711" xlink:to="loc_kc_ShareBasedCompensationByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice_823871" use="optional" order="22" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ShareBasedCompensationBySharebasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageExercisePrice" xlink:label="loc_kc_ShareBasedCompensationBySharebasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageExercisePrice_823883" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823711" xlink:to="loc_kc_ShareBasedCompensationBySharebasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageExercisePrice_823883" use="optional" order="23" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableNumber" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableNumber_823720" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823711" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableNumber_823720" use="optional" order="24" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedWeightedAverageGrantDateFairValue_826163" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823711" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedWeightedAverageGrantDateFairValue_826163" use="optional" order="25" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableAggregateIntrinsicValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableAggregateIntrinsicValue_823786" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823711" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableAggregateIntrinsicValue_823786" use="optional" order="26" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/ShareBasedPaymentsSummaryOfAssumptionsUsedToEstimateTheFairValueOfTheShareOptionsDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823976" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_823973" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823976" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_823973" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_823974" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_823973" xlink:to="loc_us-gaap_StatementClassOfStockAxis_823974" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_823975" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_823974" xlink:to="loc_us-gaap_ClassOfStockDomain_823975" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_823975_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_823974" xlink:to="loc_us-gaap_ClassOfStockDomain_823975_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_854880" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_823973" xlink:to="loc_srt_RangeAxis_854880" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_854882" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_854880" xlink:to="loc_srt_RangeMember_854882" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_854882_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_854880" xlink:to="loc_srt_RangeMember_854882_default" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_854883" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_854882" xlink:to="loc_srt_MaximumMember_854883" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_854885" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_854882" xlink:to="loc_srt_MinimumMember_854885" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SharePrice" xlink:label="loc_us-gaap_SharePrice_854887" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823976" xlink:to="loc_us-gaap_SharePrice_854887" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ShareBasedCompensationByShareBasedPaymentArrangementFairValueAssumptionsExerciseMultipleMaximum" xlink:label="loc_kc_ShareBasedCompensationByShareBasedPaymentArrangementFairValueAssumptionsExerciseMultipleMaximum_823995" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823976" xlink:to="loc_kc_ShareBasedCompensationByShareBasedPaymentArrangementFairValueAssumptionsExerciseMultipleMaximum_823995" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRateMinimum" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRateMinimum_823983" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823976" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRateMinimum_823983" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRateMaximum" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRateMaximum_823981" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823976" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRateMaximum_823981" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ShareBasedCompensationByShareBasedPaymentArrangementFairValueAssumptionsExerciseMultipleMinimum" xlink:label="loc_kc_ShareBasedCompensationByShareBasedPaymentArrangementFairValueAssumptionsExerciseMultipleMinimum_823992" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823976" xlink:to="loc_kc_ShareBasedCompensationByShareBasedPaymentArrangementFairValueAssumptionsExerciseMultipleMinimum_823992" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRateMinimum" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRateMinimum_823978" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823976" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRateMinimum_823978" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRateMaximum" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRateMaximum_823984" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_823976" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRateMaximum_823984" use="optional" order="16" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/ShareBasedPaymentsSummaryOfAcquisitionDateFairValueOfEachShareBasedAwardIsEstimatedDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_1387774" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_1387766" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_1387774" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_1387766" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_1387767" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_1387766" xlink:to="loc_us-gaap_AwardTypeAxis_1387767" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1387769" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_1387767" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1387769" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1387769_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_1387767" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1387769_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_CamelotAwardMember" xlink:label="loc_kc_CamelotAwardMember_1387773" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1387769" xlink:to="loc_kc_CamelotAwardMember_1387773" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ShareBasedCompensationByShareBasedPaymentArrangementFairValueAssumptionsExerciseMultiple" xlink:label="loc_kc_ShareBasedCompensationByShareBasedPaymentArrangementFairValueAssumptionsExerciseMultiple_1387778" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_1387774" xlink:to="loc_kc_ShareBasedCompensationByShareBasedPaymentArrangementFairValueAssumptionsExerciseMultiple_1387778" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate_1387775" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_1387774" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate_1387775" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_1387776" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_1387774" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_1387776" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SharePrice" xlink:label="loc_us-gaap_SharePrice_1387780" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_1387774" xlink:to="loc_us-gaap_SharePrice_1387780" use="optional" order="9" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/ShareBasedPaymentsSummaryOfShareBasedCompensationExpenseDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_824022" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_824023" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_824022" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_824023" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable" xlink:label="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_824021" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_824022" xlink:to="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_824021" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeStatementLocationAxis" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_824026" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_824021" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_824026" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_824028" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_824026" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_824028" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_824028_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_824026" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_824028_default" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ResearchAndDevelopmentExpenseMember" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpenseMember_824036" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_824028" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpenseMember_824036" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CostOfSalesMember" xlink:label="loc_us-gaap_CostOfSalesMember_824031" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_824028" xlink:to="loc_us-gaap_CostOfSalesMember_824031" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GeneralAndAdministrativeExpenseMember" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpenseMember_824034" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_824028" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpenseMember_824034" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SellingAndMarketingExpenseMember" xlink:label="loc_us-gaap_SellingAndMarketingExpenseMember_824033" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_824028" xlink:to="loc_us-gaap_SellingAndMarketingExpenseMember_824033" use="optional" order="9" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/RestrictedNetAssetsAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_RestrictedAssetsDisclosureLineItems" xlink:label="loc_kc_RestrictedAssetsDisclosureLineItems_824975" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_PercentageOfAnnualAfterTaxProfitToBeAllocatedToReserveFund" xlink:label="loc_kc_PercentageOfAnnualAfterTaxProfitToBeAllocatedToReserveFund_824976" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_RestrictedAssetsDisclosureLineItems_824975" xlink:to="loc_kc_PercentageOfAnnualAfterTaxProfitToBeAllocatedToReserveFund_824976" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_StatutoryFundsAsAPercentageOfRegisteredCapital" xlink:label="loc_kc_StatutoryFundsAsAPercentageOfRegisteredCapital_824979" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_RestrictedAssetsDisclosureLineItems_824975" xlink:to="loc_kc_StatutoryFundsAsAPercentageOfRegisteredCapital_824979" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherRestrictedAssets" xlink:label="loc_us-gaap_OtherRestrictedAssets_824980" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_RestrictedAssetsDisclosureLineItems_824975" xlink:to="loc_us-gaap_OtherRestrictedAssets_824980" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ReserveFundAsAPercentageOfRegisteredCapital" xlink:label="loc_kc_ReserveFundAsAPercentageOfRegisteredCapital_824977" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_RestrictedAssetsDisclosureLineItems_824975" xlink:to="loc_kc_ReserveFundAsAPercentageOfRegisteredCapital_824977" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_PercentageOfAnnualAfterTaxProfitToBeAllocatedToStatutoryReserves" xlink:label="loc_kc_PercentageOfAnnualAfterTaxProfitToBeAllocatedToStatutoryReserves_824978" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_RestrictedAssetsDisclosureLineItems_824975" xlink:to="loc_kc_PercentageOfAnnualAfterTaxProfitToBeAllocatedToStatutoryReserves_824978" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_RestrictedAssetsDisclosureTable" xlink:label="loc_kc_RestrictedAssetsDisclosureTable_824960" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_kc_RestrictedAssetsDisclosureLineItems_824975" xlink:to="loc_kc_RestrictedAssetsDisclosureTable_824960" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_824965" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_RestrictedAssetsDisclosureTable_824960" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_824965" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_824966" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_824965" xlink:to="loc_us-gaap_RelatedPartyDomain_824966" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_824966_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_824965" xlink:to="loc_us-gaap_RelatedPartyDomain_824966_default" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_SubsidiariesMember" xlink:label="loc_srt_SubsidiariesMember_824967" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_824966" xlink:to="loc_srt_SubsidiariesMember_824967" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_StatementGeographicalAxis" xlink:label="loc_srt_StatementGeographicalAxis_824972" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_RestrictedAssetsDisclosureTable_824960" xlink:to="loc_srt_StatementGeographicalAxis_824972" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srt_SegmentGeographicalDomain_824973" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_824972" xlink:to="loc_srt_SegmentGeographicalDomain_824973" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srt_SegmentGeographicalDomain_824973_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_824972" xlink:to="loc_srt_SegmentGeographicalDomain_824973_default" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2021/country-2021.xsd#country_CN" xlink:label="loc_country_CN_824974" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_824973" xlink:to="loc_country_CN_824974" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_824961" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_RestrictedAssetsDisclosureTable_824960" xlink:to="loc_srt_RangeAxis_824961" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_824962" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_824961" xlink:to="loc_srt_RangeMember_824962" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_824962_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_824961" xlink:to="loc_srt_RangeMember_824962_default" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_824964" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_824962" xlink:to="loc_srt_MinimumMember_824964" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesAxis" xlink:label="loc_srt_ConsolidatedEntitiesAxis_824968" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_RestrictedAssetsDisclosureTable_824960" xlink:to="loc_srt_ConsolidatedEntitiesAxis_824968" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_824969" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_824968" xlink:to="loc_srt_ConsolidatedEntitiesDomain_824969" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_824969_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_824968" xlink:to="loc_srt_ConsolidatedEntitiesDomain_824969_default" use="optional" order="21" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_VariableInterestEntityPrimaryBeneficiaryMember" xlink:label="loc_us-gaap_VariableInterestEntityPrimaryBeneficiaryMember_824970" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_824969" xlink:to="loc_us-gaap_VariableInterestEntityPrimaryBeneficiaryMember_824970" use="optional" order="22" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/ShareholdersEquityAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ClassOfStockLineItems" xlink:label="loc_us-gaap_ClassOfStockLineItems_825013" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfStockByClassTable" xlink:label="loc_us-gaap_ScheduleOfStockByClassTable_824988" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ClassOfStockLineItems_825013" xlink:to="loc_us-gaap_ScheduleOfStockByClassTable_824988" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_824989" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_824988" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_824989" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_824990" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_824989" xlink:to="loc_us-gaap_RelatedPartyDomain_824990" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_824990_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_824989" xlink:to="loc_us-gaap_RelatedPartyDomain_824990_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ExecutiveOfficerMember" xlink:label="loc_srt_ExecutiveOfficerMember_824991" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_824990" xlink:to="loc_srt_ExecutiveOfficerMember_824991" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SubsidiarySaleOfStockAxis" xlink:label="loc_us-gaap_SubsidiarySaleOfStockAxis_825000" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_824988" xlink:to="loc_us-gaap_SubsidiarySaleOfStockAxis_825000" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SaleOfStockNameOfTransactionDomain" xlink:label="loc_us-gaap_SaleOfStockNameOfTransactionDomain_825001" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsidiarySaleOfStockAxis_825000" xlink:to="loc_us-gaap_SaleOfStockNameOfTransactionDomain_825001" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SaleOfStockNameOfTransactionDomain" xlink:label="loc_us-gaap_SaleOfStockNameOfTransactionDomain_825001_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsidiarySaleOfStockAxis_825000" xlink:to="loc_us-gaap_SaleOfStockNameOfTransactionDomain_825001_default" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IPOMember" xlink:label="loc_us-gaap_IPOMember_825002" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleOfStockNameOfTransactionDomain_825001" xlink:to="loc_us-gaap_IPOMember_825002" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_FollowOnOfferMember" xlink:label="loc_kc_FollowOnOfferMember_825031" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleOfStockNameOfTransactionDomain_825001" xlink:to="loc_kc_FollowOnOfferMember_825031" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OverAllotmentOptionMember" xlink:label="loc_us-gaap_OverAllotmentOptionMember_825003" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleOfStockNameOfTransactionDomain_825001" xlink:to="loc_us-gaap_OverAllotmentOptionMember_825003" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_EventAxis" xlink:label="loc_kc_EventAxis_825004" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_824988" xlink:to="loc_kc_EventAxis_825004" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_EventDomain" xlink:label="loc_kc_EventDomain_825005" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_kc_EventAxis_825004" xlink:to="loc_kc_EventDomain_825005" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_EventDomain" xlink:label="loc_kc_EventDomain_825005_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_kc_EventAxis_825004" xlink:to="loc_kc_EventDomain_825005_default" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_RevisionInAuthorisedCapitalMember" xlink:label="loc_kc_RevisionInAuthorisedCapitalMember_825007" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_EventDomain_825005" xlink:to="loc_kc_RevisionInAuthorisedCapitalMember_825007" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_825008" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_824988" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_825008" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_825010" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_825008" xlink:to="loc_us-gaap_EquityComponentDomain_825010" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_825010_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_825008" xlink:to="loc_us-gaap_EquityComponentDomain_825010_default" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommonStockMember" xlink:label="loc_us-gaap_CommonStockMember_825011" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_825010" xlink:to="loc_us-gaap_CommonStockMember_825011" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_EntityListingsExchangeAxis" xlink:label="loc_dei_EntityListingsExchangeAxis_825028" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_824988" xlink:to="loc_dei_EntityListingsExchangeAxis_825028" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_ExchangeDomain" xlink:label="loc_dei_ExchangeDomain_825029" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_EntityListingsExchangeAxis_825028" xlink:to="loc_dei_ExchangeDomain_825029" use="optional" order="21" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd#dei_ExchangeDomain" xlink:label="loc_dei_ExchangeDomain_825029_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_EntityListingsExchangeAxis_825028" xlink:to="loc_dei_ExchangeDomain_825029_default" use="optional" order="22" />
<loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/exch/2021/exch-2021.xsd#exch_XNGS" xlink:label="loc_exch_XNGS_825030" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_ExchangeDomain_825029" xlink:to="loc_exch_XNGS_825030" use="optional" order="23" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_1368829" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_824988" xlink:to="loc_us-gaap_AwardTypeAxis_1368829" use="optional" order="24" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1368830" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_1368829" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1368830" use="optional" order="25" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1368830_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_1368829" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1368830_default" use="optional" order="26" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_1368825" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_824988" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_1368825" use="optional" order="27" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1368826" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_1368825" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1368826" use="optional" order="28" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1368826_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_1368825" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1368826_default" use="optional" order="29" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_CamelotGroupMember" xlink:label="loc_kc_CamelotGroupMember_1368827" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1368826" xlink:to="loc_kc_CamelotGroupMember_1368827" use="optional" order="30" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_824992" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_824988" xlink:to="loc_us-gaap_StatementClassOfStockAxis_824992" use="optional" order="31" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_824993" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_824992" xlink:to="loc_us-gaap_ClassOfStockDomain_824993" use="optional" order="32" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_824993_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_824992" xlink:to="loc_us-gaap_ClassOfStockDomain_824993_default" use="optional" order="33" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_SeriesAConvertiblePreferredSharesMember" xlink:label="loc_kc_SeriesAConvertiblePreferredSharesMember_824994" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_824993" xlink:to="loc_kc_SeriesAConvertiblePreferredSharesMember_824994" use="optional" order="34" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_SeriesDRedeemableConvertiblePreferredSharesMember" xlink:label="loc_kc_SeriesDRedeemableConvertiblePreferredSharesMember_824998" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_824993" xlink:to="loc_kc_SeriesDRedeemableConvertiblePreferredSharesMember_824998" use="optional" order="35" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_SeriesBConvertibleRedeemablePreferredSharesMember" xlink:label="loc_kc_SeriesBConvertibleRedeemablePreferredSharesMember_824996" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_824993" xlink:to="loc_kc_SeriesBConvertibleRedeemablePreferredSharesMember_824996" use="optional" order="36" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_SeriesCRedeemableConvertiblePreferredSharesMember" xlink:label="loc_kc_SeriesCRedeemableConvertiblePreferredSharesMember_824997" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_824993" xlink:to="loc_kc_SeriesCRedeemableConvertiblePreferredSharesMember_824997" use="optional" order="37" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_SeriesDPlusRedeemableConvertiblePreferredSharesMember" xlink:label="loc_kc_SeriesDPlusRedeemableConvertiblePreferredSharesMember_824999" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_824993" xlink:to="loc_kc_SeriesDPlusRedeemableConvertiblePreferredSharesMember_824999" use="optional" order="38" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockRepurchasedDuringPeriodValue" xlink:label="loc_us-gaap_StockRepurchasedDuringPeriodValue_825017" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_825013" xlink:to="loc_us-gaap_StockRepurchasedDuringPeriodValue_825017" use="optional" order="39" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_CommonStockPreferredStockAndTemporaryEquitySharesAuthorised" xlink:label="loc_kc_CommonStockPreferredStockAndTemporaryEquitySharesAuthorised_825018" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_825013" xlink:to="loc_kc_CommonStockPreferredStockAndTemporaryEquitySharesAuthorised_825018" use="optional" order="40" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommonStockSharesAuthorized" xlink:label="loc_us-gaap_CommonStockSharesAuthorized_825020" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_825013" xlink:to="loc_us-gaap_CommonStockSharesAuthorized_825020" use="optional" order="41" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PreferredStockSharesAuthorized" xlink:label="loc_us-gaap_PreferredStockSharesAuthorized_825021" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_825013" xlink:to="loc_us-gaap_PreferredStockSharesAuthorized_825021" use="optional" order="42" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TemporaryEquitySharesAuthorized" xlink:label="loc_us-gaap_TemporaryEquitySharesAuthorized_825022" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_825013" xlink:to="loc_us-gaap_TemporaryEquitySharesAuthorized_825022" use="optional" order="43" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesNewIssues" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_825023" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_825013" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_825023" use="optional" order="44" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TreasuryStockAcquiredAverageCostPerShare" xlink:label="loc_us-gaap_TreasuryStockAcquiredAverageCostPerShare_854873" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_825013" xlink:to="loc_us-gaap_TreasuryStockAcquiredAverageCostPerShare_854873" use="optional" order="45" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ConvertiblePreferredStockSharesIssuedUponConversion" xlink:label="loc_us-gaap_ConvertiblePreferredStockSharesIssuedUponConversion_825027" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_825013" xlink:to="loc_us-gaap_ConvertiblePreferredStockSharesIssuedUponConversion_825027" use="optional" order="46" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SharePrice" xlink:label="loc_us-gaap_SharePrice_825015" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_825013" xlink:to="loc_us-gaap_SharePrice_825015" use="optional" order="47" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommonStockParOrStatedValuePerShare" xlink:label="loc_us-gaap_CommonStockParOrStatedValuePerShare_825019" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_825013" xlink:to="loc_us-gaap_CommonStockParOrStatedValuePerShare_825019" use="optional" order="48" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommonStockSharesIssued" xlink:label="loc_us-gaap_CommonStockSharesIssued_1368820" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_825013" xlink:to="loc_us-gaap_CommonStockSharesIssued_1368820" use="optional" order="49" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommonStockValue" xlink:label="loc_us-gaap_CommonStockValue_1368821" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_825013" xlink:to="loc_us-gaap_CommonStockValue_1368821" use="optional" order="50" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SaleOfStockPricePerShare" xlink:label="loc_us-gaap_SaleOfStockPricePerShare_825024" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_825013" xlink:to="loc_us-gaap_SaleOfStockPricePerShare_825024" use="optional" order="51" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockRepurchasedDuringPeriodShares" xlink:label="loc_us-gaap_StockRepurchasedDuringPeriodShares_825016" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_825013" xlink:to="loc_us-gaap_StockRepurchasedDuringPeriodShares_825016" use="optional" order="52" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SaleOfStockConsiderationReceivedOnTransaction" xlink:label="loc_us-gaap_SaleOfStockConsiderationReceivedOnTransaction_825026" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_825013" xlink:to="loc_us-gaap_SaleOfStockConsiderationReceivedOnTransaction_825026" use="optional" order="53" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/RelatedPartyTransactionsScheduleOfRelatedPartiesAndNatureOfRelationshipDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyTransactionLineItems" xlink:label="loc_us-gaap_RelatedPartyTransactionLineItems_825412" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable" xlink:label="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_825411" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_825412" xlink:to="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_825411" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_825415" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_825411" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_825415" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_825416" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_825415" xlink:to="loc_us-gaap_RelatedPartyDomain_825416" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_825416_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_825415" xlink:to="loc_us-gaap_RelatedPartyDomain_825416_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_KingsoftGroupMember" xlink:label="loc_kc_KingsoftGroupMember_825417" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_825416" xlink:to="loc_kc_KingsoftGroupMember_825417" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_CheetahGroupMember" xlink:label="loc_kc_CheetahGroupMember_825418" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_825416" xlink:to="loc_kc_CheetahGroupMember_825418" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_XiaomiGroupMember" xlink:label="loc_kc_XiaomiGroupMember_825419" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_825416" xlink:to="loc_kc_XiaomiGroupMember_825419" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NatureOfCommonOwnershipOrManagementControlRelationships" xlink:label="loc_us-gaap_NatureOfCommonOwnershipOrManagementControlRelationships_825413" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_825412" xlink:to="loc_us-gaap_NatureOfCommonOwnershipOrManagementControlRelationships_825413" use="optional" order="8" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/RelatedPartyTransactionsScheduleOfRelatedPartyTransactionsDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyTransactionLineItems" xlink:label="loc_us-gaap_RelatedPartyTransactionLineItems_825428" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyTransactionAmountsOfTransaction" xlink:label="loc_us-gaap_RelatedPartyTransactionAmountsOfTransaction_825430" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_825428" xlink:to="loc_us-gaap_RelatedPartyTransactionAmountsOfTransaction_825430" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable" xlink:label="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_825427" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_825428" xlink:to="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_825427" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ProductOrServiceAxis" xlink:label="loc_srt_ProductOrServiceAxis_825431" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_825427" xlink:to="loc_srt_ProductOrServiceAxis_825431" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_825433" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_825431" xlink:to="loc_srt_ProductsAndServicesDomain_825433" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_825433_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_825431" xlink:to="loc_srt_ProductsAndServicesDomain_825433_default" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_InterestExpenseOnLoanMember" xlink:label="loc_kc_InterestExpenseOnLoanMember_825442" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_825433" xlink:to="loc_kc_InterestExpenseOnLoanMember_825442" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_PurchaseOfServicesMember" xlink:label="loc_kc_PurchaseOfServicesMember_825441" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_825433" xlink:to="loc_kc_PurchaseOfServicesMember_825441" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_RentalOfOfficeSpaceAndAdministrativeServicesMember" xlink:label="loc_kc_RentalOfOfficeSpaceAndAdministrativeServicesMember_825443" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_825433" xlink:to="loc_kc_RentalOfOfficeSpaceAndAdministrativeServicesMember_825443" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_OtherServicesMember" xlink:label="loc_kc_OtherServicesMember_825438" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_825433" xlink:to="loc_kc_OtherServicesMember_825438" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_PublicCloudServicesMember" xlink:label="loc_kc_PublicCloudServicesMember_825436" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_825433" xlink:to="loc_kc_PublicCloudServicesMember_825436" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_EnterpriseCloudServicesMember" xlink:label="loc_kc_EnterpriseCloudServicesMember_1368725" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_825433" xlink:to="loc_kc_EnterpriseCloudServicesMember_1368725" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_825445" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_825427" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_825445" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_825446" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_825445" xlink:to="loc_us-gaap_RelatedPartyDomain_825446" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_825446_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_825445" xlink:to="loc_us-gaap_RelatedPartyDomain_825446_default" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_KingsoftGroupMember" xlink:label="loc_kc_KingsoftGroupMember_825447" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_825446" xlink:to="loc_kc_KingsoftGroupMember_825447" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_CheetahGroupMember" xlink:label="loc_kc_CheetahGroupMember_825448" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_825446" xlink:to="loc_kc_CheetahGroupMember_825448" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_XiaomiGroupMember" xlink:label="loc_kc_XiaomiGroupMember_825449" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_825446" xlink:to="loc_kc_XiaomiGroupMember_825449" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RevenueFromRelatedParties" xlink:label="loc_us-gaap_RevenueFromRelatedParties_825429" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_825428" xlink:to="loc_us-gaap_RevenueFromRelatedParties_825429" use="optional" order="18" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/RelatedPartyTransactionsScheduleOfRelatedPartyTransactionsParentheticalDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyTransactionLineItems" xlink:label="loc_us-gaap_RelatedPartyTransactionLineItems_825453" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseLiability" xlink:label="loc_us-gaap_OperatingLeaseLiability_825455" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_825453" xlink:to="loc_us-gaap_OperatingLeaseLiability_825455" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseRightOfUseAsset" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_825454" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_825453" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_825454" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable" xlink:label="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_825452" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_825453" xlink:to="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_825452" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_825456" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_825452" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_825456" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_825457" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_825456" xlink:to="loc_us-gaap_RelatedPartyDomain_825457" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_825457_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_825456" xlink:to="loc_us-gaap_RelatedPartyDomain_825457_default" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_XiaomiGroupMember" xlink:label="loc_kc_XiaomiGroupMember_825458" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_825457" xlink:to="loc_kc_XiaomiGroupMember_825458" use="optional" order="7" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/RelatedPartyTransactionsScheduleOfRelatedPartyBalancesDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyTransactionLineItems" xlink:label="loc_us-gaap_RelatedPartyTransactionLineItems_825464" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DueFromRelatedPartiesNoncurrentAbstract" xlink:label="loc_us-gaap_DueFromRelatedPartiesNoncurrentAbstract_825465" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_825464" xlink:to="loc_us-gaap_DueFromRelatedPartiesNoncurrentAbstract_825465" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DueFromRelatedParties" xlink:label="loc_us-gaap_DueFromRelatedParties_825466" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DueFromRelatedPartiesNoncurrentAbstract_825465" xlink:to="loc_us-gaap_DueFromRelatedParties_825466" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DueToRelatedPartiesCurrentAbstract" xlink:label="loc_us-gaap_DueToRelatedPartiesCurrentAbstract_825467" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_825464" xlink:to="loc_us-gaap_DueToRelatedPartiesCurrentAbstract_825467" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_DueToRelatedParties" xlink:label="loc_kc_DueToRelatedParties_825468" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DueToRelatedPartiesCurrentAbstract_825467" xlink:to="loc_kc_DueToRelatedParties_825468" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable" xlink:label="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_825463" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_825464" xlink:to="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_825463" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_825469" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_825463" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_825469" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_825470" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_825469" xlink:to="loc_us-gaap_RelatedPartyDomain_825470" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_825470_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_825469" xlink:to="loc_us-gaap_RelatedPartyDomain_825470_default" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_KingsoftGroupMember" xlink:label="loc_kc_KingsoftGroupMember_825471" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_825470" xlink:to="loc_kc_KingsoftGroupMember_825471" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_XiaomiGroupMember" xlink:label="loc_kc_XiaomiGroupMember_825473" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_825470" xlink:to="loc_kc_XiaomiGroupMember_825473" use="optional" order="10" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/RelatedPartyTransactionsScheduleOfRelatedPartyBalancesParentheticalDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyTransactionLineItems" xlink:label="loc_us-gaap_RelatedPartyTransactionLineItems_825478" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable" xlink:label="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_825477" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_825478" xlink:to="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_825477" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_825480" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_825477" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_825480" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_825481" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_825480" xlink:to="loc_us-gaap_RelatedPartyDomain_825481" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_825481_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_825480" xlink:to="loc_us-gaap_RelatedPartyDomain_825481_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_KingsoftGroupMember" xlink:label="loc_kc_KingsoftGroupMember_1368790" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_825481" xlink:to="loc_kc_KingsoftGroupMember_1368790" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_XiaomiGroupMember" xlink:label="loc_kc_XiaomiGroupMember_1368791" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_825481" xlink:to="loc_kc_XiaomiGroupMember_1368791" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_1386788" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_825477" xlink:to="loc_srt_RangeAxis_1386788" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_1386789" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_1386788" xlink:to="loc_srt_RangeMember_1386789" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_1386789_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_1386788" xlink:to="loc_srt_RangeMember_1386789_default" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_WeightedAverageMember" xlink:label="loc_srt_WeightedAverageMember_1386791" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_1386789" xlink:to="loc_srt_WeightedAverageMember_1386791" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShortTermBorrowings" xlink:label="loc_us-gaap_ShortTermBorrowings_1368772" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_825478" xlink:to="loc_us-gaap_ShortTermBorrowings_1368772" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShortTermDebtPercentageBearingFixedInterestRate" xlink:label="loc_us-gaap_ShortTermDebtPercentageBearingFixedInterestRate_1368774" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_825478" xlink:to="loc_us-gaap_ShortTermDebtPercentageBearingFixedInterestRate_1368774" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShortTermDebtTerms" xlink:label="loc_us-gaap_ShortTermDebtTerms_1368775" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_825478" xlink:to="loc_us-gaap_ShortTermDebtTerms_1368775" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ShortTermDebtNonCurrent" xlink:label="loc_kc_ShortTermDebtNonCurrent_1368784" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_825478" xlink:to="loc_kc_ShortTermDebtNonCurrent_1368784" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyTransactionTermsAndMannerOfSettlement" xlink:label="loc_us-gaap_RelatedPartyTransactionTermsAndMannerOfSettlement_1386796" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_825478" xlink:to="loc_us-gaap_RelatedPartyTransactionTermsAndMannerOfSettlement_1386796" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyTransactionRate" xlink:label="loc_us-gaap_RelatedPartyTransactionRate_1386785" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_825478" xlink:to="loc_us-gaap_RelatedPartyTransactionRate_1386785" use="optional" order="16" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/RelatedPartyTransactionsScheduleOfRepaymentOfRelatedPartyLoansInFixedQuarterlyInstallmentsDetail">
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_RelatedPartyDebtByMaturityLineItems" xlink:label="loc_kc_RelatedPartyDebtByMaturityLineItems_1403245" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_RelatedPartyDebtByMaturityTable" xlink:label="loc_kc_RelatedPartyDebtByMaturityTable_1403241" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_kc_RelatedPartyDebtByMaturityLineItems_1403245" xlink:to="loc_kc_RelatedPartyDebtByMaturityTable_1403241" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_1403242" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_RelatedPartyDebtByMaturityTable_1403241" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_1403242" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_1403243" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_1403242" xlink:to="loc_us-gaap_RelatedPartyDomain_1403243" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaap_RelatedPartyDomain_1403243_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_1403242" xlink:to="loc_us-gaap_RelatedPartyDomain_1403243_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_XiaomiGroupMember" xlink:label="loc_kc_XiaomiGroupMember_1403244" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_1403243" xlink:to="loc_kc_XiaomiGroupMember_1403244" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_RelatedPartyDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths" xlink:label="loc_kc_RelatedPartyDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_1403246" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_RelatedPartyDebtByMaturityLineItems_1403245" xlink:to="loc_kc_RelatedPartyDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_1403246" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_RelatedPartyDebtMaturitiesRepaymentsOfPrincipalInYearTwo" xlink:label="loc_kc_RelatedPartyDebtMaturitiesRepaymentsOfPrincipalInYearTwo_1403247" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_RelatedPartyDebtByMaturityLineItems_1403245" xlink:to="loc_kc_RelatedPartyDebtMaturitiesRepaymentsOfPrincipalInYearTwo_1403247" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_RelatedPartyDebtMaturitiesRepaymentsOfPrincipalInYearThree" xlink:label="loc_kc_RelatedPartyDebtMaturitiesRepaymentsOfPrincipalInYearThree_1403253" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_RelatedPartyDebtByMaturityLineItems_1403245" xlink:to="loc_kc_RelatedPartyDebtMaturitiesRepaymentsOfPrincipalInYearThree_1403253" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_RelatedPartyShortTermDebt" xlink:label="loc_kc_RelatedPartyShortTermDebt_1403254" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_RelatedPartyDebtByMaturityLineItems_1403245" xlink:to="loc_kc_RelatedPartyShortTermDebt_1403254" use="optional" order="9" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/AccumulatedOtherComprehensiveIncomeLossScheduleOfAccumulatedOtherComprehensiveIncomeDetail">
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ScheduleOfAccumulatedOtherComprehensiveIncomeLossLineItems" xlink:label="loc_kc_ScheduleOfAccumulatedOtherComprehensiveIncomeLossLineItems_825586" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ScheduleOfAccumulatedOtherComprehensiveIncomeLossTable" xlink:label="loc_kc_ScheduleOfAccumulatedOtherComprehensiveIncomeLossTable_825585" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_kc_ScheduleOfAccumulatedOtherComprehensiveIncomeLossLineItems_825586" xlink:to="loc_kc_ScheduleOfAccumulatedOtherComprehensiveIncomeLossTable_825585" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_826361" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_ScheduleOfAccumulatedOtherComprehensiveIncomeLossTable_825585" xlink:to="loc_us-gaap_StatementClassOfStockAxis_826361" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_826362" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_826361" xlink:to="loc_us-gaap_ClassOfStockDomain_826362" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_826362_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_826361" xlink:to="loc_us-gaap_ClassOfStockDomain_826362_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_825595" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_ScheduleOfAccumulatedOtherComprehensiveIncomeLossLineItems_825586" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_825595" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax" xlink:label="loc_kc_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_825597" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_ScheduleOfAccumulatedOtherComprehensiveIncomeLossLineItems_825586" xlink:to="loc_kc_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_825597" use="optional" order="6" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/SubsequentEventsAdditionalInformationDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SubsequentEventLineItems" xlink:label="loc_us-gaap_SubsequentEventLineItems_905417" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SubsequentEventTable" xlink:label="loc_us-gaap_SubsequentEventTable_905406" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SubsequentEventLineItems_905417" xlink:to="loc_us-gaap_SubsequentEventTable_905406" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_AgreementAxis" xlink:label="loc_kc_AgreementAxis_905411" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_905406" xlink:to="loc_kc_AgreementAxis_905411" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_AgreementDomain" xlink:label="loc_kc_AgreementDomain_905412" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_kc_AgreementAxis_905411" xlink:to="loc_kc_AgreementDomain_905412" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_AgreementDomain" xlink:label="loc_kc_AgreementDomain_905412_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_kc_AgreementAxis_905411" xlink:to="loc_kc_AgreementDomain_905412_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SubsequentEventTypeAxis" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_905414" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_905406" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_905414" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_905415" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_905414" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_905415" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_905415_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_905414" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_905415_default" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SubsequentEventMember" xlink:label="loc_us-gaap_SubsequentEventMember_905416" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_905415" xlink:to="loc_us-gaap_SubsequentEventMember_905416" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_905407" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_905406" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_905407" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_905408" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_905407" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_905408" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_905408_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_905407" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_905408_default" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockRepurchaseProgramAuthorizedAmount1" xlink:label="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_1402541" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_905417" xlink:to="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_1402541" use="optional" order="12" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/CondensedFinancialInformationOfTheParentCompanySummaryOfParentCompanyBalanceSheetDetail">
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_CondensedFinancialInformationParentCompanyOnlyLineItems" xlink:label="loc_kc_CondensedFinancialInformationParentCompanyOnlyLineItems_825105" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_CondensedFinancialInformationParentCompanyOnlyTable" xlink:label="loc_kc_CondensedFinancialInformationParentCompanyOnlyTable_825094" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_kc_CondensedFinancialInformationParentCompanyOnlyLineItems_825105" xlink:to="loc_kc_CondensedFinancialInformationParentCompanyOnlyTable_825094" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_825099" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_CondensedFinancialInformationParentCompanyOnlyTable_825094" xlink:to="loc_us-gaap_StatementClassOfStockAxis_825099" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_825100" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_825099" xlink:to="loc_us-gaap_ClassOfStockDomain_825100" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_825100_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_825099" xlink:to="loc_us-gaap_ClassOfStockDomain_825100_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesAxis" xlink:label="loc_srt_ConsolidatedEntitiesAxis_825096" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_CondensedFinancialInformationParentCompanyOnlyTable_825094" xlink:to="loc_srt_ConsolidatedEntitiesAxis_825096" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_825097" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_825096" xlink:to="loc_srt_ConsolidatedEntitiesDomain_825097" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_825097_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_825096" xlink:to="loc_srt_ConsolidatedEntitiesDomain_825097_default" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ParentCompanyMember" xlink:label="loc_srt_ParentCompanyMember_825098" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_825097" xlink:to="loc_srt_ParentCompanyMember_825098" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetsAbstract" xlink:label="loc_us-gaap_AssetsAbstract_825106" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_CondensedFinancialInformationParentCompanyOnlyLineItems_825105" xlink:to="loc_us-gaap_AssetsAbstract_825106" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_825116" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_825106" xlink:to="loc_us-gaap_Assets_825116" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetsNoncurrentAbstract" xlink:label="loc_us-gaap_AssetsNoncurrentAbstract_825113" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_825106" xlink:to="loc_us-gaap_AssetsNoncurrentAbstract_825113" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetsNoncurrent" xlink:label="loc_us-gaap_AssetsNoncurrent_825115" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_825113" xlink:to="loc_us-gaap_AssetsNoncurrent_825115" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InvestmentsInAndAdvancesToAffiliatesAmountOfEquity" xlink:label="loc_us-gaap_InvestmentsInAndAdvancesToAffiliatesAmountOfEquity_825114" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_825113" xlink:to="loc_us-gaap_InvestmentsInAndAdvancesToAffiliatesAmountOfEquity_825114" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetsCurrentAbstract" xlink:label="loc_us-gaap_AssetsCurrentAbstract_825107" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_825106" xlink:to="loc_us-gaap_AssetsCurrentAbstract_825107" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShortTermInvestments" xlink:label="loc_us-gaap_ShortTermInvestments_870295" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_825107" xlink:to="loc_us-gaap_ShortTermInvestments_870295" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetsCurrent" xlink:label="loc_us-gaap_AssetsCurrent_825112" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_825107" xlink:to="loc_us-gaap_AssetsCurrent_825112" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_825109" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_825107" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_825109" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DueFromAffiliateCurrent" xlink:label="loc_us-gaap_DueFromAffiliateCurrent_825110" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_825107" xlink:to="loc_us-gaap_DueFromAffiliateCurrent_825110" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_825108" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_825107" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_825108" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquityAbstract" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_825117" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_CondensedFinancialInformationParentCompanyOnlyLineItems_825105" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_825117" use="optional" order="20" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesCurrentAbstract" xlink:label="loc_us-gaap_LiabilitiesCurrentAbstract_825118" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_825117" xlink:to="loc_us-gaap_LiabilitiesCurrentAbstract_825118" use="optional" order="21" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_825124" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_825118" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_825124" use="optional" order="22" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesNoncurrent" xlink:label="loc_us-gaap_LiabilitiesNoncurrent_825125" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_825118" xlink:to="loc_us-gaap_LiabilitiesNoncurrent_825125" use="optional" order="23" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Liabilities" xlink:label="loc_us-gaap_Liabilities_825126" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_825118" xlink:to="loc_us-gaap_Liabilities_825126" use="optional" order="24" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DueToAffiliateCurrent" xlink:label="loc_us-gaap_DueToAffiliateCurrent_825121" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_825118" xlink:to="loc_us-gaap_DueToAffiliateCurrent_825121" use="optional" order="25" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccruedLiabilitiesCurrent" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_825119" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_825118" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_825119" use="optional" order="26" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccruedIncomeTaxesCurrent" xlink:label="loc_us-gaap_AccruedIncomeTaxesCurrent_825120" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_825118" xlink:to="loc_us-gaap_AccruedIncomeTaxesCurrent_825120" use="optional" order="27" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NotesPayableRelatedPartiesClassifiedCurrent" xlink:label="loc_us-gaap_NotesPayableRelatedPartiesClassifiedCurrent_825122" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_825118" xlink:to="loc_us-gaap_NotesPayableRelatedPartiesClassifiedCurrent_825122" use="optional" order="28" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesCurrent" xlink:label="loc_us-gaap_LiabilitiesCurrent_825123" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_825118" xlink:to="loc_us-gaap_LiabilitiesCurrent_825123" use="optional" order="29" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_825131" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_CondensedFinancialInformationParentCompanyOnlyLineItems_825105" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_825131" use="optional" order="30" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AdditionalPaidInCapital" xlink:label="loc_us-gaap_AdditionalPaidInCapital_825134" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_825131" xlink:to="loc_us-gaap_AdditionalPaidInCapital_825134" use="optional" order="31" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_825135" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_825131" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_825135" use="optional" order="32" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_825137" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_825131" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_825137" use="optional" order="33" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommonStockValue" xlink:label="loc_us-gaap_CommonStockValue_825133" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_825131" xlink:to="loc_us-gaap_CommonStockValue_825133" use="optional" order="34" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_825136" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_825131" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_825136" use="optional" order="35" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_825138" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_CondensedFinancialInformationParentCompanyOnlyLineItems_825105" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquity_825138" use="optional" order="36" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/CondensedFinancialInformationOfTheParentCompanySummaryOfParentCompanyBalanceSheetDisclosureParentheticalDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_825153" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommonStockSharesAuthorized" xlink:label="loc_us-gaap_CommonStockSharesAuthorized_825163" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_825153" xlink:to="loc_us-gaap_CommonStockSharesAuthorized_825163" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommonStockSharesOutstanding" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_825165" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_825153" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_825165" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_CondensedFinancialInformationParentCompanyOnlyTable" xlink:label="loc_kc_CondensedFinancialInformationParentCompanyOnlyTable_825144" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_825153" xlink:to="loc_kc_CondensedFinancialInformationParentCompanyOnlyTable_825144" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesAxis" xlink:label="loc_srt_ConsolidatedEntitiesAxis_825167" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_CondensedFinancialInformationParentCompanyOnlyTable_825144" xlink:to="loc_srt_ConsolidatedEntitiesAxis_825167" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_825168" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_825167" xlink:to="loc_srt_ConsolidatedEntitiesDomain_825168" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_825168_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_825167" xlink:to="loc_srt_ConsolidatedEntitiesDomain_825168_default" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ParentCompanyMember" xlink:label="loc_srt_ParentCompanyMember_825169" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_825168" xlink:to="loc_srt_ParentCompanyMember_825169" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_825145" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_CondensedFinancialInformationParentCompanyOnlyTable_825144" xlink:to="loc_us-gaap_StatementClassOfStockAxis_825145" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_825146" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_825145" xlink:to="loc_us-gaap_ClassOfStockDomain_825146" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_825146_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_825145" xlink:to="loc_us-gaap_ClassOfStockDomain_825146_default" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommonStockSharesIssued" xlink:label="loc_us-gaap_CommonStockSharesIssued_825164" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_825153" xlink:to="loc_us-gaap_CommonStockSharesIssued_825164" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CommonStockParOrStatedValuePerShare" xlink:label="loc_us-gaap_CommonStockParOrStatedValuePerShare_825162" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_825153" xlink:to="loc_us-gaap_CommonStockParOrStatedValuePerShare_825162" use="optional" order="12" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/CondensedFinancialInformationOfTheParentCompanySummaryOfParentCompanyIncomeStatementDetail">
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_CondensedFinancialInformationParentCompanyOnlylineItemsLineItems" xlink:label="loc_kc_CondensedFinancialInformationParentCompanyOnlylineItemsLineItems_825332" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_825345" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_CondensedFinancialInformationParentCompanyOnlylineItemsLineItems_825332" xlink:to="loc_us-gaap_NetIncomeLoss_825345" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingExpensesAbstract" xlink:label="loc_us-gaap_OperatingExpensesAbstract_825333" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_CondensedFinancialInformationParentCompanyOnlylineItemsLineItems_825332" xlink:to="loc_us-gaap_OperatingExpensesAbstract_825333" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingExpenses" xlink:label="loc_us-gaap_OperatingExpenses_825335" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_825333" xlink:to="loc_us-gaap_OperatingExpenses_825335" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GeneralAndAdministrativeExpense" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_825334" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_825333" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_825334" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_825343" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_CondensedFinancialInformationParentCompanyOnlylineItemsLineItems_825332" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_825343" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherNonoperatingIncomeExpense" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_825340" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_CondensedFinancialInformationParentCompanyOnlylineItemsLineItems_825332" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_825340" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_825350" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_CondensedFinancialInformationParentCompanyOnlylineItemsLineItems_825332" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTax_825350" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeLossFromSubsidiariesBeforeTax" xlink:label="loc_us-gaap_IncomeLossFromSubsidiariesBeforeTax_825377" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_CondensedFinancialInformationParentCompanyOnlylineItemsLineItems_825332" xlink:to="loc_us-gaap_IncomeLossFromSubsidiariesBeforeTax_825377" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_825344" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_CondensedFinancialInformationParentCompanyOnlylineItemsLineItems_825332" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_825344" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InvestmentIncomeInterest" xlink:label="loc_us-gaap_InvestmentIncomeInterest_825337" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_CondensedFinancialInformationParentCompanyOnlylineItemsLineItems_825332" xlink:to="loc_us-gaap_InvestmentIncomeInterest_825337" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_TemporaryEquityAccretionToRedemptionValueAdjustment" xlink:label="loc_us-gaap_TemporaryEquityAccretionToRedemptionValueAdjustment_825349" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_CondensedFinancialInformationParentCompanyOnlylineItemsLineItems_825332" xlink:to="loc_us-gaap_TemporaryEquityAccretionToRedemptionValueAdjustment_825349" use="optional" order="11" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract_825346" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_CondensedFinancialInformationParentCompanyOnlylineItemsLineItems_825332" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract_825346" use="optional" order="12" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_825347" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract_825346" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_825347" use="optional" order="13" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_CondensedFinancialInformationParentCompanyOnlyTable" xlink:label="loc_kc_CondensedFinancialInformationParentCompanyOnlyTable_825331" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_kc_CondensedFinancialInformationParentCompanyOnlylineItemsLineItems_825332" xlink:to="loc_kc_CondensedFinancialInformationParentCompanyOnlyTable_825331" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="14" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesAxis" xlink:label="loc_srt_ConsolidatedEntitiesAxis_825351" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_kc_CondensedFinancialInformationParentCompanyOnlyTable_825331" xlink:to="loc_srt_ConsolidatedEntitiesAxis_825351" use="optional" order="15" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_825352" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_825351" xlink:to="loc_srt_ConsolidatedEntitiesDomain_825352" use="optional" order="16" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_825352_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_825351" xlink:to="loc_srt_ConsolidatedEntitiesDomain_825352_default" use="optional" order="17" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ParentCompanyMember" xlink:label="loc_srt_ParentCompanyMember_825353" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_825352" xlink:to="loc_srt_ParentCompanyMember_825353" use="optional" order="18" />
<loc xlink:type="locator" xlink:href="kc-20211231.xsd#kc_ComprehensiveIncomeLossNetOfTaxAttributableToCommonStockholdersBasic" xlink:label="loc_kc_ComprehensiveIncomeLossNetOfTaxAttributableToCommonStockholdersBasic_870305" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_CondensedFinancialInformationParentCompanyOnlylineItemsLineItems_825332" xlink:to="loc_kc_ComprehensiveIncomeLossNetOfTaxAttributableToCommonStockholdersBasic_870305" use="optional" order="19" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ForeignCurrencyTransactionGainLossBeforeTax" xlink:label="loc_us-gaap_ForeignCurrencyTransactionGainLossBeforeTax_825338" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_kc_CondensedFinancialInformationParentCompanyOnlylineItemsLineItems_825332" xlink:to="loc_us-gaap_ForeignCurrencyTransactionGainLossBeforeTax_825338" use="optional" order="20" />
</definitionLink>
<definitionLink xlink:type="extended" xlink:role="http://en.ksyun.com/role/CondensedFinancialInformationOfTheParentCompanySummaryOfParentCompanyCashFlowDetail">
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_825363" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_825359" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_825363" xlink:to="loc_us-gaap_StatementTable_825359" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesAxis" xlink:label="loc_srt_ConsolidatedEntitiesAxis_825360" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_825359" xlink:to="loc_srt_ConsolidatedEntitiesAxis_825360" use="optional" order="2" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_825361" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_825360" xlink:to="loc_srt_ConsolidatedEntitiesDomain_825361" use="optional" order="3" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_825361_default" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_825360" xlink:to="loc_srt_ConsolidatedEntitiesDomain_825361_default" use="optional" order="4" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd#srt_ParentCompanyMember" xlink:label="loc_srt_ParentCompanyMember_825362" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_825361" xlink:to="loc_srt_ParentCompanyMember_825362" use="optional" order="5" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_EffectOfExchangeRateOnCashAndCashEquivalents" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashAndCashEquivalents_825369" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_825363" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashAndCashEquivalents_825369" use="optional" order="6" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_825366" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_825363" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_825366" use="optional" order="7" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_825367" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_825363" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_825367" use="optional" order="8" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_825368" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_825363" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_825368" use="optional" order="9" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_825371" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_825363" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_825371" use="optional" order="10" />
<loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_825370" />
<definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_825363" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_825370" use="optional" order="11" />
</definitionLink>
</linkbase>
