But the global tech industry is increasingly relying on automation, robotics, big data analytics, machine learning and consulting — technologies that threaten to bypass and even replace Indian workers. For example, automated processes may soon replace the kind of work Mr. Choudhari was performing for foreign clients, which involved maintaining software by occasionally plugging in simple code and analyzing data.

“What we’re seeing is an acceleration in shedding for jobs in India and an adding of jobs onshore,” said Sandra Notardonato, an analyst and research vice president for Gartner, a research and advisory company. “Even if these companies don’t have huge net losses, there’s a person who will suffer, and that’s a person with a limited skill set in India.”

Such job losses could be politically damaging to the government of Prime Minister Narendra Modi, who won an electoral mandate in 2014 on the promise of development and employment for a bulging youth population. In January, near the three-year mark of his administration, an economic survey reported that job creation had stalled.

So far, the scale of the impact is not clear. T. V. Mohandas Pai, a longtime industry figure, estimates the cuts will encompass up to 2 percent of the work force by September, mainly from culling underperformers. A 2015 study released by the National Association of Software and Services Companies, the Indian technology industry trade group known as Nasscom, and McKinsey India found that 50 to 70 percent of workers’ skills would be irrelevant by 2020.

Of course, new technologies will create new jobs. The impact of automation and artificial intelligence still is not clear, and they could open up new areas that simply shift tech work rather than eliminate it.