Which command creates a service of type ExternalName that points to an external host name?

Prepare for the Red Hat OpenShift Developer II DO288 Exam with our quizzes. Study with flashcards and multiple choice questions, each with hints and explanations. Get ready for your certification!

Multiple Choice

Which command creates a service of type ExternalName that points to an external host 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 <servicename> --external-name <mysql_db>. 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.

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.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy