1.optional feature has been applied on subnet block
2.optional concept can be applied only on blocks which have "block support" feature enabled , it will be mentioned on terraform registry page.
3.It helps in selecting the child block as per the requirement.
4.Herein, code has been constructed in such a way that any subnet can be omitted or added as per the need of hour .
Keep Learning !