What are the advantages of a SSM (session manager) login over a SSH login of an EC2 instance?

No port number establishment, no manual setup for log and activity tracking, key pair is not required,

What is the serverless service offered by amazon?

dynamo db aws lambda and SNS

What is the purpose of DNS in a network?

DNS converts domain name into Ip address

How can you improve latency for an application hosted in a single AWS region?

you can use Amazon Cloud front

if entered aws --version cmd in my powershell but cmdlet is invalid. why and what i have to install?

AWS CLI is not installed , you should install it