A sample configuration with a specified distribution of residual stresses in depth was developed to elaborate modes for studying residual stresses using mechanical and physical methods. The sample formation technique is based on non-uniform plastic deformation of an aluminum beam of rectangular cross section according to the pure bending scheme. The control of the deformed state during loading was performed on the end surface of the sample by the field of normal deformations obtained using a digital image correlation system. The depth of the plastically deformed layer was 1.3 mm. The theoretical distribution of residual stresses obtained as a result of unloading of a plastically deformed sample was determined from the results of a numerical calculation of a finite element model, with allowance for the physical and mechanical characteristics, elastic-plastic hardening, as well as the deformation curve in true coordinates obtained as a result of uniaxial tension on elementary samples. A study of residual stresses inhomogeneous in depth was carried out by drilling holes in accordance with ASTM E837 on two opposite sides of the sample: the region of tension under loading and the area of compression, respectively. The control of the deformation response resulted from drilling was recorded using three-axis strain gauge rosettes. The results of the actual measurement of the longitudinal component of residual stresses were compared with their theoretical distribution obtained by a numerical method. The root-mean-square error in measuring residual stresses, relative to their theoretical distribution, for an aluminum alloy sample reaches 18.7 MPa. It should be noted that largest measurement errors were recorded at small depths, since they are characterized by small values of deformations comparable to the value of shot noise.