Bird
0
0

Which AWS CLI command correctly creates a target group with TCP protocol on port 8080?

easy📝 Syntax Q3 of 15
AWS - Elastic Load Balancing
Which AWS CLI command correctly creates a target group with TCP protocol on port 8080?
Aaws elbv2 create-target-group --name my-tg --protocol TCP --port 8080 --vpc-id vpc-123abc
Baws elbv2 create-target-group --name my-tg --protocol HTTP --port 8080 --vpc-id vpc-123abc
Caws elbv2 create-target-group --name my-tg --protocol HTTPS --port 80 --vpc-id vpc-123abc
Daws elbv2 create-target-group --name my-tg --protocol UDP --port 8080 --vpc-id vpc-123abc
Step-by-Step Solution
Solution:
  1. Step 1: Identify the correct protocol and port

    The question specifies TCP protocol and port 8080.
  2. Step 2: Verify AWS CLI syntax

    The command must use aws elbv2 create-target-group with --protocol TCP, --port 8080, and a valid --vpc-id.
  3. Final Answer:

    aws elbv2 create-target-group --name my-tg --protocol TCP --port 8080 --vpc-id vpc-123abc correctly matches the requirements.
  4. Quick Check:

    Protocol TCP and port 8080 must be specified exactly [OK]
Quick Trick: Use 'create-target-group' with correct protocol and port [OK]
Common Mistakes:
MISTAKES
  • Using HTTP or HTTPS instead of TCP
  • Specifying wrong port number
  • Omitting the VPC ID

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes