The U.S. consumer price index (CPI) rose by 3.4 percent year on year in April, according to the U.S. Bureau of Labor Statistics on Wednesday.