Bird
0
0

Given this AWS CLI command, what will it do?

medium📝 query result Q13 of 15
DynamoDB - Security and Access Control
Given this AWS CLI command, what will it do?
aws ec2 create-vpc-endpoint --vpc-id vpc-abc123 --service-name com.amazonaws.us-east-1.dynamodb --subnet-ids subnet-1a2b3c --security-group-ids sg-123abc
ACreates a new VPC with DynamoDB access enabled.
BCreates a VPC endpoint for DynamoDB in the specified VPC with subnet and security group.
CDeletes the specified subnet and security group.
DCreates a DynamoDB table in the specified subnet.
Step-by-Step Solution
Solution:
  1. Step 1: Analyze the command components

    The command uses 'create-vpc-endpoint' with a VPC ID, service name for DynamoDB, subnet IDs, and security group IDs.
  2. Step 2: Understand the effect of the command

    This creates a VPC endpoint inside the given VPC, allowing private DynamoDB access through specified subnets and security groups.
  3. Final Answer:

    Creates a VPC endpoint for DynamoDB in the specified VPC with subnet and security group. -> Option B
  4. Quick Check:

    Create VPC endpoint + DynamoDB service = private access setup [OK]
Quick Trick: Look for 'create-vpc-endpoint' and DynamoDB service name [OK]
Common Mistakes:
MISTAKES
  • Thinking it creates a new VPC
  • Confusing creation with deletion
  • Assuming it creates DynamoDB tables

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More DynamoDB Quizzes