Red Hat OpenShift Developer II DO288 Practice Exam

Access More Questions
Which command creates a service of type ExternalName that points to an external host name?
Correct Answer:
oc create service externalname --external-name
Explanation:
ExternalName services route to an external DNS name instead of a cluster IP. You create one by specifying the service type as externalname and providing the external host with the --external-name flag. The command that fits this pattern is oc create service externalname --external-name . It uses the correct resource type and the correct flag to point to the external host. The other options fail because they either use a different service type (like clusterip), or use incorrect capitalization for the resource type or the flag, or supply a less appropriate external name.

Access more questions from this quiz

Continue to Red Hat OpenShift Developer II DO288 Practice Exam for more practice questions and the full quiz experience.

Access More Questions