PAS-C01 Design of SAP Workloads on AWS Practice Question
Network Topology
An SAP administrator runs the above CLI command to find the public IP of an m5.2xlarge instance. The output is null. Which of the following is the most likely reason?
⚠ Common exam trap
The trap here is that candidates may incorrectly attribute the null output to a security group blocking the IP or a syntax error, rather than understanding that the instance simply lacks a public IP address due to subnet configuration or missing Elastic IP.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The instance does not have a public IP address assigned
The CLI command `aws ec2 describe-instances --instance-ids <id> --query 'Reservations[0].Instances[0].PublicIpAddress'` returns null because the instance does not have a public IP address assigned. In AWS, a public IP is only assigned to an instance if it is launched in a subnet that auto-assigns public IPv4 addresses, or if an Elastic IP is attached. The command itself is syntactically correct and will output null (or an empty string) when no public IP exists, not an error.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The security group blocks the public IP
Why it's wrong here
Security groups do not control IP assignment.
- ✗
The CLI command has a syntax error
Why it's wrong here
The command syntax is valid.
- ✗
The instance type m5.2xlarge does not support public IP addresses
Why it's wrong here
All EC2 instance types can have public IPs if configured.
- ✓
The instance does not have a public IP address assigned
Why this is correct
The instance may be in a private subnet or launched without a public IP.
Visual reference
Go deeper
Related to this question
About these practice questions
Courseiva writes every PAS-C01 question from scratch — 1,616 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This PAS-C01 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PAS-C01 exam.